@stacklink/sdk 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +50 -0
  3. package/compatibility.json +30 -0
  4. package/dist/src/domain/knowledge-meta-tools.d.ts +12 -0
  5. package/dist/src/domain/knowledge-meta-tools.d.ts.map +1 -0
  6. package/dist/src/domain/knowledge-meta-tools.js +38 -0
  7. package/dist/src/domain/knowledge-meta-tools.js.map +1 -0
  8. package/dist/src/domain/memory-contract.d.ts +3399 -0
  9. package/dist/src/domain/memory-contract.d.ts.map +1 -0
  10. package/dist/src/domain/memory-contract.js +931 -0
  11. package/dist/src/domain/memory-contract.js.map +1 -0
  12. package/dist/src/domain/memory-meta-tools.d.ts +5 -0
  13. package/dist/src/domain/memory-meta-tools.d.ts.map +1 -0
  14. package/dist/src/domain/memory-meta-tools.js +18 -0
  15. package/dist/src/domain/memory-meta-tools.js.map +1 -0
  16. package/dist/src/domain/platform-mcp-tools.d.ts +3 -0
  17. package/dist/src/domain/platform-mcp-tools.d.ts.map +1 -0
  18. package/dist/src/domain/platform-mcp-tools.js +30 -0
  19. package/dist/src/domain/platform-mcp-tools.js.map +1 -0
  20. package/dist/src/domain/provider-branding.d.ts +27 -0
  21. package/dist/src/domain/provider-branding.d.ts.map +1 -0
  22. package/dist/src/domain/provider-branding.js +256 -0
  23. package/dist/src/domain/provider-branding.js.map +1 -0
  24. package/dist/src/domain/stacklink-meta-tools.d.ts +80 -0
  25. package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -0
  26. package/dist/src/domain/stacklink-meta-tools.js +456 -0
  27. package/dist/src/domain/stacklink-meta-tools.js.map +1 -0
  28. package/dist/src/sdk/claude-agent.d.ts +14 -0
  29. package/dist/src/sdk/claude-agent.d.ts.map +1 -0
  30. package/dist/src/sdk/claude-agent.js +15 -0
  31. package/dist/src/sdk/claude-agent.js.map +1 -0
  32. package/dist/src/sdk/framework-tools.d.ts +19 -0
  33. package/dist/src/sdk/framework-tools.d.ts.map +1 -0
  34. package/dist/src/sdk/framework-tools.js +26 -0
  35. package/dist/src/sdk/framework-tools.js.map +1 -0
  36. package/dist/src/sdk/index.d.ts +3443 -0
  37. package/dist/src/sdk/index.d.ts.map +1 -0
  38. package/dist/src/sdk/index.js +2782 -0
  39. package/dist/src/sdk/index.js.map +1 -0
  40. package/dist/src/sdk/langchain.d.ts +9 -0
  41. package/dist/src/sdk/langchain.d.ts.map +1 -0
  42. package/dist/src/sdk/langchain.js +11 -0
  43. package/dist/src/sdk/langchain.js.map +1 -0
  44. package/dist/src/sdk/memory-lifecycle.d.ts +75 -0
  45. package/dist/src/sdk/memory-lifecycle.d.ts.map +1 -0
  46. package/dist/src/sdk/memory-lifecycle.js +128 -0
  47. package/dist/src/sdk/memory-lifecycle.js.map +1 -0
  48. package/dist/src/sdk/openai-agents.d.ts +45 -0
  49. package/dist/src/sdk/openai-agents.d.ts.map +1 -0
  50. package/dist/src/sdk/openai-agents.js +182 -0
  51. package/dist/src/sdk/openai-agents.js.map +1 -0
  52. package/dist/src/sdk/openai.d.ts +12 -0
  53. package/dist/src/sdk/openai.d.ts.map +1 -0
  54. package/dist/src/sdk/openai.js +271 -0
  55. package/dist/src/sdk/openai.js.map +1 -0
  56. package/dist/src/sdk/vercel-ai.d.ts +11 -0
  57. package/dist/src/sdk/vercel-ai.d.ts.map +1 -0
  58. package/dist/src/sdk/vercel-ai.js +226 -0
  59. package/dist/src/sdk/vercel-ai.js.map +1 -0
  60. package/package.json +81 -0
@@ -0,0 +1,3399 @@
1
+ import { z } from 'zod';
2
+ export declare const memorySubjectTypes: readonly ["user", "agent", "tenant", "run", "application", "custom"];
3
+ export declare const memoryRecordKinds: readonly ["fact", "episode", "profile_item", "block"];
4
+ export declare const memoryAutomaticRecordKinds: readonly ["fact", "episode"];
5
+ export declare const memoryTypes: readonly ["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"];
6
+ export type MemoryType = typeof memoryTypes[number];
7
+ export declare const memorySensitivityClasses: readonly ["standard", "personal", "restricted", "secret"];
8
+ export declare const memoryRestrictedDataClasses: readonly ["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"];
9
+ export declare const memoryRecordStates: readonly ["current", "conflicted", "forgotten"];
10
+ export declare const memoryRecallableRecordStates: readonly ["current", "conflicted"];
11
+ export declare const memoryRelationTypes: readonly ["derived_from", "supersedes", "contradicts", "supports", "related_to"];
12
+ export declare const memorySourceKinds: readonly ["direct", "conversation", "document", "provider", "tool_execution", "artifact"];
13
+ export declare const memorySubjectRefSchema: z.ZodObject<{
14
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
15
+ externalId: z.ZodString;
16
+ }, "strict", z.ZodTypeAny, {
17
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
18
+ externalId: string;
19
+ }, {
20
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
21
+ externalId: string;
22
+ }>;
23
+ export type MemorySubjectRef = z.infer<typeof memorySubjectRefSchema>;
24
+ export declare const memoryConsentProofSchema: z.ZodObject<{
25
+ status: z.ZodLiteral<"granted">;
26
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
27
+ recordedAt: z.ZodString;
28
+ reference: z.ZodOptional<z.ZodString>;
29
+ }, "strict", z.ZodTypeAny, {
30
+ status: "granted";
31
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
32
+ recordedAt: string;
33
+ reference?: string | undefined;
34
+ }, {
35
+ status: "granted";
36
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
37
+ recordedAt: string;
38
+ reference?: string | undefined;
39
+ }>;
40
+ export type MemoryConsentProof = z.infer<typeof memoryConsentProofSchema>;
41
+ export declare const memoryConsentPolicySchema: z.ZodObject<{
42
+ mode: z.ZodDefault<z.ZodEnum<["project_policy", "required"]>>;
43
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
44
+ mode: z.ZodDefault<z.ZodEnum<["project_policy", "required"]>>;
45
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
46
+ mode: z.ZodDefault<z.ZodEnum<["project_policy", "required"]>>;
47
+ }, z.ZodTypeAny, "passthrough">>;
48
+ export declare const memoryTenantSelectorSchema: z.ZodEffects<z.ZodObject<{
49
+ tenantId: z.ZodOptional<z.ZodString>;
50
+ externalTenantId: z.ZodOptional<z.ZodString>;
51
+ sessionId: z.ZodOptional<z.ZodString>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ tenantId?: string | undefined;
54
+ sessionId?: string | undefined;
55
+ externalTenantId?: string | undefined;
56
+ }, {
57
+ tenantId?: string | undefined;
58
+ sessionId?: string | undefined;
59
+ externalTenantId?: string | undefined;
60
+ }>, {
61
+ tenantId?: string | undefined;
62
+ sessionId?: string | undefined;
63
+ externalTenantId?: string | undefined;
64
+ }, {
65
+ tenantId?: string | undefined;
66
+ sessionId?: string | undefined;
67
+ externalTenantId?: string | undefined;
68
+ }>;
69
+ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
70
+ occurredAt: z.ZodOptional<z.ZodString>;
71
+ validFrom: z.ZodOptional<z.ZodString>;
72
+ validTo: z.ZodOptional<z.ZodString>;
73
+ tenantId: z.ZodOptional<z.ZodString>;
74
+ externalTenantId: z.ZodOptional<z.ZodString>;
75
+ sessionId: z.ZodOptional<z.ZodString>;
76
+ subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
78
+ externalId: z.ZodString;
79
+ }, "strict", z.ZodTypeAny, {
80
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
81
+ externalId: string;
82
+ }, {
83
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
84
+ externalId: string;
85
+ }>, "many">>;
86
+ mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
87
+ kind: z.ZodDefault<z.ZodEnum<["fact", "episode", "profile_item", "block"]>>;
88
+ content: z.ZodString;
89
+ title: z.ZodOptional<z.ZodString>;
90
+ memoryType: z.ZodDefault<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>>;
91
+ sensitivityClass: z.ZodDefault<z.ZodEnum<["standard", "personal", "restricted", "secret"]>>;
92
+ restrictedDataClasses: z.ZodDefault<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
93
+ topicTags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
94
+ language: z.ZodOptional<z.ZodString>;
95
+ source: z.ZodDefault<z.ZodObject<{
96
+ kind: z.ZodDefault<z.ZodEnum<["direct", "conversation", "document", "provider", "tool_execution", "artifact"]>>;
97
+ externalId: z.ZodOptional<z.ZodString>;
98
+ providerKey: z.ZodOptional<z.ZodString>;
99
+ connectedAccountId: z.ZodOptional<z.ZodString>;
100
+ resourceType: z.ZodOptional<z.ZodString>;
101
+ resourceId: z.ZodOptional<z.ZodString>;
102
+ toolExecutionId: z.ZodOptional<z.ZodString>;
103
+ applicationKey: z.ZodOptional<z.ZodString>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ kind: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution";
106
+ providerKey?: string | undefined;
107
+ externalId?: string | undefined;
108
+ connectedAccountId?: string | undefined;
109
+ resourceType?: string | undefined;
110
+ resourceId?: string | undefined;
111
+ toolExecutionId?: string | undefined;
112
+ applicationKey?: string | undefined;
113
+ }, {
114
+ providerKey?: string | undefined;
115
+ externalId?: string | undefined;
116
+ kind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
117
+ connectedAccountId?: string | undefined;
118
+ resourceType?: string | undefined;
119
+ resourceId?: string | undefined;
120
+ toolExecutionId?: string | undefined;
121
+ applicationKey?: string | undefined;
122
+ }>>;
123
+ idempotencyKey: z.ZodOptional<z.ZodString>;
124
+ policyKey: z.ZodOptional<z.ZodString>;
125
+ consent: z.ZodOptional<z.ZodObject<{
126
+ status: z.ZodLiteral<"granted">;
127
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
128
+ recordedAt: z.ZodString;
129
+ reference: z.ZodOptional<z.ZodString>;
130
+ }, "strict", z.ZodTypeAny, {
131
+ status: "granted";
132
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
133
+ recordedAt: string;
134
+ reference?: string | undefined;
135
+ }, {
136
+ status: "granted";
137
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
138
+ recordedAt: string;
139
+ reference?: string | undefined;
140
+ }>>;
141
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ source: {
144
+ kind: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution";
145
+ providerKey?: string | undefined;
146
+ externalId?: string | undefined;
147
+ connectedAccountId?: string | undefined;
148
+ resourceType?: string | undefined;
149
+ resourceId?: string | undefined;
150
+ toolExecutionId?: string | undefined;
151
+ applicationKey?: string | undefined;
152
+ };
153
+ metadata: Record<string, unknown>;
154
+ content: string;
155
+ mode: "exact" | "extract";
156
+ kind: "fact" | "episode" | "profile_item" | "block";
157
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
158
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
159
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
160
+ topicTags: string[];
161
+ idempotencyKey?: string | undefined;
162
+ tenantId?: string | undefined;
163
+ sessionId?: string | undefined;
164
+ externalTenantId?: string | undefined;
165
+ subjects?: {
166
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
167
+ externalId: string;
168
+ }[] | undefined;
169
+ title?: string | undefined;
170
+ language?: string | undefined;
171
+ policyKey?: string | undefined;
172
+ consent?: {
173
+ status: "granted";
174
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
175
+ recordedAt: string;
176
+ reference?: string | undefined;
177
+ } | undefined;
178
+ occurredAt?: string | undefined;
179
+ validFrom?: string | undefined;
180
+ validTo?: string | undefined;
181
+ }, {
182
+ content: string;
183
+ source?: {
184
+ providerKey?: string | undefined;
185
+ externalId?: string | undefined;
186
+ kind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
187
+ connectedAccountId?: string | undefined;
188
+ resourceType?: string | undefined;
189
+ resourceId?: string | undefined;
190
+ toolExecutionId?: string | undefined;
191
+ applicationKey?: string | undefined;
192
+ } | undefined;
193
+ metadata?: Record<string, unknown> | undefined;
194
+ idempotencyKey?: string | undefined;
195
+ tenantId?: string | undefined;
196
+ mode?: "exact" | "extract" | undefined;
197
+ sessionId?: string | undefined;
198
+ externalTenantId?: string | undefined;
199
+ subjects?: {
200
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
201
+ externalId: string;
202
+ }[] | undefined;
203
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
204
+ title?: string | undefined;
205
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
206
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
207
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
208
+ topicTags?: string[] | undefined;
209
+ language?: string | undefined;
210
+ policyKey?: string | undefined;
211
+ consent?: {
212
+ status: "granted";
213
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
214
+ recordedAt: string;
215
+ reference?: string | undefined;
216
+ } | undefined;
217
+ occurredAt?: string | undefined;
218
+ validFrom?: string | undefined;
219
+ validTo?: string | undefined;
220
+ }>, {
221
+ source: {
222
+ kind: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution";
223
+ providerKey?: string | undefined;
224
+ externalId?: string | undefined;
225
+ connectedAccountId?: string | undefined;
226
+ resourceType?: string | undefined;
227
+ resourceId?: string | undefined;
228
+ toolExecutionId?: string | undefined;
229
+ applicationKey?: string | undefined;
230
+ };
231
+ metadata: Record<string, unknown>;
232
+ content: string;
233
+ mode: "exact" | "extract";
234
+ kind: "fact" | "episode" | "profile_item" | "block";
235
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
236
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
237
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
238
+ topicTags: string[];
239
+ idempotencyKey?: string | undefined;
240
+ tenantId?: string | undefined;
241
+ sessionId?: string | undefined;
242
+ externalTenantId?: string | undefined;
243
+ subjects?: {
244
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
245
+ externalId: string;
246
+ }[] | undefined;
247
+ title?: string | undefined;
248
+ language?: string | undefined;
249
+ policyKey?: string | undefined;
250
+ consent?: {
251
+ status: "granted";
252
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
253
+ recordedAt: string;
254
+ reference?: string | undefined;
255
+ } | undefined;
256
+ occurredAt?: string | undefined;
257
+ validFrom?: string | undefined;
258
+ validTo?: string | undefined;
259
+ }, {
260
+ content: string;
261
+ source?: {
262
+ providerKey?: string | undefined;
263
+ externalId?: string | undefined;
264
+ kind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
265
+ connectedAccountId?: string | undefined;
266
+ resourceType?: string | undefined;
267
+ resourceId?: string | undefined;
268
+ toolExecutionId?: string | undefined;
269
+ applicationKey?: string | undefined;
270
+ } | undefined;
271
+ metadata?: Record<string, unknown> | undefined;
272
+ idempotencyKey?: string | undefined;
273
+ tenantId?: string | undefined;
274
+ mode?: "exact" | "extract" | undefined;
275
+ sessionId?: string | undefined;
276
+ externalTenantId?: string | undefined;
277
+ subjects?: {
278
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
279
+ externalId: string;
280
+ }[] | undefined;
281
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
282
+ title?: string | undefined;
283
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
284
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
285
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
286
+ topicTags?: string[] | undefined;
287
+ language?: string | undefined;
288
+ policyKey?: string | undefined;
289
+ consent?: {
290
+ status: "granted";
291
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
292
+ recordedAt: string;
293
+ reference?: string | undefined;
294
+ } | undefined;
295
+ occurredAt?: string | undefined;
296
+ validFrom?: string | undefined;
297
+ validTo?: string | undefined;
298
+ }>;
299
+ export type MemoryIngestInput = z.input<typeof memoryIngestInputSchema>;
300
+ export type ParsedMemoryIngestInput = z.output<typeof memoryIngestInputSchema>;
301
+ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
302
+ occurredAt: z.ZodOptional<z.ZodString>;
303
+ validFrom: z.ZodOptional<z.ZodString>;
304
+ validTo: z.ZodOptional<z.ZodString>;
305
+ tenantId: z.ZodOptional<z.ZodString>;
306
+ externalTenantId: z.ZodOptional<z.ZodString>;
307
+ sessionId: z.ZodOptional<z.ZodString>;
308
+ subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
309
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
310
+ externalId: z.ZodString;
311
+ }, "strict", z.ZodTypeAny, {
312
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
313
+ externalId: string;
314
+ }, {
315
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
316
+ externalId: string;
317
+ }>, "many">>;
318
+ mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
319
+ kind: z.ZodDefault<z.ZodEnum<["fact", "episode", "profile_item", "block"]>>;
320
+ input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
321
+ type: z.ZodLiteral<"file">;
322
+ filename: z.ZodString;
323
+ mediaType: z.ZodString;
324
+ dataBase64: z.ZodString;
325
+ }, "strict", z.ZodTypeAny, {
326
+ type: "file";
327
+ filename: string;
328
+ mediaType: string;
329
+ dataBase64: string;
330
+ }, {
331
+ type: "file";
332
+ filename: string;
333
+ mediaType: string;
334
+ dataBase64: string;
335
+ }>, z.ZodObject<{
336
+ type: z.ZodLiteral<"url">;
337
+ url: z.ZodString;
338
+ }, "strict", z.ZodTypeAny, {
339
+ type: "url";
340
+ url: string;
341
+ }, {
342
+ type: "url";
343
+ url: string;
344
+ }>]>;
345
+ title: z.ZodOptional<z.ZodString>;
346
+ memoryType: z.ZodDefault<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>>;
347
+ sensitivityClass: z.ZodDefault<z.ZodEnum<["standard", "personal", "restricted", "secret"]>>;
348
+ restrictedDataClasses: z.ZodDefault<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
349
+ topicTags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
350
+ language: z.ZodOptional<z.ZodString>;
351
+ idempotencyKey: z.ZodOptional<z.ZodString>;
352
+ policyKey: z.ZodOptional<z.ZodString>;
353
+ consent: z.ZodOptional<z.ZodObject<{
354
+ status: z.ZodLiteral<"granted">;
355
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
356
+ recordedAt: z.ZodString;
357
+ reference: z.ZodOptional<z.ZodString>;
358
+ }, "strict", z.ZodTypeAny, {
359
+ status: "granted";
360
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
361
+ recordedAt: string;
362
+ reference?: string | undefined;
363
+ }, {
364
+ status: "granted";
365
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
366
+ recordedAt: string;
367
+ reference?: string | undefined;
368
+ }>>;
369
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ metadata: Record<string, unknown>;
372
+ input: {
373
+ type: "file";
374
+ filename: string;
375
+ mediaType: string;
376
+ dataBase64: string;
377
+ } | {
378
+ type: "url";
379
+ url: string;
380
+ };
381
+ mode: "exact" | "extract";
382
+ kind: "fact" | "episode" | "profile_item" | "block";
383
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
384
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
385
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
386
+ topicTags: string[];
387
+ idempotencyKey?: string | undefined;
388
+ tenantId?: string | undefined;
389
+ sessionId?: string | undefined;
390
+ externalTenantId?: string | undefined;
391
+ subjects?: {
392
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
393
+ externalId: string;
394
+ }[] | undefined;
395
+ title?: string | undefined;
396
+ language?: string | undefined;
397
+ policyKey?: string | undefined;
398
+ consent?: {
399
+ status: "granted";
400
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
401
+ recordedAt: string;
402
+ reference?: string | undefined;
403
+ } | undefined;
404
+ occurredAt?: string | undefined;
405
+ validFrom?: string | undefined;
406
+ validTo?: string | undefined;
407
+ }, {
408
+ input: {
409
+ type: "file";
410
+ filename: string;
411
+ mediaType: string;
412
+ dataBase64: string;
413
+ } | {
414
+ type: "url";
415
+ url: string;
416
+ };
417
+ metadata?: Record<string, unknown> | undefined;
418
+ idempotencyKey?: string | undefined;
419
+ tenantId?: string | undefined;
420
+ mode?: "exact" | "extract" | undefined;
421
+ sessionId?: string | undefined;
422
+ externalTenantId?: string | undefined;
423
+ subjects?: {
424
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
425
+ externalId: string;
426
+ }[] | undefined;
427
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
428
+ title?: string | undefined;
429
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
430
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
431
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
432
+ topicTags?: string[] | undefined;
433
+ language?: string | undefined;
434
+ policyKey?: string | undefined;
435
+ consent?: {
436
+ status: "granted";
437
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
438
+ recordedAt: string;
439
+ reference?: string | undefined;
440
+ } | undefined;
441
+ occurredAt?: string | undefined;
442
+ validFrom?: string | undefined;
443
+ validTo?: string | undefined;
444
+ }>, {
445
+ metadata: Record<string, unknown>;
446
+ input: {
447
+ type: "file";
448
+ filename: string;
449
+ mediaType: string;
450
+ dataBase64: string;
451
+ } | {
452
+ type: "url";
453
+ url: string;
454
+ };
455
+ mode: "exact" | "extract";
456
+ kind: "fact" | "episode" | "profile_item" | "block";
457
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
458
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
459
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
460
+ topicTags: string[];
461
+ idempotencyKey?: string | undefined;
462
+ tenantId?: string | undefined;
463
+ sessionId?: string | undefined;
464
+ externalTenantId?: string | undefined;
465
+ subjects?: {
466
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
467
+ externalId: string;
468
+ }[] | undefined;
469
+ title?: string | undefined;
470
+ language?: string | undefined;
471
+ policyKey?: string | undefined;
472
+ consent?: {
473
+ status: "granted";
474
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
475
+ recordedAt: string;
476
+ reference?: string | undefined;
477
+ } | undefined;
478
+ occurredAt?: string | undefined;
479
+ validFrom?: string | undefined;
480
+ validTo?: string | undefined;
481
+ }, {
482
+ input: {
483
+ type: "file";
484
+ filename: string;
485
+ mediaType: string;
486
+ dataBase64: string;
487
+ } | {
488
+ type: "url";
489
+ url: string;
490
+ };
491
+ metadata?: Record<string, unknown> | undefined;
492
+ idempotencyKey?: string | undefined;
493
+ tenantId?: string | undefined;
494
+ mode?: "exact" | "extract" | undefined;
495
+ sessionId?: string | undefined;
496
+ externalTenantId?: string | undefined;
497
+ subjects?: {
498
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
499
+ externalId: string;
500
+ }[] | undefined;
501
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
502
+ title?: string | undefined;
503
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
504
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
505
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
506
+ topicTags?: string[] | undefined;
507
+ language?: string | undefined;
508
+ policyKey?: string | undefined;
509
+ consent?: {
510
+ status: "granted";
511
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
512
+ recordedAt: string;
513
+ reference?: string | undefined;
514
+ } | undefined;
515
+ occurredAt?: string | undefined;
516
+ validFrom?: string | undefined;
517
+ validTo?: string | undefined;
518
+ }>;
519
+ export type MemoryRichIngestInput = z.input<typeof memoryRichIngestInputSchema>;
520
+ export type ParsedMemoryRichIngestInput = z.output<typeof memoryRichIngestInputSchema>;
521
+ export interface MemoryInternalSourceReference {
522
+ platformEventId: string;
523
+ provenanceRef?: string | undefined;
524
+ sourceFamilyKey?: string | undefined;
525
+ }
526
+ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
527
+ tenantId: z.ZodOptional<z.ZodString>;
528
+ externalTenantId: z.ZodOptional<z.ZodString>;
529
+ sessionId: z.ZodOptional<z.ZodString>;
530
+ subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
531
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
532
+ externalId: z.ZodString;
533
+ }, "strict", z.ZodTypeAny, {
534
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
535
+ externalId: string;
536
+ }, {
537
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
538
+ externalId: string;
539
+ }>, "many">>;
540
+ query: z.ZodString;
541
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
542
+ memoryTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
543
+ providerKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
+ sourceFamilyKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
545
+ connectedAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
+ resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
+ resourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
548
+ states: z.ZodDefault<z.ZodArray<z.ZodEnum<["current", "conflicted"]>, "many">>;
549
+ validAt: z.ZodOptional<z.ZodString>;
550
+ recordedAt: z.ZodOptional<z.ZodString>;
551
+ includeGraph: z.ZodDefault<z.ZodBoolean>;
552
+ includeSourceRefs: z.ZodDefault<z.ZodBoolean>;
553
+ limit: z.ZodDefault<z.ZodNumber>;
554
+ semanticCandidateLimit: z.ZodOptional<z.ZodNumber>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ limit: number;
557
+ query: string;
558
+ states: ("current" | "conflicted")[];
559
+ includeGraph: boolean;
560
+ includeSourceRefs: boolean;
561
+ tenantId?: string | undefined;
562
+ sessionId?: string | undefined;
563
+ recordedAt?: string | undefined;
564
+ externalTenantId?: string | undefined;
565
+ subjects?: {
566
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
567
+ externalId: string;
568
+ }[] | undefined;
569
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
570
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
571
+ providerKeys?: string[] | undefined;
572
+ sourceFamilyKeys?: string[] | undefined;
573
+ connectedAccountIds?: string[] | undefined;
574
+ resourceTypes?: string[] | undefined;
575
+ resourceIds?: string[] | undefined;
576
+ validAt?: string | undefined;
577
+ semanticCandidateLimit?: number | undefined;
578
+ }, {
579
+ query: string;
580
+ limit?: number | undefined;
581
+ tenantId?: string | undefined;
582
+ sessionId?: string | undefined;
583
+ recordedAt?: string | undefined;
584
+ externalTenantId?: string | undefined;
585
+ subjects?: {
586
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
587
+ externalId: string;
588
+ }[] | undefined;
589
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
590
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
591
+ providerKeys?: string[] | undefined;
592
+ sourceFamilyKeys?: string[] | undefined;
593
+ connectedAccountIds?: string[] | undefined;
594
+ resourceTypes?: string[] | undefined;
595
+ resourceIds?: string[] | undefined;
596
+ states?: ("current" | "conflicted")[] | undefined;
597
+ validAt?: string | undefined;
598
+ includeGraph?: boolean | undefined;
599
+ includeSourceRefs?: boolean | undefined;
600
+ semanticCandidateLimit?: number | undefined;
601
+ }>, {
602
+ limit: number;
603
+ query: string;
604
+ states: ("current" | "conflicted")[];
605
+ includeGraph: boolean;
606
+ includeSourceRefs: boolean;
607
+ tenantId?: string | undefined;
608
+ sessionId?: string | undefined;
609
+ recordedAt?: string | undefined;
610
+ externalTenantId?: string | undefined;
611
+ subjects?: {
612
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
613
+ externalId: string;
614
+ }[] | undefined;
615
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
616
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
617
+ providerKeys?: string[] | undefined;
618
+ sourceFamilyKeys?: string[] | undefined;
619
+ connectedAccountIds?: string[] | undefined;
620
+ resourceTypes?: string[] | undefined;
621
+ resourceIds?: string[] | undefined;
622
+ validAt?: string | undefined;
623
+ semanticCandidateLimit?: number | undefined;
624
+ }, {
625
+ query: string;
626
+ limit?: number | undefined;
627
+ tenantId?: string | undefined;
628
+ sessionId?: string | undefined;
629
+ recordedAt?: string | undefined;
630
+ externalTenantId?: string | undefined;
631
+ subjects?: {
632
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
633
+ externalId: string;
634
+ }[] | undefined;
635
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
636
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
637
+ providerKeys?: string[] | undefined;
638
+ sourceFamilyKeys?: string[] | undefined;
639
+ connectedAccountIds?: string[] | undefined;
640
+ resourceTypes?: string[] | undefined;
641
+ resourceIds?: string[] | undefined;
642
+ states?: ("current" | "conflicted")[] | undefined;
643
+ validAt?: string | undefined;
644
+ includeGraph?: boolean | undefined;
645
+ includeSourceRefs?: boolean | undefined;
646
+ semanticCandidateLimit?: number | undefined;
647
+ }>;
648
+ export type MemorySearchInput = z.input<typeof memorySearchInputSchema>;
649
+ export type ParsedMemorySearchInput = z.output<typeof memorySearchInputSchema>;
650
+ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
651
+ tenantId: z.ZodOptional<z.ZodString>;
652
+ externalTenantId: z.ZodOptional<z.ZodString>;
653
+ sessionId: z.ZodOptional<z.ZodString>;
654
+ subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
655
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
656
+ externalId: z.ZodString;
657
+ }, "strict", z.ZodTypeAny, {
658
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
659
+ externalId: string;
660
+ }, {
661
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
662
+ externalId: string;
663
+ }>, "many">>;
664
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
665
+ memoryTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
666
+ providerKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
667
+ sourceFamilyKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
668
+ connectedAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
669
+ resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
670
+ resourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
671
+ states: z.ZodDefault<z.ZodArray<z.ZodEnum<["current", "conflicted"]>, "many">>;
672
+ validAt: z.ZodOptional<z.ZodString>;
673
+ recordedAt: z.ZodOptional<z.ZodString>;
674
+ includeGraph: z.ZodDefault<z.ZodBoolean>;
675
+ includeSourceRefs: z.ZodDefault<z.ZodBoolean>;
676
+ limit: z.ZodDefault<z.ZodNumber>;
677
+ semanticCandidateLimit: z.ZodOptional<z.ZodNumber>;
678
+ } & {
679
+ query: z.ZodString;
680
+ tokenBudget: z.ZodOptional<z.ZodNumber>;
681
+ includeProfile: z.ZodOptional<z.ZodBoolean>;
682
+ includeBlocks: z.ZodOptional<z.ZodBoolean>;
683
+ includeRecentEpisodes: z.ZodDefault<z.ZodBoolean>;
684
+ promptFormat: z.ZodDefault<z.ZodEnum<["text", "markdown"]>>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ limit: number;
687
+ query: string;
688
+ states: ("current" | "conflicted")[];
689
+ includeGraph: boolean;
690
+ includeSourceRefs: boolean;
691
+ includeRecentEpisodes: boolean;
692
+ promptFormat: "text" | "markdown";
693
+ tenantId?: string | undefined;
694
+ sessionId?: string | undefined;
695
+ recordedAt?: string | undefined;
696
+ externalTenantId?: string | undefined;
697
+ subjects?: {
698
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
699
+ externalId: string;
700
+ }[] | undefined;
701
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
702
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
703
+ providerKeys?: string[] | undefined;
704
+ sourceFamilyKeys?: string[] | undefined;
705
+ connectedAccountIds?: string[] | undefined;
706
+ resourceTypes?: string[] | undefined;
707
+ resourceIds?: string[] | undefined;
708
+ validAt?: string | undefined;
709
+ semanticCandidateLimit?: number | undefined;
710
+ tokenBudget?: number | undefined;
711
+ includeProfile?: boolean | undefined;
712
+ includeBlocks?: boolean | undefined;
713
+ }, {
714
+ query: string;
715
+ limit?: number | undefined;
716
+ tenantId?: string | undefined;
717
+ sessionId?: string | undefined;
718
+ recordedAt?: string | undefined;
719
+ externalTenantId?: string | undefined;
720
+ subjects?: {
721
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
722
+ externalId: string;
723
+ }[] | undefined;
724
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
725
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
726
+ providerKeys?: string[] | undefined;
727
+ sourceFamilyKeys?: string[] | undefined;
728
+ connectedAccountIds?: string[] | undefined;
729
+ resourceTypes?: string[] | undefined;
730
+ resourceIds?: string[] | undefined;
731
+ states?: ("current" | "conflicted")[] | undefined;
732
+ validAt?: string | undefined;
733
+ includeGraph?: boolean | undefined;
734
+ includeSourceRefs?: boolean | undefined;
735
+ semanticCandidateLimit?: number | undefined;
736
+ tokenBudget?: number | undefined;
737
+ includeProfile?: boolean | undefined;
738
+ includeBlocks?: boolean | undefined;
739
+ includeRecentEpisodes?: boolean | undefined;
740
+ promptFormat?: "text" | "markdown" | undefined;
741
+ }>, {
742
+ limit: number;
743
+ query: string;
744
+ states: ("current" | "conflicted")[];
745
+ includeGraph: boolean;
746
+ includeSourceRefs: boolean;
747
+ includeRecentEpisodes: boolean;
748
+ promptFormat: "text" | "markdown";
749
+ tenantId?: string | undefined;
750
+ sessionId?: string | undefined;
751
+ recordedAt?: string | undefined;
752
+ externalTenantId?: string | undefined;
753
+ subjects?: {
754
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
755
+ externalId: string;
756
+ }[] | undefined;
757
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
758
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
759
+ providerKeys?: string[] | undefined;
760
+ sourceFamilyKeys?: string[] | undefined;
761
+ connectedAccountIds?: string[] | undefined;
762
+ resourceTypes?: string[] | undefined;
763
+ resourceIds?: string[] | undefined;
764
+ validAt?: string | undefined;
765
+ semanticCandidateLimit?: number | undefined;
766
+ tokenBudget?: number | undefined;
767
+ includeProfile?: boolean | undefined;
768
+ includeBlocks?: boolean | undefined;
769
+ }, {
770
+ query: string;
771
+ limit?: number | undefined;
772
+ tenantId?: string | undefined;
773
+ sessionId?: string | undefined;
774
+ recordedAt?: string | undefined;
775
+ externalTenantId?: string | undefined;
776
+ subjects?: {
777
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
778
+ externalId: string;
779
+ }[] | undefined;
780
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
781
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
782
+ providerKeys?: string[] | undefined;
783
+ sourceFamilyKeys?: string[] | undefined;
784
+ connectedAccountIds?: string[] | undefined;
785
+ resourceTypes?: string[] | undefined;
786
+ resourceIds?: string[] | undefined;
787
+ states?: ("current" | "conflicted")[] | undefined;
788
+ validAt?: string | undefined;
789
+ includeGraph?: boolean | undefined;
790
+ includeSourceRefs?: boolean | undefined;
791
+ semanticCandidateLimit?: number | undefined;
792
+ tokenBudget?: number | undefined;
793
+ includeProfile?: boolean | undefined;
794
+ includeBlocks?: boolean | undefined;
795
+ includeRecentEpisodes?: boolean | undefined;
796
+ promptFormat?: "text" | "markdown" | undefined;
797
+ }>;
798
+ export type MemoryContextInput = z.input<typeof memoryContextInputSchema>;
799
+ export type ParsedMemoryContextInput = z.output<typeof memoryContextInputSchema>;
800
+ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
801
+ state: z.ZodOptional<z.ZodEnum<["current", "conflicted"]>>;
802
+ tenantId: z.ZodOptional<z.ZodString>;
803
+ externalTenantId: z.ZodOptional<z.ZodString>;
804
+ sessionId: z.ZodOptional<z.ZodString>;
805
+ subjectType: z.ZodOptional<z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>>;
806
+ externalSubjectId: z.ZodOptional<z.ZodString>;
807
+ kind: z.ZodOptional<z.ZodEnum<["fact", "episode", "profile_item", "block"]>>;
808
+ sourceKind: z.ZodOptional<z.ZodEnum<["direct", "conversation", "document", "provider", "tool_execution", "artifact"]>>;
809
+ cursor: z.ZodOptional<z.ZodString>;
810
+ limit: z.ZodDefault<z.ZodNumber>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ limit: number;
813
+ cursor?: string | undefined;
814
+ tenantId?: string | undefined;
815
+ sessionId?: string | undefined;
816
+ externalTenantId?: string | undefined;
817
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
818
+ state?: "current" | "conflicted" | undefined;
819
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
820
+ externalSubjectId?: string | undefined;
821
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
822
+ }, {
823
+ cursor?: string | undefined;
824
+ limit?: number | undefined;
825
+ tenantId?: string | undefined;
826
+ sessionId?: string | undefined;
827
+ externalTenantId?: string | undefined;
828
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
829
+ state?: "current" | "conflicted" | undefined;
830
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
831
+ externalSubjectId?: string | undefined;
832
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
833
+ }>, {
834
+ limit: number;
835
+ cursor?: string | undefined;
836
+ tenantId?: string | undefined;
837
+ sessionId?: string | undefined;
838
+ externalTenantId?: string | undefined;
839
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
840
+ state?: "current" | "conflicted" | undefined;
841
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
842
+ externalSubjectId?: string | undefined;
843
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
844
+ }, {
845
+ cursor?: string | undefined;
846
+ limit?: number | undefined;
847
+ tenantId?: string | undefined;
848
+ sessionId?: string | undefined;
849
+ externalTenantId?: string | undefined;
850
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
851
+ state?: "current" | "conflicted" | undefined;
852
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
853
+ externalSubjectId?: string | undefined;
854
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
855
+ }>;
856
+ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
857
+ readonly tenantId: z.ZodOptional<z.ZodString>;
858
+ readonly externalTenantId: z.ZodOptional<z.ZodString>;
859
+ readonly sessionId: z.ZodOptional<z.ZodString>;
860
+ readonly subjectType: z.ZodOptional<z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>>;
861
+ readonly externalSubjectId: z.ZodOptional<z.ZodString>;
862
+ readonly kind: z.ZodOptional<z.ZodEnum<["fact", "episode", "profile_item", "block"]>>;
863
+ readonly sourceKind: z.ZodOptional<z.ZodEnum<["direct", "conversation", "document", "provider", "tool_execution", "artifact"]>>;
864
+ readonly cursor: z.ZodOptional<z.ZodString>;
865
+ readonly limit: z.ZodDefault<z.ZodNumber>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ limit: number;
868
+ cursor?: string | undefined;
869
+ tenantId?: string | undefined;
870
+ sessionId?: string | undefined;
871
+ externalTenantId?: string | undefined;
872
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
873
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
874
+ externalSubjectId?: string | undefined;
875
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
876
+ }, {
877
+ cursor?: string | undefined;
878
+ limit?: number | undefined;
879
+ tenantId?: string | undefined;
880
+ sessionId?: string | undefined;
881
+ externalTenantId?: string | undefined;
882
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
883
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
884
+ externalSubjectId?: string | undefined;
885
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
886
+ }>, {
887
+ limit: number;
888
+ cursor?: string | undefined;
889
+ tenantId?: string | undefined;
890
+ sessionId?: string | undefined;
891
+ externalTenantId?: string | undefined;
892
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
893
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
894
+ externalSubjectId?: string | undefined;
895
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
896
+ }, {
897
+ cursor?: string | undefined;
898
+ limit?: number | undefined;
899
+ tenantId?: string | undefined;
900
+ sessionId?: string | undefined;
901
+ externalTenantId?: string | undefined;
902
+ kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
903
+ subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
904
+ externalSubjectId?: string | undefined;
905
+ sourceKind?: "artifact" | "direct" | "conversation" | "document" | "provider" | "tool_execution" | undefined;
906
+ }>;
907
+ export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
908
+ content: z.ZodOptional<z.ZodString>;
909
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
+ memoryType: z.ZodOptional<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>>;
911
+ sensitivityClass: z.ZodOptional<z.ZodEnum<["standard", "personal", "restricted", "secret"]>>;
912
+ restrictedDataClasses: z.ZodOptional<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
913
+ topicTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
914
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
917
+ state: z.ZodOptional<z.ZodEnum<["current", "conflicted"]>>;
918
+ reason: z.ZodOptional<z.ZodString>;
919
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ metadata?: Record<string, unknown> | undefined;
922
+ content?: string | undefined;
923
+ reason?: string | undefined;
924
+ title?: string | null | undefined;
925
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
926
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
927
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
928
+ topicTags?: string[] | undefined;
929
+ language?: string | null | undefined;
930
+ validFrom?: string | null | undefined;
931
+ validTo?: string | null | undefined;
932
+ state?: "current" | "conflicted" | undefined;
933
+ }, {
934
+ metadata?: Record<string, unknown> | undefined;
935
+ content?: string | undefined;
936
+ reason?: string | undefined;
937
+ title?: string | null | undefined;
938
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
939
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
940
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
941
+ topicTags?: string[] | undefined;
942
+ language?: string | null | undefined;
943
+ validFrom?: string | null | undefined;
944
+ validTo?: string | null | undefined;
945
+ state?: "current" | "conflicted" | undefined;
946
+ }>, {
947
+ metadata?: Record<string, unknown> | undefined;
948
+ content?: string | undefined;
949
+ reason?: string | undefined;
950
+ title?: string | null | undefined;
951
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
952
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
953
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
954
+ topicTags?: string[] | undefined;
955
+ language?: string | null | undefined;
956
+ validFrom?: string | null | undefined;
957
+ validTo?: string | null | undefined;
958
+ state?: "current" | "conflicted" | undefined;
959
+ }, {
960
+ metadata?: Record<string, unknown> | undefined;
961
+ content?: string | undefined;
962
+ reason?: string | undefined;
963
+ title?: string | null | undefined;
964
+ memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
965
+ sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
966
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
967
+ topicTags?: string[] | undefined;
968
+ language?: string | null | undefined;
969
+ validFrom?: string | null | undefined;
970
+ validTo?: string | null | undefined;
971
+ state?: "current" | "conflicted" | undefined;
972
+ }>;
973
+ export type MemoryRecordUpdateInput = z.infer<typeof memoryRecordUpdateInputSchema>;
974
+ export declare const memoryForgetInputSchema: z.ZodObject<{
975
+ reason: z.ZodOptional<z.ZodString>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ reason?: string | undefined;
978
+ }, {
979
+ reason?: string | undefined;
980
+ }>;
981
+ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
982
+ tenantId: z.ZodOptional<z.ZodString>;
983
+ externalTenantId: z.ZodOptional<z.ZodString>;
984
+ sessionId: z.ZodOptional<z.ZodString>;
985
+ subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
987
+ externalId: z.ZodString;
988
+ }, "strict", z.ZodTypeAny, {
989
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
990
+ externalId: string;
991
+ }, {
992
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
993
+ externalId: string;
994
+ }>, "many">>;
995
+ title: z.ZodString;
996
+ content: z.ZodString;
997
+ access: z.ZodDefault<z.ZodEnum<["read_only", "editable"]>>;
998
+ priority: z.ZodDefault<z.ZodNumber>;
999
+ required: z.ZodDefault<z.ZodBoolean>;
1000
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ required: boolean;
1003
+ metadata: Record<string, unknown>;
1004
+ content: string;
1005
+ title: string;
1006
+ access: "read_only" | "editable";
1007
+ priority: number;
1008
+ tenantId?: string | undefined;
1009
+ sessionId?: string | undefined;
1010
+ externalTenantId?: string | undefined;
1011
+ subjects?: {
1012
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1013
+ externalId: string;
1014
+ }[] | undefined;
1015
+ }, {
1016
+ content: string;
1017
+ title: string;
1018
+ required?: boolean | undefined;
1019
+ metadata?: Record<string, unknown> | undefined;
1020
+ tenantId?: string | undefined;
1021
+ sessionId?: string | undefined;
1022
+ externalTenantId?: string | undefined;
1023
+ subjects?: {
1024
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1025
+ externalId: string;
1026
+ }[] | undefined;
1027
+ access?: "read_only" | "editable" | undefined;
1028
+ priority?: number | undefined;
1029
+ }>, {
1030
+ required: boolean;
1031
+ metadata: Record<string, unknown>;
1032
+ content: string;
1033
+ title: string;
1034
+ access: "read_only" | "editable";
1035
+ priority: number;
1036
+ tenantId?: string | undefined;
1037
+ sessionId?: string | undefined;
1038
+ externalTenantId?: string | undefined;
1039
+ subjects?: {
1040
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1041
+ externalId: string;
1042
+ }[] | undefined;
1043
+ }, {
1044
+ content: string;
1045
+ title: string;
1046
+ required?: boolean | undefined;
1047
+ metadata?: Record<string, unknown> | undefined;
1048
+ tenantId?: string | undefined;
1049
+ sessionId?: string | undefined;
1050
+ externalTenantId?: string | undefined;
1051
+ subjects?: {
1052
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1053
+ externalId: string;
1054
+ }[] | undefined;
1055
+ access?: "read_only" | "editable" | undefined;
1056
+ priority?: number | undefined;
1057
+ }>;
1058
+ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1059
+ tenantId: z.ZodOptional<z.ZodString>;
1060
+ externalTenantId: z.ZodOptional<z.ZodString>;
1061
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1062
+ kind: z.ZodLiteral<"conversation">;
1063
+ applicationKey: z.ZodString;
1064
+ }, "strict", z.ZodTypeAny, {
1065
+ kind: "conversation";
1066
+ applicationKey: string;
1067
+ }, {
1068
+ kind: "conversation";
1069
+ applicationKey: string;
1070
+ }>, z.ZodObject<{
1071
+ kind: z.ZodLiteral<"artifact">;
1072
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1073
+ }, "strict", z.ZodTypeAny, {
1074
+ kind: "artifact";
1075
+ artifactIds: string[];
1076
+ }, {
1077
+ kind: "artifact";
1078
+ artifactIds?: string[] | undefined;
1079
+ }>]>;
1080
+ targets: z.ZodArray<z.ZodObject<{
1081
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1082
+ externalId: z.ZodString;
1083
+ }, "strict", z.ZodTypeAny, {
1084
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1085
+ externalId: string;
1086
+ }, {
1087
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1088
+ externalId: string;
1089
+ }>, "many">;
1090
+ policyKey: z.ZodDefault<z.ZodString>;
1091
+ consent: z.ZodOptional<z.ZodObject<{
1092
+ status: z.ZodLiteral<"granted">;
1093
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
1094
+ recordedAt: z.ZodString;
1095
+ reference: z.ZodOptional<z.ZodString>;
1096
+ }, "strict", z.ZodTypeAny, {
1097
+ status: "granted";
1098
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1099
+ recordedAt: string;
1100
+ reference?: string | undefined;
1101
+ }, {
1102
+ status: "granted";
1103
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1104
+ recordedAt: string;
1105
+ reference?: string | undefined;
1106
+ }>>;
1107
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ source: {
1110
+ kind: "conversation";
1111
+ applicationKey: string;
1112
+ } | {
1113
+ kind: "artifact";
1114
+ artifactIds: string[];
1115
+ };
1116
+ metadata: Record<string, unknown>;
1117
+ policyKey: string;
1118
+ targets: {
1119
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1120
+ externalId: string;
1121
+ }[];
1122
+ tenantId?: string | undefined;
1123
+ externalTenantId?: string | undefined;
1124
+ consent?: {
1125
+ status: "granted";
1126
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1127
+ recordedAt: string;
1128
+ reference?: string | undefined;
1129
+ } | undefined;
1130
+ }, {
1131
+ source: {
1132
+ kind: "conversation";
1133
+ applicationKey: string;
1134
+ } | {
1135
+ kind: "artifact";
1136
+ artifactIds?: string[] | undefined;
1137
+ };
1138
+ targets: {
1139
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1140
+ externalId: string;
1141
+ }[];
1142
+ metadata?: Record<string, unknown> | undefined;
1143
+ tenantId?: string | undefined;
1144
+ externalTenantId?: string | undefined;
1145
+ policyKey?: string | undefined;
1146
+ consent?: {
1147
+ status: "granted";
1148
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1149
+ recordedAt: string;
1150
+ reference?: string | undefined;
1151
+ } | undefined;
1152
+ }>, {
1153
+ source: {
1154
+ kind: "conversation";
1155
+ applicationKey: string;
1156
+ } | {
1157
+ kind: "artifact";
1158
+ artifactIds: string[];
1159
+ };
1160
+ metadata: Record<string, unknown>;
1161
+ policyKey: string;
1162
+ targets: {
1163
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1164
+ externalId: string;
1165
+ }[];
1166
+ tenantId?: string | undefined;
1167
+ externalTenantId?: string | undefined;
1168
+ consent?: {
1169
+ status: "granted";
1170
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1171
+ recordedAt: string;
1172
+ reference?: string | undefined;
1173
+ } | undefined;
1174
+ }, {
1175
+ source: {
1176
+ kind: "conversation";
1177
+ applicationKey: string;
1178
+ } | {
1179
+ kind: "artifact";
1180
+ artifactIds?: string[] | undefined;
1181
+ };
1182
+ targets: {
1183
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1184
+ externalId: string;
1185
+ }[];
1186
+ metadata?: Record<string, unknown> | undefined;
1187
+ tenantId?: string | undefined;
1188
+ externalTenantId?: string | undefined;
1189
+ policyKey?: string | undefined;
1190
+ consent?: {
1191
+ status: "granted";
1192
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1193
+ recordedAt: string;
1194
+ reference?: string | undefined;
1195
+ } | undefined;
1196
+ }>;
1197
+ export type MemorySourceBindingInput = z.input<typeof memorySourceBindingInputSchema>;
1198
+ export declare const memoryConnectedSourceBackfillRangeSchema: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
1199
+ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<{
1200
+ idempotencyKey: z.ZodString;
1201
+ tenantId: z.ZodOptional<z.ZodString>;
1202
+ externalTenantId: z.ZodOptional<z.ZodString>;
1203
+ connectedAccountId: z.ZodString;
1204
+ sourceFamilyKey: z.ZodString;
1205
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1206
+ selectionMode: z.ZodDefault<z.ZodEnum<["selected_resources", "recipe_default"]>>;
1207
+ targets: z.ZodArray<z.ZodObject<{
1208
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1209
+ externalId: z.ZodString;
1210
+ }, "strict", z.ZodTypeAny, {
1211
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1212
+ externalId: string;
1213
+ }, {
1214
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1215
+ externalId: string;
1216
+ }>, "many">;
1217
+ existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
1218
+ maxBackfillItems: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1219
+ deliveryMode: z.ZodDefault<z.ZodEnum<["auto", "webhook", "polling"]>>;
1220
+ rememberInstructions: z.ZodDefault<z.ZodString>;
1221
+ excludeInstructions: z.ZodDefault<z.ZodString>;
1222
+ allowedMemoryTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
1223
+ learnedRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1224
+ sourceRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1225
+ consent: z.ZodOptional<z.ZodObject<{
1226
+ status: z.ZodLiteral<"granted">;
1227
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
1228
+ recordedAt: z.ZodString;
1229
+ reference: z.ZodOptional<z.ZodString>;
1230
+ }, "strict", z.ZodTypeAny, {
1231
+ status: "granted";
1232
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1233
+ recordedAt: string;
1234
+ reference?: string | undefined;
1235
+ }, {
1236
+ status: "granted";
1237
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1238
+ recordedAt: string;
1239
+ reference?: string | undefined;
1240
+ }>>;
1241
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1242
+ }, "strict", z.ZodTypeAny, {
1243
+ metadata: Record<string, unknown>;
1244
+ idempotencyKey: string;
1245
+ connectedAccountId: string;
1246
+ resourceIds: string[];
1247
+ targets: {
1248
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1249
+ externalId: string;
1250
+ }[];
1251
+ sourceFamilyKey: string;
1252
+ selectionMode: "selected_resources" | "recipe_default";
1253
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1254
+ maxBackfillItems: number | null;
1255
+ deliveryMode: "auto" | "webhook" | "polling";
1256
+ rememberInstructions: string;
1257
+ excludeInstructions: string;
1258
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1259
+ learnedRetentionDays: number | null;
1260
+ sourceRetentionDays: number | null;
1261
+ tenantId?: string | undefined;
1262
+ externalTenantId?: string | undefined;
1263
+ consent?: {
1264
+ status: "granted";
1265
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1266
+ recordedAt: string;
1267
+ reference?: string | undefined;
1268
+ } | undefined;
1269
+ }, {
1270
+ idempotencyKey: string;
1271
+ connectedAccountId: string;
1272
+ targets: {
1273
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1274
+ externalId: string;
1275
+ }[];
1276
+ sourceFamilyKey: string;
1277
+ metadata?: Record<string, unknown> | undefined;
1278
+ tenantId?: string | undefined;
1279
+ externalTenantId?: string | undefined;
1280
+ consent?: {
1281
+ status: "granted";
1282
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1283
+ recordedAt: string;
1284
+ reference?: string | undefined;
1285
+ } | undefined;
1286
+ resourceIds?: string[] | undefined;
1287
+ selectionMode?: "selected_resources" | "recipe_default" | undefined;
1288
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
1289
+ maxBackfillItems?: number | null | undefined;
1290
+ deliveryMode?: "auto" | "webhook" | "polling" | undefined;
1291
+ rememberInstructions?: string | undefined;
1292
+ excludeInstructions?: string | undefined;
1293
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1294
+ learnedRetentionDays?: number | null | undefined;
1295
+ sourceRetentionDays?: number | null | undefined;
1296
+ }>, {
1297
+ metadata: Record<string, unknown>;
1298
+ idempotencyKey: string;
1299
+ connectedAccountId: string;
1300
+ resourceIds: string[];
1301
+ targets: {
1302
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1303
+ externalId: string;
1304
+ }[];
1305
+ sourceFamilyKey: string;
1306
+ selectionMode: "selected_resources" | "recipe_default";
1307
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1308
+ maxBackfillItems: number | null;
1309
+ deliveryMode: "auto" | "webhook" | "polling";
1310
+ rememberInstructions: string;
1311
+ excludeInstructions: string;
1312
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1313
+ learnedRetentionDays: number | null;
1314
+ sourceRetentionDays: number | null;
1315
+ tenantId?: string | undefined;
1316
+ externalTenantId?: string | undefined;
1317
+ consent?: {
1318
+ status: "granted";
1319
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1320
+ recordedAt: string;
1321
+ reference?: string | undefined;
1322
+ } | undefined;
1323
+ }, {
1324
+ idempotencyKey: string;
1325
+ connectedAccountId: string;
1326
+ targets: {
1327
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1328
+ externalId: string;
1329
+ }[];
1330
+ sourceFamilyKey: string;
1331
+ metadata?: Record<string, unknown> | undefined;
1332
+ tenantId?: string | undefined;
1333
+ externalTenantId?: string | undefined;
1334
+ consent?: {
1335
+ status: "granted";
1336
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1337
+ recordedAt: string;
1338
+ reference?: string | undefined;
1339
+ } | undefined;
1340
+ resourceIds?: string[] | undefined;
1341
+ selectionMode?: "selected_resources" | "recipe_default" | undefined;
1342
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
1343
+ maxBackfillItems?: number | null | undefined;
1344
+ deliveryMode?: "auto" | "webhook" | "polling" | undefined;
1345
+ rememberInstructions?: string | undefined;
1346
+ excludeInstructions?: string | undefined;
1347
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1348
+ learnedRetentionDays?: number | null | undefined;
1349
+ sourceRetentionDays?: number | null | undefined;
1350
+ }>;
1351
+ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.ZodObject<{
1352
+ tenantId: z.ZodOptional<z.ZodString>;
1353
+ externalTenantId: z.ZodOptional<z.ZodString>;
1354
+ connectedAccountId: z.ZodString;
1355
+ sourceFamilyKey: z.ZodString;
1356
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1357
+ existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
1358
+ }, "strict", z.ZodTypeAny, {
1359
+ connectedAccountId: string;
1360
+ resourceIds: string[];
1361
+ sourceFamilyKey: string;
1362
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1363
+ tenantId?: string | undefined;
1364
+ externalTenantId?: string | undefined;
1365
+ }, {
1366
+ connectedAccountId: string;
1367
+ sourceFamilyKey: string;
1368
+ tenantId?: string | undefined;
1369
+ externalTenantId?: string | undefined;
1370
+ resourceIds?: string[] | undefined;
1371
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
1372
+ }>, {
1373
+ connectedAccountId: string;
1374
+ resourceIds: string[];
1375
+ sourceFamilyKey: string;
1376
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1377
+ tenantId?: string | undefined;
1378
+ externalTenantId?: string | undefined;
1379
+ }, {
1380
+ connectedAccountId: string;
1381
+ sourceFamilyKey: string;
1382
+ tenantId?: string | undefined;
1383
+ externalTenantId?: string | undefined;
1384
+ resourceIds?: string[] | undefined;
1385
+ existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
1386
+ }>;
1387
+ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
1388
+ resourceIds: z.ZodArray<z.ZodString, "many">;
1389
+ targets: z.ZodArray<z.ZodObject<{
1390
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1391
+ externalId: z.ZodString;
1392
+ }, "strict", z.ZodTypeAny, {
1393
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1394
+ externalId: string;
1395
+ }, {
1396
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1397
+ externalId: string;
1398
+ }>, "many">;
1399
+ existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
1400
+ rememberInstructions: z.ZodString;
1401
+ excludeInstructions: z.ZodString;
1402
+ allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
1403
+ learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
1404
+ sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
1405
+ }, "strict", z.ZodTypeAny, {
1406
+ resourceIds: string[];
1407
+ targets: {
1408
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1409
+ externalId: string;
1410
+ }[];
1411
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1412
+ rememberInstructions: string;
1413
+ excludeInstructions: string;
1414
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1415
+ learnedRetentionDays: number | null;
1416
+ sourceRetentionDays: number | null;
1417
+ }, {
1418
+ resourceIds: string[];
1419
+ targets: {
1420
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1421
+ externalId: string;
1422
+ }[];
1423
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1424
+ rememberInstructions: string;
1425
+ excludeInstructions: string;
1426
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1427
+ learnedRetentionDays: number | null;
1428
+ sourceRetentionDays: number | null;
1429
+ }>;
1430
+ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObject<{
1431
+ status: z.ZodOptional<z.ZodEnum<["active", "paused"]>>;
1432
+ connectedSource: z.ZodOptional<z.ZodObject<{
1433
+ resourceIds: z.ZodArray<z.ZodString, "many">;
1434
+ targets: z.ZodArray<z.ZodObject<{
1435
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1436
+ externalId: z.ZodString;
1437
+ }, "strict", z.ZodTypeAny, {
1438
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1439
+ externalId: string;
1440
+ }, {
1441
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1442
+ externalId: string;
1443
+ }>, "many">;
1444
+ existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
1445
+ rememberInstructions: z.ZodString;
1446
+ excludeInstructions: z.ZodString;
1447
+ allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
1448
+ learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
1449
+ sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
1450
+ }, "strict", z.ZodTypeAny, {
1451
+ resourceIds: string[];
1452
+ targets: {
1453
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1454
+ externalId: string;
1455
+ }[];
1456
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1457
+ rememberInstructions: string;
1458
+ excludeInstructions: string;
1459
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1460
+ learnedRetentionDays: number | null;
1461
+ sourceRetentionDays: number | null;
1462
+ }, {
1463
+ resourceIds: string[];
1464
+ targets: {
1465
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1466
+ externalId: string;
1467
+ }[];
1468
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1469
+ rememberInstructions: string;
1470
+ excludeInstructions: string;
1471
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1472
+ learnedRetentionDays: number | null;
1473
+ sourceRetentionDays: number | null;
1474
+ }>>;
1475
+ }, "strict", z.ZodTypeAny, {
1476
+ status?: "active" | "paused" | undefined;
1477
+ connectedSource?: {
1478
+ resourceIds: string[];
1479
+ targets: {
1480
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1481
+ externalId: string;
1482
+ }[];
1483
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1484
+ rememberInstructions: string;
1485
+ excludeInstructions: string;
1486
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1487
+ learnedRetentionDays: number | null;
1488
+ sourceRetentionDays: number | null;
1489
+ } | undefined;
1490
+ }, {
1491
+ status?: "active" | "paused" | undefined;
1492
+ connectedSource?: {
1493
+ resourceIds: string[];
1494
+ targets: {
1495
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1496
+ externalId: string;
1497
+ }[];
1498
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1499
+ rememberInstructions: string;
1500
+ excludeInstructions: string;
1501
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1502
+ learnedRetentionDays: number | null;
1503
+ sourceRetentionDays: number | null;
1504
+ } | undefined;
1505
+ }>, {
1506
+ status?: "active" | "paused" | undefined;
1507
+ connectedSource?: {
1508
+ resourceIds: string[];
1509
+ targets: {
1510
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1511
+ externalId: string;
1512
+ }[];
1513
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1514
+ rememberInstructions: string;
1515
+ excludeInstructions: string;
1516
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1517
+ learnedRetentionDays: number | null;
1518
+ sourceRetentionDays: number | null;
1519
+ } | undefined;
1520
+ }, {
1521
+ status?: "active" | "paused" | undefined;
1522
+ connectedSource?: {
1523
+ resourceIds: string[];
1524
+ targets: {
1525
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1526
+ externalId: string;
1527
+ }[];
1528
+ existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
1529
+ rememberInstructions: string;
1530
+ excludeInstructions: string;
1531
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1532
+ learnedRetentionDays: number | null;
1533
+ sourceRetentionDays: number | null;
1534
+ } | undefined;
1535
+ }>;
1536
+ export type MemoryConnectedSourceInput = z.input<typeof memoryConnectedSourceInputSchema>;
1537
+ export type MemoryConnectedSourcePreviewInput = z.input<typeof memoryConnectedSourcePreviewInputSchema>;
1538
+ export type MemoryConnectedSourceSettingsInput = z.input<typeof memoryConnectedSourceSettingsInputSchema>;
1539
+ export type MemorySourceBindingUpdateInput = z.input<typeof memorySourceBindingUpdateInputSchema>;
1540
+ export declare const memoryProcessSourceJobType = "memory_process_source";
1541
+ export declare const memoryNormalizeRichSourceJobType = "memory_normalize_rich_source";
1542
+ export declare const memoryRebuildProfileJobType = "memory_rebuild_profile";
1543
+ export declare const memoryCellMoveJobType = "memory_cell_move_execute";
1544
+ export declare const memoryReconcileJobType = "memory_reconcile";
1545
+ export declare const memoryRetentionJobType = "memory_retention";
1546
+ export declare const memoryConnectedSourceEventJobType = "memory_connected_source_event";
1547
+ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
1548
+ sessionId: z.ZodString;
1549
+ applicationKey: z.ZodString;
1550
+ turnId: z.ZodString;
1551
+ content: z.ZodString;
1552
+ title: z.ZodOptional<z.ZodString>;
1553
+ occurredAt: z.ZodOptional<z.ZodString>;
1554
+ consent: z.ZodOptional<z.ZodObject<{
1555
+ status: z.ZodLiteral<"granted">;
1556
+ basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
1557
+ recordedAt: z.ZodString;
1558
+ reference: z.ZodOptional<z.ZodString>;
1559
+ }, "strict", z.ZodTypeAny, {
1560
+ status: "granted";
1561
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1562
+ recordedAt: string;
1563
+ reference?: string | undefined;
1564
+ }, {
1565
+ status: "granted";
1566
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1567
+ recordedAt: string;
1568
+ reference?: string | undefined;
1569
+ }>>;
1570
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1571
+ }, "strict", z.ZodTypeAny, {
1572
+ metadata: Record<string, unknown>;
1573
+ content: string;
1574
+ sessionId: string;
1575
+ applicationKey: string;
1576
+ turnId: string;
1577
+ title?: string | undefined;
1578
+ consent?: {
1579
+ status: "granted";
1580
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1581
+ recordedAt: string;
1582
+ reference?: string | undefined;
1583
+ } | undefined;
1584
+ occurredAt?: string | undefined;
1585
+ }, {
1586
+ content: string;
1587
+ sessionId: string;
1588
+ applicationKey: string;
1589
+ turnId: string;
1590
+ metadata?: Record<string, unknown> | undefined;
1591
+ title?: string | undefined;
1592
+ consent?: {
1593
+ status: "granted";
1594
+ basis: "user_consent" | "contract" | "legitimate_interest" | "project_policy";
1595
+ recordedAt: string;
1596
+ reference?: string | undefined;
1597
+ } | undefined;
1598
+ occurredAt?: string | undefined;
1599
+ }>;
1600
+ export type MemoryConversationTurnInput = z.input<typeof memoryConversationTurnInputSchema>;
1601
+ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1602
+ tenantId: z.ZodOptional<z.ZodString>;
1603
+ externalTenantId: z.ZodOptional<z.ZodString>;
1604
+ sessionId: z.ZodOptional<z.ZodString>;
1605
+ subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1606
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1607
+ externalId: z.ZodString;
1608
+ }, "strict", z.ZodTypeAny, {
1609
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1610
+ externalId: string;
1611
+ }, {
1612
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1613
+ externalId: string;
1614
+ }>, "many">>;
1615
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
1616
+ memoryTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
1617
+ providerKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1618
+ sourceFamilyKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1619
+ connectedAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1620
+ resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1621
+ resourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1622
+ states: z.ZodDefault<z.ZodArray<z.ZodEnum<["current", "conflicted"]>, "many">>;
1623
+ validAt: z.ZodOptional<z.ZodString>;
1624
+ recordedAt: z.ZodOptional<z.ZodString>;
1625
+ includeGraph: z.ZodDefault<z.ZodBoolean>;
1626
+ includeSourceRefs: z.ZodDefault<z.ZodBoolean>;
1627
+ limit: z.ZodDefault<z.ZodNumber>;
1628
+ semanticCandidateLimit: z.ZodOptional<z.ZodNumber>;
1629
+ } & {
1630
+ query: z.ZodOptional<z.ZodString>;
1631
+ seedRecordIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1632
+ predicates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1633
+ maxDepth: z.ZodDefault<z.ZodNumber>;
1634
+ maxClaims: z.ZodDefault<z.ZodNumber>;
1635
+ }, "strip", z.ZodTypeAny, {
1636
+ limit: number;
1637
+ states: ("current" | "conflicted")[];
1638
+ includeGraph: boolean;
1639
+ includeSourceRefs: boolean;
1640
+ seedRecordIds: string[];
1641
+ maxDepth: number;
1642
+ maxClaims: number;
1643
+ query?: string | undefined;
1644
+ tenantId?: string | undefined;
1645
+ sessionId?: string | undefined;
1646
+ recordedAt?: string | undefined;
1647
+ externalTenantId?: string | undefined;
1648
+ subjects?: {
1649
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1650
+ externalId: string;
1651
+ }[] | undefined;
1652
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1653
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1654
+ providerKeys?: string[] | undefined;
1655
+ sourceFamilyKeys?: string[] | undefined;
1656
+ connectedAccountIds?: string[] | undefined;
1657
+ resourceTypes?: string[] | undefined;
1658
+ resourceIds?: string[] | undefined;
1659
+ validAt?: string | undefined;
1660
+ semanticCandidateLimit?: number | undefined;
1661
+ predicates?: string[] | undefined;
1662
+ }, {
1663
+ limit?: number | undefined;
1664
+ query?: string | undefined;
1665
+ tenantId?: string | undefined;
1666
+ sessionId?: string | undefined;
1667
+ recordedAt?: string | undefined;
1668
+ externalTenantId?: string | undefined;
1669
+ subjects?: {
1670
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1671
+ externalId: string;
1672
+ }[] | undefined;
1673
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1674
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1675
+ providerKeys?: string[] | undefined;
1676
+ sourceFamilyKeys?: string[] | undefined;
1677
+ connectedAccountIds?: string[] | undefined;
1678
+ resourceTypes?: string[] | undefined;
1679
+ resourceIds?: string[] | undefined;
1680
+ states?: ("current" | "conflicted")[] | undefined;
1681
+ validAt?: string | undefined;
1682
+ includeGraph?: boolean | undefined;
1683
+ includeSourceRefs?: boolean | undefined;
1684
+ semanticCandidateLimit?: number | undefined;
1685
+ seedRecordIds?: string[] | undefined;
1686
+ predicates?: string[] | undefined;
1687
+ maxDepth?: number | undefined;
1688
+ maxClaims?: number | undefined;
1689
+ }>, {
1690
+ limit: number;
1691
+ states: ("current" | "conflicted")[];
1692
+ includeGraph: boolean;
1693
+ includeSourceRefs: boolean;
1694
+ seedRecordIds: string[];
1695
+ maxDepth: number;
1696
+ maxClaims: number;
1697
+ query?: string | undefined;
1698
+ tenantId?: string | undefined;
1699
+ sessionId?: string | undefined;
1700
+ recordedAt?: string | undefined;
1701
+ externalTenantId?: string | undefined;
1702
+ subjects?: {
1703
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1704
+ externalId: string;
1705
+ }[] | undefined;
1706
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1707
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1708
+ providerKeys?: string[] | undefined;
1709
+ sourceFamilyKeys?: string[] | undefined;
1710
+ connectedAccountIds?: string[] | undefined;
1711
+ resourceTypes?: string[] | undefined;
1712
+ resourceIds?: string[] | undefined;
1713
+ validAt?: string | undefined;
1714
+ semanticCandidateLimit?: number | undefined;
1715
+ predicates?: string[] | undefined;
1716
+ }, {
1717
+ limit?: number | undefined;
1718
+ query?: string | undefined;
1719
+ tenantId?: string | undefined;
1720
+ sessionId?: string | undefined;
1721
+ recordedAt?: string | undefined;
1722
+ externalTenantId?: string | undefined;
1723
+ subjects?: {
1724
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1725
+ externalId: string;
1726
+ }[] | undefined;
1727
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1728
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1729
+ providerKeys?: string[] | undefined;
1730
+ sourceFamilyKeys?: string[] | undefined;
1731
+ connectedAccountIds?: string[] | undefined;
1732
+ resourceTypes?: string[] | undefined;
1733
+ resourceIds?: string[] | undefined;
1734
+ states?: ("current" | "conflicted")[] | undefined;
1735
+ validAt?: string | undefined;
1736
+ includeGraph?: boolean | undefined;
1737
+ includeSourceRefs?: boolean | undefined;
1738
+ semanticCandidateLimit?: number | undefined;
1739
+ seedRecordIds?: string[] | undefined;
1740
+ predicates?: string[] | undefined;
1741
+ maxDepth?: number | undefined;
1742
+ maxClaims?: number | undefined;
1743
+ }>, {
1744
+ limit: number;
1745
+ states: ("current" | "conflicted")[];
1746
+ includeGraph: boolean;
1747
+ includeSourceRefs: boolean;
1748
+ seedRecordIds: string[];
1749
+ maxDepth: number;
1750
+ maxClaims: number;
1751
+ query?: string | undefined;
1752
+ tenantId?: string | undefined;
1753
+ sessionId?: string | undefined;
1754
+ recordedAt?: string | undefined;
1755
+ externalTenantId?: string | undefined;
1756
+ subjects?: {
1757
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1758
+ externalId: string;
1759
+ }[] | undefined;
1760
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1761
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1762
+ providerKeys?: string[] | undefined;
1763
+ sourceFamilyKeys?: string[] | undefined;
1764
+ connectedAccountIds?: string[] | undefined;
1765
+ resourceTypes?: string[] | undefined;
1766
+ resourceIds?: string[] | undefined;
1767
+ validAt?: string | undefined;
1768
+ semanticCandidateLimit?: number | undefined;
1769
+ predicates?: string[] | undefined;
1770
+ }, {
1771
+ limit?: number | undefined;
1772
+ query?: string | undefined;
1773
+ tenantId?: string | undefined;
1774
+ sessionId?: string | undefined;
1775
+ recordedAt?: string | undefined;
1776
+ externalTenantId?: string | undefined;
1777
+ subjects?: {
1778
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1779
+ externalId: string;
1780
+ }[] | undefined;
1781
+ kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1782
+ memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1783
+ providerKeys?: string[] | undefined;
1784
+ sourceFamilyKeys?: string[] | undefined;
1785
+ connectedAccountIds?: string[] | undefined;
1786
+ resourceTypes?: string[] | undefined;
1787
+ resourceIds?: string[] | undefined;
1788
+ states?: ("current" | "conflicted")[] | undefined;
1789
+ validAt?: string | undefined;
1790
+ includeGraph?: boolean | undefined;
1791
+ includeSourceRefs?: boolean | undefined;
1792
+ semanticCandidateLimit?: number | undefined;
1793
+ seedRecordIds?: string[] | undefined;
1794
+ predicates?: string[] | undefined;
1795
+ maxDepth?: number | undefined;
1796
+ maxClaims?: number | undefined;
1797
+ }>;
1798
+ export type MemoryGraphQueryInput = z.input<typeof memoryGraphQueryInputSchema>;
1799
+ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
1800
+ tenantId: z.ZodOptional<z.ZodString>;
1801
+ externalTenantId: z.ZodOptional<z.ZodString>;
1802
+ subject: z.ZodOptional<z.ZodObject<{
1803
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1804
+ externalId: z.ZodString;
1805
+ }, "strict", z.ZodTypeAny, {
1806
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1807
+ externalId: string;
1808
+ }, {
1809
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1810
+ externalId: string;
1811
+ }>>;
1812
+ format: z.ZodDefault<z.ZodEnum<["json", "jsonl"]>>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ format: "json" | "jsonl";
1815
+ tenantId?: string | undefined;
1816
+ externalTenantId?: string | undefined;
1817
+ subject?: {
1818
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1819
+ externalId: string;
1820
+ } | undefined;
1821
+ }, {
1822
+ tenantId?: string | undefined;
1823
+ format?: "json" | "jsonl" | undefined;
1824
+ externalTenantId?: string | undefined;
1825
+ subject?: {
1826
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1827
+ externalId: string;
1828
+ } | undefined;
1829
+ }>, {
1830
+ format: "json" | "jsonl";
1831
+ tenantId?: string | undefined;
1832
+ externalTenantId?: string | undefined;
1833
+ subject?: {
1834
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1835
+ externalId: string;
1836
+ } | undefined;
1837
+ }, {
1838
+ tenantId?: string | undefined;
1839
+ format?: "json" | "jsonl" | undefined;
1840
+ externalTenantId?: string | undefined;
1841
+ subject?: {
1842
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1843
+ externalId: string;
1844
+ } | undefined;
1845
+ }>;
1846
+ export type MemoryExportInput = z.input<typeof memoryExportInputSchema>;
1847
+ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
1848
+ tenantId: z.ZodOptional<z.ZodString>;
1849
+ externalTenantId: z.ZodOptional<z.ZodString>;
1850
+ subject: z.ZodOptional<z.ZodObject<{
1851
+ type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1852
+ externalId: z.ZodString;
1853
+ }, "strict", z.ZodTypeAny, {
1854
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1855
+ externalId: string;
1856
+ }, {
1857
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1858
+ externalId: string;
1859
+ }>>;
1860
+ reason: z.ZodString;
1861
+ }, "strict", z.ZodTypeAny, {
1862
+ reason: string;
1863
+ tenantId?: string | undefined;
1864
+ externalTenantId?: string | undefined;
1865
+ subject?: {
1866
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1867
+ externalId: string;
1868
+ } | undefined;
1869
+ }, {
1870
+ reason: string;
1871
+ tenantId?: string | undefined;
1872
+ externalTenantId?: string | undefined;
1873
+ subject?: {
1874
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1875
+ externalId: string;
1876
+ } | undefined;
1877
+ }>, {
1878
+ reason: string;
1879
+ tenantId?: string | undefined;
1880
+ externalTenantId?: string | undefined;
1881
+ subject?: {
1882
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1883
+ externalId: string;
1884
+ } | undefined;
1885
+ }, {
1886
+ reason: string;
1887
+ tenantId?: string | undefined;
1888
+ externalTenantId?: string | undefined;
1889
+ subject?: {
1890
+ type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1891
+ externalId: string;
1892
+ } | undefined;
1893
+ }>;
1894
+ export type MemoryLegalHoldInput = z.input<typeof memoryLegalHoldInputSchema>;
1895
+ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
1896
+ key: z.ZodDefault<z.ZodString>;
1897
+ captureMode: z.ZodDefault<z.ZodEnum<["explicit", "bound_sources"]>>;
1898
+ extractionEnabled: z.ZodDefault<z.ZodBoolean>;
1899
+ profileEnabled: z.ZodDefault<z.ZodBoolean>;
1900
+ retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1901
+ sourceRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1902
+ allowedMemoryTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
1903
+ restrictedDataClasses: z.ZodDefault<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
1904
+ languages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1905
+ consent: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1906
+ extraction: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1907
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1908
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ metadata: Record<string, unknown>;
1911
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1912
+ consent: Record<string, unknown>;
1913
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1914
+ sourceRetentionDays: number | null;
1915
+ key: string;
1916
+ captureMode: "explicit" | "bound_sources";
1917
+ extractionEnabled: boolean;
1918
+ profileEnabled: boolean;
1919
+ retentionDays: number | null;
1920
+ languages: string[];
1921
+ extraction: Record<string, unknown>;
1922
+ context: Record<string, unknown>;
1923
+ }, {
1924
+ metadata?: Record<string, unknown> | undefined;
1925
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1926
+ consent?: Record<string, unknown> | undefined;
1927
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1928
+ sourceRetentionDays?: number | null | undefined;
1929
+ key?: string | undefined;
1930
+ captureMode?: "explicit" | "bound_sources" | undefined;
1931
+ extractionEnabled?: boolean | undefined;
1932
+ profileEnabled?: boolean | undefined;
1933
+ retentionDays?: number | null | undefined;
1934
+ languages?: string[] | undefined;
1935
+ extraction?: Record<string, unknown> | undefined;
1936
+ context?: Record<string, unknown> | undefined;
1937
+ }>;
1938
+ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
1939
+ key: z.ZodDefault<z.ZodString>;
1940
+ captureMode: z.ZodDefault<z.ZodEnum<["explicit", "bound_sources"]>>;
1941
+ extractionEnabled: z.ZodDefault<z.ZodBoolean>;
1942
+ profileEnabled: z.ZodDefault<z.ZodBoolean>;
1943
+ retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1944
+ sourceRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1945
+ allowedMemoryTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
1946
+ restrictedDataClasses: z.ZodDefault<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
1947
+ languages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1948
+ consent: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1949
+ extraction: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1950
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1951
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1952
+ }, "key"> & {
1953
+ expectedVersion: z.ZodNumber;
1954
+ }, "strict", z.ZodTypeAny, {
1955
+ metadata: Record<string, unknown>;
1956
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1957
+ consent: Record<string, unknown>;
1958
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
1959
+ sourceRetentionDays: number | null;
1960
+ captureMode: "explicit" | "bound_sources";
1961
+ extractionEnabled: boolean;
1962
+ profileEnabled: boolean;
1963
+ retentionDays: number | null;
1964
+ languages: string[];
1965
+ extraction: Record<string, unknown>;
1966
+ context: Record<string, unknown>;
1967
+ expectedVersion: number;
1968
+ }, {
1969
+ expectedVersion: number;
1970
+ metadata?: Record<string, unknown> | undefined;
1971
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1972
+ consent?: Record<string, unknown> | undefined;
1973
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1974
+ sourceRetentionDays?: number | null | undefined;
1975
+ captureMode?: "explicit" | "bound_sources" | undefined;
1976
+ extractionEnabled?: boolean | undefined;
1977
+ profileEnabled?: boolean | undefined;
1978
+ retentionDays?: number | null | undefined;
1979
+ languages?: string[] | undefined;
1980
+ extraction?: Record<string, unknown> | undefined;
1981
+ context?: Record<string, unknown> | undefined;
1982
+ }>;
1983
+ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
1984
+ idempotencyKey: z.ZodString;
1985
+ content: z.ZodString;
1986
+ title: z.ZodOptional<z.ZodString>;
1987
+ sourceCategory: z.ZodOptional<z.ZodString>;
1988
+ language: z.ZodOptional<z.ZodString>;
1989
+ policy: z.ZodDefault<z.ZodObject<Omit<{
1990
+ key: z.ZodDefault<z.ZodString>;
1991
+ captureMode: z.ZodDefault<z.ZodEnum<["explicit", "bound_sources"]>>;
1992
+ extractionEnabled: z.ZodDefault<z.ZodBoolean>;
1993
+ profileEnabled: z.ZodDefault<z.ZodBoolean>;
1994
+ retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1995
+ sourceRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1996
+ allowedMemoryTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
1997
+ restrictedDataClasses: z.ZodDefault<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
1998
+ languages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1999
+ consent: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2000
+ extraction: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2001
+ context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2002
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2003
+ }, "key">, "strip", z.ZodTypeAny, {
2004
+ metadata: Record<string, unknown>;
2005
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2006
+ consent: Record<string, unknown>;
2007
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2008
+ sourceRetentionDays: number | null;
2009
+ captureMode: "explicit" | "bound_sources";
2010
+ extractionEnabled: boolean;
2011
+ profileEnabled: boolean;
2012
+ retentionDays: number | null;
2013
+ languages: string[];
2014
+ extraction: Record<string, unknown>;
2015
+ context: Record<string, unknown>;
2016
+ }, {
2017
+ metadata?: Record<string, unknown> | undefined;
2018
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2019
+ consent?: Record<string, unknown> | undefined;
2020
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2021
+ sourceRetentionDays?: number | null | undefined;
2022
+ captureMode?: "explicit" | "bound_sources" | undefined;
2023
+ extractionEnabled?: boolean | undefined;
2024
+ profileEnabled?: boolean | undefined;
2025
+ retentionDays?: number | null | undefined;
2026
+ languages?: string[] | undefined;
2027
+ extraction?: Record<string, unknown> | undefined;
2028
+ context?: Record<string, unknown> | undefined;
2029
+ }>>;
2030
+ }, "strict", z.ZodTypeAny, {
2031
+ content: string;
2032
+ idempotencyKey: string;
2033
+ policy: {
2034
+ metadata: Record<string, unknown>;
2035
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2036
+ consent: Record<string, unknown>;
2037
+ allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2038
+ sourceRetentionDays: number | null;
2039
+ captureMode: "explicit" | "bound_sources";
2040
+ extractionEnabled: boolean;
2041
+ profileEnabled: boolean;
2042
+ retentionDays: number | null;
2043
+ languages: string[];
2044
+ extraction: Record<string, unknown>;
2045
+ context: Record<string, unknown>;
2046
+ };
2047
+ title?: string | undefined;
2048
+ language?: string | undefined;
2049
+ sourceCategory?: string | undefined;
2050
+ }, {
2051
+ content: string;
2052
+ idempotencyKey: string;
2053
+ title?: string | undefined;
2054
+ language?: string | undefined;
2055
+ sourceCategory?: string | undefined;
2056
+ policy?: {
2057
+ metadata?: Record<string, unknown> | undefined;
2058
+ restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2059
+ consent?: Record<string, unknown> | undefined;
2060
+ allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2061
+ sourceRetentionDays?: number | null | undefined;
2062
+ captureMode?: "explicit" | "bound_sources" | undefined;
2063
+ extractionEnabled?: boolean | undefined;
2064
+ profileEnabled?: boolean | undefined;
2065
+ retentionDays?: number | null | undefined;
2066
+ languages?: string[] | undefined;
2067
+ extraction?: Record<string, unknown> | undefined;
2068
+ context?: Record<string, unknown> | undefined;
2069
+ } | undefined;
2070
+ }>;
2071
+ export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
2072
+ export type MemoryProjectPolicyUpdateInput = z.input<typeof memoryProjectPolicyUpdateInputSchema>;
2073
+ export type MemoryPolicyPreviewInput = z.input<typeof memoryPolicyPreviewInputSchema>;
2074
+ export declare const stacklinkPlatformEventTypes: readonly ["provider.resource.created", "provider.resource.updated", "provider.resource.deleted", "tool.execution.completed", "conversation.turn.completed", "artifact.created"];
2075
+ export declare const stacklinkPlatformEventSchema: z.ZodObject<{
2076
+ id: z.ZodString;
2077
+ schemaVersion: z.ZodLiteral<"stacklink.event.v1">;
2078
+ consumerAppId: z.ZodString;
2079
+ tenantId: z.ZodString;
2080
+ sessionId: z.ZodOptional<z.ZodString>;
2081
+ userId: z.ZodOptional<z.ZodString>;
2082
+ type: z.ZodEnum<["provider.resource.created", "provider.resource.updated", "provider.resource.deleted", "tool.execution.completed", "conversation.turn.completed", "artifact.created"]>;
2083
+ source: z.ZodObject<{
2084
+ kind: z.ZodEnum<["provider", "tool_execution", "conversation", "artifact"]>;
2085
+ providerKey: z.ZodOptional<z.ZodString>;
2086
+ connectedAccountId: z.ZodOptional<z.ZodString>;
2087
+ resourceType: z.ZodOptional<z.ZodString>;
2088
+ resourceId: z.ZodOptional<z.ZodString>;
2089
+ resourcePreviousScopeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2090
+ resourceCurrentScopeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2091
+ resourceAffectedScopeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2092
+ toolExecutionId: z.ZodOptional<z.ZodString>;
2093
+ applicationKey: z.ZodOptional<z.ZodString>;
2094
+ }, "strict", z.ZodTypeAny, {
2095
+ kind: "artifact" | "conversation" | "provider" | "tool_execution";
2096
+ providerKey?: string | undefined;
2097
+ connectedAccountId?: string | undefined;
2098
+ resourceType?: string | undefined;
2099
+ resourceId?: string | undefined;
2100
+ toolExecutionId?: string | undefined;
2101
+ applicationKey?: string | undefined;
2102
+ resourcePreviousScopeIds?: string[] | undefined;
2103
+ resourceCurrentScopeIds?: string[] | undefined;
2104
+ resourceAffectedScopeIds?: string[] | undefined;
2105
+ }, {
2106
+ kind: "artifact" | "conversation" | "provider" | "tool_execution";
2107
+ providerKey?: string | undefined;
2108
+ connectedAccountId?: string | undefined;
2109
+ resourceType?: string | undefined;
2110
+ resourceId?: string | undefined;
2111
+ toolExecutionId?: string | undefined;
2112
+ applicationKey?: string | undefined;
2113
+ resourcePreviousScopeIds?: string[] | undefined;
2114
+ resourceCurrentScopeIds?: string[] | undefined;
2115
+ resourceAffectedScopeIds?: string[] | undefined;
2116
+ }>;
2117
+ occurredAt: z.ZodString;
2118
+ observedAt: z.ZodString;
2119
+ payloadRef: z.ZodOptional<z.ZodString>;
2120
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2121
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2122
+ }, "strict", z.ZodTypeAny, {
2123
+ id: string;
2124
+ type: "provider.resource.created" | "provider.resource.updated" | "provider.resource.deleted" | "tool.execution.completed" | "conversation.turn.completed" | "artifact.created";
2125
+ source: {
2126
+ kind: "artifact" | "conversation" | "provider" | "tool_execution";
2127
+ providerKey?: string | undefined;
2128
+ connectedAccountId?: string | undefined;
2129
+ resourceType?: string | undefined;
2130
+ resourceId?: string | undefined;
2131
+ toolExecutionId?: string | undefined;
2132
+ applicationKey?: string | undefined;
2133
+ resourcePreviousScopeIds?: string[] | undefined;
2134
+ resourceCurrentScopeIds?: string[] | undefined;
2135
+ resourceAffectedScopeIds?: string[] | undefined;
2136
+ };
2137
+ metadata: Record<string, unknown>;
2138
+ tenantId: string;
2139
+ occurredAt: string;
2140
+ schemaVersion: "stacklink.event.v1";
2141
+ consumerAppId: string;
2142
+ observedAt: string;
2143
+ data: Record<string, unknown>;
2144
+ sessionId?: string | undefined;
2145
+ userId?: string | undefined;
2146
+ payloadRef?: string | undefined;
2147
+ }, {
2148
+ id: string;
2149
+ type: "provider.resource.created" | "provider.resource.updated" | "provider.resource.deleted" | "tool.execution.completed" | "conversation.turn.completed" | "artifact.created";
2150
+ source: {
2151
+ kind: "artifact" | "conversation" | "provider" | "tool_execution";
2152
+ providerKey?: string | undefined;
2153
+ connectedAccountId?: string | undefined;
2154
+ resourceType?: string | undefined;
2155
+ resourceId?: string | undefined;
2156
+ toolExecutionId?: string | undefined;
2157
+ applicationKey?: string | undefined;
2158
+ resourcePreviousScopeIds?: string[] | undefined;
2159
+ resourceCurrentScopeIds?: string[] | undefined;
2160
+ resourceAffectedScopeIds?: string[] | undefined;
2161
+ };
2162
+ metadata: Record<string, unknown>;
2163
+ tenantId: string;
2164
+ occurredAt: string;
2165
+ schemaVersion: "stacklink.event.v1";
2166
+ consumerAppId: string;
2167
+ observedAt: string;
2168
+ data: Record<string, unknown>;
2169
+ sessionId?: string | undefined;
2170
+ userId?: string | undefined;
2171
+ payloadRef?: string | undefined;
2172
+ }>;
2173
+ export type StacklinkPlatformEvent = z.infer<typeof stacklinkPlatformEventSchema>;
2174
+ export declare const memorySessionConfigSchema: z.ZodEffects<z.ZodObject<{
2175
+ enabled: z.ZodDefault<z.ZodBoolean>;
2176
+ agentExternalId: z.ZodOptional<z.ZodString>;
2177
+ readableSubjects: z.ZodDefault<z.ZodArray<z.ZodEnum<["session_user", "session_agent", "tenant_shared"]>, "many">>;
2178
+ writableSubjects: z.ZodDefault<z.ZodArray<z.ZodEnum<["session_user", "session_agent", "tenant_shared"]>, "many">>;
2179
+ captureMode: z.ZodDefault<z.ZodEnum<["explicit", "bound_sources"]>>;
2180
+ includeProfile: z.ZodDefault<z.ZodBoolean>;
2181
+ includeBlocks: z.ZodDefault<z.ZodBoolean>;
2182
+ contextTokenBudget: z.ZodDefault<z.ZodNumber>;
2183
+ policyKey: z.ZodDefault<z.ZodString>;
2184
+ }, "strict", z.ZodTypeAny, {
2185
+ enabled: boolean;
2186
+ policyKey: string;
2187
+ includeProfile: boolean;
2188
+ includeBlocks: boolean;
2189
+ captureMode: "explicit" | "bound_sources";
2190
+ readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
2191
+ writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
2192
+ contextTokenBudget: number;
2193
+ agentExternalId?: string | undefined;
2194
+ }, {
2195
+ enabled?: boolean | undefined;
2196
+ policyKey?: string | undefined;
2197
+ includeProfile?: boolean | undefined;
2198
+ includeBlocks?: boolean | undefined;
2199
+ captureMode?: "explicit" | "bound_sources" | undefined;
2200
+ agentExternalId?: string | undefined;
2201
+ readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
2202
+ writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
2203
+ contextTokenBudget?: number | undefined;
2204
+ }>, {
2205
+ enabled: boolean;
2206
+ policyKey: string;
2207
+ includeProfile: boolean;
2208
+ includeBlocks: boolean;
2209
+ captureMode: "explicit" | "bound_sources";
2210
+ readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
2211
+ writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
2212
+ contextTokenBudget: number;
2213
+ agentExternalId?: string | undefined;
2214
+ }, {
2215
+ enabled?: boolean | undefined;
2216
+ policyKey?: string | undefined;
2217
+ includeProfile?: boolean | undefined;
2218
+ includeBlocks?: boolean | undefined;
2219
+ captureMode?: "explicit" | "bound_sources" | undefined;
2220
+ agentExternalId?: string | undefined;
2221
+ readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
2222
+ writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
2223
+ contextTokenBudget?: number | undefined;
2224
+ }>;
2225
+ export type MemorySessionConfig = z.infer<typeof memorySessionConfigSchema>;
2226
+ export declare const memoryExtractedEntitySchema: z.ZodObject<{
2227
+ key: z.ZodString;
2228
+ type: z.ZodString;
2229
+ canonicalKey: z.ZodString;
2230
+ displayName: z.ZodNullable<z.ZodString>;
2231
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2232
+ }, "strict", z.ZodTypeAny, {
2233
+ type: string;
2234
+ key: string;
2235
+ canonicalKey: string;
2236
+ displayName: string | null;
2237
+ attributes: Record<string, unknown>;
2238
+ }, {
2239
+ type: string;
2240
+ key: string;
2241
+ canonicalKey: string;
2242
+ displayName: string | null;
2243
+ attributes: Record<string, unknown>;
2244
+ }>;
2245
+ export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
2246
+ subjectEntityKey: z.ZodString;
2247
+ predicate: z.ZodString;
2248
+ objectEntityKey: z.ZodNullable<z.ZodString>;
2249
+ literalValue: z.ZodNullable<z.ZodUnknown>;
2250
+ validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2251
+ validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2252
+ }, "strict", z.ZodTypeAny, {
2253
+ validFrom: string | null;
2254
+ validTo: string | null;
2255
+ subjectEntityKey: string;
2256
+ predicate: string;
2257
+ objectEntityKey: string | null;
2258
+ literalValue?: unknown;
2259
+ }, {
2260
+ subjectEntityKey: string;
2261
+ predicate: string;
2262
+ objectEntityKey: string | null;
2263
+ validFrom?: unknown;
2264
+ validTo?: unknown;
2265
+ literalValue?: unknown;
2266
+ }>, {
2267
+ validFrom: string | null;
2268
+ validTo: string | null;
2269
+ subjectEntityKey: string;
2270
+ predicate: string;
2271
+ objectEntityKey: string | null;
2272
+ literalValue?: unknown;
2273
+ }, {
2274
+ subjectEntityKey: string;
2275
+ predicate: string;
2276
+ objectEntityKey: string | null;
2277
+ validFrom?: unknown;
2278
+ validTo?: unknown;
2279
+ literalValue?: unknown;
2280
+ }>;
2281
+ export declare const memoryEvidenceSpanSchema: z.ZodEffects<z.ZodObject<{
2282
+ sourceObjectId: z.ZodString;
2283
+ segmentId: z.ZodString;
2284
+ startOffset: z.ZodNumber;
2285
+ endOffset: z.ZodNumber;
2286
+ quotedText: z.ZodString;
2287
+ }, "strict", z.ZodTypeAny, {
2288
+ sourceObjectId: string;
2289
+ segmentId: string;
2290
+ startOffset: number;
2291
+ endOffset: number;
2292
+ quotedText: string;
2293
+ }, {
2294
+ sourceObjectId: string;
2295
+ segmentId: string;
2296
+ startOffset: number;
2297
+ endOffset: number;
2298
+ quotedText: string;
2299
+ }>, {
2300
+ sourceObjectId: string;
2301
+ segmentId: string;
2302
+ startOffset: number;
2303
+ endOffset: number;
2304
+ quotedText: string;
2305
+ }, {
2306
+ sourceObjectId: string;
2307
+ segmentId: string;
2308
+ startOffset: number;
2309
+ endOffset: number;
2310
+ quotedText: string;
2311
+ }>;
2312
+ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
2313
+ candidateId: z.ZodString;
2314
+ recordKind: z.ZodEnum<["fact", "episode"]>;
2315
+ memoryType: z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>;
2316
+ title: z.ZodString;
2317
+ content: z.ZodString;
2318
+ language: z.ZodString;
2319
+ sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
2320
+ restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
2321
+ topicTags: z.ZodArray<z.ZodString, "many">;
2322
+ validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2323
+ validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2324
+ evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
2325
+ sourceObjectId: z.ZodString;
2326
+ segmentId: z.ZodString;
2327
+ startOffset: z.ZodNumber;
2328
+ endOffset: z.ZodNumber;
2329
+ quotedText: z.ZodString;
2330
+ }, "strict", z.ZodTypeAny, {
2331
+ sourceObjectId: string;
2332
+ segmentId: string;
2333
+ startOffset: number;
2334
+ endOffset: number;
2335
+ quotedText: string;
2336
+ }, {
2337
+ sourceObjectId: string;
2338
+ segmentId: string;
2339
+ startOffset: number;
2340
+ endOffset: number;
2341
+ quotedText: string;
2342
+ }>, {
2343
+ sourceObjectId: string;
2344
+ segmentId: string;
2345
+ startOffset: number;
2346
+ endOffset: number;
2347
+ quotedText: string;
2348
+ }, {
2349
+ sourceObjectId: string;
2350
+ segmentId: string;
2351
+ startOffset: number;
2352
+ endOffset: number;
2353
+ quotedText: string;
2354
+ }>, "many">;
2355
+ entities: z.ZodArray<z.ZodObject<{
2356
+ key: z.ZodString;
2357
+ type: z.ZodString;
2358
+ canonicalKey: z.ZodString;
2359
+ displayName: z.ZodNullable<z.ZodString>;
2360
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2361
+ }, "strict", z.ZodTypeAny, {
2362
+ type: string;
2363
+ key: string;
2364
+ canonicalKey: string;
2365
+ displayName: string | null;
2366
+ attributes: Record<string, unknown>;
2367
+ }, {
2368
+ type: string;
2369
+ key: string;
2370
+ canonicalKey: string;
2371
+ displayName: string | null;
2372
+ attributes: Record<string, unknown>;
2373
+ }>, "many">;
2374
+ claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
2375
+ subjectEntityKey: z.ZodString;
2376
+ predicate: z.ZodString;
2377
+ objectEntityKey: z.ZodNullable<z.ZodString>;
2378
+ literalValue: z.ZodNullable<z.ZodUnknown>;
2379
+ validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2380
+ validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2381
+ }, "strict", z.ZodTypeAny, {
2382
+ validFrom: string | null;
2383
+ validTo: string | null;
2384
+ subjectEntityKey: string;
2385
+ predicate: string;
2386
+ objectEntityKey: string | null;
2387
+ literalValue?: unknown;
2388
+ }, {
2389
+ subjectEntityKey: string;
2390
+ predicate: string;
2391
+ objectEntityKey: string | null;
2392
+ validFrom?: unknown;
2393
+ validTo?: unknown;
2394
+ literalValue?: unknown;
2395
+ }>, {
2396
+ validFrom: string | null;
2397
+ validTo: string | null;
2398
+ subjectEntityKey: string;
2399
+ predicate: string;
2400
+ objectEntityKey: string | null;
2401
+ literalValue?: unknown;
2402
+ }, {
2403
+ subjectEntityKey: string;
2404
+ predicate: string;
2405
+ objectEntityKey: string | null;
2406
+ validFrom?: unknown;
2407
+ validTo?: unknown;
2408
+ literalValue?: unknown;
2409
+ }>, "many">;
2410
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2411
+ }, "strict", z.ZodTypeAny, {
2412
+ content: string;
2413
+ title: string;
2414
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2415
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2416
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2417
+ topicTags: string[];
2418
+ language: string;
2419
+ validFrom: string | null;
2420
+ validTo: string | null;
2421
+ attributes: Record<string, unknown>;
2422
+ candidateId: string;
2423
+ recordKind: "fact" | "episode";
2424
+ evidence: {
2425
+ sourceObjectId: string;
2426
+ segmentId: string;
2427
+ startOffset: number;
2428
+ endOffset: number;
2429
+ quotedText: string;
2430
+ }[];
2431
+ entities: {
2432
+ type: string;
2433
+ key: string;
2434
+ canonicalKey: string;
2435
+ displayName: string | null;
2436
+ attributes: Record<string, unknown>;
2437
+ }[];
2438
+ claims: {
2439
+ validFrom: string | null;
2440
+ validTo: string | null;
2441
+ subjectEntityKey: string;
2442
+ predicate: string;
2443
+ objectEntityKey: string | null;
2444
+ literalValue?: unknown;
2445
+ }[];
2446
+ }, {
2447
+ content: string;
2448
+ title: string;
2449
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2450
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2451
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2452
+ topicTags: string[];
2453
+ language: string;
2454
+ attributes: Record<string, unknown>;
2455
+ candidateId: string;
2456
+ recordKind: "fact" | "episode";
2457
+ evidence: {
2458
+ sourceObjectId: string;
2459
+ segmentId: string;
2460
+ startOffset: number;
2461
+ endOffset: number;
2462
+ quotedText: string;
2463
+ }[];
2464
+ entities: {
2465
+ type: string;
2466
+ key: string;
2467
+ canonicalKey: string;
2468
+ displayName: string | null;
2469
+ attributes: Record<string, unknown>;
2470
+ }[];
2471
+ claims: {
2472
+ subjectEntityKey: string;
2473
+ predicate: string;
2474
+ objectEntityKey: string | null;
2475
+ validFrom?: unknown;
2476
+ validTo?: unknown;
2477
+ literalValue?: unknown;
2478
+ }[];
2479
+ validFrom?: unknown;
2480
+ validTo?: unknown;
2481
+ }>, {
2482
+ content: string;
2483
+ title: string;
2484
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2485
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2486
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2487
+ topicTags: string[];
2488
+ language: string;
2489
+ validFrom: string | null;
2490
+ validTo: string | null;
2491
+ attributes: Record<string, unknown>;
2492
+ candidateId: string;
2493
+ recordKind: "fact" | "episode";
2494
+ evidence: {
2495
+ sourceObjectId: string;
2496
+ segmentId: string;
2497
+ startOffset: number;
2498
+ endOffset: number;
2499
+ quotedText: string;
2500
+ }[];
2501
+ entities: {
2502
+ type: string;
2503
+ key: string;
2504
+ canonicalKey: string;
2505
+ displayName: string | null;
2506
+ attributes: Record<string, unknown>;
2507
+ }[];
2508
+ claims: {
2509
+ validFrom: string | null;
2510
+ validTo: string | null;
2511
+ subjectEntityKey: string;
2512
+ predicate: string;
2513
+ objectEntityKey: string | null;
2514
+ literalValue?: unknown;
2515
+ }[];
2516
+ }, {
2517
+ content: string;
2518
+ title: string;
2519
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2520
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2521
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2522
+ topicTags: string[];
2523
+ language: string;
2524
+ attributes: Record<string, unknown>;
2525
+ candidateId: string;
2526
+ recordKind: "fact" | "episode";
2527
+ evidence: {
2528
+ sourceObjectId: string;
2529
+ segmentId: string;
2530
+ startOffset: number;
2531
+ endOffset: number;
2532
+ quotedText: string;
2533
+ }[];
2534
+ entities: {
2535
+ type: string;
2536
+ key: string;
2537
+ canonicalKey: string;
2538
+ displayName: string | null;
2539
+ attributes: Record<string, unknown>;
2540
+ }[];
2541
+ claims: {
2542
+ subjectEntityKey: string;
2543
+ predicate: string;
2544
+ objectEntityKey: string | null;
2545
+ validFrom?: unknown;
2546
+ validTo?: unknown;
2547
+ literalValue?: unknown;
2548
+ }[];
2549
+ validFrom?: unknown;
2550
+ validTo?: unknown;
2551
+ }>;
2552
+ export declare const memoryExtractionResultSchema: z.ZodObject<{
2553
+ records: z.ZodArray<z.ZodEffects<z.ZodObject<{
2554
+ candidateId: z.ZodString;
2555
+ recordKind: z.ZodEnum<["fact", "episode"]>;
2556
+ memoryType: z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>;
2557
+ title: z.ZodString;
2558
+ content: z.ZodString;
2559
+ language: z.ZodString;
2560
+ sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
2561
+ restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
2562
+ topicTags: z.ZodArray<z.ZodString, "many">;
2563
+ validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2564
+ validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2565
+ evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
2566
+ sourceObjectId: z.ZodString;
2567
+ segmentId: z.ZodString;
2568
+ startOffset: z.ZodNumber;
2569
+ endOffset: z.ZodNumber;
2570
+ quotedText: z.ZodString;
2571
+ }, "strict", z.ZodTypeAny, {
2572
+ sourceObjectId: string;
2573
+ segmentId: string;
2574
+ startOffset: number;
2575
+ endOffset: number;
2576
+ quotedText: string;
2577
+ }, {
2578
+ sourceObjectId: string;
2579
+ segmentId: string;
2580
+ startOffset: number;
2581
+ endOffset: number;
2582
+ quotedText: string;
2583
+ }>, {
2584
+ sourceObjectId: string;
2585
+ segmentId: string;
2586
+ startOffset: number;
2587
+ endOffset: number;
2588
+ quotedText: string;
2589
+ }, {
2590
+ sourceObjectId: string;
2591
+ segmentId: string;
2592
+ startOffset: number;
2593
+ endOffset: number;
2594
+ quotedText: string;
2595
+ }>, "many">;
2596
+ entities: z.ZodArray<z.ZodObject<{
2597
+ key: z.ZodString;
2598
+ type: z.ZodString;
2599
+ canonicalKey: z.ZodString;
2600
+ displayName: z.ZodNullable<z.ZodString>;
2601
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2602
+ }, "strict", z.ZodTypeAny, {
2603
+ type: string;
2604
+ key: string;
2605
+ canonicalKey: string;
2606
+ displayName: string | null;
2607
+ attributes: Record<string, unknown>;
2608
+ }, {
2609
+ type: string;
2610
+ key: string;
2611
+ canonicalKey: string;
2612
+ displayName: string | null;
2613
+ attributes: Record<string, unknown>;
2614
+ }>, "many">;
2615
+ claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
2616
+ subjectEntityKey: z.ZodString;
2617
+ predicate: z.ZodString;
2618
+ objectEntityKey: z.ZodNullable<z.ZodString>;
2619
+ literalValue: z.ZodNullable<z.ZodUnknown>;
2620
+ validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2621
+ validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
2622
+ }, "strict", z.ZodTypeAny, {
2623
+ validFrom: string | null;
2624
+ validTo: string | null;
2625
+ subjectEntityKey: string;
2626
+ predicate: string;
2627
+ objectEntityKey: string | null;
2628
+ literalValue?: unknown;
2629
+ }, {
2630
+ subjectEntityKey: string;
2631
+ predicate: string;
2632
+ objectEntityKey: string | null;
2633
+ validFrom?: unknown;
2634
+ validTo?: unknown;
2635
+ literalValue?: unknown;
2636
+ }>, {
2637
+ validFrom: string | null;
2638
+ validTo: string | null;
2639
+ subjectEntityKey: string;
2640
+ predicate: string;
2641
+ objectEntityKey: string | null;
2642
+ literalValue?: unknown;
2643
+ }, {
2644
+ subjectEntityKey: string;
2645
+ predicate: string;
2646
+ objectEntityKey: string | null;
2647
+ validFrom?: unknown;
2648
+ validTo?: unknown;
2649
+ literalValue?: unknown;
2650
+ }>, "many">;
2651
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2652
+ }, "strict", z.ZodTypeAny, {
2653
+ content: string;
2654
+ title: string;
2655
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2656
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2657
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2658
+ topicTags: string[];
2659
+ language: string;
2660
+ validFrom: string | null;
2661
+ validTo: string | null;
2662
+ attributes: Record<string, unknown>;
2663
+ candidateId: string;
2664
+ recordKind: "fact" | "episode";
2665
+ evidence: {
2666
+ sourceObjectId: string;
2667
+ segmentId: string;
2668
+ startOffset: number;
2669
+ endOffset: number;
2670
+ quotedText: string;
2671
+ }[];
2672
+ entities: {
2673
+ type: string;
2674
+ key: string;
2675
+ canonicalKey: string;
2676
+ displayName: string | null;
2677
+ attributes: Record<string, unknown>;
2678
+ }[];
2679
+ claims: {
2680
+ validFrom: string | null;
2681
+ validTo: string | null;
2682
+ subjectEntityKey: string;
2683
+ predicate: string;
2684
+ objectEntityKey: string | null;
2685
+ literalValue?: unknown;
2686
+ }[];
2687
+ }, {
2688
+ content: string;
2689
+ title: string;
2690
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2691
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2692
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2693
+ topicTags: string[];
2694
+ language: string;
2695
+ attributes: Record<string, unknown>;
2696
+ candidateId: string;
2697
+ recordKind: "fact" | "episode";
2698
+ evidence: {
2699
+ sourceObjectId: string;
2700
+ segmentId: string;
2701
+ startOffset: number;
2702
+ endOffset: number;
2703
+ quotedText: string;
2704
+ }[];
2705
+ entities: {
2706
+ type: string;
2707
+ key: string;
2708
+ canonicalKey: string;
2709
+ displayName: string | null;
2710
+ attributes: Record<string, unknown>;
2711
+ }[];
2712
+ claims: {
2713
+ subjectEntityKey: string;
2714
+ predicate: string;
2715
+ objectEntityKey: string | null;
2716
+ validFrom?: unknown;
2717
+ validTo?: unknown;
2718
+ literalValue?: unknown;
2719
+ }[];
2720
+ validFrom?: unknown;
2721
+ validTo?: unknown;
2722
+ }>, {
2723
+ content: string;
2724
+ title: string;
2725
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2726
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2727
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2728
+ topicTags: string[];
2729
+ language: string;
2730
+ validFrom: string | null;
2731
+ validTo: string | null;
2732
+ attributes: Record<string, unknown>;
2733
+ candidateId: string;
2734
+ recordKind: "fact" | "episode";
2735
+ evidence: {
2736
+ sourceObjectId: string;
2737
+ segmentId: string;
2738
+ startOffset: number;
2739
+ endOffset: number;
2740
+ quotedText: string;
2741
+ }[];
2742
+ entities: {
2743
+ type: string;
2744
+ key: string;
2745
+ canonicalKey: string;
2746
+ displayName: string | null;
2747
+ attributes: Record<string, unknown>;
2748
+ }[];
2749
+ claims: {
2750
+ validFrom: string | null;
2751
+ validTo: string | null;
2752
+ subjectEntityKey: string;
2753
+ predicate: string;
2754
+ objectEntityKey: string | null;
2755
+ literalValue?: unknown;
2756
+ }[];
2757
+ }, {
2758
+ content: string;
2759
+ title: string;
2760
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2761
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2762
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2763
+ topicTags: string[];
2764
+ language: string;
2765
+ attributes: Record<string, unknown>;
2766
+ candidateId: string;
2767
+ recordKind: "fact" | "episode";
2768
+ evidence: {
2769
+ sourceObjectId: string;
2770
+ segmentId: string;
2771
+ startOffset: number;
2772
+ endOffset: number;
2773
+ quotedText: string;
2774
+ }[];
2775
+ entities: {
2776
+ type: string;
2777
+ key: string;
2778
+ canonicalKey: string;
2779
+ displayName: string | null;
2780
+ attributes: Record<string, unknown>;
2781
+ }[];
2782
+ claims: {
2783
+ subjectEntityKey: string;
2784
+ predicate: string;
2785
+ objectEntityKey: string | null;
2786
+ validFrom?: unknown;
2787
+ validTo?: unknown;
2788
+ literalValue?: unknown;
2789
+ }[];
2790
+ validFrom?: unknown;
2791
+ validTo?: unknown;
2792
+ }>, "many">;
2793
+ }, "strict", z.ZodTypeAny, {
2794
+ records: {
2795
+ content: string;
2796
+ title: string;
2797
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2798
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2799
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2800
+ topicTags: string[];
2801
+ language: string;
2802
+ validFrom: string | null;
2803
+ validTo: string | null;
2804
+ attributes: Record<string, unknown>;
2805
+ candidateId: string;
2806
+ recordKind: "fact" | "episode";
2807
+ evidence: {
2808
+ sourceObjectId: string;
2809
+ segmentId: string;
2810
+ startOffset: number;
2811
+ endOffset: number;
2812
+ quotedText: string;
2813
+ }[];
2814
+ entities: {
2815
+ type: string;
2816
+ key: string;
2817
+ canonicalKey: string;
2818
+ displayName: string | null;
2819
+ attributes: Record<string, unknown>;
2820
+ }[];
2821
+ claims: {
2822
+ validFrom: string | null;
2823
+ validTo: string | null;
2824
+ subjectEntityKey: string;
2825
+ predicate: string;
2826
+ objectEntityKey: string | null;
2827
+ literalValue?: unknown;
2828
+ }[];
2829
+ }[];
2830
+ }, {
2831
+ records: {
2832
+ content: string;
2833
+ title: string;
2834
+ memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
2835
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2836
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2837
+ topicTags: string[];
2838
+ language: string;
2839
+ attributes: Record<string, unknown>;
2840
+ candidateId: string;
2841
+ recordKind: "fact" | "episode";
2842
+ evidence: {
2843
+ sourceObjectId: string;
2844
+ segmentId: string;
2845
+ startOffset: number;
2846
+ endOffset: number;
2847
+ quotedText: string;
2848
+ }[];
2849
+ entities: {
2850
+ type: string;
2851
+ key: string;
2852
+ canonicalKey: string;
2853
+ displayName: string | null;
2854
+ attributes: Record<string, unknown>;
2855
+ }[];
2856
+ claims: {
2857
+ subjectEntityKey: string;
2858
+ predicate: string;
2859
+ objectEntityKey: string | null;
2860
+ validFrom?: unknown;
2861
+ validTo?: unknown;
2862
+ literalValue?: unknown;
2863
+ }[];
2864
+ validFrom?: unknown;
2865
+ validTo?: unknown;
2866
+ }[];
2867
+ }>;
2868
+ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
2869
+ candidateId: z.ZodString;
2870
+ status: z.ZodEnum<["classified", "uncertain"]>;
2871
+ sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
2872
+ restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
2873
+ reason: z.ZodString;
2874
+ }, "strict", z.ZodTypeAny, {
2875
+ status: "classified" | "uncertain";
2876
+ reason: string;
2877
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2878
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2879
+ candidateId: string;
2880
+ }, {
2881
+ status: "classified" | "uncertain";
2882
+ reason: string;
2883
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2884
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2885
+ candidateId: string;
2886
+ }>, {
2887
+ status: "classified" | "uncertain";
2888
+ reason: string;
2889
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2890
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2891
+ candidateId: string;
2892
+ }, {
2893
+ status: "classified" | "uncertain";
2894
+ reason: string;
2895
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2896
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2897
+ candidateId: string;
2898
+ }>;
2899
+ export declare const memorySafetyResultSchema: z.ZodObject<{
2900
+ decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
2901
+ candidateId: z.ZodString;
2902
+ status: z.ZodEnum<["classified", "uncertain"]>;
2903
+ sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
2904
+ restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
2905
+ reason: z.ZodString;
2906
+ }, "strict", z.ZodTypeAny, {
2907
+ status: "classified" | "uncertain";
2908
+ reason: string;
2909
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2910
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2911
+ candidateId: string;
2912
+ }, {
2913
+ status: "classified" | "uncertain";
2914
+ reason: string;
2915
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2916
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2917
+ candidateId: string;
2918
+ }>, {
2919
+ status: "classified" | "uncertain";
2920
+ reason: string;
2921
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2922
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2923
+ candidateId: string;
2924
+ }, {
2925
+ status: "classified" | "uncertain";
2926
+ reason: string;
2927
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2928
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2929
+ candidateId: string;
2930
+ }>, "many">;
2931
+ }, "strict", z.ZodTypeAny, {
2932
+ decisions: {
2933
+ status: "classified" | "uncertain";
2934
+ reason: string;
2935
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2936
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2937
+ candidateId: string;
2938
+ }[];
2939
+ }, {
2940
+ decisions: {
2941
+ status: "classified" | "uncertain";
2942
+ reason: string;
2943
+ sensitivityClass: "standard" | "personal" | "restricted" | "secret";
2944
+ restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2945
+ candidateId: string;
2946
+ }[];
2947
+ }>;
2948
+ export declare const memoryConsolidationResultSchema: z.ZodObject<{
2949
+ decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
2950
+ candidateId: z.ZodString;
2951
+ action: z.ZodEnum<["add", "supersede", "contradict", "support", "no_change"]>;
2952
+ targetRecordId: z.ZodNullable<z.ZodString>;
2953
+ reason: z.ZodString;
2954
+ }, "strict", z.ZodTypeAny, {
2955
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
2956
+ reason: string;
2957
+ candidateId: string;
2958
+ targetRecordId: string | null;
2959
+ }, {
2960
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
2961
+ reason: string;
2962
+ candidateId: string;
2963
+ targetRecordId: string | null;
2964
+ }>, {
2965
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
2966
+ reason: string;
2967
+ candidateId: string;
2968
+ targetRecordId: string | null;
2969
+ }, {
2970
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
2971
+ reason: string;
2972
+ candidateId: string;
2973
+ targetRecordId: string | null;
2974
+ }>, "many">;
2975
+ }, "strict", z.ZodTypeAny, {
2976
+ decisions: {
2977
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
2978
+ reason: string;
2979
+ candidateId: string;
2980
+ targetRecordId: string | null;
2981
+ }[];
2982
+ }, {
2983
+ decisions: {
2984
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
2985
+ reason: string;
2986
+ candidateId: string;
2987
+ targetRecordId: string | null;
2988
+ }[];
2989
+ }>;
2990
+ export type MemoryExtractedRecord = z.infer<typeof memoryExtractedRecordSchema>;
2991
+ export type MemorySafetyDecision = z.infer<typeof memorySafetyDecisionSchema>;
2992
+ export type MemoryConsolidationDecision = z.infer<typeof memoryConsolidationResultSchema>['decisions'][number];
2993
+ export declare const memoryProfileResultSchema: z.ZodEffects<z.ZodObject<{
2994
+ buckets: z.ZodArray<z.ZodObject<{
2995
+ key: z.ZodString;
2996
+ content: z.ZodString;
2997
+ includedRecordVersionIds: z.ZodArray<z.ZodString, "many">;
2998
+ }, "strict", z.ZodTypeAny, {
2999
+ content: string;
3000
+ key: string;
3001
+ includedRecordVersionIds: string[];
3002
+ }, {
3003
+ content: string;
3004
+ key: string;
3005
+ includedRecordVersionIds: string[];
3006
+ }>, "many">;
3007
+ }, "strict", z.ZodTypeAny, {
3008
+ buckets: {
3009
+ content: string;
3010
+ key: string;
3011
+ includedRecordVersionIds: string[];
3012
+ }[];
3013
+ }, {
3014
+ buckets: {
3015
+ content: string;
3016
+ key: string;
3017
+ includedRecordVersionIds: string[];
3018
+ }[];
3019
+ }>, {
3020
+ buckets: {
3021
+ content: string;
3022
+ key: string;
3023
+ includedRecordVersionIds: string[];
3024
+ }[];
3025
+ }, {
3026
+ buckets: {
3027
+ content: string;
3028
+ key: string;
3029
+ includedRecordVersionIds: string[];
3030
+ }[];
3031
+ }>;
3032
+ export declare const memoryProfileDeltaResultSchema: z.ZodEffects<z.ZodObject<{
3033
+ buckets: z.ZodArray<z.ZodObject<{
3034
+ key: z.ZodString;
3035
+ content: z.ZodString;
3036
+ includedRecordVersionIds: z.ZodArray<z.ZodString, "many">;
3037
+ }, "strict", z.ZodTypeAny, {
3038
+ content: string;
3039
+ key: string;
3040
+ includedRecordVersionIds: string[];
3041
+ }, {
3042
+ content: string;
3043
+ key: string;
3044
+ includedRecordVersionIds: string[];
3045
+ }>, "many">;
3046
+ removeBucketKeys: z.ZodArray<z.ZodString, "many">;
3047
+ }, "strict", z.ZodTypeAny, {
3048
+ buckets: {
3049
+ content: string;
3050
+ key: string;
3051
+ includedRecordVersionIds: string[];
3052
+ }[];
3053
+ removeBucketKeys: string[];
3054
+ }, {
3055
+ buckets: {
3056
+ content: string;
3057
+ key: string;
3058
+ includedRecordVersionIds: string[];
3059
+ }[];
3060
+ removeBucketKeys: string[];
3061
+ }>, {
3062
+ buckets: {
3063
+ content: string;
3064
+ key: string;
3065
+ includedRecordVersionIds: string[];
3066
+ }[];
3067
+ removeBucketKeys: string[];
3068
+ }, {
3069
+ buckets: {
3070
+ content: string;
3071
+ key: string;
3072
+ includedRecordVersionIds: string[];
3073
+ }[];
3074
+ removeBucketKeys: string[];
3075
+ }>;
3076
+ export declare const memoryExtractionJsonSchema: {
3077
+ readonly type: "object";
3078
+ readonly additionalProperties: false;
3079
+ readonly required: readonly ["records"];
3080
+ readonly properties: {
3081
+ readonly records: {
3082
+ readonly type: "array";
3083
+ readonly maxItems: 100;
3084
+ readonly items: {
3085
+ readonly type: "object";
3086
+ readonly additionalProperties: false;
3087
+ readonly required: readonly ["candidateId", "recordKind", "memoryType", "title", "content", "language", "sensitivityClass", "restrictedDataClasses", "topicTags", "validFrom", "validTo", "evidence", "entities", "claims", "attributes"];
3088
+ readonly properties: {
3089
+ readonly candidateId: {
3090
+ readonly type: "string";
3091
+ };
3092
+ readonly recordKind: {
3093
+ readonly type: "string";
3094
+ readonly enum: readonly ["fact", "episode"];
3095
+ };
3096
+ readonly memoryType: {
3097
+ readonly type: "string";
3098
+ readonly enum: readonly ["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"];
3099
+ };
3100
+ readonly title: {
3101
+ readonly type: "string";
3102
+ };
3103
+ readonly content: {
3104
+ readonly type: "string";
3105
+ };
3106
+ readonly language: {
3107
+ readonly type: "string";
3108
+ };
3109
+ readonly sensitivityClass: {
3110
+ readonly type: "string";
3111
+ readonly enum: readonly ["standard", "personal", "restricted", "secret"];
3112
+ };
3113
+ readonly restrictedDataClasses: {
3114
+ readonly type: "array";
3115
+ readonly maxItems: 7;
3116
+ readonly items: {
3117
+ readonly type: "string";
3118
+ readonly enum: readonly ["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"];
3119
+ };
3120
+ };
3121
+ readonly topicTags: {
3122
+ readonly type: "array";
3123
+ readonly maxItems: 50;
3124
+ readonly items: {
3125
+ readonly type: "string";
3126
+ };
3127
+ };
3128
+ readonly validFrom: {
3129
+ readonly type: readonly ["string", "null"];
3130
+ readonly format: "date-time";
3131
+ };
3132
+ readonly validTo: {
3133
+ readonly type: readonly ["string", "null"];
3134
+ readonly format: "date-time";
3135
+ };
3136
+ readonly evidence: {
3137
+ readonly type: "array";
3138
+ readonly minItems: 1;
3139
+ readonly maxItems: 5;
3140
+ readonly items: {
3141
+ readonly type: "object";
3142
+ readonly additionalProperties: false;
3143
+ readonly required: readonly ["sourceObjectId", "segmentId", "startOffset", "endOffset", "quotedText"];
3144
+ readonly properties: {
3145
+ readonly sourceObjectId: {
3146
+ readonly type: "string";
3147
+ };
3148
+ readonly segmentId: {
3149
+ readonly type: "string";
3150
+ };
3151
+ readonly startOffset: {
3152
+ readonly type: "integer";
3153
+ readonly minimum: 0;
3154
+ };
3155
+ readonly endOffset: {
3156
+ readonly type: "integer";
3157
+ readonly minimum: 1;
3158
+ };
3159
+ readonly quotedText: {
3160
+ readonly type: "string";
3161
+ };
3162
+ };
3163
+ };
3164
+ };
3165
+ readonly entities: {
3166
+ readonly type: "array";
3167
+ readonly description: "Entities used by this record. Every entity key referenced by this record claims must be declared in this same array.";
3168
+ readonly items: {
3169
+ readonly type: "object";
3170
+ readonly additionalProperties: false;
3171
+ readonly required: readonly ["key", "type", "canonicalKey", "displayName", "attributes"];
3172
+ readonly properties: {
3173
+ readonly key: {
3174
+ readonly type: "string";
3175
+ readonly description: "A key unique within this record and used by this record claims.";
3176
+ };
3177
+ readonly type: {
3178
+ readonly type: "string";
3179
+ };
3180
+ readonly canonicalKey: {
3181
+ readonly type: "string";
3182
+ };
3183
+ readonly displayName: {
3184
+ readonly type: readonly ["string", "null"];
3185
+ };
3186
+ readonly attributes: {
3187
+ readonly type: "object";
3188
+ readonly additionalProperties: true;
3189
+ };
3190
+ };
3191
+ };
3192
+ };
3193
+ readonly claims: {
3194
+ readonly type: "array";
3195
+ readonly description: "Claims for this record. Entity references may only use keys declared in this same record entities array.";
3196
+ readonly items: {
3197
+ readonly type: "object";
3198
+ readonly additionalProperties: false;
3199
+ readonly required: readonly ["subjectEntityKey", "predicate", "objectEntityKey", "literalValue", "validFrom", "validTo"];
3200
+ readonly properties: {
3201
+ readonly subjectEntityKey: {
3202
+ readonly type: "string";
3203
+ readonly description: "Must exactly match an entities[].key in this same record.";
3204
+ };
3205
+ readonly predicate: {
3206
+ readonly type: "string";
3207
+ };
3208
+ readonly objectEntityKey: {
3209
+ readonly type: readonly ["string", "null"];
3210
+ readonly description: "When non-null, must exactly match an entities[].key in this same record.";
3211
+ };
3212
+ readonly literalValue: {
3213
+ readonly anyOf: readonly [{
3214
+ readonly type: "string";
3215
+ }, {
3216
+ readonly type: "number";
3217
+ }, {
3218
+ readonly type: "boolean";
3219
+ }, {
3220
+ readonly type: "object";
3221
+ }, {
3222
+ readonly type: "array";
3223
+ }, {
3224
+ readonly type: "null";
3225
+ }];
3226
+ };
3227
+ readonly validFrom: {
3228
+ readonly type: readonly ["string", "null"];
3229
+ readonly format: "date-time";
3230
+ };
3231
+ readonly validTo: {
3232
+ readonly type: readonly ["string", "null"];
3233
+ readonly format: "date-time";
3234
+ };
3235
+ };
3236
+ };
3237
+ };
3238
+ readonly attributes: {
3239
+ readonly type: "object";
3240
+ readonly additionalProperties: true;
3241
+ };
3242
+ };
3243
+ };
3244
+ };
3245
+ };
3246
+ };
3247
+ export declare const memorySafetyJsonSchema: {
3248
+ readonly type: "object";
3249
+ readonly additionalProperties: false;
3250
+ readonly required: readonly ["decisions"];
3251
+ readonly properties: {
3252
+ readonly decisions: {
3253
+ readonly type: "array";
3254
+ readonly maxItems: 100;
3255
+ readonly items: {
3256
+ readonly type: "object";
3257
+ readonly additionalProperties: false;
3258
+ readonly required: readonly ["candidateId", "status", "sensitivityClass", "restrictedDataClasses", "reason"];
3259
+ readonly properties: {
3260
+ readonly candidateId: {
3261
+ readonly type: "string";
3262
+ };
3263
+ readonly status: {
3264
+ readonly type: "string";
3265
+ readonly enum: readonly ["classified", "uncertain"];
3266
+ };
3267
+ readonly sensitivityClass: {
3268
+ readonly type: "string";
3269
+ readonly enum: readonly ["standard", "personal", "restricted", "secret"];
3270
+ };
3271
+ readonly restrictedDataClasses: {
3272
+ readonly type: "array";
3273
+ readonly maxItems: 7;
3274
+ readonly items: {
3275
+ readonly type: "string";
3276
+ readonly enum: readonly ["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"];
3277
+ };
3278
+ };
3279
+ readonly reason: {
3280
+ readonly type: "string";
3281
+ };
3282
+ };
3283
+ };
3284
+ };
3285
+ };
3286
+ };
3287
+ export declare const memoryConsolidationJsonSchema: {
3288
+ readonly type: "object";
3289
+ readonly additionalProperties: false;
3290
+ readonly required: readonly ["decisions"];
3291
+ readonly properties: {
3292
+ readonly decisions: {
3293
+ readonly type: "array";
3294
+ readonly maxItems: 100;
3295
+ readonly items: {
3296
+ readonly type: "object";
3297
+ readonly additionalProperties: false;
3298
+ readonly required: readonly ["candidateId", "action", "targetRecordId", "reason"];
3299
+ readonly properties: {
3300
+ readonly candidateId: {
3301
+ readonly type: "string";
3302
+ };
3303
+ readonly action: {
3304
+ readonly type: "string";
3305
+ readonly enum: readonly ["add", "supersede", "contradict", "support", "no_change"];
3306
+ };
3307
+ readonly targetRecordId: {
3308
+ readonly type: readonly ["string", "null"];
3309
+ readonly format: "uuid";
3310
+ };
3311
+ readonly reason: {
3312
+ readonly type: "string";
3313
+ };
3314
+ };
3315
+ };
3316
+ };
3317
+ };
3318
+ };
3319
+ export declare function memoryProfileJsonSchema(allowedBucketKeys: readonly string[]): {
3320
+ readonly type: "object";
3321
+ readonly additionalProperties: false;
3322
+ readonly required: readonly ["buckets"];
3323
+ readonly properties: {
3324
+ readonly buckets: {
3325
+ readonly type: "array";
3326
+ readonly maxItems: number;
3327
+ readonly items: {
3328
+ readonly type: "object";
3329
+ readonly additionalProperties: false;
3330
+ readonly required: readonly ["key", "content", "includedRecordVersionIds"];
3331
+ readonly properties: {
3332
+ readonly key: {
3333
+ readonly type: "string";
3334
+ readonly enum: readonly string[];
3335
+ };
3336
+ readonly content: {
3337
+ readonly type: "string";
3338
+ readonly minLength: 1;
3339
+ readonly maxLength: 100000;
3340
+ };
3341
+ readonly includedRecordVersionIds: {
3342
+ readonly type: "array";
3343
+ readonly minItems: 1;
3344
+ readonly maxItems: 500;
3345
+ readonly items: {
3346
+ readonly type: "string";
3347
+ readonly format: "uuid";
3348
+ };
3349
+ };
3350
+ };
3351
+ };
3352
+ };
3353
+ };
3354
+ };
3355
+ export declare function memoryProfileDeltaJsonSchema(allowedBucketKeys: readonly string[]): {
3356
+ readonly type: "object";
3357
+ readonly additionalProperties: false;
3358
+ readonly required: readonly ["buckets", "removeBucketKeys"];
3359
+ readonly properties: {
3360
+ readonly buckets: {
3361
+ readonly type: "array";
3362
+ readonly maxItems: number;
3363
+ readonly items: {
3364
+ readonly type: "object";
3365
+ readonly additionalProperties: false;
3366
+ readonly required: readonly ["key", "content", "includedRecordVersionIds"];
3367
+ readonly properties: {
3368
+ readonly key: {
3369
+ readonly type: "string";
3370
+ readonly enum: readonly string[];
3371
+ };
3372
+ readonly content: {
3373
+ readonly type: "string";
3374
+ readonly minLength: 1;
3375
+ readonly maxLength: 100000;
3376
+ };
3377
+ readonly includedRecordVersionIds: {
3378
+ readonly type: "array";
3379
+ readonly minItems: 1;
3380
+ readonly maxItems: 500;
3381
+ readonly items: {
3382
+ readonly type: "string";
3383
+ readonly format: "uuid";
3384
+ };
3385
+ };
3386
+ };
3387
+ };
3388
+ };
3389
+ readonly removeBucketKeys: {
3390
+ readonly type: "array";
3391
+ readonly maxItems: number;
3392
+ readonly items: {
3393
+ readonly type: "string";
3394
+ readonly enum: readonly string[];
3395
+ };
3396
+ };
3397
+ };
3398
+ };
3399
+ //# sourceMappingURL=memory-contract.d.ts.map