@stacklink/sdk 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,52 @@
1
1
  import { z } from 'zod';
2
2
  export declare const memorySubjectTypes: readonly ["user", "agent", "tenant", "run", "application", "custom"];
3
+ export declare const completedConversationContentSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<"stacklink.conversation.turn.v1">;
5
+ user: z.ZodObject<{
6
+ role: z.ZodLiteral<"user">;
7
+ content: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ role: "user";
10
+ content: string;
11
+ }, {
12
+ role: "user";
13
+ content: string;
14
+ }>;
15
+ assistant: z.ZodObject<{
16
+ role: z.ZodLiteral<"assistant">;
17
+ content: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ role: "assistant";
20
+ content: string;
21
+ }, {
22
+ role: "assistant";
23
+ content: string;
24
+ }>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ user: {
27
+ role: "user";
28
+ content: string;
29
+ };
30
+ schemaVersion: "stacklink.conversation.turn.v1";
31
+ assistant: {
32
+ role: "assistant";
33
+ content: string;
34
+ };
35
+ }, {
36
+ user: {
37
+ role: "user";
38
+ content: string;
39
+ };
40
+ schemaVersion: "stacklink.conversation.turn.v1";
41
+ assistant: {
42
+ role: "assistant";
43
+ content: string;
44
+ };
45
+ }>;
46
+ export declare function serializeCompletedConversationTurn(input: {
47
+ userText: string;
48
+ assistantText: string;
49
+ }): string;
3
50
  export declare const memoryRecordKinds: readonly ["fact", "episode", "profile_item", "block"];
4
51
  export declare const memoryAutomaticRecordKinds: readonly ["fact", "episode"];
5
52
  export declare const memoryTypes: readonly ["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"];
@@ -7,38 +54,189 @@ export type MemoryType = typeof memoryTypes[number];
7
54
  export declare const memorySensitivityClasses: readonly ["standard", "personal", "restricted", "secret"];
8
55
  export declare const memorySourceClasses: readonly ["human_communication", "structured_temporal", "structured_profile", "authored_document", "operational_event", "external_feed"];
9
56
  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"];
57
+ export declare const memoryAdmissionBases: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"];
58
+ export declare const memoryWriteAuthoritySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
59
+ kind: z.ZodLiteral<"caller_assertion">;
60
+ actorId: z.ZodString;
61
+ }, "strict", z.ZodTypeAny, {
62
+ kind: "caller_assertion";
63
+ actorId: string;
64
+ }, {
65
+ kind: "caller_assertion";
66
+ actorId: string;
67
+ }>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"dashboard_user">;
69
+ actorId: z.ZodString;
70
+ action: z.ZodEnum<["save", "confirm", "correct", "review"]>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ kind: "dashboard_user";
73
+ actorId: string;
74
+ action: "save" | "confirm" | "correct" | "review";
75
+ }, {
76
+ kind: "dashboard_user";
77
+ actorId: string;
78
+ action: "save" | "confirm" | "correct" | "review";
79
+ }>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"provider_projection">;
81
+ sourceEventId: z.ZodString;
82
+ }, "strict", z.ZodTypeAny, {
83
+ kind: "provider_projection";
84
+ sourceEventId: string;
85
+ }, {
86
+ kind: "provider_projection";
87
+ sourceEventId: string;
88
+ }>, z.ZodObject<{
89
+ kind: z.ZodLiteral<"model_extraction">;
90
+ processingRunId: z.ZodString;
91
+ }, "strict", z.ZodTypeAny, {
92
+ kind: "model_extraction";
93
+ processingRunId: string;
94
+ }, {
95
+ kind: "model_extraction";
96
+ processingRunId: string;
97
+ }>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"system_repair">;
99
+ manifestId: z.ZodString;
100
+ }, "strict", z.ZodTypeAny, {
101
+ kind: "system_repair";
102
+ manifestId: string;
103
+ }, {
104
+ kind: "system_repair";
105
+ manifestId: string;
106
+ }>]>;
107
+ export type MemoryWriteAuthority = z.infer<typeof memoryWriteAuthoritySchema>;
108
+ /** Private operational input; no HTTP, SDK or MCP writer accepts this contract. */
109
+ export declare const memoryIntegrityCorrectionSchema: z.ZodObject<{
110
+ expectedSourceEventIds: z.ZodArray<z.ZodString, "many">;
111
+ evidence: z.ZodEnum<["preserve", "correction"]>;
112
+ quality: z.ZodObject<{
113
+ authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
114
+ admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
115
+ durability: z.ZodEnum<["durable", "episodic", "transient"]>;
116
+ destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
117
+ salience: z.ZodEnum<["low", "medium", "high"]>;
118
+ evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
119
+ contextEligible: z.ZodBoolean;
120
+ }, "strict", z.ZodTypeAny, {
121
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
122
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
123
+ durability: "durable" | "episodic" | "transient";
124
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
125
+ salience: "medium" | "low" | "high";
126
+ evidenceConfidence: "medium" | "low" | "high";
127
+ contextEligible: boolean;
128
+ }, {
129
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
130
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
131
+ durability: "durable" | "episodic" | "transient";
132
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
133
+ salience: "medium" | "low" | "high";
134
+ evidenceConfidence: "medium" | "low" | "high";
135
+ contextEligible: boolean;
136
+ }>;
137
+ }, "strict", z.ZodTypeAny, {
138
+ expectedSourceEventIds: string[];
139
+ evidence: "preserve" | "correction";
140
+ quality: {
141
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
142
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
143
+ durability: "durable" | "episodic" | "transient";
144
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
145
+ salience: "medium" | "low" | "high";
146
+ evidenceConfidence: "medium" | "low" | "high";
147
+ contextEligible: boolean;
148
+ };
149
+ }, {
150
+ expectedSourceEventIds: string[];
151
+ evidence: "preserve" | "correction";
152
+ quality: {
153
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
154
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
155
+ durability: "durable" | "episodic" | "transient";
156
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
157
+ salience: "medium" | "low" | "high";
158
+ evidenceConfidence: "medium" | "low" | "high";
159
+ contextEligible: boolean;
160
+ };
161
+ }>;
162
+ export type MemoryIntegrityCorrection = z.infer<typeof memoryIntegrityCorrectionSchema>;
163
+ /** Private, reviewed source replay; public legacy reprocessing remains limited to legacy records. */
164
+ export declare const memoryIntegritySourceReviewSchema: z.ZodObject<{
165
+ manifestId: z.ZodString;
166
+ sourceHash: z.ZodString;
167
+ policyKey: z.ZodString;
168
+ policyVersion: z.ZodNumber;
169
+ records: z.ZodArray<z.ZodObject<{
170
+ recordId: z.ZodString;
171
+ versionId: z.ZodString;
172
+ }, "strict", z.ZodTypeAny, {
173
+ recordId: string;
174
+ versionId: string;
175
+ }, {
176
+ recordId: string;
177
+ versionId: string;
178
+ }>, "many">;
179
+ }, "strict", z.ZodTypeAny, {
180
+ manifestId: string;
181
+ sourceHash: string;
182
+ policyKey: string;
183
+ policyVersion: number;
184
+ records: {
185
+ recordId: string;
186
+ versionId: string;
187
+ }[];
188
+ }, {
189
+ manifestId: string;
190
+ sourceHash: string;
191
+ policyKey: string;
192
+ policyVersion: number;
193
+ records: {
194
+ recordId: string;
195
+ versionId: string;
196
+ }[];
197
+ }>;
198
+ export type MemoryIntegritySourceReview = z.infer<typeof memoryIntegritySourceReviewSchema>;
11
199
  export declare const memoryDurabilities: readonly ["durable", "episodic", "transient"];
12
200
  export declare const memoryQualityRatingClasses: readonly ["low", "medium", "high"];
13
201
  export declare const memoryDestinations: readonly ["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"];
14
202
  export declare const memoryRetentionAdmissionStatuses: readonly ["memory", "source_only", "reject_noise", "uncertain"];
15
203
  export declare const memoryQualityContractVersion: 1;
16
204
  export declare const memoryProviderQualityContextSchema: z.ZodObject<{
205
+ conversationRoles: z.ZodOptional<z.ZodObject<{
206
+ userCanonicalKey: z.ZodString;
207
+ assistantCanonicalKey: z.ZodString;
208
+ }, "strict", z.ZodTypeAny, {
209
+ userCanonicalKey: string;
210
+ assistantCanonicalKey: string;
211
+ }, {
212
+ userCanonicalKey: string;
213
+ assistantCanonicalKey: string;
214
+ }>>;
17
215
  authorshipBoundary: z.ZodOptional<z.ZodEnum<["exact_source_unit", "message_may_include_quotes"]>>;
18
216
  contract: z.ZodLiteral<"stacklink.memory.source-quality.v1">;
19
217
  qualityContractVersion: z.ZodLiteral<1>;
20
218
  sourceClass: z.ZodEnum<["human_communication", "structured_temporal", "structured_profile", "authored_document", "operational_event", "external_feed"]>;
21
219
  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"]>;
220
+ admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
23
221
  actorCanonicalKey: z.ZodNullable<z.ZodString>;
24
222
  actors: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
223
  canonicalKey: z.ZodString;
26
224
  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"]>;
225
+ admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
28
226
  defaultDestination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
29
227
  allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
30
228
  }, "strict", z.ZodTypeAny, {
31
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
32
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
229
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
230
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
33
231
  canonicalKey: string;
34
232
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
35
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
233
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
36
234
  }, {
37
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
38
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
235
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
236
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
39
237
  canonicalKey: string;
40
238
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
41
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
239
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
42
240
  }>, "many">>;
43
241
  connectedUserCanonicalKey: z.ZodNullable<z.ZodString>;
44
242
  allowConnectedUserIntent: z.ZodBoolean;
@@ -50,20 +248,20 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
50
248
  validFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
51
249
  validTo: z.ZodDefault<z.ZodNullable<z.ZodString>>;
52
250
  }, "strict", z.ZodTypeAny, {
251
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
252
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
53
253
  contract: "stacklink.memory.source-quality.v1";
54
254
  qualityContractVersion: 1;
55
255
  sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
56
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
57
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
58
256
  actorCanonicalKey: string | null;
59
257
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
60
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
258
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
61
259
  actors: {
62
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
63
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
260
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
261
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
64
262
  canonicalKey: string;
65
263
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
66
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
264
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
67
265
  }[];
68
266
  connectedUserCanonicalKey: string | null;
69
267
  allowConnectedUserIntent: boolean;
@@ -72,28 +270,36 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
72
270
  hardExclusionSignals: string[];
73
271
  validFrom: string | null;
74
272
  validTo: string | null;
273
+ conversationRoles?: {
274
+ userCanonicalKey: string;
275
+ assistantCanonicalKey: string;
276
+ } | undefined;
75
277
  authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
76
278
  }, {
279
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
280
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
77
281
  contract: "stacklink.memory.source-quality.v1";
78
282
  qualityContractVersion: 1;
79
283
  sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
80
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
81
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
82
284
  actorCanonicalKey: string | null;
83
285
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
84
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
286
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
85
287
  connectedUserCanonicalKey: string | null;
86
288
  allowConnectedUserIntent: boolean;
87
289
  defaultDurability: "durable" | "episodic" | "transient";
88
290
  attachmentsIncluded: boolean;
89
291
  hardExclusionSignals: string[];
292
+ conversationRoles?: {
293
+ userCanonicalKey: string;
294
+ assistantCanonicalKey: string;
295
+ } | undefined;
90
296
  authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
91
297
  actors?: {
92
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
93
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
298
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
299
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
94
300
  canonicalKey: string;
95
301
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
96
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
302
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
97
303
  }[] | undefined;
98
304
  validFrom?: string | null | undefined;
99
305
  validTo?: string | null | undefined;
@@ -108,10 +314,10 @@ export declare const memorySubjectRefSchema: z.ZodObject<{
108
314
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
109
315
  externalId: z.ZodString;
110
316
  }, "strict", z.ZodTypeAny, {
111
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
317
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
112
318
  externalId: string;
113
319
  }, {
114
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
320
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
115
321
  externalId: string;
116
322
  }>;
117
323
  export type MemorySubjectRef = z.infer<typeof memorySubjectRefSchema>;
@@ -132,6 +338,27 @@ export declare const memoryConsentProofSchema: z.ZodObject<{
132
338
  reference?: string | undefined;
133
339
  }>;
134
340
  export type MemoryConsentProof = z.infer<typeof memoryConsentProofSchema>;
341
+ export declare const memoryRecordWriteOptionsShape: {
342
+ consent: z.ZodOptional<z.ZodObject<{
343
+ status: z.ZodLiteral<"granted">;
344
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
345
+ recordedAt: z.ZodString;
346
+ reference: z.ZodOptional<z.ZodString>;
347
+ }, "strict", z.ZodTypeAny, {
348
+ status: "granted";
349
+ basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
350
+ recordedAt: string;
351
+ reference?: string | undefined;
352
+ }, {
353
+ status: "granted";
354
+ basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
355
+ recordedAt: string;
356
+ reference?: string | undefined;
357
+ }>>;
358
+ expectedVersionId: z.ZodOptional<z.ZodString>;
359
+ idempotencyKey: z.ZodOptional<z.ZodString>;
360
+ };
361
+ export type MemoryRecordWriteOptions = z.infer<z.ZodObject<typeof memoryRecordWriteOptionsShape>>;
135
362
  export declare const memoryConsentPolicySchema: z.ZodObject<{
136
363
  mode: z.ZodDefault<z.ZodEnum<["project_policy", "required"]>>;
137
364
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -145,20 +372,20 @@ export declare const memoryTenantSelectorSchema: z.ZodEffects<z.ZodObject<{
145
372
  sessionId: z.ZodOptional<z.ZodString>;
146
373
  }, "strip", z.ZodTypeAny, {
147
374
  tenantId?: string | undefined;
148
- sessionId?: string | undefined;
149
375
  externalTenantId?: string | undefined;
376
+ sessionId?: string | undefined;
150
377
  }, {
151
378
  tenantId?: string | undefined;
152
- sessionId?: string | undefined;
153
379
  externalTenantId?: string | undefined;
380
+ sessionId?: string | undefined;
154
381
  }>, {
155
382
  tenantId?: string | undefined;
156
- sessionId?: string | undefined;
157
383
  externalTenantId?: string | undefined;
384
+ sessionId?: string | undefined;
158
385
  }, {
159
386
  tenantId?: string | undefined;
160
- sessionId?: string | undefined;
161
387
  externalTenantId?: string | undefined;
388
+ sessionId?: string | undefined;
162
389
  }>;
163
390
  /** Minimal retained provenance, independent of the original source payload. */
164
391
  export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
@@ -184,28 +411,37 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
184
411
  id: z.ZodString;
185
412
  observed: z.ZodOptional<z.ZodString>;
186
413
  }, "strip", z.ZodTypeAny, {
187
- id: string;
188
414
  kind: string;
189
415
  name: string;
416
+ id: string;
190
417
  observed?: string | undefined;
191
418
  }, {
192
- id: string;
193
419
  kind: string;
194
420
  name: string;
421
+ id: string;
195
422
  observed?: string | undefined;
196
423
  }>>;
197
424
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
198
425
  label: z.ZodString;
199
- before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
- after: z.ZodString;
426
+ before: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
427
+ after: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
428
+ beforeDisplay: z.ZodOptional<z.ZodString>;
429
+ afterDisplay: z.ZodOptional<z.ZodString>;
430
+ format: z.ZodOptional<z.ZodEnum<["text", "json", "timestamp"]>>;
201
431
  }, "strip", z.ZodTypeAny, {
202
432
  label: string;
203
- after: string;
204
- before?: string | null | undefined;
433
+ after: string | number | boolean | null;
434
+ before?: string | number | boolean | null | undefined;
435
+ beforeDisplay?: string | undefined;
436
+ afterDisplay?: string | undefined;
437
+ format?: "text" | "json" | "timestamp" | undefined;
205
438
  }, {
206
439
  label: string;
207
- after: string;
208
- before?: string | null | undefined;
440
+ after: string | number | boolean | null;
441
+ before?: string | number | boolean | null | undefined;
442
+ beforeDisplay?: string | undefined;
443
+ afterDisplay?: string | undefined;
444
+ format?: "text" | "json" | "timestamp" | undefined;
209
445
  }>, "many">>;
210
446
  conversation: z.ZodOptional<z.ZodObject<{
211
447
  sessionId: z.ZodOptional<z.ZodString>;
@@ -213,15 +449,15 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
213
449
  speaker: z.ZodOptional<z.ZodString>;
214
450
  assistant: z.ZodOptional<z.ZodBoolean>;
215
451
  }, "strip", z.ZodTypeAny, {
452
+ assistant?: boolean | undefined;
216
453
  sessionId?: string | undefined;
217
- speaker?: string | undefined;
218
454
  turn?: string | undefined;
219
- assistant?: boolean | undefined;
455
+ speaker?: string | undefined;
220
456
  }, {
457
+ assistant?: boolean | undefined;
221
458
  sessionId?: string | undefined;
222
- speaker?: string | undefined;
223
459
  turn?: string | undefined;
224
- assistant?: boolean | undefined;
460
+ speaker?: string | undefined;
225
461
  }>>;
226
462
  file: z.ZodOptional<z.ZodObject<{
227
463
  title: z.ZodString;
@@ -239,75 +475,81 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
239
475
  by: z.ZodOptional<z.ZodString>;
240
476
  requestId: z.ZodOptional<z.ZodString>;
241
477
  }, "strict", z.ZodTypeAny, {
242
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
478
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
243
479
  contract: "stacklink.memory.evidence.v1";
244
480
  availability: "unknown" | "available" | "deleted";
245
481
  object?: {
246
- id: string;
247
482
  kind: string;
248
483
  name: string;
484
+ id: string;
249
485
  observed?: string | undefined;
250
486
  } | undefined;
251
- channel?: string | undefined;
252
- fields?: {
253
- label: string;
254
- after: string;
255
- before?: string | null | undefined;
256
- }[] | undefined;
487
+ conversation?: {
488
+ assistant?: boolean | undefined;
489
+ sessionId?: string | undefined;
490
+ turn?: string | undefined;
491
+ speaker?: string | undefined;
492
+ } | undefined;
257
493
  file?: {
258
494
  title: string;
259
495
  section?: string | undefined;
260
496
  edited?: string | undefined;
261
497
  } | undefined;
498
+ href?: string | undefined;
262
499
  from?: {
263
500
  name: string;
264
501
  address?: string | undefined;
265
502
  } | undefined;
266
- requestId?: string | undefined;
267
- conversation?: {
268
- sessionId?: string | undefined;
269
- speaker?: string | undefined;
270
- turn?: string | undefined;
271
- assistant?: boolean | undefined;
272
- } | undefined;
273
- href?: string | undefined;
274
503
  subject?: string | undefined;
504
+ channel?: string | undefined;
505
+ fields?: {
506
+ label: string;
507
+ after: string | number | boolean | null;
508
+ before?: string | number | boolean | null | undefined;
509
+ beforeDisplay?: string | undefined;
510
+ afterDisplay?: string | undefined;
511
+ format?: "text" | "json" | "timestamp" | undefined;
512
+ }[] | undefined;
275
513
  by?: string | undefined;
514
+ requestId?: string | undefined;
276
515
  }, {
277
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
516
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
278
517
  object?: {
279
- id: string;
280
518
  kind: string;
281
519
  name: string;
520
+ id: string;
282
521
  observed?: string | undefined;
283
522
  } | undefined;
284
- channel?: string | undefined;
285
- fields?: {
286
- label: string;
287
- after: string;
288
- before?: string | null | undefined;
289
- }[] | undefined;
523
+ contract?: "stacklink.memory.evidence.v1" | undefined;
524
+ conversation?: {
525
+ assistant?: boolean | undefined;
526
+ sessionId?: string | undefined;
527
+ turn?: string | undefined;
528
+ speaker?: string | undefined;
529
+ } | undefined;
290
530
  file?: {
291
531
  title: string;
292
532
  section?: string | undefined;
293
533
  edited?: string | undefined;
294
534
  } | undefined;
535
+ href?: string | undefined;
536
+ availability?: "unknown" | "available" | "deleted" | undefined;
295
537
  from?: {
296
538
  name: string;
297
539
  address?: string | undefined;
298
540
  } | undefined;
299
- requestId?: string | undefined;
300
- contract?: "stacklink.memory.evidence.v1" | undefined;
301
- conversation?: {
302
- sessionId?: string | undefined;
303
- speaker?: string | undefined;
304
- turn?: string | undefined;
305
- assistant?: boolean | undefined;
306
- } | undefined;
307
- href?: string | undefined;
308
- availability?: "unknown" | "available" | "deleted" | undefined;
309
541
  subject?: string | undefined;
542
+ channel?: string | undefined;
543
+ fields?: {
544
+ label: string;
545
+ after: string | number | boolean | null;
546
+ before?: string | number | boolean | null | undefined;
547
+ beforeDisplay?: string | undefined;
548
+ afterDisplay?: string | undefined;
549
+ format?: "text" | "json" | "timestamp" | undefined;
550
+ }[] | undefined;
310
551
  by?: string | undefined;
552
+ requestId?: string | undefined;
311
553
  }>;
312
554
  export type MemoryEvidenceReference = z.input<typeof memoryEvidenceReferenceSchema>;
313
555
  export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
@@ -321,10 +563,10 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
321
563
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
322
564
  externalId: z.ZodString;
323
565
  }, "strict", z.ZodTypeAny, {
324
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
566
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
325
567
  externalId: string;
326
568
  }, {
327
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
569
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
328
570
  externalId: string;
329
571
  }>, "many">>;
330
572
  mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
@@ -368,28 +610,37 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
368
610
  id: z.ZodString;
369
611
  observed: z.ZodOptional<z.ZodString>;
370
612
  }, "strip", z.ZodTypeAny, {
371
- id: string;
372
613
  kind: string;
373
614
  name: string;
615
+ id: string;
374
616
  observed?: string | undefined;
375
617
  }, {
376
- id: string;
377
618
  kind: string;
378
619
  name: string;
620
+ id: string;
379
621
  observed?: string | undefined;
380
622
  }>>;
381
623
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
624
  label: z.ZodString;
383
- before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
- after: z.ZodString;
625
+ before: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
626
+ after: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
627
+ beforeDisplay: z.ZodOptional<z.ZodString>;
628
+ afterDisplay: z.ZodOptional<z.ZodString>;
629
+ format: z.ZodOptional<z.ZodEnum<["text", "json", "timestamp"]>>;
385
630
  }, "strip", z.ZodTypeAny, {
386
631
  label: string;
387
- after: string;
388
- before?: string | null | undefined;
632
+ after: string | number | boolean | null;
633
+ before?: string | number | boolean | null | undefined;
634
+ beforeDisplay?: string | undefined;
635
+ afterDisplay?: string | undefined;
636
+ format?: "text" | "json" | "timestamp" | undefined;
389
637
  }, {
390
638
  label: string;
391
- after: string;
392
- before?: string | null | undefined;
639
+ after: string | number | boolean | null;
640
+ before?: string | number | boolean | null | undefined;
641
+ beforeDisplay?: string | undefined;
642
+ afterDisplay?: string | undefined;
643
+ format?: "text" | "json" | "timestamp" | undefined;
393
644
  }>, "many">>;
394
645
  conversation: z.ZodOptional<z.ZodObject<{
395
646
  sessionId: z.ZodOptional<z.ZodString>;
@@ -397,15 +648,15 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
397
648
  speaker: z.ZodOptional<z.ZodString>;
398
649
  assistant: z.ZodOptional<z.ZodBoolean>;
399
650
  }, "strip", z.ZodTypeAny, {
651
+ assistant?: boolean | undefined;
400
652
  sessionId?: string | undefined;
401
- speaker?: string | undefined;
402
653
  turn?: string | undefined;
403
- assistant?: boolean | undefined;
654
+ speaker?: string | undefined;
404
655
  }, {
656
+ assistant?: boolean | undefined;
405
657
  sessionId?: string | undefined;
406
- speaker?: string | undefined;
407
658
  turn?: string | undefined;
408
- assistant?: boolean | undefined;
659
+ speaker?: string | undefined;
409
660
  }>>;
410
661
  file: z.ZodOptional<z.ZodObject<{
411
662
  title: z.ZodString;
@@ -423,166 +674,178 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
423
674
  by: z.ZodOptional<z.ZodString>;
424
675
  requestId: z.ZodOptional<z.ZodString>;
425
676
  }, "strict", z.ZodTypeAny, {
426
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
677
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
427
678
  contract: "stacklink.memory.evidence.v1";
428
679
  availability: "unknown" | "available" | "deleted";
429
680
  object?: {
430
- id: string;
431
681
  kind: string;
432
682
  name: string;
683
+ id: string;
433
684
  observed?: string | undefined;
434
685
  } | undefined;
435
- channel?: string | undefined;
436
- fields?: {
437
- label: string;
438
- after: string;
439
- before?: string | null | undefined;
440
- }[] | undefined;
686
+ conversation?: {
687
+ assistant?: boolean | undefined;
688
+ sessionId?: string | undefined;
689
+ turn?: string | undefined;
690
+ speaker?: string | undefined;
691
+ } | undefined;
441
692
  file?: {
442
693
  title: string;
443
694
  section?: string | undefined;
444
695
  edited?: string | undefined;
445
696
  } | undefined;
697
+ href?: string | undefined;
446
698
  from?: {
447
699
  name: string;
448
700
  address?: string | undefined;
449
701
  } | undefined;
450
- requestId?: string | undefined;
451
- conversation?: {
452
- sessionId?: string | undefined;
453
- speaker?: string | undefined;
454
- turn?: string | undefined;
455
- assistant?: boolean | undefined;
456
- } | undefined;
457
- href?: string | undefined;
458
702
  subject?: string | undefined;
703
+ channel?: string | undefined;
704
+ fields?: {
705
+ label: string;
706
+ after: string | number | boolean | null;
707
+ before?: string | number | boolean | null | undefined;
708
+ beforeDisplay?: string | undefined;
709
+ afterDisplay?: string | undefined;
710
+ format?: "text" | "json" | "timestamp" | undefined;
711
+ }[] | undefined;
459
712
  by?: string | undefined;
713
+ requestId?: string | undefined;
460
714
  }, {
461
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
715
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
462
716
  object?: {
463
- id: string;
464
717
  kind: string;
465
718
  name: string;
719
+ id: string;
466
720
  observed?: string | undefined;
467
721
  } | undefined;
468
- channel?: string | undefined;
469
- fields?: {
470
- label: string;
471
- after: string;
472
- before?: string | null | undefined;
473
- }[] | undefined;
722
+ contract?: "stacklink.memory.evidence.v1" | undefined;
723
+ conversation?: {
724
+ assistant?: boolean | undefined;
725
+ sessionId?: string | undefined;
726
+ turn?: string | undefined;
727
+ speaker?: string | undefined;
728
+ } | undefined;
474
729
  file?: {
475
730
  title: string;
476
731
  section?: string | undefined;
477
732
  edited?: string | undefined;
478
733
  } | undefined;
734
+ href?: string | undefined;
735
+ availability?: "unknown" | "available" | "deleted" | undefined;
479
736
  from?: {
480
737
  name: string;
481
738
  address?: string | undefined;
482
739
  } | undefined;
483
- requestId?: string | undefined;
484
- contract?: "stacklink.memory.evidence.v1" | undefined;
485
- conversation?: {
486
- sessionId?: string | undefined;
487
- speaker?: string | undefined;
488
- turn?: string | undefined;
489
- assistant?: boolean | undefined;
490
- } | undefined;
491
- href?: string | undefined;
492
- availability?: "unknown" | "available" | "deleted" | undefined;
493
740
  subject?: string | undefined;
741
+ channel?: string | undefined;
742
+ fields?: {
743
+ label: string;
744
+ after: string | number | boolean | null;
745
+ before?: string | number | boolean | null | undefined;
746
+ beforeDisplay?: string | undefined;
747
+ afterDisplay?: string | undefined;
748
+ format?: "text" | "json" | "timestamp" | undefined;
749
+ }[] | undefined;
494
750
  by?: string | undefined;
751
+ requestId?: string | undefined;
495
752
  }>>;
496
753
  }, "strict", z.ZodTypeAny, {
497
- kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
498
- externalId?: string | undefined;
499
- providerKey?: string | undefined;
500
- connectedAccountId?: string | undefined;
501
- resourceId?: string | undefined;
502
- resourceType?: string | undefined;
503
- toolExecutionId?: string | undefined;
504
- applicationKey?: string | undefined;
754
+ kind: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact";
505
755
  evidence?: {
506
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
756
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
507
757
  contract: "stacklink.memory.evidence.v1";
508
758
  availability: "unknown" | "available" | "deleted";
509
759
  object?: {
510
- id: string;
511
760
  kind: string;
512
761
  name: string;
762
+ id: string;
513
763
  observed?: string | undefined;
514
764
  } | undefined;
515
- channel?: string | undefined;
516
- fields?: {
517
- label: string;
518
- after: string;
519
- before?: string | null | undefined;
520
- }[] | undefined;
765
+ conversation?: {
766
+ assistant?: boolean | undefined;
767
+ sessionId?: string | undefined;
768
+ turn?: string | undefined;
769
+ speaker?: string | undefined;
770
+ } | undefined;
521
771
  file?: {
522
772
  title: string;
523
773
  section?: string | undefined;
524
774
  edited?: string | undefined;
525
775
  } | undefined;
776
+ href?: string | undefined;
526
777
  from?: {
527
778
  name: string;
528
779
  address?: string | undefined;
529
780
  } | undefined;
530
- requestId?: string | undefined;
531
- conversation?: {
532
- sessionId?: string | undefined;
533
- speaker?: string | undefined;
534
- turn?: string | undefined;
535
- assistant?: boolean | undefined;
536
- } | undefined;
537
- href?: string | undefined;
538
781
  subject?: string | undefined;
782
+ channel?: string | undefined;
783
+ fields?: {
784
+ label: string;
785
+ after: string | number | boolean | null;
786
+ before?: string | number | boolean | null | undefined;
787
+ beforeDisplay?: string | undefined;
788
+ afterDisplay?: string | undefined;
789
+ format?: "text" | "json" | "timestamp" | undefined;
790
+ }[] | undefined;
539
791
  by?: string | undefined;
792
+ requestId?: string | undefined;
540
793
  } | undefined;
541
- }, {
542
- kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
543
794
  externalId?: string | undefined;
544
795
  providerKey?: string | undefined;
545
796
  connectedAccountId?: string | undefined;
546
- resourceId?: string | undefined;
547
797
  resourceType?: string | undefined;
798
+ resourceId?: string | undefined;
548
799
  toolExecutionId?: string | undefined;
549
800
  applicationKey?: string | undefined;
801
+ }, {
802
+ kind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
550
803
  evidence?: {
551
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
804
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
552
805
  object?: {
553
- id: string;
554
806
  kind: string;
555
807
  name: string;
808
+ id: string;
556
809
  observed?: string | undefined;
557
810
  } | undefined;
558
- channel?: string | undefined;
559
- fields?: {
560
- label: string;
561
- after: string;
562
- before?: string | null | undefined;
563
- }[] | undefined;
811
+ contract?: "stacklink.memory.evidence.v1" | undefined;
812
+ conversation?: {
813
+ assistant?: boolean | undefined;
814
+ sessionId?: string | undefined;
815
+ turn?: string | undefined;
816
+ speaker?: string | undefined;
817
+ } | undefined;
564
818
  file?: {
565
819
  title: string;
566
820
  section?: string | undefined;
567
821
  edited?: string | undefined;
568
822
  } | undefined;
823
+ href?: string | undefined;
824
+ availability?: "unknown" | "available" | "deleted" | undefined;
569
825
  from?: {
570
826
  name: string;
571
827
  address?: string | undefined;
572
828
  } | undefined;
573
- requestId?: string | undefined;
574
- contract?: "stacklink.memory.evidence.v1" | undefined;
575
- conversation?: {
576
- sessionId?: string | undefined;
577
- speaker?: string | undefined;
578
- turn?: string | undefined;
579
- assistant?: boolean | undefined;
580
- } | undefined;
581
- href?: string | undefined;
582
- availability?: "unknown" | "available" | "deleted" | undefined;
583
829
  subject?: string | undefined;
830
+ channel?: string | undefined;
831
+ fields?: {
832
+ label: string;
833
+ after: string | number | boolean | null;
834
+ before?: string | number | boolean | null | undefined;
835
+ beforeDisplay?: string | undefined;
836
+ afterDisplay?: string | undefined;
837
+ format?: "text" | "json" | "timestamp" | undefined;
838
+ }[] | undefined;
584
839
  by?: string | undefined;
840
+ requestId?: string | undefined;
585
841
  } | undefined;
842
+ externalId?: string | undefined;
843
+ providerKey?: string | undefined;
844
+ connectedAccountId?: string | undefined;
845
+ resourceType?: string | undefined;
846
+ resourceId?: string | undefined;
847
+ toolExecutionId?: string | undefined;
848
+ applicationKey?: string | undefined;
586
849
  }>>;
587
850
  idempotencyKey: z.ZodOptional<z.ZodString>;
588
851
  policyKey: z.ZodOptional<z.ZodString>;
@@ -605,303 +868,315 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
605
868
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
606
869
  }, "strip", z.ZodTypeAny, {
607
870
  source: {
608
- kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
609
- externalId?: string | undefined;
610
- providerKey?: string | undefined;
611
- connectedAccountId?: string | undefined;
612
- resourceId?: string | undefined;
613
- resourceType?: string | undefined;
614
- toolExecutionId?: string | undefined;
615
- applicationKey?: string | undefined;
871
+ kind: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact";
616
872
  evidence?: {
617
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
873
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
618
874
  contract: "stacklink.memory.evidence.v1";
619
875
  availability: "unknown" | "available" | "deleted";
620
876
  object?: {
621
- id: string;
622
877
  kind: string;
623
878
  name: string;
879
+ id: string;
624
880
  observed?: string | undefined;
625
881
  } | undefined;
626
- channel?: string | undefined;
627
- fields?: {
628
- label: string;
629
- after: string;
630
- before?: string | null | undefined;
631
- }[] | undefined;
882
+ conversation?: {
883
+ assistant?: boolean | undefined;
884
+ sessionId?: string | undefined;
885
+ turn?: string | undefined;
886
+ speaker?: string | undefined;
887
+ } | undefined;
632
888
  file?: {
633
889
  title: string;
634
890
  section?: string | undefined;
635
891
  edited?: string | undefined;
636
892
  } | undefined;
893
+ href?: string | undefined;
637
894
  from?: {
638
895
  name: string;
639
896
  address?: string | undefined;
640
897
  } | undefined;
641
- requestId?: string | undefined;
642
- conversation?: {
643
- sessionId?: string | undefined;
644
- speaker?: string | undefined;
645
- turn?: string | undefined;
646
- assistant?: boolean | undefined;
647
- } | undefined;
648
- href?: string | undefined;
649
898
  subject?: string | undefined;
899
+ channel?: string | undefined;
900
+ fields?: {
901
+ label: string;
902
+ after: string | number | boolean | null;
903
+ before?: string | number | boolean | null | undefined;
904
+ beforeDisplay?: string | undefined;
905
+ afterDisplay?: string | undefined;
906
+ format?: "text" | "json" | "timestamp" | undefined;
907
+ }[] | undefined;
650
908
  by?: string | undefined;
909
+ requestId?: string | undefined;
651
910
  } | undefined;
911
+ externalId?: string | undefined;
912
+ providerKey?: string | undefined;
913
+ connectedAccountId?: string | undefined;
914
+ resourceType?: string | undefined;
915
+ resourceId?: string | undefined;
916
+ toolExecutionId?: string | undefined;
917
+ applicationKey?: string | undefined;
652
918
  };
653
- kind: "block" | "fact" | "episode" | "profile_item";
654
- mode: "exact" | "extract";
655
- metadata: Record<string, unknown>;
656
919
  content: string;
657
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
920
+ kind: "fact" | "episode" | "profile_item" | "block";
921
+ mode: "exact" | "extract";
922
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
658
923
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
659
924
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
660
925
  topicTags: string[];
661
- tenantId?: string | undefined;
662
- sessionId?: string | undefined;
663
- language?: string | undefined;
664
- title?: string | undefined;
665
- idempotencyKey?: string | undefined;
926
+ metadata: Record<string, unknown>;
927
+ policyKey?: string | undefined;
666
928
  validFrom?: string | undefined;
667
929
  validTo?: string | undefined;
668
- externalTenantId?: string | undefined;
669
- subjects?: {
670
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
671
- externalId: string;
672
- }[] | undefined;
673
- policyKey?: string | undefined;
674
930
  consent?: {
675
931
  status: "granted";
676
932
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
677
933
  recordedAt: string;
678
934
  reference?: string | undefined;
679
935
  } | undefined;
936
+ idempotencyKey?: string | undefined;
937
+ tenantId?: string | undefined;
938
+ externalTenantId?: string | undefined;
939
+ sessionId?: string | undefined;
940
+ title?: string | undefined;
941
+ subjects?: {
942
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
943
+ externalId: string;
944
+ }[] | undefined;
945
+ language?: string | undefined;
680
946
  occurredAt?: string | undefined;
681
947
  }, {
682
948
  content: string;
683
949
  source?: {
684
- kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
685
- externalId?: string | undefined;
686
- providerKey?: string | undefined;
687
- connectedAccountId?: string | undefined;
688
- resourceId?: string | undefined;
689
- resourceType?: string | undefined;
690
- toolExecutionId?: string | undefined;
691
- applicationKey?: string | undefined;
950
+ kind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
692
951
  evidence?: {
693
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
952
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
694
953
  object?: {
695
- id: string;
696
954
  kind: string;
697
955
  name: string;
956
+ id: string;
698
957
  observed?: string | undefined;
699
958
  } | undefined;
700
- channel?: string | undefined;
701
- fields?: {
702
- label: string;
703
- after: string;
704
- before?: string | null | undefined;
705
- }[] | undefined;
959
+ contract?: "stacklink.memory.evidence.v1" | undefined;
960
+ conversation?: {
961
+ assistant?: boolean | undefined;
962
+ sessionId?: string | undefined;
963
+ turn?: string | undefined;
964
+ speaker?: string | undefined;
965
+ } | undefined;
706
966
  file?: {
707
967
  title: string;
708
968
  section?: string | undefined;
709
969
  edited?: string | undefined;
710
970
  } | undefined;
971
+ href?: string | undefined;
972
+ availability?: "unknown" | "available" | "deleted" | undefined;
711
973
  from?: {
712
974
  name: string;
713
975
  address?: string | undefined;
714
976
  } | undefined;
715
- requestId?: string | undefined;
716
- contract?: "stacklink.memory.evidence.v1" | undefined;
717
- conversation?: {
718
- sessionId?: string | undefined;
719
- speaker?: string | undefined;
720
- turn?: string | undefined;
721
- assistant?: boolean | undefined;
722
- } | undefined;
723
- href?: string | undefined;
724
- availability?: "unknown" | "available" | "deleted" | undefined;
725
977
  subject?: string | undefined;
978
+ channel?: string | undefined;
979
+ fields?: {
980
+ label: string;
981
+ after: string | number | boolean | null;
982
+ before?: string | number | boolean | null | undefined;
983
+ beforeDisplay?: string | undefined;
984
+ afterDisplay?: string | undefined;
985
+ format?: "text" | "json" | "timestamp" | undefined;
986
+ }[] | undefined;
726
987
  by?: string | undefined;
988
+ requestId?: string | undefined;
727
989
  } | undefined;
990
+ externalId?: string | undefined;
991
+ providerKey?: string | undefined;
992
+ connectedAccountId?: string | undefined;
993
+ resourceType?: string | undefined;
994
+ resourceId?: string | undefined;
995
+ toolExecutionId?: string | undefined;
996
+ applicationKey?: string | undefined;
728
997
  } | undefined;
729
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
730
- tenantId?: string | undefined;
731
- sessionId?: string | undefined;
732
- language?: string | undefined;
733
- mode?: "exact" | "extract" | undefined;
734
- title?: string | undefined;
735
- metadata?: Record<string, unknown> | undefined;
736
- idempotencyKey?: string | undefined;
998
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
999
+ policyKey?: string | undefined;
737
1000
  validFrom?: string | undefined;
738
1001
  validTo?: string | undefined;
1002
+ consent?: {
1003
+ status: "granted";
1004
+ basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1005
+ recordedAt: string;
1006
+ reference?: string | undefined;
1007
+ } | undefined;
1008
+ idempotencyKey?: string | undefined;
1009
+ mode?: "exact" | "extract" | undefined;
1010
+ tenantId?: string | undefined;
739
1011
  externalTenantId?: string | undefined;
1012
+ sessionId?: string | undefined;
1013
+ title?: string | undefined;
740
1014
  subjects?: {
741
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1015
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
742
1016
  externalId: string;
743
1017
  }[] | undefined;
744
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1018
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
745
1019
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
746
1020
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
747
1021
  topicTags?: string[] | undefined;
748
- policyKey?: string | undefined;
749
- consent?: {
750
- status: "granted";
751
- basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
752
- recordedAt: string;
753
- reference?: string | undefined;
754
- } | undefined;
1022
+ language?: string | undefined;
1023
+ metadata?: Record<string, unknown> | undefined;
755
1024
  occurredAt?: string | undefined;
756
1025
  }>, {
757
1026
  source: {
758
- kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
759
- externalId?: string | undefined;
760
- providerKey?: string | undefined;
761
- connectedAccountId?: string | undefined;
762
- resourceId?: string | undefined;
763
- resourceType?: string | undefined;
764
- toolExecutionId?: string | undefined;
765
- applicationKey?: string | undefined;
1027
+ kind: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact";
766
1028
  evidence?: {
767
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
1029
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
768
1030
  contract: "stacklink.memory.evidence.v1";
769
1031
  availability: "unknown" | "available" | "deleted";
770
1032
  object?: {
771
- id: string;
772
1033
  kind: string;
773
1034
  name: string;
1035
+ id: string;
774
1036
  observed?: string | undefined;
775
1037
  } | undefined;
776
- channel?: string | undefined;
777
- fields?: {
778
- label: string;
779
- after: string;
780
- before?: string | null | undefined;
781
- }[] | undefined;
1038
+ conversation?: {
1039
+ assistant?: boolean | undefined;
1040
+ sessionId?: string | undefined;
1041
+ turn?: string | undefined;
1042
+ speaker?: string | undefined;
1043
+ } | undefined;
782
1044
  file?: {
783
1045
  title: string;
784
1046
  section?: string | undefined;
785
1047
  edited?: string | undefined;
786
1048
  } | undefined;
1049
+ href?: string | undefined;
787
1050
  from?: {
788
1051
  name: string;
789
1052
  address?: string | undefined;
790
1053
  } | undefined;
791
- requestId?: string | undefined;
792
- conversation?: {
793
- sessionId?: string | undefined;
794
- speaker?: string | undefined;
795
- turn?: string | undefined;
796
- assistant?: boolean | undefined;
797
- } | undefined;
798
- href?: string | undefined;
799
1054
  subject?: string | undefined;
1055
+ channel?: string | undefined;
1056
+ fields?: {
1057
+ label: string;
1058
+ after: string | number | boolean | null;
1059
+ before?: string | number | boolean | null | undefined;
1060
+ beforeDisplay?: string | undefined;
1061
+ afterDisplay?: string | undefined;
1062
+ format?: "text" | "json" | "timestamp" | undefined;
1063
+ }[] | undefined;
800
1064
  by?: string | undefined;
1065
+ requestId?: string | undefined;
801
1066
  } | undefined;
1067
+ externalId?: string | undefined;
1068
+ providerKey?: string | undefined;
1069
+ connectedAccountId?: string | undefined;
1070
+ resourceType?: string | undefined;
1071
+ resourceId?: string | undefined;
1072
+ toolExecutionId?: string | undefined;
1073
+ applicationKey?: string | undefined;
802
1074
  };
803
- kind: "block" | "fact" | "episode" | "profile_item";
804
- mode: "exact" | "extract";
805
- metadata: Record<string, unknown>;
806
1075
  content: string;
807
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1076
+ kind: "fact" | "episode" | "profile_item" | "block";
1077
+ mode: "exact" | "extract";
1078
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
808
1079
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
809
1080
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
810
1081
  topicTags: string[];
811
- tenantId?: string | undefined;
812
- sessionId?: string | undefined;
813
- language?: string | undefined;
814
- title?: string | undefined;
815
- idempotencyKey?: string | undefined;
1082
+ metadata: Record<string, unknown>;
1083
+ policyKey?: string | undefined;
816
1084
  validFrom?: string | undefined;
817
1085
  validTo?: string | undefined;
818
- externalTenantId?: string | undefined;
819
- subjects?: {
820
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
821
- externalId: string;
822
- }[] | undefined;
823
- policyKey?: string | undefined;
824
1086
  consent?: {
825
1087
  status: "granted";
826
1088
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
827
1089
  recordedAt: string;
828
1090
  reference?: string | undefined;
829
1091
  } | undefined;
1092
+ idempotencyKey?: string | undefined;
1093
+ tenantId?: string | undefined;
1094
+ externalTenantId?: string | undefined;
1095
+ sessionId?: string | undefined;
1096
+ title?: string | undefined;
1097
+ subjects?: {
1098
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1099
+ externalId: string;
1100
+ }[] | undefined;
1101
+ language?: string | undefined;
830
1102
  occurredAt?: string | undefined;
831
1103
  }, {
832
1104
  content: string;
833
1105
  source?: {
834
- kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
835
- externalId?: string | undefined;
836
- providerKey?: string | undefined;
837
- connectedAccountId?: string | undefined;
838
- resourceId?: string | undefined;
839
- resourceType?: string | undefined;
840
- toolExecutionId?: string | undefined;
841
- applicationKey?: string | undefined;
1106
+ kind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
842
1107
  evidence?: {
843
- kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
1108
+ kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
844
1109
  object?: {
845
- id: string;
846
1110
  kind: string;
847
1111
  name: string;
1112
+ id: string;
848
1113
  observed?: string | undefined;
849
1114
  } | undefined;
850
- channel?: string | undefined;
851
- fields?: {
852
- label: string;
853
- after: string;
854
- before?: string | null | undefined;
855
- }[] | undefined;
1115
+ contract?: "stacklink.memory.evidence.v1" | undefined;
1116
+ conversation?: {
1117
+ assistant?: boolean | undefined;
1118
+ sessionId?: string | undefined;
1119
+ turn?: string | undefined;
1120
+ speaker?: string | undefined;
1121
+ } | undefined;
856
1122
  file?: {
857
1123
  title: string;
858
1124
  section?: string | undefined;
859
1125
  edited?: string | undefined;
860
1126
  } | undefined;
1127
+ href?: string | undefined;
1128
+ availability?: "unknown" | "available" | "deleted" | undefined;
861
1129
  from?: {
862
1130
  name: string;
863
1131
  address?: string | undefined;
864
1132
  } | undefined;
865
- requestId?: string | undefined;
866
- contract?: "stacklink.memory.evidence.v1" | undefined;
867
- conversation?: {
868
- sessionId?: string | undefined;
869
- speaker?: string | undefined;
870
- turn?: string | undefined;
871
- assistant?: boolean | undefined;
872
- } | undefined;
873
- href?: string | undefined;
874
- availability?: "unknown" | "available" | "deleted" | undefined;
875
1133
  subject?: string | undefined;
1134
+ channel?: string | undefined;
1135
+ fields?: {
1136
+ label: string;
1137
+ after: string | number | boolean | null;
1138
+ before?: string | number | boolean | null | undefined;
1139
+ beforeDisplay?: string | undefined;
1140
+ afterDisplay?: string | undefined;
1141
+ format?: "text" | "json" | "timestamp" | undefined;
1142
+ }[] | undefined;
876
1143
  by?: string | undefined;
1144
+ requestId?: string | undefined;
877
1145
  } | undefined;
1146
+ externalId?: string | undefined;
1147
+ providerKey?: string | undefined;
1148
+ connectedAccountId?: string | undefined;
1149
+ resourceType?: string | undefined;
1150
+ resourceId?: string | undefined;
1151
+ toolExecutionId?: string | undefined;
1152
+ applicationKey?: string | undefined;
878
1153
  } | undefined;
879
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
880
- tenantId?: string | undefined;
881
- sessionId?: string | undefined;
882
- language?: string | undefined;
883
- mode?: "exact" | "extract" | undefined;
884
- title?: string | undefined;
885
- metadata?: Record<string, unknown> | undefined;
886
- idempotencyKey?: string | undefined;
1154
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1155
+ policyKey?: string | undefined;
887
1156
  validFrom?: string | undefined;
888
1157
  validTo?: string | undefined;
1158
+ consent?: {
1159
+ status: "granted";
1160
+ basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1161
+ recordedAt: string;
1162
+ reference?: string | undefined;
1163
+ } | undefined;
1164
+ idempotencyKey?: string | undefined;
1165
+ mode?: "exact" | "extract" | undefined;
1166
+ tenantId?: string | undefined;
889
1167
  externalTenantId?: string | undefined;
1168
+ sessionId?: string | undefined;
1169
+ title?: string | undefined;
890
1170
  subjects?: {
891
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1171
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
892
1172
  externalId: string;
893
1173
  }[] | undefined;
894
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1174
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
895
1175
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
896
1176
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
897
1177
  topicTags?: string[] | undefined;
898
- policyKey?: string | undefined;
899
- consent?: {
900
- status: "granted";
901
- basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
902
- recordedAt: string;
903
- reference?: string | undefined;
904
- } | undefined;
1178
+ language?: string | undefined;
1179
+ metadata?: Record<string, unknown> | undefined;
905
1180
  occurredAt?: string | undefined;
906
1181
  }>;
907
1182
  export type MemoryIngestInput = z.input<typeof memoryIngestInputSchema>;
@@ -917,10 +1192,10 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
917
1192
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
918
1193
  externalId: z.ZodString;
919
1194
  }, "strict", z.ZodTypeAny, {
920
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1195
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
921
1196
  externalId: string;
922
1197
  }, {
923
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1198
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
924
1199
  externalId: string;
925
1200
  }>, "many">>;
926
1201
  mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
@@ -932,13 +1207,13 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
932
1207
  dataBase64: z.ZodString;
933
1208
  }, "strict", z.ZodTypeAny, {
934
1209
  type: "file";
935
- mediaType: string;
936
1210
  filename: string;
1211
+ mediaType: string;
937
1212
  dataBase64: string;
938
1213
  }, {
939
1214
  type: "file";
940
- mediaType: string;
941
1215
  filename: string;
1216
+ mediaType: string;
942
1217
  dataBase64: string;
943
1218
  }>, z.ZodObject<{
944
1219
  type: z.ZodLiteral<"url">;
@@ -976,152 +1251,152 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
976
1251
  }>>;
977
1252
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
978
1253
  }, "strip", z.ZodTypeAny, {
979
- kind: "block" | "fact" | "episode" | "profile_item";
1254
+ kind: "fact" | "episode" | "profile_item" | "block";
1255
+ mode: "exact" | "extract";
1256
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1257
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1258
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1259
+ topicTags: string[];
1260
+ metadata: Record<string, unknown>;
980
1261
  input: {
981
1262
  type: "file";
982
- mediaType: string;
983
1263
  filename: string;
1264
+ mediaType: string;
984
1265
  dataBase64: string;
985
1266
  } | {
986
1267
  type: "url";
987
1268
  url: string;
988
1269
  };
989
- mode: "exact" | "extract";
990
- metadata: Record<string, unknown>;
991
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
992
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
993
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
994
- topicTags: string[];
995
- tenantId?: string | undefined;
996
- sessionId?: string | undefined;
997
- language?: string | undefined;
998
- title?: string | undefined;
999
- idempotencyKey?: string | undefined;
1270
+ policyKey?: string | undefined;
1000
1271
  validFrom?: string | undefined;
1001
1272
  validTo?: string | undefined;
1002
- externalTenantId?: string | undefined;
1003
- subjects?: {
1004
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1005
- externalId: string;
1006
- }[] | undefined;
1007
- policyKey?: string | undefined;
1008
1273
  consent?: {
1009
1274
  status: "granted";
1010
1275
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1011
1276
  recordedAt: string;
1012
1277
  reference?: string | undefined;
1013
1278
  } | undefined;
1279
+ idempotencyKey?: string | undefined;
1280
+ tenantId?: string | undefined;
1281
+ externalTenantId?: string | undefined;
1282
+ sessionId?: string | undefined;
1283
+ title?: string | undefined;
1284
+ subjects?: {
1285
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1286
+ externalId: string;
1287
+ }[] | undefined;
1288
+ language?: string | undefined;
1014
1289
  occurredAt?: string | undefined;
1015
1290
  }, {
1016
1291
  input: {
1017
1292
  type: "file";
1018
- mediaType: string;
1019
1293
  filename: string;
1294
+ mediaType: string;
1020
1295
  dataBase64: string;
1021
1296
  } | {
1022
1297
  type: "url";
1023
1298
  url: string;
1024
1299
  };
1025
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1026
- tenantId?: string | undefined;
1027
- sessionId?: string | undefined;
1028
- language?: string | undefined;
1029
- mode?: "exact" | "extract" | undefined;
1030
- title?: string | undefined;
1031
- metadata?: Record<string, unknown> | undefined;
1032
- idempotencyKey?: string | undefined;
1300
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1301
+ policyKey?: string | undefined;
1033
1302
  validFrom?: string | undefined;
1034
1303
  validTo?: string | undefined;
1304
+ consent?: {
1305
+ status: "granted";
1306
+ basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1307
+ recordedAt: string;
1308
+ reference?: string | undefined;
1309
+ } | undefined;
1310
+ idempotencyKey?: string | undefined;
1311
+ mode?: "exact" | "extract" | undefined;
1312
+ tenantId?: string | undefined;
1035
1313
  externalTenantId?: string | undefined;
1314
+ sessionId?: string | undefined;
1315
+ title?: string | undefined;
1036
1316
  subjects?: {
1037
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1317
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1038
1318
  externalId: string;
1039
1319
  }[] | undefined;
1040
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1320
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1041
1321
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1042
1322
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1043
1323
  topicTags?: string[] | undefined;
1044
- policyKey?: string | undefined;
1045
- consent?: {
1046
- status: "granted";
1047
- basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1048
- recordedAt: string;
1049
- reference?: string | undefined;
1050
- } | undefined;
1324
+ language?: string | undefined;
1325
+ metadata?: Record<string, unknown> | undefined;
1051
1326
  occurredAt?: string | undefined;
1052
1327
  }>, {
1053
- kind: "block" | "fact" | "episode" | "profile_item";
1328
+ kind: "fact" | "episode" | "profile_item" | "block";
1329
+ mode: "exact" | "extract";
1330
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1331
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1332
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1333
+ topicTags: string[];
1334
+ metadata: Record<string, unknown>;
1054
1335
  input: {
1055
1336
  type: "file";
1056
- mediaType: string;
1057
1337
  filename: string;
1338
+ mediaType: string;
1058
1339
  dataBase64: string;
1059
1340
  } | {
1060
1341
  type: "url";
1061
1342
  url: string;
1062
1343
  };
1063
- mode: "exact" | "extract";
1064
- metadata: Record<string, unknown>;
1065
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1066
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1067
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1068
- topicTags: string[];
1069
- tenantId?: string | undefined;
1070
- sessionId?: string | undefined;
1071
- language?: string | undefined;
1072
- title?: string | undefined;
1073
- idempotencyKey?: string | undefined;
1344
+ policyKey?: string | undefined;
1074
1345
  validFrom?: string | undefined;
1075
1346
  validTo?: string | undefined;
1076
- externalTenantId?: string | undefined;
1077
- subjects?: {
1078
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1079
- externalId: string;
1080
- }[] | undefined;
1081
- policyKey?: string | undefined;
1082
1347
  consent?: {
1083
1348
  status: "granted";
1084
1349
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1085
1350
  recordedAt: string;
1086
1351
  reference?: string | undefined;
1087
1352
  } | undefined;
1353
+ idempotencyKey?: string | undefined;
1354
+ tenantId?: string | undefined;
1355
+ externalTenantId?: string | undefined;
1356
+ sessionId?: string | undefined;
1357
+ title?: string | undefined;
1358
+ subjects?: {
1359
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1360
+ externalId: string;
1361
+ }[] | undefined;
1362
+ language?: string | undefined;
1088
1363
  occurredAt?: string | undefined;
1089
1364
  }, {
1090
1365
  input: {
1091
1366
  type: "file";
1092
- mediaType: string;
1093
1367
  filename: string;
1368
+ mediaType: string;
1094
1369
  dataBase64: string;
1095
1370
  } | {
1096
1371
  type: "url";
1097
1372
  url: string;
1098
1373
  };
1099
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1100
- tenantId?: string | undefined;
1101
- sessionId?: string | undefined;
1102
- language?: string | undefined;
1103
- mode?: "exact" | "extract" | undefined;
1104
- title?: string | undefined;
1105
- metadata?: Record<string, unknown> | undefined;
1106
- idempotencyKey?: string | undefined;
1374
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1375
+ policyKey?: string | undefined;
1107
1376
  validFrom?: string | undefined;
1108
1377
  validTo?: string | undefined;
1378
+ consent?: {
1379
+ status: "granted";
1380
+ basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1381
+ recordedAt: string;
1382
+ reference?: string | undefined;
1383
+ } | undefined;
1384
+ idempotencyKey?: string | undefined;
1385
+ mode?: "exact" | "extract" | undefined;
1386
+ tenantId?: string | undefined;
1109
1387
  externalTenantId?: string | undefined;
1388
+ sessionId?: string | undefined;
1389
+ title?: string | undefined;
1110
1390
  subjects?: {
1111
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1391
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1112
1392
  externalId: string;
1113
1393
  }[] | undefined;
1114
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1394
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1115
1395
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1116
1396
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1117
1397
  topicTags?: string[] | undefined;
1118
- policyKey?: string | undefined;
1119
- consent?: {
1120
- status: "granted";
1121
- basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1122
- recordedAt: string;
1123
- reference?: string | undefined;
1124
- } | undefined;
1398
+ language?: string | undefined;
1399
+ metadata?: Record<string, unknown> | undefined;
1125
1400
  occurredAt?: string | undefined;
1126
1401
  }>;
1127
1402
  export type MemoryRichIngestInput = z.input<typeof memoryRichIngestInputSchema>;
@@ -1139,10 +1414,10 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1139
1414
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1140
1415
  externalId: z.ZodString;
1141
1416
  }, "strict", z.ZodTypeAny, {
1142
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1417
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1143
1418
  externalId: string;
1144
1419
  }, {
1145
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1420
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1146
1421
  externalId: string;
1147
1422
  }>, "many">>;
1148
1423
  query: z.ZodString;
@@ -1161,21 +1436,21 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1161
1436
  limit: z.ZodDefault<z.ZodNumber>;
1162
1437
  semanticCandidateLimit: z.ZodOptional<z.ZodNumber>;
1163
1438
  }, "strip", z.ZodTypeAny, {
1164
- limit: number;
1165
1439
  query: string;
1166
1440
  states: ("current" | "conflicted")[];
1167
1441
  includeGraph: boolean;
1168
1442
  includeSourceRefs: boolean;
1169
- tenantId?: string | undefined;
1170
- sessionId?: string | undefined;
1171
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1443
+ limit: number;
1172
1444
  recordedAt?: string | undefined;
1445
+ tenantId?: string | undefined;
1173
1446
  externalTenantId?: string | undefined;
1447
+ sessionId?: string | undefined;
1174
1448
  subjects?: {
1175
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1449
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1176
1450
  externalId: string;
1177
1451
  }[] | undefined;
1178
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1452
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1453
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1179
1454
  providerKeys?: string[] | undefined;
1180
1455
  sourceFamilyKeys?: string[] | undefined;
1181
1456
  connectedAccountIds?: string[] | undefined;
@@ -1185,17 +1460,16 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1185
1460
  semanticCandidateLimit?: number | undefined;
1186
1461
  }, {
1187
1462
  query: string;
1188
- tenantId?: string | undefined;
1189
- sessionId?: string | undefined;
1190
- limit?: number | undefined;
1191
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1192
1463
  recordedAt?: string | undefined;
1464
+ tenantId?: string | undefined;
1193
1465
  externalTenantId?: string | undefined;
1466
+ sessionId?: string | undefined;
1194
1467
  subjects?: {
1195
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1468
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1196
1469
  externalId: string;
1197
1470
  }[] | undefined;
1198
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1471
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1472
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1199
1473
  providerKeys?: string[] | undefined;
1200
1474
  sourceFamilyKeys?: string[] | undefined;
1201
1475
  connectedAccountIds?: string[] | undefined;
@@ -1205,23 +1479,24 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1205
1479
  validAt?: string | undefined;
1206
1480
  includeGraph?: boolean | undefined;
1207
1481
  includeSourceRefs?: boolean | undefined;
1482
+ limit?: number | undefined;
1208
1483
  semanticCandidateLimit?: number | undefined;
1209
1484
  }>, {
1210
- limit: number;
1211
1485
  query: string;
1212
1486
  states: ("current" | "conflicted")[];
1213
1487
  includeGraph: boolean;
1214
1488
  includeSourceRefs: boolean;
1215
- tenantId?: string | undefined;
1216
- sessionId?: string | undefined;
1217
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1489
+ limit: number;
1218
1490
  recordedAt?: string | undefined;
1491
+ tenantId?: string | undefined;
1219
1492
  externalTenantId?: string | undefined;
1493
+ sessionId?: string | undefined;
1220
1494
  subjects?: {
1221
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1495
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1222
1496
  externalId: string;
1223
1497
  }[] | undefined;
1224
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1498
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1499
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1225
1500
  providerKeys?: string[] | undefined;
1226
1501
  sourceFamilyKeys?: string[] | undefined;
1227
1502
  connectedAccountIds?: string[] | undefined;
@@ -1231,17 +1506,16 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1231
1506
  semanticCandidateLimit?: number | undefined;
1232
1507
  }, {
1233
1508
  query: string;
1234
- tenantId?: string | undefined;
1235
- sessionId?: string | undefined;
1236
- limit?: number | undefined;
1237
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1238
1509
  recordedAt?: string | undefined;
1510
+ tenantId?: string | undefined;
1239
1511
  externalTenantId?: string | undefined;
1512
+ sessionId?: string | undefined;
1240
1513
  subjects?: {
1241
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1514
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1242
1515
  externalId: string;
1243
1516
  }[] | undefined;
1244
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1517
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1518
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1245
1519
  providerKeys?: string[] | undefined;
1246
1520
  sourceFamilyKeys?: string[] | undefined;
1247
1521
  connectedAccountIds?: string[] | undefined;
@@ -1251,6 +1525,7 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1251
1525
  validAt?: string | undefined;
1252
1526
  includeGraph?: boolean | undefined;
1253
1527
  includeSourceRefs?: boolean | undefined;
1528
+ limit?: number | undefined;
1254
1529
  semanticCandidateLimit?: number | undefined;
1255
1530
  }>;
1256
1531
  export type MemorySearchInput = z.input<typeof memorySearchInputSchema>;
@@ -1263,10 +1538,10 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1263
1538
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1264
1539
  externalId: z.ZodString;
1265
1540
  }, "strict", z.ZodTypeAny, {
1266
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1541
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1267
1542
  externalId: string;
1268
1543
  }, {
1269
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1544
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1270
1545
  externalId: string;
1271
1546
  }>, "many">>;
1272
1547
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
@@ -1291,23 +1566,23 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1291
1566
  includeRecentEpisodes: z.ZodDefault<z.ZodBoolean>;
1292
1567
  promptFormat: z.ZodDefault<z.ZodEnum<["text", "markdown"]>>;
1293
1568
  }, "strip", z.ZodTypeAny, {
1294
- limit: number;
1295
1569
  query: string;
1296
1570
  states: ("current" | "conflicted")[];
1297
1571
  includeGraph: boolean;
1298
1572
  includeSourceRefs: boolean;
1573
+ limit: number;
1299
1574
  includeRecentEpisodes: boolean;
1300
1575
  promptFormat: "text" | "markdown";
1301
- tenantId?: string | undefined;
1302
- sessionId?: string | undefined;
1303
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1304
1576
  recordedAt?: string | undefined;
1577
+ tenantId?: string | undefined;
1305
1578
  externalTenantId?: string | undefined;
1579
+ sessionId?: string | undefined;
1306
1580
  subjects?: {
1307
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1581
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1308
1582
  externalId: string;
1309
1583
  }[] | undefined;
1310
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1584
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1585
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1311
1586
  providerKeys?: string[] | undefined;
1312
1587
  sourceFamilyKeys?: string[] | undefined;
1313
1588
  connectedAccountIds?: string[] | undefined;
@@ -1320,17 +1595,16 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1320
1595
  includeBlocks?: boolean | undefined;
1321
1596
  }, {
1322
1597
  query: string;
1323
- tenantId?: string | undefined;
1324
- sessionId?: string | undefined;
1325
- limit?: number | undefined;
1326
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1327
1598
  recordedAt?: string | undefined;
1599
+ tenantId?: string | undefined;
1328
1600
  externalTenantId?: string | undefined;
1601
+ sessionId?: string | undefined;
1329
1602
  subjects?: {
1330
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1603
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1331
1604
  externalId: string;
1332
1605
  }[] | undefined;
1333
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1606
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1607
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1334
1608
  providerKeys?: string[] | undefined;
1335
1609
  sourceFamilyKeys?: string[] | undefined;
1336
1610
  connectedAccountIds?: string[] | undefined;
@@ -1340,6 +1614,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1340
1614
  validAt?: string | undefined;
1341
1615
  includeGraph?: boolean | undefined;
1342
1616
  includeSourceRefs?: boolean | undefined;
1617
+ limit?: number | undefined;
1343
1618
  semanticCandidateLimit?: number | undefined;
1344
1619
  tokenBudget?: number | undefined;
1345
1620
  includeProfile?: boolean | undefined;
@@ -1347,23 +1622,23 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1347
1622
  includeRecentEpisodes?: boolean | undefined;
1348
1623
  promptFormat?: "text" | "markdown" | undefined;
1349
1624
  }>, {
1350
- limit: number;
1351
1625
  query: string;
1352
1626
  states: ("current" | "conflicted")[];
1353
1627
  includeGraph: boolean;
1354
1628
  includeSourceRefs: boolean;
1629
+ limit: number;
1355
1630
  includeRecentEpisodes: boolean;
1356
1631
  promptFormat: "text" | "markdown";
1357
- tenantId?: string | undefined;
1358
- sessionId?: string | undefined;
1359
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1360
1632
  recordedAt?: string | undefined;
1633
+ tenantId?: string | undefined;
1361
1634
  externalTenantId?: string | undefined;
1635
+ sessionId?: string | undefined;
1362
1636
  subjects?: {
1363
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1637
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1364
1638
  externalId: string;
1365
1639
  }[] | undefined;
1366
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1640
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1641
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1367
1642
  providerKeys?: string[] | undefined;
1368
1643
  sourceFamilyKeys?: string[] | undefined;
1369
1644
  connectedAccountIds?: string[] | undefined;
@@ -1376,17 +1651,16 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1376
1651
  includeBlocks?: boolean | undefined;
1377
1652
  }, {
1378
1653
  query: string;
1379
- tenantId?: string | undefined;
1380
- sessionId?: string | undefined;
1381
- limit?: number | undefined;
1382
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1383
1654
  recordedAt?: string | undefined;
1655
+ tenantId?: string | undefined;
1384
1656
  externalTenantId?: string | undefined;
1657
+ sessionId?: string | undefined;
1385
1658
  subjects?: {
1386
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1659
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1387
1660
  externalId: string;
1388
1661
  }[] | undefined;
1389
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1662
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1663
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1390
1664
  providerKeys?: string[] | undefined;
1391
1665
  sourceFamilyKeys?: string[] | undefined;
1392
1666
  connectedAccountIds?: string[] | undefined;
@@ -1396,6 +1670,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1396
1670
  validAt?: string | undefined;
1397
1671
  includeGraph?: boolean | undefined;
1398
1672
  includeSourceRefs?: boolean | undefined;
1673
+ limit?: number | undefined;
1399
1674
  semanticCandidateLimit?: number | undefined;
1400
1675
  tokenBudget?: number | undefined;
1401
1676
  includeProfile?: boolean | undefined;
@@ -1418,48 +1693,48 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
1418
1693
  limit: z.ZodDefault<z.ZodNumber>;
1419
1694
  }, "strip", z.ZodTypeAny, {
1420
1695
  limit: number;
1421
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1696
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1422
1697
  tenantId?: string | undefined;
1698
+ externalTenantId?: string | undefined;
1423
1699
  sessionId?: string | undefined;
1424
- cursor?: string | undefined;
1425
1700
  state?: "current" | "conflicted" | undefined;
1426
- externalTenantId?: string | undefined;
1427
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1701
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1428
1702
  externalSubjectId?: string | undefined;
1429
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1703
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1704
+ cursor?: string | undefined;
1430
1705
  }, {
1431
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1706
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1432
1707
  tenantId?: string | undefined;
1708
+ externalTenantId?: string | undefined;
1433
1709
  sessionId?: string | undefined;
1434
- cursor?: string | undefined;
1435
1710
  limit?: number | undefined;
1436
1711
  state?: "current" | "conflicted" | undefined;
1437
- externalTenantId?: string | undefined;
1438
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1712
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1439
1713
  externalSubjectId?: string | undefined;
1440
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1714
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1715
+ cursor?: string | undefined;
1441
1716
  }>, {
1442
1717
  limit: number;
1443
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1718
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1444
1719
  tenantId?: string | undefined;
1720
+ externalTenantId?: string | undefined;
1445
1721
  sessionId?: string | undefined;
1446
- cursor?: string | undefined;
1447
1722
  state?: "current" | "conflicted" | undefined;
1448
- externalTenantId?: string | undefined;
1449
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1723
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1450
1724
  externalSubjectId?: string | undefined;
1451
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1725
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1726
+ cursor?: string | undefined;
1452
1727
  }, {
1453
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1728
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1454
1729
  tenantId?: string | undefined;
1730
+ externalTenantId?: string | undefined;
1455
1731
  sessionId?: string | undefined;
1456
- cursor?: string | undefined;
1457
1732
  limit?: number | undefined;
1458
1733
  state?: "current" | "conflicted" | undefined;
1459
- externalTenantId?: string | undefined;
1460
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1734
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1461
1735
  externalSubjectId?: string | undefined;
1462
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1736
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1737
+ cursor?: string | undefined;
1463
1738
  }>;
1464
1739
  export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
1465
1740
  readonly tenantId: z.ZodOptional<z.ZodString>;
@@ -1473,44 +1748,44 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
1473
1748
  readonly limit: z.ZodDefault<z.ZodNumber>;
1474
1749
  }, "strip", z.ZodTypeAny, {
1475
1750
  limit: number;
1476
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1751
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1477
1752
  tenantId?: string | undefined;
1478
- sessionId?: string | undefined;
1479
- cursor?: string | undefined;
1480
1753
  externalTenantId?: string | undefined;
1481
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1754
+ sessionId?: string | undefined;
1755
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1482
1756
  externalSubjectId?: string | undefined;
1483
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1757
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1758
+ cursor?: string | undefined;
1484
1759
  }, {
1485
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1760
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1486
1761
  tenantId?: string | undefined;
1762
+ externalTenantId?: string | undefined;
1487
1763
  sessionId?: string | undefined;
1488
- cursor?: string | undefined;
1489
1764
  limit?: number | undefined;
1490
- externalTenantId?: string | undefined;
1491
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1765
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1492
1766
  externalSubjectId?: string | undefined;
1493
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1767
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1768
+ cursor?: string | undefined;
1494
1769
  }>, {
1495
1770
  limit: number;
1496
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1771
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1497
1772
  tenantId?: string | undefined;
1498
- sessionId?: string | undefined;
1499
- cursor?: string | undefined;
1500
1773
  externalTenantId?: string | undefined;
1501
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1774
+ sessionId?: string | undefined;
1775
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1502
1776
  externalSubjectId?: string | undefined;
1503
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1777
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1778
+ cursor?: string | undefined;
1504
1779
  }, {
1505
- kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1780
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1506
1781
  tenantId?: string | undefined;
1782
+ externalTenantId?: string | undefined;
1507
1783
  sessionId?: string | undefined;
1508
- cursor?: string | undefined;
1509
1784
  limit?: number | undefined;
1510
- externalTenantId?: string | undefined;
1511
- subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1785
+ subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
1512
1786
  externalSubjectId?: string | undefined;
1513
- sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1787
+ sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
1788
+ cursor?: string | undefined;
1514
1789
  }>;
1515
1790
  export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
1516
1791
  content: z.ZodOptional<z.ZodString>;
@@ -1526,57 +1801,57 @@ export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
1526
1801
  reason: z.ZodOptional<z.ZodString>;
1527
1802
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1528
1803
  }, "strip", z.ZodTypeAny, {
1529
- reason?: string | undefined;
1530
- language?: string | null | undefined;
1531
- title?: string | null | undefined;
1532
- metadata?: Record<string, unknown> | undefined;
1533
1804
  content?: string | undefined;
1534
- state?: "current" | "conflicted" | undefined;
1535
1805
  validFrom?: string | null | undefined;
1536
1806
  validTo?: string | null | undefined;
1537
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1807
+ title?: string | null | undefined;
1808
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1538
1809
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1539
1810
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1540
1811
  topicTags?: string[] | undefined;
1541
- }, {
1542
- reason?: string | undefined;
1543
1812
  language?: string | null | undefined;
1544
- title?: string | null | undefined;
1545
1813
  metadata?: Record<string, unknown> | undefined;
1546
- content?: string | undefined;
1547
1814
  state?: "current" | "conflicted" | undefined;
1815
+ reason?: string | undefined;
1816
+ }, {
1817
+ content?: string | undefined;
1548
1818
  validFrom?: string | null | undefined;
1549
1819
  validTo?: string | null | undefined;
1550
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1820
+ title?: string | null | undefined;
1821
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1551
1822
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1552
1823
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1553
1824
  topicTags?: string[] | undefined;
1554
- }>, {
1555
- reason?: string | undefined;
1556
1825
  language?: string | null | undefined;
1557
- title?: string | null | undefined;
1558
1826
  metadata?: Record<string, unknown> | undefined;
1559
- content?: string | undefined;
1560
1827
  state?: "current" | "conflicted" | undefined;
1828
+ reason?: string | undefined;
1829
+ }>, {
1830
+ content?: string | undefined;
1561
1831
  validFrom?: string | null | undefined;
1562
1832
  validTo?: string | null | undefined;
1563
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1833
+ title?: string | null | undefined;
1834
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1564
1835
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1565
1836
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1566
1837
  topicTags?: string[] | undefined;
1567
- }, {
1568
- reason?: string | undefined;
1569
1838
  language?: string | null | undefined;
1570
- title?: string | null | undefined;
1571
1839
  metadata?: Record<string, unknown> | undefined;
1572
- content?: string | undefined;
1573
1840
  state?: "current" | "conflicted" | undefined;
1841
+ reason?: string | undefined;
1842
+ }, {
1843
+ content?: string | undefined;
1574
1844
  validFrom?: string | null | undefined;
1575
1845
  validTo?: string | null | undefined;
1576
- memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1846
+ title?: string | null | undefined;
1847
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1577
1848
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1578
1849
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1579
1850
  topicTags?: string[] | undefined;
1851
+ language?: string | null | undefined;
1852
+ metadata?: Record<string, unknown> | undefined;
1853
+ state?: "current" | "conflicted" | undefined;
1854
+ reason?: string | undefined;
1580
1855
  }>;
1581
1856
  export type MemoryRecordUpdateInput = z.infer<typeof memoryRecordUpdateInputSchema>;
1582
1857
  export declare const memoryQualityReviewDispositions: readonly ["keep", "correct", "convert_to_episode", "restrict"];
@@ -1644,14 +1919,14 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1644
1919
  }>;
1645
1920
  reason: z.ZodString;
1646
1921
  }, "strict", z.ZodTypeAny, {
1647
- reason: string;
1648
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1649
- memoryType: "decision" | "preference" | "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";
1922
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
1653
1923
  salience: "medium" | "low" | "high";
1654
1924
  evidenceConfidence: "medium" | "low" | "high";
1925
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1926
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1927
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1928
+ reason: string;
1929
+ disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
1655
1930
  actorEntity: {
1656
1931
  canonicalKey: string;
1657
1932
  entityType: string;
@@ -1664,20 +1939,20 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1664
1939
  attributes: Record<string, unknown>;
1665
1940
  displayName?: string | null | undefined;
1666
1941
  };
1667
- language?: string | null | undefined;
1668
- title?: string | null | undefined;
1669
1942
  content?: string | undefined;
1670
1943
  validFrom?: string | null | undefined;
1671
1944
  validTo?: string | null | undefined;
1945
+ title?: string | null | undefined;
1672
1946
  topicTags?: string[] | undefined;
1947
+ language?: string | null | undefined;
1673
1948
  }, {
1674
- reason: string;
1675
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1676
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1677
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1678
- disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
1949
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
1679
1950
  salience: "medium" | "low" | "high";
1680
1951
  evidenceConfidence: "medium" | "low" | "high";
1952
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1953
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1954
+ reason: string;
1955
+ disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
1681
1956
  actorEntity: {
1682
1957
  canonicalKey: string;
1683
1958
  entityType: string;
@@ -1690,22 +1965,22 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1690
1965
  displayName?: string | null | undefined;
1691
1966
  attributes?: Record<string, unknown> | undefined;
1692
1967
  };
1693
- language?: string | null | undefined;
1694
- title?: string | null | undefined;
1695
1968
  content?: string | undefined;
1696
1969
  validFrom?: string | null | undefined;
1697
1970
  validTo?: string | null | undefined;
1971
+ title?: string | null | undefined;
1698
1972
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1699
1973
  topicTags?: string[] | undefined;
1974
+ language?: string | null | undefined;
1700
1975
  }>, {
1701
- reason: string;
1702
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1703
- memoryType: "decision" | "preference" | "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";
1976
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
1707
1977
  salience: "medium" | "low" | "high";
1708
1978
  evidenceConfidence: "medium" | "low" | "high";
1979
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1980
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1981
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1982
+ reason: string;
1983
+ disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
1709
1984
  actorEntity: {
1710
1985
  canonicalKey: string;
1711
1986
  entityType: string;
@@ -1718,20 +1993,20 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1718
1993
  attributes: Record<string, unknown>;
1719
1994
  displayName?: string | null | undefined;
1720
1995
  };
1721
- language?: string | null | undefined;
1722
- title?: string | null | undefined;
1723
1996
  content?: string | undefined;
1724
1997
  validFrom?: string | null | undefined;
1725
1998
  validTo?: string | null | undefined;
1999
+ title?: string | null | undefined;
1726
2000
  topicTags?: string[] | undefined;
2001
+ language?: string | null | undefined;
1727
2002
  }, {
1728
- reason: string;
1729
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1730
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1731
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1732
- disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
2003
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
1733
2004
  salience: "medium" | "low" | "high";
1734
2005
  evidenceConfidence: "medium" | "low" | "high";
2006
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2007
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2008
+ reason: string;
2009
+ disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
1735
2010
  actorEntity: {
1736
2011
  canonicalKey: string;
1737
2012
  entityType: string;
@@ -1744,13 +2019,13 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1744
2019
  displayName?: string | null | undefined;
1745
2020
  attributes?: Record<string, unknown> | undefined;
1746
2021
  };
1747
- language?: string | null | undefined;
1748
- title?: string | null | undefined;
1749
2022
  content?: string | undefined;
1750
2023
  validFrom?: string | null | undefined;
1751
2024
  validTo?: string | null | undefined;
2025
+ title?: string | null | undefined;
1752
2026
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1753
2027
  topicTags?: string[] | undefined;
2028
+ language?: string | null | undefined;
1754
2029
  }>;
1755
2030
  export type MemoryRecordQualityReviewInput = z.infer<typeof memoryRecordQualityReviewInputSchema>;
1756
2031
  export declare const memoryForgetInputSchema: z.ZodObject<{
@@ -1768,10 +2043,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1768
2043
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1769
2044
  externalId: z.ZodString;
1770
2045
  }, "strict", z.ZodTypeAny, {
1771
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2046
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1772
2047
  externalId: string;
1773
2048
  }, {
1774
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2049
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1775
2050
  externalId: string;
1776
2051
  }>, "many">>;
1777
2052
  title: z.ZodString;
@@ -1781,60 +2056,60 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1781
2056
  required: z.ZodDefault<z.ZodBoolean>;
1782
2057
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1783
2058
  }, "strip", z.ZodTypeAny, {
2059
+ content: string;
1784
2060
  required: boolean;
1785
2061
  title: string;
1786
2062
  metadata: Record<string, unknown>;
1787
- content: string;
1788
2063
  access: "read_only" | "editable";
1789
2064
  priority: number;
1790
2065
  tenantId?: string | undefined;
1791
- sessionId?: string | undefined;
1792
2066
  externalTenantId?: string | undefined;
2067
+ sessionId?: string | undefined;
1793
2068
  subjects?: {
1794
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2069
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1795
2070
  externalId: string;
1796
2071
  }[] | undefined;
1797
2072
  }, {
1798
- title: string;
1799
2073
  content: string;
1800
- tenantId?: string | undefined;
2074
+ title: string;
1801
2075
  required?: boolean | undefined;
1802
- sessionId?: string | undefined;
1803
- metadata?: Record<string, unknown> | undefined;
1804
- access?: "read_only" | "editable" | undefined;
2076
+ tenantId?: string | undefined;
1805
2077
  externalTenantId?: string | undefined;
2078
+ sessionId?: string | undefined;
1806
2079
  subjects?: {
1807
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2080
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1808
2081
  externalId: string;
1809
2082
  }[] | undefined;
2083
+ metadata?: Record<string, unknown> | undefined;
2084
+ access?: "read_only" | "editable" | undefined;
1810
2085
  priority?: number | undefined;
1811
2086
  }>, {
2087
+ content: string;
1812
2088
  required: boolean;
1813
2089
  title: string;
1814
2090
  metadata: Record<string, unknown>;
1815
- content: string;
1816
2091
  access: "read_only" | "editable";
1817
2092
  priority: number;
1818
2093
  tenantId?: string | undefined;
1819
- sessionId?: string | undefined;
1820
2094
  externalTenantId?: string | undefined;
2095
+ sessionId?: string | undefined;
1821
2096
  subjects?: {
1822
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2097
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1823
2098
  externalId: string;
1824
2099
  }[] | undefined;
1825
2100
  }, {
1826
- title: string;
1827
2101
  content: string;
1828
- tenantId?: string | undefined;
2102
+ title: string;
1829
2103
  required?: boolean | undefined;
1830
- sessionId?: string | undefined;
1831
- metadata?: Record<string, unknown> | undefined;
1832
- access?: "read_only" | "editable" | undefined;
2104
+ tenantId?: string | undefined;
1833
2105
  externalTenantId?: string | undefined;
2106
+ sessionId?: string | undefined;
1834
2107
  subjects?: {
1835
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2108
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1836
2109
  externalId: string;
1837
2110
  }[] | undefined;
2111
+ metadata?: Record<string, unknown> | undefined;
2112
+ access?: "read_only" | "editable" | undefined;
1838
2113
  priority?: number | undefined;
1839
2114
  }>;
1840
2115
  export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
@@ -1863,10 +2138,10 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1863
2138
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1864
2139
  externalId: z.ZodString;
1865
2140
  }, "strict", z.ZodTypeAny, {
1866
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2141
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1867
2142
  externalId: string;
1868
2143
  }, {
1869
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2144
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1870
2145
  externalId: string;
1871
2146
  }>, "many">;
1872
2147
  policyKey: z.ZodDefault<z.ZodString>;
@@ -1895,20 +2170,20 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1895
2170
  kind: "artifact";
1896
2171
  artifactIds: string[];
1897
2172
  };
1898
- metadata: Record<string, unknown>;
1899
2173
  policyKey: string;
2174
+ metadata: Record<string, unknown>;
1900
2175
  targets: {
1901
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2176
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1902
2177
  externalId: string;
1903
2178
  }[];
1904
- tenantId?: string | undefined;
1905
- externalTenantId?: string | undefined;
1906
2179
  consent?: {
1907
2180
  status: "granted";
1908
2181
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1909
2182
  recordedAt: string;
1910
2183
  reference?: string | undefined;
1911
2184
  } | undefined;
2185
+ tenantId?: string | undefined;
2186
+ externalTenantId?: string | undefined;
1912
2187
  }, {
1913
2188
  source: {
1914
2189
  kind: "conversation";
@@ -1918,12 +2193,9 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1918
2193
  artifactIds?: string[] | undefined;
1919
2194
  };
1920
2195
  targets: {
1921
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2196
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1922
2197
  externalId: string;
1923
2198
  }[];
1924
- tenantId?: string | undefined;
1925
- metadata?: Record<string, unknown> | undefined;
1926
- externalTenantId?: string | undefined;
1927
2199
  policyKey?: string | undefined;
1928
2200
  consent?: {
1929
2201
  status: "granted";
@@ -1931,6 +2203,9 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1931
2203
  recordedAt: string;
1932
2204
  reference?: string | undefined;
1933
2205
  } | undefined;
2206
+ tenantId?: string | undefined;
2207
+ externalTenantId?: string | undefined;
2208
+ metadata?: Record<string, unknown> | undefined;
1934
2209
  }>, {
1935
2210
  source: {
1936
2211
  kind: "conversation";
@@ -1939,20 +2214,20 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1939
2214
  kind: "artifact";
1940
2215
  artifactIds: string[];
1941
2216
  };
1942
- metadata: Record<string, unknown>;
1943
2217
  policyKey: string;
2218
+ metadata: Record<string, unknown>;
1944
2219
  targets: {
1945
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2220
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1946
2221
  externalId: string;
1947
2222
  }[];
1948
- tenantId?: string | undefined;
1949
- externalTenantId?: string | undefined;
1950
2223
  consent?: {
1951
2224
  status: "granted";
1952
2225
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
1953
2226
  recordedAt: string;
1954
2227
  reference?: string | undefined;
1955
2228
  } | undefined;
2229
+ tenantId?: string | undefined;
2230
+ externalTenantId?: string | undefined;
1956
2231
  }, {
1957
2232
  source: {
1958
2233
  kind: "conversation";
@@ -1962,12 +2237,9 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1962
2237
  artifactIds?: string[] | undefined;
1963
2238
  };
1964
2239
  targets: {
1965
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2240
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1966
2241
  externalId: string;
1967
2242
  }[];
1968
- tenantId?: string | undefined;
1969
- metadata?: Record<string, unknown> | undefined;
1970
- externalTenantId?: string | undefined;
1971
2243
  policyKey?: string | undefined;
1972
2244
  consent?: {
1973
2245
  status: "granted";
@@ -1975,6 +2247,9 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1975
2247
  recordedAt: string;
1976
2248
  reference?: string | undefined;
1977
2249
  } | undefined;
2250
+ tenantId?: string | undefined;
2251
+ externalTenantId?: string | undefined;
2252
+ metadata?: Record<string, unknown> | undefined;
1978
2253
  }>;
1979
2254
  export type MemorySourceBindingInput = z.input<typeof memorySourceBindingInputSchema>;
1980
2255
  export declare const memoryConnectedSourceBackfillRangeSchema: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
@@ -1991,10 +2266,10 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
1991
2266
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1992
2267
  externalId: z.ZodString;
1993
2268
  }, "strict", z.ZodTypeAny, {
1994
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2269
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1995
2270
  externalId: string;
1996
2271
  }, {
1997
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2272
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
1998
2273
  externalId: string;
1999
2274
  }>, "many">;
2000
2275
  existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
@@ -2035,23 +2310,23 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2035
2310
  }>>;
2036
2311
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2037
2312
  }, "strict", z.ZodTypeAny, {
2038
- connectedAccountId: string;
2039
- metadata: Record<string, unknown>;
2313
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2040
2314
  idempotencyKey: string;
2041
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2042
2315
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2316
+ connectedAccountId: string;
2317
+ metadata: Record<string, unknown>;
2043
2318
  resourceIds: string[];
2044
2319
  targets: {
2045
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2320
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2046
2321
  externalId: string;
2047
2322
  }[];
2048
2323
  approvedOperationalActorCanonicalKeys: string[];
2049
2324
  sourceFamilyKey: string;
2050
2325
  selectionMode: "selected_resources" | "recipe_default";
2051
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2326
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2052
2327
  maxBackfillItems: number | null;
2053
2328
  deliveryMode: "auto" | "webhook" | "polling";
2054
- authorizationPerspective: "bot" | "user" | "provider_default";
2329
+ authorizationPerspective: "user" | "bot" | "provider_default";
2055
2330
  includeAttachments: boolean;
2056
2331
  includeFileContent: boolean;
2057
2332
  includeEmailBodies: boolean;
@@ -2064,43 +2339,43 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2064
2339
  rememberInstructions: string;
2065
2340
  excludeInstructions: string;
2066
2341
  sourceRetentionDays: number | null;
2067
- tenantId?: string | undefined;
2068
- sessionId?: string | undefined;
2069
- externalTenantId?: string | undefined;
2070
2342
  consent?: {
2071
2343
  status: "granted";
2072
2344
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
2073
2345
  recordedAt: string;
2074
2346
  reference?: string | undefined;
2075
2347
  } | undefined;
2348
+ tenantId?: string | undefined;
2349
+ externalTenantId?: string | undefined;
2350
+ sessionId?: string | undefined;
2076
2351
  learnedRetentionDays?: number | null | undefined;
2077
2352
  }, {
2078
- connectedAccountId: string;
2079
2353
  idempotencyKey: string;
2354
+ connectedAccountId: string;
2080
2355
  targets: {
2081
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2356
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2082
2357
  externalId: string;
2083
2358
  }[];
2084
2359
  sourceFamilyKey: string;
2085
- tenantId?: string | undefined;
2086
- sessionId?: string | undefined;
2087
- metadata?: Record<string, unknown> | undefined;
2088
- allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2089
- externalTenantId?: string | undefined;
2090
- restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2360
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2091
2361
  consent?: {
2092
2362
  status: "granted";
2093
2363
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
2094
2364
  recordedAt: string;
2095
2365
  reference?: string | undefined;
2096
2366
  } | undefined;
2367
+ tenantId?: string | undefined;
2368
+ externalTenantId?: string | undefined;
2369
+ sessionId?: string | undefined;
2370
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2371
+ metadata?: Record<string, unknown> | undefined;
2097
2372
  resourceIds?: string[] | undefined;
2098
2373
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2099
2374
  selectionMode?: "selected_resources" | "recipe_default" | undefined;
2100
- existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2375
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2101
2376
  maxBackfillItems?: number | null | undefined;
2102
2377
  deliveryMode?: "auto" | "webhook" | "polling" | undefined;
2103
- authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2378
+ authorizationPerspective?: "user" | "bot" | "provider_default" | undefined;
2104
2379
  includeAttachments?: boolean | undefined;
2105
2380
  includeFileContent?: boolean | undefined;
2106
2381
  includeEmailBodies?: boolean | undefined;
@@ -2115,23 +2390,23 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2115
2390
  learnedRetentionDays?: number | null | undefined;
2116
2391
  sourceRetentionDays?: number | null | undefined;
2117
2392
  }>, {
2118
- connectedAccountId: string;
2119
- metadata: Record<string, unknown>;
2393
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2120
2394
  idempotencyKey: string;
2121
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2122
2395
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2396
+ connectedAccountId: string;
2397
+ metadata: Record<string, unknown>;
2123
2398
  resourceIds: string[];
2124
2399
  targets: {
2125
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2400
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2126
2401
  externalId: string;
2127
2402
  }[];
2128
2403
  approvedOperationalActorCanonicalKeys: string[];
2129
2404
  sourceFamilyKey: string;
2130
2405
  selectionMode: "selected_resources" | "recipe_default";
2131
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2406
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2132
2407
  maxBackfillItems: number | null;
2133
2408
  deliveryMode: "auto" | "webhook" | "polling";
2134
- authorizationPerspective: "bot" | "user" | "provider_default";
2409
+ authorizationPerspective: "user" | "bot" | "provider_default";
2135
2410
  includeAttachments: boolean;
2136
2411
  includeFileContent: boolean;
2137
2412
  includeEmailBodies: boolean;
@@ -2144,43 +2419,43 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2144
2419
  rememberInstructions: string;
2145
2420
  excludeInstructions: string;
2146
2421
  sourceRetentionDays: number | null;
2147
- tenantId?: string | undefined;
2148
- sessionId?: string | undefined;
2149
- externalTenantId?: string | undefined;
2150
2422
  consent?: {
2151
2423
  status: "granted";
2152
2424
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
2153
2425
  recordedAt: string;
2154
2426
  reference?: string | undefined;
2155
2427
  } | undefined;
2428
+ tenantId?: string | undefined;
2429
+ externalTenantId?: string | undefined;
2430
+ sessionId?: string | undefined;
2156
2431
  learnedRetentionDays?: number | null | undefined;
2157
2432
  }, {
2158
- connectedAccountId: string;
2159
2433
  idempotencyKey: string;
2434
+ connectedAccountId: string;
2160
2435
  targets: {
2161
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2436
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2162
2437
  externalId: string;
2163
- }[];
2164
- sourceFamilyKey: string;
2165
- tenantId?: string | undefined;
2166
- sessionId?: string | undefined;
2167
- metadata?: Record<string, unknown> | undefined;
2168
- allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2169
- externalTenantId?: string | undefined;
2170
- restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2438
+ }[];
2439
+ sourceFamilyKey: string;
2440
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2171
2441
  consent?: {
2172
2442
  status: "granted";
2173
2443
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
2174
2444
  recordedAt: string;
2175
2445
  reference?: string | undefined;
2176
2446
  } | undefined;
2447
+ tenantId?: string | undefined;
2448
+ externalTenantId?: string | undefined;
2449
+ sessionId?: string | undefined;
2450
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2451
+ metadata?: Record<string, unknown> | undefined;
2177
2452
  resourceIds?: string[] | undefined;
2178
2453
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2179
2454
  selectionMode?: "selected_resources" | "recipe_default" | undefined;
2180
- existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2455
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2181
2456
  maxBackfillItems?: number | null | undefined;
2182
2457
  deliveryMode?: "auto" | "webhook" | "polling" | undefined;
2183
- authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2458
+ authorizationPerspective?: "user" | "bot" | "provider_default" | undefined;
2184
2459
  includeAttachments?: boolean | undefined;
2185
2460
  includeFileContent?: boolean | undefined;
2186
2461
  includeEmailBodies?: boolean | undefined;
@@ -2219,8 +2494,8 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2219
2494
  resourceIds: string[];
2220
2495
  approvedOperationalActorCanonicalKeys: string[];
2221
2496
  sourceFamilyKey: string;
2222
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2223
- authorizationPerspective: "bot" | "user" | "provider_default";
2497
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2498
+ authorizationPerspective: "user" | "bot" | "provider_default";
2224
2499
  includeAttachments: boolean;
2225
2500
  includeFileContent: boolean;
2226
2501
  includeEmailBodies: boolean;
@@ -2231,18 +2506,18 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2231
2506
  includeBotMessages: boolean;
2232
2507
  excludedActorCanonicalKeys: string[];
2233
2508
  tenantId?: string | undefined;
2234
- sessionId?: string | undefined;
2235
2509
  externalTenantId?: string | undefined;
2510
+ sessionId?: string | undefined;
2236
2511
  }, {
2237
2512
  connectedAccountId: string;
2238
2513
  sourceFamilyKey: string;
2239
2514
  tenantId?: string | undefined;
2240
- sessionId?: string | undefined;
2241
2515
  externalTenantId?: string | undefined;
2516
+ sessionId?: string | undefined;
2242
2517
  resourceIds?: string[] | undefined;
2243
2518
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2244
- existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2245
- authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2519
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2520
+ authorizationPerspective?: "user" | "bot" | "provider_default" | undefined;
2246
2521
  includeAttachments?: boolean | undefined;
2247
2522
  includeFileContent?: boolean | undefined;
2248
2523
  includeEmailBodies?: boolean | undefined;
@@ -2257,8 +2532,8 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2257
2532
  resourceIds: string[];
2258
2533
  approvedOperationalActorCanonicalKeys: string[];
2259
2534
  sourceFamilyKey: string;
2260
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2261
- authorizationPerspective: "bot" | "user" | "provider_default";
2535
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2536
+ authorizationPerspective: "user" | "bot" | "provider_default";
2262
2537
  includeAttachments: boolean;
2263
2538
  includeFileContent: boolean;
2264
2539
  includeEmailBodies: boolean;
@@ -2269,18 +2544,18 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2269
2544
  includeBotMessages: boolean;
2270
2545
  excludedActorCanonicalKeys: string[];
2271
2546
  tenantId?: string | undefined;
2272
- sessionId?: string | undefined;
2273
2547
  externalTenantId?: string | undefined;
2548
+ sessionId?: string | undefined;
2274
2549
  }, {
2275
2550
  connectedAccountId: string;
2276
2551
  sourceFamilyKey: string;
2277
2552
  tenantId?: string | undefined;
2278
- sessionId?: string | undefined;
2279
2553
  externalTenantId?: string | undefined;
2554
+ sessionId?: string | undefined;
2280
2555
  resourceIds?: string[] | undefined;
2281
2556
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2282
- existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2283
- authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2557
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2558
+ authorizationPerspective?: "user" | "bot" | "provider_default" | undefined;
2284
2559
  includeAttachments?: boolean | undefined;
2285
2560
  includeFileContent?: boolean | undefined;
2286
2561
  includeEmailBodies?: boolean | undefined;
@@ -2297,10 +2572,10 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
2297
2572
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2298
2573
  externalId: z.ZodString;
2299
2574
  }, "strict", z.ZodTypeAny, {
2300
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2575
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2301
2576
  externalId: string;
2302
2577
  }, {
2303
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2578
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2304
2579
  externalId: string;
2305
2580
  }>, "many">;
2306
2581
  existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
@@ -2320,14 +2595,14 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
2320
2595
  learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
2321
2596
  sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
2322
2597
  }, "strict", z.ZodTypeAny, {
2323
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2598
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2324
2599
  resourceIds: string[];
2325
2600
  targets: {
2326
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2601
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2327
2602
  externalId: string;
2328
2603
  }[];
2329
2604
  approvedOperationalActorCanonicalKeys: string[];
2330
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2605
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2331
2606
  includeAttachments: boolean;
2332
2607
  includeFileContent: boolean;
2333
2608
  includeEmailBodies: boolean;
@@ -2342,13 +2617,13 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
2342
2617
  learnedRetentionDays: number | null;
2343
2618
  sourceRetentionDays: number | null;
2344
2619
  }, {
2345
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2620
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2346
2621
  resourceIds: string[];
2347
2622
  targets: {
2348
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2623
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2349
2624
  externalId: string;
2350
2625
  }[];
2351
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2626
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2352
2627
  rememberInstructions: string;
2353
2628
  excludeInstructions: string;
2354
2629
  learnedRetentionDays: number | null;
@@ -2372,10 +2647,10 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2372
2647
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2373
2648
  externalId: z.ZodString;
2374
2649
  }, "strict", z.ZodTypeAny, {
2375
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2650
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2376
2651
  externalId: string;
2377
2652
  }, {
2378
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2653
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2379
2654
  externalId: string;
2380
2655
  }>, "many">;
2381
2656
  existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
@@ -2395,14 +2670,14 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2395
2670
  learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
2396
2671
  sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
2397
2672
  }, "strict", z.ZodTypeAny, {
2398
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2673
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2399
2674
  resourceIds: string[];
2400
2675
  targets: {
2401
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2676
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2402
2677
  externalId: string;
2403
2678
  }[];
2404
2679
  approvedOperationalActorCanonicalKeys: string[];
2405
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2680
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2406
2681
  includeAttachments: boolean;
2407
2682
  includeFileContent: boolean;
2408
2683
  includeEmailBodies: boolean;
@@ -2417,13 +2692,13 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2417
2692
  learnedRetentionDays: number | null;
2418
2693
  sourceRetentionDays: number | null;
2419
2694
  }, {
2420
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2695
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2421
2696
  resourceIds: string[];
2422
2697
  targets: {
2423
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2698
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2424
2699
  externalId: string;
2425
2700
  }[];
2426
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2701
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2427
2702
  rememberInstructions: string;
2428
2703
  excludeInstructions: string;
2429
2704
  learnedRetentionDays: number | null;
@@ -2440,16 +2715,16 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2440
2715
  excludedActorCanonicalKeys?: string[] | undefined;
2441
2716
  }>>;
2442
2717
  }, "strict", z.ZodTypeAny, {
2443
- status?: "paused" | "active" | undefined;
2718
+ status?: "active" | "paused" | undefined;
2444
2719
  connectedSource?: {
2445
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2720
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2446
2721
  resourceIds: string[];
2447
2722
  targets: {
2448
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2723
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2449
2724
  externalId: string;
2450
2725
  }[];
2451
2726
  approvedOperationalActorCanonicalKeys: string[];
2452
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2727
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2453
2728
  includeAttachments: boolean;
2454
2729
  includeFileContent: boolean;
2455
2730
  includeEmailBodies: boolean;
@@ -2465,15 +2740,15 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2465
2740
  sourceRetentionDays: number | null;
2466
2741
  } | undefined;
2467
2742
  }, {
2468
- status?: "paused" | "active" | undefined;
2743
+ status?: "active" | "paused" | undefined;
2469
2744
  connectedSource?: {
2470
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2745
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2471
2746
  resourceIds: string[];
2472
2747
  targets: {
2473
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2748
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2474
2749
  externalId: string;
2475
2750
  }[];
2476
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2751
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2477
2752
  rememberInstructions: string;
2478
2753
  excludeInstructions: string;
2479
2754
  learnedRetentionDays: number | null;
@@ -2490,16 +2765,16 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2490
2765
  excludedActorCanonicalKeys?: string[] | undefined;
2491
2766
  } | undefined;
2492
2767
  }>, {
2493
- status?: "paused" | "active" | undefined;
2768
+ status?: "active" | "paused" | undefined;
2494
2769
  connectedSource?: {
2495
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2770
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2496
2771
  resourceIds: string[];
2497
2772
  targets: {
2498
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2773
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2499
2774
  externalId: string;
2500
2775
  }[];
2501
2776
  approvedOperationalActorCanonicalKeys: string[];
2502
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2777
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2503
2778
  includeAttachments: boolean;
2504
2779
  includeFileContent: boolean;
2505
2780
  includeEmailBodies: boolean;
@@ -2515,15 +2790,15 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2515
2790
  sourceRetentionDays: number | null;
2516
2791
  } | undefined;
2517
2792
  }, {
2518
- status?: "paused" | "active" | undefined;
2793
+ status?: "active" | "paused" | undefined;
2519
2794
  connectedSource?: {
2520
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2795
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2521
2796
  resourceIds: string[];
2522
2797
  targets: {
2523
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2798
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2524
2799
  externalId: string;
2525
2800
  }[];
2526
- existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2801
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2527
2802
  rememberInstructions: string;
2528
2803
  excludeInstructions: string;
2529
2804
  learnedRetentionDays: number | null;
@@ -2584,32 +2859,32 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
2584
2859
  }>>;
2585
2860
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2586
2861
  }, "strict", z.ZodTypeAny, {
2587
- sessionId: string;
2588
- metadata: Record<string, unknown>;
2589
2862
  content: string;
2863
+ sessionId: string;
2590
2864
  applicationKey: string;
2865
+ metadata: Record<string, unknown>;
2591
2866
  turnId: string;
2592
- title?: string | undefined;
2593
2867
  consent?: {
2594
2868
  status: "granted";
2595
2869
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
2596
2870
  recordedAt: string;
2597
2871
  reference?: string | undefined;
2598
2872
  } | undefined;
2873
+ title?: string | undefined;
2599
2874
  occurredAt?: string | undefined;
2600
2875
  }, {
2601
- sessionId: string;
2602
2876
  content: string;
2877
+ sessionId: string;
2603
2878
  applicationKey: string;
2604
2879
  turnId: string;
2605
- title?: string | undefined;
2606
- metadata?: Record<string, unknown> | undefined;
2607
2880
  consent?: {
2608
2881
  status: "granted";
2609
2882
  basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
2610
2883
  recordedAt: string;
2611
2884
  reference?: string | undefined;
2612
2885
  } | undefined;
2886
+ title?: string | undefined;
2887
+ metadata?: Record<string, unknown> | undefined;
2613
2888
  occurredAt?: string | undefined;
2614
2889
  }>;
2615
2890
  export type MemoryConversationTurnInput = z.input<typeof memoryConversationTurnInputSchema>;
@@ -2621,10 +2896,10 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2621
2896
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2622
2897
  externalId: z.ZodString;
2623
2898
  }, "strict", z.ZodTypeAny, {
2624
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2899
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2625
2900
  externalId: string;
2626
2901
  }, {
2627
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2902
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2628
2903
  externalId: string;
2629
2904
  }>, "many">>;
2630
2905
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
@@ -2648,24 +2923,24 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2648
2923
  maxDepth: z.ZodDefault<z.ZodNumber>;
2649
2924
  maxClaims: z.ZodDefault<z.ZodNumber>;
2650
2925
  }, "strip", z.ZodTypeAny, {
2651
- limit: number;
2652
2926
  states: ("current" | "conflicted")[];
2653
2927
  includeGraph: boolean;
2654
2928
  includeSourceRefs: boolean;
2929
+ limit: number;
2655
2930
  seedRecordIds: string[];
2656
2931
  maxDepth: number;
2657
2932
  maxClaims: number;
2658
- tenantId?: string | undefined;
2659
- sessionId?: string | undefined;
2660
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2661
- query?: string | undefined;
2662
2933
  recordedAt?: string | undefined;
2934
+ tenantId?: string | undefined;
2663
2935
  externalTenantId?: string | undefined;
2936
+ sessionId?: string | undefined;
2664
2937
  subjects?: {
2665
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2938
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2666
2939
  externalId: string;
2667
2940
  }[] | undefined;
2668
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2941
+ query?: string | undefined;
2942
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2943
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2669
2944
  providerKeys?: string[] | undefined;
2670
2945
  sourceFamilyKeys?: string[] | undefined;
2671
2946
  connectedAccountIds?: string[] | undefined;
@@ -2675,18 +2950,17 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2675
2950
  semanticCandidateLimit?: number | undefined;
2676
2951
  predicates?: string[] | undefined;
2677
2952
  }, {
2678
- tenantId?: string | undefined;
2679
- sessionId?: string | undefined;
2680
- limit?: number | undefined;
2681
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2682
- query?: string | undefined;
2683
2953
  recordedAt?: string | undefined;
2954
+ tenantId?: string | undefined;
2684
2955
  externalTenantId?: string | undefined;
2956
+ sessionId?: string | undefined;
2685
2957
  subjects?: {
2686
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2958
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2687
2959
  externalId: string;
2688
2960
  }[] | undefined;
2689
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2961
+ query?: string | undefined;
2962
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2963
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2690
2964
  providerKeys?: string[] | undefined;
2691
2965
  sourceFamilyKeys?: string[] | undefined;
2692
2966
  connectedAccountIds?: string[] | undefined;
@@ -2696,30 +2970,31 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2696
2970
  validAt?: string | undefined;
2697
2971
  includeGraph?: boolean | undefined;
2698
2972
  includeSourceRefs?: boolean | undefined;
2973
+ limit?: number | undefined;
2699
2974
  semanticCandidateLimit?: number | undefined;
2700
2975
  seedRecordIds?: string[] | undefined;
2701
2976
  predicates?: string[] | undefined;
2702
2977
  maxDepth?: number | undefined;
2703
2978
  maxClaims?: number | undefined;
2704
2979
  }>, {
2705
- limit: number;
2706
2980
  states: ("current" | "conflicted")[];
2707
2981
  includeGraph: boolean;
2708
2982
  includeSourceRefs: boolean;
2983
+ limit: number;
2709
2984
  seedRecordIds: string[];
2710
2985
  maxDepth: number;
2711
2986
  maxClaims: number;
2712
- tenantId?: string | undefined;
2713
- sessionId?: string | undefined;
2714
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2715
- query?: string | undefined;
2716
2987
  recordedAt?: string | undefined;
2988
+ tenantId?: string | undefined;
2717
2989
  externalTenantId?: string | undefined;
2990
+ sessionId?: string | undefined;
2718
2991
  subjects?: {
2719
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2992
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2720
2993
  externalId: string;
2721
2994
  }[] | undefined;
2722
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2995
+ query?: string | undefined;
2996
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2997
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2723
2998
  providerKeys?: string[] | undefined;
2724
2999
  sourceFamilyKeys?: string[] | undefined;
2725
3000
  connectedAccountIds?: string[] | undefined;
@@ -2729,18 +3004,17 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2729
3004
  semanticCandidateLimit?: number | undefined;
2730
3005
  predicates?: string[] | undefined;
2731
3006
  }, {
2732
- tenantId?: string | undefined;
2733
- sessionId?: string | undefined;
2734
- limit?: number | undefined;
2735
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2736
- query?: string | undefined;
2737
3007
  recordedAt?: string | undefined;
3008
+ tenantId?: string | undefined;
2738
3009
  externalTenantId?: string | undefined;
3010
+ sessionId?: string | undefined;
2739
3011
  subjects?: {
2740
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3012
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2741
3013
  externalId: string;
2742
3014
  }[] | undefined;
2743
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3015
+ query?: string | undefined;
3016
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
3017
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2744
3018
  providerKeys?: string[] | undefined;
2745
3019
  sourceFamilyKeys?: string[] | undefined;
2746
3020
  connectedAccountIds?: string[] | undefined;
@@ -2750,30 +3024,31 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2750
3024
  validAt?: string | undefined;
2751
3025
  includeGraph?: boolean | undefined;
2752
3026
  includeSourceRefs?: boolean | undefined;
3027
+ limit?: number | undefined;
2753
3028
  semanticCandidateLimit?: number | undefined;
2754
3029
  seedRecordIds?: string[] | undefined;
2755
3030
  predicates?: string[] | undefined;
2756
3031
  maxDepth?: number | undefined;
2757
3032
  maxClaims?: number | undefined;
2758
3033
  }>, {
2759
- limit: number;
2760
3034
  states: ("current" | "conflicted")[];
2761
3035
  includeGraph: boolean;
2762
3036
  includeSourceRefs: boolean;
3037
+ limit: number;
2763
3038
  seedRecordIds: string[];
2764
3039
  maxDepth: number;
2765
3040
  maxClaims: number;
2766
- tenantId?: string | undefined;
2767
- sessionId?: string | undefined;
2768
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2769
- query?: string | undefined;
2770
3041
  recordedAt?: string | undefined;
3042
+ tenantId?: string | undefined;
2771
3043
  externalTenantId?: string | undefined;
3044
+ sessionId?: string | undefined;
2772
3045
  subjects?: {
2773
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3046
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2774
3047
  externalId: string;
2775
3048
  }[] | undefined;
2776
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3049
+ query?: string | undefined;
3050
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
3051
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2777
3052
  providerKeys?: string[] | undefined;
2778
3053
  sourceFamilyKeys?: string[] | undefined;
2779
3054
  connectedAccountIds?: string[] | undefined;
@@ -2783,18 +3058,17 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2783
3058
  semanticCandidateLimit?: number | undefined;
2784
3059
  predicates?: string[] | undefined;
2785
3060
  }, {
2786
- tenantId?: string | undefined;
2787
- sessionId?: string | undefined;
2788
- limit?: number | undefined;
2789
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2790
- query?: string | undefined;
2791
3061
  recordedAt?: string | undefined;
3062
+ tenantId?: string | undefined;
2792
3063
  externalTenantId?: string | undefined;
3064
+ sessionId?: string | undefined;
2793
3065
  subjects?: {
2794
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3066
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2795
3067
  externalId: string;
2796
3068
  }[] | undefined;
2797
- memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3069
+ query?: string | undefined;
3070
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
3071
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2798
3072
  providerKeys?: string[] | undefined;
2799
3073
  sourceFamilyKeys?: string[] | undefined;
2800
3074
  connectedAccountIds?: string[] | undefined;
@@ -2804,6 +3078,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2804
3078
  validAt?: string | undefined;
2805
3079
  includeGraph?: boolean | undefined;
2806
3080
  includeSourceRefs?: boolean | undefined;
3081
+ limit?: number | undefined;
2807
3082
  semanticCandidateLimit?: number | undefined;
2808
3083
  seedRecordIds?: string[] | undefined;
2809
3084
  predicates?: string[] | undefined;
@@ -2818,10 +3093,10 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
2818
3093
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2819
3094
  externalId: z.ZodString;
2820
3095
  }, "strict", z.ZodTypeAny, {
2821
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3096
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2822
3097
  externalId: string;
2823
3098
  }, {
2824
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3099
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2825
3100
  externalId: string;
2826
3101
  }>>;
2827
3102
  format: z.ZodDefault<z.ZodEnum<["json", "jsonl"]>>;
@@ -2830,33 +3105,33 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
2830
3105
  tenantId?: string | undefined;
2831
3106
  externalTenantId?: string | undefined;
2832
3107
  subject?: {
2833
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3108
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2834
3109
  externalId: string;
2835
3110
  } | undefined;
2836
3111
  }, {
2837
3112
  tenantId?: string | undefined;
2838
- format?: "json" | "jsonl" | undefined;
2839
3113
  externalTenantId?: string | undefined;
2840
3114
  subject?: {
2841
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3115
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2842
3116
  externalId: string;
2843
3117
  } | undefined;
3118
+ format?: "json" | "jsonl" | undefined;
2844
3119
  }>, {
2845
3120
  format: "json" | "jsonl";
2846
3121
  tenantId?: string | undefined;
2847
3122
  externalTenantId?: string | undefined;
2848
3123
  subject?: {
2849
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3124
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2850
3125
  externalId: string;
2851
3126
  } | undefined;
2852
3127
  }, {
2853
3128
  tenantId?: string | undefined;
2854
- format?: "json" | "jsonl" | undefined;
2855
3129
  externalTenantId?: string | undefined;
2856
3130
  subject?: {
2857
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3131
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2858
3132
  externalId: string;
2859
3133
  } | undefined;
3134
+ format?: "json" | "jsonl" | undefined;
2860
3135
  }>;
2861
3136
  export type MemoryExportInput = z.input<typeof memoryExportInputSchema>;
2862
3137
  export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
@@ -2866,10 +3141,10 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2866
3141
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2867
3142
  externalId: z.ZodString;
2868
3143
  }, "strict", z.ZodTypeAny, {
2869
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3144
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2870
3145
  externalId: string;
2871
3146
  }, {
2872
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3147
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2873
3148
  externalId: string;
2874
3149
  }>>;
2875
3150
  reason: z.ZodString;
@@ -2878,7 +3153,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2878
3153
  tenantId?: string | undefined;
2879
3154
  externalTenantId?: string | undefined;
2880
3155
  subject?: {
2881
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3156
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2882
3157
  externalId: string;
2883
3158
  } | undefined;
2884
3159
  }, {
@@ -2886,7 +3161,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2886
3161
  tenantId?: string | undefined;
2887
3162
  externalTenantId?: string | undefined;
2888
3163
  subject?: {
2889
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3164
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2890
3165
  externalId: string;
2891
3166
  } | undefined;
2892
3167
  }>, {
@@ -2894,7 +3169,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2894
3169
  tenantId?: string | undefined;
2895
3170
  externalTenantId?: string | undefined;
2896
3171
  subject?: {
2897
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3172
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2898
3173
  externalId: string;
2899
3174
  } | undefined;
2900
3175
  }, {
@@ -2902,7 +3177,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2902
3177
  tenantId?: string | undefined;
2903
3178
  externalTenantId?: string | undefined;
2904
3179
  subject?: {
2905
- type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
3180
+ type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
2906
3181
  externalId: string;
2907
3182
  } | undefined;
2908
3183
  }>;
@@ -2923,32 +3198,32 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
2923
3198
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2924
3199
  }, "strip", z.ZodTypeAny, {
2925
3200
  key: string;
2926
- retentionDays: number | null;
2927
- context: Record<string, unknown>;
2928
- metadata: Record<string, unknown>;
2929
- languages: string[];
2930
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2931
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3201
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2932
3202
  consent: Record<string, unknown>;
3203
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3204
+ metadata: Record<string, unknown>;
2933
3205
  sourceRetentionDays: number | null;
2934
3206
  captureMode: "explicit" | "bound_sources";
2935
3207
  extractionEnabled: boolean;
2936
3208
  profileEnabled: boolean;
3209
+ retentionDays: number | null;
3210
+ languages: string[];
2937
3211
  extraction: Record<string, unknown>;
3212
+ context: Record<string, unknown>;
2938
3213
  }, {
2939
3214
  key?: string | undefined;
2940
- retentionDays?: number | null | undefined;
2941
- context?: Record<string, unknown> | undefined;
2942
- metadata?: Record<string, unknown> | undefined;
2943
- languages?: string[] | undefined;
2944
- allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2945
- restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3215
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2946
3216
  consent?: Record<string, unknown> | undefined;
3217
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3218
+ metadata?: Record<string, unknown> | undefined;
2947
3219
  sourceRetentionDays?: number | null | undefined;
2948
3220
  captureMode?: "explicit" | "bound_sources" | undefined;
2949
3221
  extractionEnabled?: boolean | undefined;
2950
3222
  profileEnabled?: boolean | undefined;
3223
+ retentionDays?: number | null | undefined;
3224
+ languages?: string[] | undefined;
2951
3225
  extraction?: Record<string, unknown> | undefined;
3226
+ context?: Record<string, unknown> | undefined;
2952
3227
  }>;
2953
3228
  export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
2954
3229
  key: z.ZodDefault<z.ZodString>;
@@ -2967,33 +3242,33 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
2967
3242
  }, "key"> & {
2968
3243
  expectedVersion: z.ZodNumber;
2969
3244
  }, "strict", z.ZodTypeAny, {
2970
- retentionDays: number | null;
2971
- context: Record<string, unknown>;
2972
- metadata: Record<string, unknown>;
2973
- languages: string[];
2974
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2975
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3245
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2976
3246
  consent: Record<string, unknown>;
3247
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3248
+ metadata: Record<string, unknown>;
2977
3249
  sourceRetentionDays: number | null;
2978
3250
  captureMode: "explicit" | "bound_sources";
2979
3251
  extractionEnabled: boolean;
2980
3252
  profileEnabled: boolean;
3253
+ retentionDays: number | null;
3254
+ languages: string[];
2981
3255
  extraction: Record<string, unknown>;
3256
+ context: Record<string, unknown>;
2982
3257
  expectedVersion: number;
2983
3258
  }, {
2984
3259
  expectedVersion: number;
2985
- retentionDays?: number | null | undefined;
2986
- context?: Record<string, unknown> | undefined;
2987
- metadata?: Record<string, unknown> | undefined;
2988
- languages?: string[] | undefined;
2989
- allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2990
- restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3260
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2991
3261
  consent?: Record<string, unknown> | undefined;
3262
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3263
+ metadata?: Record<string, unknown> | undefined;
2992
3264
  sourceRetentionDays?: number | null | undefined;
2993
3265
  captureMode?: "explicit" | "bound_sources" | undefined;
2994
3266
  extractionEnabled?: boolean | undefined;
2995
3267
  profileEnabled?: boolean | undefined;
3268
+ retentionDays?: number | null | undefined;
3269
+ languages?: string[] | undefined;
2996
3270
  extraction?: Record<string, unknown> | undefined;
3271
+ context?: Record<string, unknown> | undefined;
2997
3272
  }>;
2998
3273
  export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
2999
3274
  idempotencyKey: z.ZodString;
@@ -3016,72 +3291,72 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3016
3291
  context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3017
3292
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3018
3293
  }, "key">, "strip", z.ZodTypeAny, {
3019
- retentionDays: number | null;
3020
- context: Record<string, unknown>;
3021
- metadata: Record<string, unknown>;
3022
- languages: string[];
3023
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3024
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3294
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3025
3295
  consent: Record<string, unknown>;
3296
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3297
+ metadata: Record<string, unknown>;
3026
3298
  sourceRetentionDays: number | null;
3027
3299
  captureMode: "explicit" | "bound_sources";
3028
3300
  extractionEnabled: boolean;
3029
3301
  profileEnabled: boolean;
3302
+ retentionDays: number | null;
3303
+ languages: string[];
3030
3304
  extraction: Record<string, unknown>;
3305
+ context: Record<string, unknown>;
3031
3306
  }, {
3032
- retentionDays?: number | null | undefined;
3033
- context?: Record<string, unknown> | undefined;
3034
- metadata?: Record<string, unknown> | undefined;
3035
- languages?: string[] | undefined;
3036
- allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3037
- restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3307
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3038
3308
  consent?: Record<string, unknown> | undefined;
3309
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3310
+ metadata?: Record<string, unknown> | undefined;
3039
3311
  sourceRetentionDays?: number | null | undefined;
3040
3312
  captureMode?: "explicit" | "bound_sources" | undefined;
3041
3313
  extractionEnabled?: boolean | undefined;
3042
3314
  profileEnabled?: boolean | undefined;
3315
+ retentionDays?: number | null | undefined;
3316
+ languages?: string[] | undefined;
3043
3317
  extraction?: Record<string, unknown> | undefined;
3318
+ context?: Record<string, unknown> | undefined;
3044
3319
  }>>;
3045
3320
  }, "strict", z.ZodTypeAny, {
3321
+ content: string;
3322
+ idempotencyKey: string;
3046
3323
  policy: {
3047
- retentionDays: number | null;
3048
- context: Record<string, unknown>;
3049
- metadata: Record<string, unknown>;
3050
- languages: string[];
3051
- allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3052
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3324
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3053
3325
  consent: Record<string, unknown>;
3326
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3327
+ metadata: Record<string, unknown>;
3054
3328
  sourceRetentionDays: number | null;
3055
3329
  captureMode: "explicit" | "bound_sources";
3056
3330
  extractionEnabled: boolean;
3057
3331
  profileEnabled: boolean;
3332
+ retentionDays: number | null;
3333
+ languages: string[];
3058
3334
  extraction: Record<string, unknown>;
3335
+ context: Record<string, unknown>;
3059
3336
  };
3060
- content: string;
3061
- idempotencyKey: string;
3062
- language?: string | undefined;
3063
3337
  title?: string | undefined;
3338
+ language?: string | undefined;
3064
3339
  sourceCategory?: string | undefined;
3065
3340
  }, {
3066
3341
  content: string;
3067
3342
  idempotencyKey: string;
3343
+ title?: string | undefined;
3344
+ language?: string | undefined;
3345
+ sourceCategory?: string | undefined;
3068
3346
  policy?: {
3069
- retentionDays?: number | null | undefined;
3070
- context?: Record<string, unknown> | undefined;
3071
- metadata?: Record<string, unknown> | undefined;
3072
- languages?: string[] | undefined;
3073
- allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3074
- restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3347
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3075
3348
  consent?: Record<string, unknown> | undefined;
3349
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3350
+ metadata?: Record<string, unknown> | undefined;
3076
3351
  sourceRetentionDays?: number | null | undefined;
3077
3352
  captureMode?: "explicit" | "bound_sources" | undefined;
3078
3353
  extractionEnabled?: boolean | undefined;
3079
3354
  profileEnabled?: boolean | undefined;
3355
+ retentionDays?: number | null | undefined;
3356
+ languages?: string[] | undefined;
3080
3357
  extraction?: Record<string, unknown> | undefined;
3358
+ context?: Record<string, unknown> | undefined;
3081
3359
  } | undefined;
3082
- language?: string | undefined;
3083
- title?: string | undefined;
3084
- sourceCategory?: string | undefined;
3085
3360
  }>;
3086
3361
  export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
3087
3362
  export type MemoryProjectPolicyUpdateInput = z.input<typeof memoryProjectPolicyUpdateInputSchema>;
@@ -3097,41 +3372,41 @@ export declare const memorySessionConfigSchema: z.ZodEffects<z.ZodObject<{
3097
3372
  contextTokenBudget: z.ZodDefault<z.ZodNumber>;
3098
3373
  policyKey: z.ZodDefault<z.ZodString>;
3099
3374
  }, "strict", z.ZodTypeAny, {
3100
- enabled: boolean;
3101
3375
  policyKey: string;
3102
3376
  includeProfile: boolean;
3103
3377
  includeBlocks: boolean;
3104
3378
  captureMode: "explicit" | "bound_sources";
3379
+ enabled: boolean;
3105
3380
  readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3106
3381
  writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3107
3382
  contextTokenBudget: number;
3108
3383
  agentExternalId?: string | undefined;
3109
3384
  }, {
3110
- enabled?: boolean | undefined;
3111
3385
  policyKey?: string | undefined;
3112
3386
  includeProfile?: boolean | undefined;
3113
3387
  includeBlocks?: boolean | undefined;
3114
3388
  captureMode?: "explicit" | "bound_sources" | undefined;
3389
+ enabled?: boolean | undefined;
3115
3390
  agentExternalId?: string | undefined;
3116
3391
  readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
3117
3392
  writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
3118
3393
  contextTokenBudget?: number | undefined;
3119
3394
  }>, {
3120
- enabled: boolean;
3121
3395
  policyKey: string;
3122
3396
  includeProfile: boolean;
3123
3397
  includeBlocks: boolean;
3124
3398
  captureMode: "explicit" | "bound_sources";
3399
+ enabled: boolean;
3125
3400
  readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3126
3401
  writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3127
3402
  contextTokenBudget: number;
3128
3403
  agentExternalId?: string | undefined;
3129
3404
  }, {
3130
- enabled?: boolean | undefined;
3131
3405
  policyKey?: string | undefined;
3132
3406
  includeProfile?: boolean | undefined;
3133
3407
  includeBlocks?: boolean | undefined;
3134
3408
  captureMode?: "explicit" | "bound_sources" | undefined;
3409
+ enabled?: boolean | undefined;
3135
3410
  agentExternalId?: string | undefined;
3136
3411
  readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
3137
3412
  writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
@@ -3147,14 +3422,14 @@ export declare const memoryExtractedEntitySchema: z.ZodObject<{
3147
3422
  }, "strict", z.ZodTypeAny, {
3148
3423
  key: string;
3149
3424
  type: string;
3150
- displayName: string | null;
3151
3425
  canonicalKey: string;
3426
+ displayName: string | null;
3152
3427
  attributes: Record<string, unknown>;
3153
3428
  }, {
3154
3429
  key: string;
3155
3430
  type: string;
3156
- displayName: string | null;
3157
3431
  canonicalKey: string;
3432
+ displayName: string | null;
3158
3433
  attributes: Record<string, unknown>;
3159
3434
  }>;
3160
3435
  export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
@@ -3242,7 +3517,7 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3242
3517
  actorEntityKey: z.ZodNullable<z.ZodString>;
3243
3518
  subjectEntityKey: z.ZodNullable<z.ZodString>;
3244
3519
  authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
3245
- admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
3520
+ admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
3246
3521
  durability: z.ZodEnum<["durable", "episodic", "transient"]>;
3247
3522
  salience: z.ZodEnum<["low", "medium", "high"]>;
3248
3523
  evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
@@ -3291,14 +3566,14 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3291
3566
  }, "strict", z.ZodTypeAny, {
3292
3567
  key: string;
3293
3568
  type: string;
3294
- displayName: string | null;
3295
3569
  canonicalKey: string;
3570
+ displayName: string | null;
3296
3571
  attributes: Record<string, unknown>;
3297
3572
  }, {
3298
3573
  key: string;
3299
3574
  type: string;
3300
- displayName: string | null;
3301
3575
  canonicalKey: string;
3576
+ displayName: string | null;
3302
3577
  attributes: Record<string, unknown>;
3303
3578
  }>, "many">;
3304
3579
  claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -3344,18 +3619,7 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3344
3619
  }>, "many">;
3345
3620
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3346
3621
  }, "strict", z.ZodTypeAny, {
3347
- language: string;
3348
- title: string;
3349
3622
  content: string;
3350
- qualityContractVersion: 1;
3351
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3352
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3353
- validFrom: string | null;
3354
- validTo: string | null;
3355
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3356
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3357
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3358
- topicTags: string[];
3359
3623
  evidence: {
3360
3624
  sourceObjectId: string;
3361
3625
  segmentId: string;
@@ -3363,21 +3627,32 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3363
3627
  endOffset: number;
3364
3628
  quotedText: string;
3365
3629
  }[];
3366
- attributes: Record<string, unknown>;
3630
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
3631
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
3632
+ durability: "durable" | "episodic" | "transient";
3633
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3367
3634
  salience: "medium" | "low" | "high";
3368
3635
  evidenceConfidence: "medium" | "low" | "high";
3636
+ contextEligible: boolean;
3637
+ qualityContractVersion: 1;
3638
+ validFrom: string | null;
3639
+ validTo: string | null;
3640
+ title: string;
3641
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3642
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3643
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3644
+ topicTags: string[];
3645
+ language: string;
3646
+ attributes: Record<string, unknown>;
3369
3647
  subjectEntityKey: string | null;
3370
3648
  candidateId: string;
3371
3649
  recordKind: "fact" | "episode";
3372
3650
  actorEntityKey: string | null;
3373
- durability: "durable" | "episodic" | "transient";
3374
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3375
- contextEligible: boolean;
3376
3651
  entities: {
3377
3652
  key: string;
3378
3653
  type: string;
3379
- displayName: string | null;
3380
3654
  canonicalKey: string;
3655
+ displayName: string | null;
3381
3656
  attributes: Record<string, unknown>;
3382
3657
  }[];
3383
3658
  claims: {
@@ -3390,16 +3665,7 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3390
3665
  literalValue?: unknown;
3391
3666
  }[];
3392
3667
  }, {
3393
- language: string;
3394
- title: string;
3395
3668
  content: string;
3396
- qualityContractVersion: 1;
3397
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3398
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3399
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3400
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3401
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3402
- topicTags: string[];
3403
3669
  evidence: {
3404
3670
  sourceObjectId: string;
3405
3671
  segmentId: string;
@@ -3407,21 +3673,30 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3407
3673
  endOffset: number;
3408
3674
  quotedText: string;
3409
3675
  }[];
3410
- attributes: Record<string, unknown>;
3676
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
3677
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
3678
+ durability: "durable" | "episodic" | "transient";
3679
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3411
3680
  salience: "medium" | "low" | "high";
3412
3681
  evidenceConfidence: "medium" | "low" | "high";
3682
+ contextEligible: boolean;
3683
+ qualityContractVersion: 1;
3684
+ title: string;
3685
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3686
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3687
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3688
+ topicTags: string[];
3689
+ language: string;
3690
+ attributes: Record<string, unknown>;
3413
3691
  subjectEntityKey: string | null;
3414
3692
  candidateId: string;
3415
3693
  recordKind: "fact" | "episode";
3416
3694
  actorEntityKey: string | null;
3417
- durability: "durable" | "episodic" | "transient";
3418
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3419
- contextEligible: boolean;
3420
3695
  entities: {
3421
3696
  key: string;
3422
3697
  type: string;
3423
- displayName: string | null;
3424
3698
  canonicalKey: string;
3699
+ displayName: string | null;
3425
3700
  attributes: Record<string, unknown>;
3426
3701
  }[];
3427
3702
  claims: {
@@ -3436,18 +3711,7 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3436
3711
  validFrom?: unknown;
3437
3712
  validTo?: unknown;
3438
3713
  }>, {
3439
- language: string;
3440
- title: string;
3441
3714
  content: string;
3442
- qualityContractVersion: 1;
3443
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3444
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3445
- validFrom: string | null;
3446
- validTo: string | null;
3447
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3448
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3449
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3450
- topicTags: string[];
3451
3715
  evidence: {
3452
3716
  sourceObjectId: string;
3453
3717
  segmentId: string;
@@ -3455,21 +3719,32 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3455
3719
  endOffset: number;
3456
3720
  quotedText: string;
3457
3721
  }[];
3722
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
3723
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
3724
+ durability: "durable" | "episodic" | "transient";
3725
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3726
+ salience: "medium" | "low" | "high";
3727
+ evidenceConfidence: "medium" | "low" | "high";
3728
+ contextEligible: boolean;
3729
+ qualityContractVersion: 1;
3730
+ validFrom: string | null;
3731
+ validTo: string | null;
3732
+ title: string;
3733
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3734
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3735
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3736
+ topicTags: string[];
3737
+ language: string;
3458
3738
  attributes: Record<string, unknown>;
3459
- salience: "medium" | "low" | "high";
3460
- evidenceConfidence: "medium" | "low" | "high";
3461
3739
  subjectEntityKey: string | null;
3462
3740
  candidateId: string;
3463
3741
  recordKind: "fact" | "episode";
3464
3742
  actorEntityKey: string | null;
3465
- durability: "durable" | "episodic" | "transient";
3466
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3467
- contextEligible: boolean;
3468
3743
  entities: {
3469
3744
  key: string;
3470
3745
  type: string;
3471
- displayName: string | null;
3472
3746
  canonicalKey: string;
3747
+ displayName: string | null;
3473
3748
  attributes: Record<string, unknown>;
3474
3749
  }[];
3475
3750
  claims: {
@@ -3482,16 +3757,7 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3482
3757
  literalValue?: unknown;
3483
3758
  }[];
3484
3759
  }, {
3485
- language: string;
3486
- title: string;
3487
3760
  content: string;
3488
- qualityContractVersion: 1;
3489
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3490
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3491
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3492
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3493
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3494
- topicTags: string[];
3495
3761
  evidence: {
3496
3762
  sourceObjectId: string;
3497
3763
  segmentId: string;
@@ -3499,21 +3765,30 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3499
3765
  endOffset: number;
3500
3766
  quotedText: string;
3501
3767
  }[];
3502
- attributes: Record<string, unknown>;
3768
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
3769
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
3770
+ durability: "durable" | "episodic" | "transient";
3771
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3503
3772
  salience: "medium" | "low" | "high";
3504
3773
  evidenceConfidence: "medium" | "low" | "high";
3774
+ contextEligible: boolean;
3775
+ qualityContractVersion: 1;
3776
+ title: string;
3777
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3778
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3779
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3780
+ topicTags: string[];
3781
+ language: string;
3782
+ attributes: Record<string, unknown>;
3505
3783
  subjectEntityKey: string | null;
3506
3784
  candidateId: string;
3507
3785
  recordKind: "fact" | "episode";
3508
3786
  actorEntityKey: string | null;
3509
- durability: "durable" | "episodic" | "transient";
3510
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3511
- contextEligible: boolean;
3512
3787
  entities: {
3513
3788
  key: string;
3514
3789
  type: string;
3515
- displayName: string | null;
3516
3790
  canonicalKey: string;
3791
+ displayName: string | null;
3517
3792
  attributes: Record<string, unknown>;
3518
3793
  }[];
3519
3794
  claims: {
@@ -3542,7 +3817,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3542
3817
  actorEntityKey: z.ZodNullable<z.ZodString>;
3543
3818
  subjectEntityKey: z.ZodNullable<z.ZodString>;
3544
3819
  authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
3545
- admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
3820
+ admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
3546
3821
  durability: z.ZodEnum<["durable", "episodic", "transient"]>;
3547
3822
  salience: z.ZodEnum<["low", "medium", "high"]>;
3548
3823
  evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
@@ -3591,14 +3866,14 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3591
3866
  }, "strict", z.ZodTypeAny, {
3592
3867
  key: string;
3593
3868
  type: string;
3594
- displayName: string | null;
3595
3869
  canonicalKey: string;
3870
+ displayName: string | null;
3596
3871
  attributes: Record<string, unknown>;
3597
3872
  }, {
3598
3873
  key: string;
3599
3874
  type: string;
3600
- displayName: string | null;
3601
3875
  canonicalKey: string;
3876
+ displayName: string | null;
3602
3877
  attributes: Record<string, unknown>;
3603
3878
  }>, "many">;
3604
3879
  claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
@@ -3644,18 +3919,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3644
3919
  }>, "many">;
3645
3920
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3646
3921
  }, "strict", z.ZodTypeAny, {
3647
- language: string;
3648
- title: string;
3649
3922
  content: string;
3650
- qualityContractVersion: 1;
3651
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3652
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3653
- validFrom: string | null;
3654
- validTo: string | null;
3655
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3656
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3657
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3658
- topicTags: string[];
3659
3923
  evidence: {
3660
3924
  sourceObjectId: string;
3661
3925
  segmentId: string;
@@ -3663,21 +3927,32 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3663
3927
  endOffset: number;
3664
3928
  quotedText: string;
3665
3929
  }[];
3666
- attributes: Record<string, unknown>;
3930
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
3931
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
3932
+ durability: "durable" | "episodic" | "transient";
3933
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3667
3934
  salience: "medium" | "low" | "high";
3668
3935
  evidenceConfidence: "medium" | "low" | "high";
3936
+ contextEligible: boolean;
3937
+ qualityContractVersion: 1;
3938
+ validFrom: string | null;
3939
+ validTo: string | null;
3940
+ title: string;
3941
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3942
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3943
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3944
+ topicTags: string[];
3945
+ language: string;
3946
+ attributes: Record<string, unknown>;
3669
3947
  subjectEntityKey: string | null;
3670
3948
  candidateId: string;
3671
3949
  recordKind: "fact" | "episode";
3672
3950
  actorEntityKey: string | null;
3673
- durability: "durable" | "episodic" | "transient";
3674
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3675
- contextEligible: boolean;
3676
3951
  entities: {
3677
3952
  key: string;
3678
3953
  type: string;
3679
- displayName: string | null;
3680
3954
  canonicalKey: string;
3955
+ displayName: string | null;
3681
3956
  attributes: Record<string, unknown>;
3682
3957
  }[];
3683
3958
  claims: {
@@ -3690,16 +3965,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3690
3965
  literalValue?: unknown;
3691
3966
  }[];
3692
3967
  }, {
3693
- language: string;
3694
- title: string;
3695
3968
  content: string;
3696
- qualityContractVersion: 1;
3697
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3698
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3699
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3700
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3701
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3702
- topicTags: string[];
3703
3969
  evidence: {
3704
3970
  sourceObjectId: string;
3705
3971
  segmentId: string;
@@ -3707,21 +3973,30 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3707
3973
  endOffset: number;
3708
3974
  quotedText: string;
3709
3975
  }[];
3710
- attributes: Record<string, unknown>;
3976
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
3977
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
3978
+ durability: "durable" | "episodic" | "transient";
3979
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3711
3980
  salience: "medium" | "low" | "high";
3712
3981
  evidenceConfidence: "medium" | "low" | "high";
3982
+ contextEligible: boolean;
3983
+ qualityContractVersion: 1;
3984
+ title: string;
3985
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3986
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3987
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3988
+ topicTags: string[];
3989
+ language: string;
3990
+ attributes: Record<string, unknown>;
3713
3991
  subjectEntityKey: string | null;
3714
3992
  candidateId: string;
3715
3993
  recordKind: "fact" | "episode";
3716
3994
  actorEntityKey: string | null;
3717
- durability: "durable" | "episodic" | "transient";
3718
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3719
- contextEligible: boolean;
3720
3995
  entities: {
3721
3996
  key: string;
3722
3997
  type: string;
3723
- displayName: string | null;
3724
3998
  canonicalKey: string;
3999
+ displayName: string | null;
3725
4000
  attributes: Record<string, unknown>;
3726
4001
  }[];
3727
4002
  claims: {
@@ -3736,18 +4011,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3736
4011
  validFrom?: unknown;
3737
4012
  validTo?: unknown;
3738
4013
  }>, {
3739
- language: string;
3740
- title: string;
3741
4014
  content: string;
3742
- qualityContractVersion: 1;
3743
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3744
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3745
- validFrom: string | null;
3746
- validTo: string | null;
3747
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3748
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3749
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3750
- topicTags: string[];
3751
4015
  evidence: {
3752
4016
  sourceObjectId: string;
3753
4017
  segmentId: string;
@@ -3755,21 +4019,32 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3755
4019
  endOffset: number;
3756
4020
  quotedText: string;
3757
4021
  }[];
3758
- attributes: Record<string, unknown>;
4022
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
4023
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
4024
+ durability: "durable" | "episodic" | "transient";
4025
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3759
4026
  salience: "medium" | "low" | "high";
3760
4027
  evidenceConfidence: "medium" | "low" | "high";
4028
+ contextEligible: boolean;
4029
+ qualityContractVersion: 1;
4030
+ validFrom: string | null;
4031
+ validTo: string | null;
4032
+ title: string;
4033
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
4034
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4035
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4036
+ topicTags: string[];
4037
+ language: string;
4038
+ attributes: Record<string, unknown>;
3761
4039
  subjectEntityKey: string | null;
3762
4040
  candidateId: string;
3763
4041
  recordKind: "fact" | "episode";
3764
4042
  actorEntityKey: string | null;
3765
- durability: "durable" | "episodic" | "transient";
3766
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3767
- contextEligible: boolean;
3768
4043
  entities: {
3769
4044
  key: string;
3770
4045
  type: string;
3771
- displayName: string | null;
3772
4046
  canonicalKey: string;
4047
+ displayName: string | null;
3773
4048
  attributes: Record<string, unknown>;
3774
4049
  }[];
3775
4050
  claims: {
@@ -3782,16 +4057,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3782
4057
  literalValue?: unknown;
3783
4058
  }[];
3784
4059
  }, {
3785
- language: string;
3786
- title: string;
3787
4060
  content: string;
3788
- qualityContractVersion: 1;
3789
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3790
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3791
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3792
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3793
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3794
- topicTags: string[];
3795
4061
  evidence: {
3796
4062
  sourceObjectId: string;
3797
4063
  segmentId: string;
@@ -3799,21 +4065,30 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3799
4065
  endOffset: number;
3800
4066
  quotedText: string;
3801
4067
  }[];
3802
- attributes: Record<string, unknown>;
4068
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
4069
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
4070
+ durability: "durable" | "episodic" | "transient";
4071
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3803
4072
  salience: "medium" | "low" | "high";
3804
4073
  evidenceConfidence: "medium" | "low" | "high";
4074
+ contextEligible: boolean;
4075
+ qualityContractVersion: 1;
4076
+ title: string;
4077
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
4078
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4079
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4080
+ topicTags: string[];
4081
+ language: string;
4082
+ attributes: Record<string, unknown>;
3805
4083
  subjectEntityKey: string | null;
3806
4084
  candidateId: string;
3807
4085
  recordKind: "fact" | "episode";
3808
4086
  actorEntityKey: string | null;
3809
- durability: "durable" | "episodic" | "transient";
3810
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3811
- contextEligible: boolean;
3812
4087
  entities: {
3813
4088
  key: string;
3814
4089
  type: string;
3815
- displayName: string | null;
3816
4090
  canonicalKey: string;
4091
+ displayName: string | null;
3817
4092
  attributes: Record<string, unknown>;
3818
4093
  }[];
3819
4094
  claims: {
@@ -3830,18 +4105,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3830
4105
  }>, "many">;
3831
4106
  }, "strict", z.ZodTypeAny, {
3832
4107
  records: {
3833
- language: string;
3834
- title: string;
3835
4108
  content: string;
3836
- qualityContractVersion: 1;
3837
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3838
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3839
- validFrom: string | null;
3840
- validTo: string | null;
3841
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3842
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3843
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3844
- topicTags: string[];
3845
4109
  evidence: {
3846
4110
  sourceObjectId: string;
3847
4111
  segmentId: string;
@@ -3849,21 +4113,32 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3849
4113
  endOffset: number;
3850
4114
  quotedText: string;
3851
4115
  }[];
3852
- attributes: Record<string, unknown>;
4116
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
4117
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
4118
+ durability: "durable" | "episodic" | "transient";
4119
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3853
4120
  salience: "medium" | "low" | "high";
3854
4121
  evidenceConfidence: "medium" | "low" | "high";
4122
+ contextEligible: boolean;
4123
+ qualityContractVersion: 1;
4124
+ validFrom: string | null;
4125
+ validTo: string | null;
4126
+ title: string;
4127
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
4128
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4129
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4130
+ topicTags: string[];
4131
+ language: string;
4132
+ attributes: Record<string, unknown>;
3855
4133
  subjectEntityKey: string | null;
3856
4134
  candidateId: string;
3857
4135
  recordKind: "fact" | "episode";
3858
4136
  actorEntityKey: string | null;
3859
- durability: "durable" | "episodic" | "transient";
3860
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3861
- contextEligible: boolean;
3862
4137
  entities: {
3863
4138
  key: string;
3864
4139
  type: string;
3865
- displayName: string | null;
3866
4140
  canonicalKey: string;
4141
+ displayName: string | null;
3867
4142
  attributes: Record<string, unknown>;
3868
4143
  }[];
3869
4144
  claims: {
@@ -3878,16 +4153,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3878
4153
  }[];
3879
4154
  }, {
3880
4155
  records: {
3881
- language: string;
3882
- title: string;
3883
4156
  content: string;
3884
- qualityContractVersion: 1;
3885
- authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3886
- admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3887
- memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3888
- sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3889
- restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3890
- topicTags: string[];
3891
4157
  evidence: {
3892
4158
  sourceObjectId: string;
3893
4159
  segmentId: string;
@@ -3895,21 +4161,30 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3895
4161
  endOffset: number;
3896
4162
  quotedText: string;
3897
4163
  }[];
3898
- attributes: Record<string, unknown>;
4164
+ authorshipClass: "application" | "unknown" | "connected_user" | "other_human" | "bot" | "system";
4165
+ admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
4166
+ durability: "durable" | "episodic" | "transient";
4167
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3899
4168
  salience: "medium" | "low" | "high";
3900
4169
  evidenceConfidence: "medium" | "low" | "high";
4170
+ contextEligible: boolean;
4171
+ qualityContractVersion: 1;
4172
+ title: string;
4173
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
4174
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4175
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4176
+ topicTags: string[];
4177
+ language: string;
4178
+ attributes: Record<string, unknown>;
3901
4179
  subjectEntityKey: string | null;
3902
4180
  candidateId: string;
3903
4181
  recordKind: "fact" | "episode";
3904
4182
  actorEntityKey: string | null;
3905
- durability: "durable" | "episodic" | "transient";
3906
- destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
3907
- contextEligible: boolean;
3908
4183
  entities: {
3909
4184
  key: string;
3910
4185
  type: string;
3911
- displayName: string | null;
3912
4186
  canonicalKey: string;
4187
+ displayName: string | null;
3913
4188
  attributes: Record<string, unknown>;
3914
4189
  }[];
3915
4190
  claims: {
@@ -3926,6 +4201,22 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3926
4201
  }[];
3927
4202
  }>;
3928
4203
  export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
4204
+ quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4205
+ durability: z.ZodEnum<["durable", "episodic", "transient"]>;
4206
+ destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
4207
+ salience: z.ZodEnum<["low", "medium", "high"]>;
4208
+ evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
4209
+ }, "strict", z.ZodTypeAny, {
4210
+ durability: "durable" | "episodic" | "transient";
4211
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4212
+ salience: "medium" | "low" | "high";
4213
+ evidenceConfidence: "medium" | "low" | "high";
4214
+ }, {
4215
+ durability: "durable" | "episodic" | "transient";
4216
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4217
+ salience: "medium" | "low" | "high";
4218
+ evidenceConfidence: "medium" | "low" | "high";
4219
+ }>>>;
3929
4220
  authorshipStatus: z.ZodOptional<z.ZodEnum<["verified_sender_text", "quoted_or_forwarded", "uncertain"]>>;
3930
4221
  candidateId: z.ZodString;
3931
4222
  status: z.ZodEnum<["classified", "uncertain"]>;
@@ -3935,39 +4226,79 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
3935
4226
  reason: z.ZodString;
3936
4227
  }, "strict", z.ZodTypeAny, {
3937
4228
  status: "uncertain" | "classified";
3938
- reason: string;
3939
4229
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3940
4230
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4231
+ reason: string;
3941
4232
  candidateId: string;
3942
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4233
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4234
+ quality?: {
4235
+ durability: "durable" | "episodic" | "transient";
4236
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4237
+ salience: "medium" | "low" | "high";
4238
+ evidenceConfidence: "medium" | "low" | "high";
4239
+ } | null | undefined;
3943
4240
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3944
4241
  }, {
3945
4242
  status: "uncertain" | "classified";
3946
- reason: string;
3947
4243
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3948
4244
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4245
+ reason: string;
3949
4246
  candidateId: string;
3950
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4247
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4248
+ quality?: {
4249
+ durability: "durable" | "episodic" | "transient";
4250
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4251
+ salience: "medium" | "low" | "high";
4252
+ evidenceConfidence: "medium" | "low" | "high";
4253
+ } | null | undefined;
3951
4254
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3952
4255
  }>, {
3953
4256
  status: "uncertain" | "classified";
3954
- reason: string;
3955
4257
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3956
4258
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4259
+ reason: string;
3957
4260
  candidateId: string;
3958
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4261
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4262
+ quality?: {
4263
+ durability: "durable" | "episodic" | "transient";
4264
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4265
+ salience: "medium" | "low" | "high";
4266
+ evidenceConfidence: "medium" | "low" | "high";
4267
+ } | null | undefined;
3959
4268
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3960
4269
  }, {
3961
4270
  status: "uncertain" | "classified";
3962
- reason: string;
3963
4271
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3964
4272
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4273
+ reason: string;
3965
4274
  candidateId: string;
3966
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4275
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4276
+ quality?: {
4277
+ durability: "durable" | "episodic" | "transient";
4278
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4279
+ salience: "medium" | "low" | "high";
4280
+ evidenceConfidence: "medium" | "low" | "high";
4281
+ } | null | undefined;
3967
4282
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3968
4283
  }>;
3969
4284
  export declare const memorySafetyResultSchema: z.ZodObject<{
3970
4285
  decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
4286
+ quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4287
+ durability: z.ZodEnum<["durable", "episodic", "transient"]>;
4288
+ destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
4289
+ salience: z.ZodEnum<["low", "medium", "high"]>;
4290
+ evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
4291
+ }, "strict", z.ZodTypeAny, {
4292
+ durability: "durable" | "episodic" | "transient";
4293
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4294
+ salience: "medium" | "low" | "high";
4295
+ evidenceConfidence: "medium" | "low" | "high";
4296
+ }, {
4297
+ durability: "durable" | "episodic" | "transient";
4298
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4299
+ salience: "medium" | "low" | "high";
4300
+ evidenceConfidence: "medium" | "low" | "high";
4301
+ }>>>;
3971
4302
  authorshipStatus: z.ZodOptional<z.ZodEnum<["verified_sender_text", "quoted_or_forwarded", "uncertain"]>>;
3972
4303
  candidateId: z.ZodString;
3973
4304
  status: z.ZodEnum<["classified", "uncertain"]>;
@@ -3977,55 +4308,91 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
3977
4308
  reason: z.ZodString;
3978
4309
  }, "strict", z.ZodTypeAny, {
3979
4310
  status: "uncertain" | "classified";
3980
- reason: string;
3981
4311
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3982
4312
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4313
+ reason: string;
3983
4314
  candidateId: string;
3984
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4315
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4316
+ quality?: {
4317
+ durability: "durable" | "episodic" | "transient";
4318
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4319
+ salience: "medium" | "low" | "high";
4320
+ evidenceConfidence: "medium" | "low" | "high";
4321
+ } | null | undefined;
3985
4322
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3986
4323
  }, {
3987
4324
  status: "uncertain" | "classified";
3988
- reason: string;
3989
4325
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3990
4326
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4327
+ reason: string;
3991
4328
  candidateId: string;
3992
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4329
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4330
+ quality?: {
4331
+ durability: "durable" | "episodic" | "transient";
4332
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4333
+ salience: "medium" | "low" | "high";
4334
+ evidenceConfidence: "medium" | "low" | "high";
4335
+ } | null | undefined;
3993
4336
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3994
4337
  }>, {
3995
4338
  status: "uncertain" | "classified";
3996
- reason: string;
3997
4339
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3998
4340
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4341
+ reason: string;
3999
4342
  candidateId: string;
4000
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4343
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4344
+ quality?: {
4345
+ durability: "durable" | "episodic" | "transient";
4346
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4347
+ salience: "medium" | "low" | "high";
4348
+ evidenceConfidence: "medium" | "low" | "high";
4349
+ } | null | undefined;
4001
4350
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4002
4351
  }, {
4003
4352
  status: "uncertain" | "classified";
4004
- reason: string;
4005
4353
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4006
4354
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4355
+ reason: string;
4007
4356
  candidateId: string;
4008
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4357
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4358
+ quality?: {
4359
+ durability: "durable" | "episodic" | "transient";
4360
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4361
+ salience: "medium" | "low" | "high";
4362
+ evidenceConfidence: "medium" | "low" | "high";
4363
+ } | null | undefined;
4009
4364
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4010
4365
  }>, "many">;
4011
4366
  }, "strict", z.ZodTypeAny, {
4012
4367
  decisions: {
4013
4368
  status: "uncertain" | "classified";
4014
- reason: string;
4015
4369
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4016
4370
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4371
+ reason: string;
4017
4372
  candidateId: string;
4018
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4373
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4374
+ quality?: {
4375
+ durability: "durable" | "episodic" | "transient";
4376
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4377
+ salience: "medium" | "low" | "high";
4378
+ evidenceConfidence: "medium" | "low" | "high";
4379
+ } | null | undefined;
4019
4380
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4020
4381
  }[];
4021
4382
  }, {
4022
4383
  decisions: {
4023
4384
  status: "uncertain" | "classified";
4024
- reason: string;
4025
4385
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4026
4386
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4387
+ reason: string;
4027
4388
  candidateId: string;
4028
- retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
4389
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4390
+ quality?: {
4391
+ durability: "durable" | "episodic" | "transient";
4392
+ destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
4393
+ salience: "medium" | "low" | "high";
4394
+ evidenceConfidence: "medium" | "low" | "high";
4395
+ } | null | undefined;
4029
4396
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4030
4397
  }[];
4031
4398
  }>;
@@ -4034,41 +4401,48 @@ export declare const memoryConsolidationResultSchema: z.ZodObject<{
4034
4401
  candidateId: z.ZodString;
4035
4402
  action: z.ZodEnum<["add", "supersede", "contradict", "support", "no_change"]>;
4036
4403
  targetRecordId: z.ZodNullable<z.ZodString>;
4404
+ targetCandidateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4037
4405
  reason: z.ZodString;
4038
4406
  }, "strict", z.ZodTypeAny, {
4039
- reason: string;
4040
4407
  action: "add" | "supersede" | "contradict" | "support" | "no_change";
4408
+ reason: string;
4041
4409
  candidateId: string;
4042
4410
  targetRecordId: string | null;
4411
+ targetCandidateId?: string | null | undefined;
4043
4412
  }, {
4044
- reason: string;
4045
4413
  action: "add" | "supersede" | "contradict" | "support" | "no_change";
4414
+ reason: string;
4046
4415
  candidateId: string;
4047
4416
  targetRecordId: string | null;
4417
+ targetCandidateId?: string | null | undefined;
4048
4418
  }>, {
4049
- reason: string;
4050
4419
  action: "add" | "supersede" | "contradict" | "support" | "no_change";
4420
+ reason: string;
4051
4421
  candidateId: string;
4052
4422
  targetRecordId: string | null;
4423
+ targetCandidateId?: string | null | undefined;
4053
4424
  }, {
4054
- reason: string;
4055
4425
  action: "add" | "supersede" | "contradict" | "support" | "no_change";
4426
+ reason: string;
4056
4427
  candidateId: string;
4057
4428
  targetRecordId: string | null;
4429
+ targetCandidateId?: string | null | undefined;
4058
4430
  }>, "many">;
4059
4431
  }, "strict", z.ZodTypeAny, {
4060
4432
  decisions: {
4061
- reason: string;
4062
4433
  action: "add" | "supersede" | "contradict" | "support" | "no_change";
4434
+ reason: string;
4063
4435
  candidateId: string;
4064
4436
  targetRecordId: string | null;
4437
+ targetCandidateId?: string | null | undefined;
4065
4438
  }[];
4066
4439
  }, {
4067
4440
  decisions: {
4068
- reason: string;
4069
4441
  action: "add" | "supersede" | "contradict" | "support" | "no_change";
4442
+ reason: string;
4070
4443
  candidateId: string;
4071
4444
  targetRecordId: string | null;
4445
+ targetCandidateId?: string | null | undefined;
4072
4446
  }[];
4073
4447
  }>;
4074
4448
  export type MemoryExtractedRecord = z.infer<typeof memoryExtractedRecordSchema>;
@@ -4235,7 +4609,7 @@ export declare const memoryExtractionJsonSchema: {
4235
4609
  };
4236
4610
  readonly admissionBasis: {
4237
4611
  readonly type: "string";
4238
- readonly enum: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"];
4612
+ readonly enum: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"];
4239
4613
  };
4240
4614
  readonly durability: {
4241
4615
  readonly type: "string";
@@ -4418,7 +4792,7 @@ export declare const memorySafetyJsonSchema: {
4418
4792
  readonly items: {
4419
4793
  readonly type: "object";
4420
4794
  readonly additionalProperties: false;
4421
- readonly required: readonly ["candidateId", "status", "retentionStatus", "sensitivityClass", "restrictedDataClasses", "reason"];
4795
+ readonly required: readonly ["candidateId", "status", "retentionStatus", "sensitivityClass", "restrictedDataClasses", "reason", "quality"];
4422
4796
  readonly properties: {
4423
4797
  readonly candidateId: {
4424
4798
  readonly type: "string";
@@ -4431,6 +4805,33 @@ export declare const memorySafetyJsonSchema: {
4431
4805
  readonly type: "string";
4432
4806
  readonly enum: readonly ["memory", "source_only", "reject_noise", "uncertain"];
4433
4807
  };
4808
+ readonly quality: {
4809
+ readonly anyOf: readonly [{
4810
+ readonly type: "null";
4811
+ }, {
4812
+ readonly type: "object";
4813
+ readonly additionalProperties: false;
4814
+ readonly required: readonly ["durability", "destination", "salience", "evidenceConfidence"];
4815
+ readonly properties: {
4816
+ readonly durability: {
4817
+ readonly type: "string";
4818
+ readonly enum: readonly ["durable", "episodic", "transient"];
4819
+ };
4820
+ readonly destination: {
4821
+ readonly type: "string";
4822
+ readonly enum: readonly ["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"];
4823
+ };
4824
+ readonly salience: {
4825
+ readonly type: "string";
4826
+ readonly enum: readonly ["low", "medium", "high"];
4827
+ };
4828
+ readonly evidenceConfidence: {
4829
+ readonly type: "string";
4830
+ readonly enum: readonly ["low", "medium", "high"];
4831
+ };
4832
+ };
4833
+ }];
4834
+ };
4434
4835
  readonly sensitivityClass: {
4435
4836
  readonly type: "string";
4436
4837
  readonly enum: readonly ["standard", "personal", "restricted", "secret"];
@@ -4462,7 +4863,7 @@ export declare const memoryConsolidationJsonSchema: {
4462
4863
  readonly items: {
4463
4864
  readonly type: "object";
4464
4865
  readonly additionalProperties: false;
4465
- readonly required: readonly ["candidateId", "action", "targetRecordId", "reason"];
4866
+ readonly required: readonly ["candidateId", "action", "targetRecordId", "targetCandidateId", "reason"];
4466
4867
  readonly properties: {
4467
4868
  readonly candidateId: {
4468
4869
  readonly type: "string";
@@ -4475,6 +4876,9 @@ export declare const memoryConsolidationJsonSchema: {
4475
4876
  readonly type: readonly ["string", "null"];
4476
4877
  readonly format: "uuid";
4477
4878
  };
4879
+ readonly targetCandidateId: {
4880
+ readonly type: readonly ["string", "null"];
4881
+ };
4478
4882
  readonly reason: {
4479
4883
  readonly type: "string";
4480
4884
  };