@stacklink/sdk 0.2.2 → 0.3.7

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 (33) hide show
  1. package/README.md +24 -1
  2. package/compatibility.json +1 -1
  3. package/dist/src/domain/bot-contract.d.ts +4336 -0
  4. package/dist/src/domain/bot-contract.d.ts.map +1 -0
  5. package/dist/src/domain/bot-contract.js +382 -0
  6. package/dist/src/domain/bot-contract.js.map +1 -0
  7. package/dist/src/domain/memory-contract.d.ts +452 -452
  8. package/dist/src/domain/memory-contract.js +1 -1
  9. package/dist/src/domain/memory-contract.js.map +1 -1
  10. package/dist/src/domain/platform-approval-contract.d.ts +508 -0
  11. package/dist/src/domain/platform-approval-contract.d.ts.map +1 -0
  12. package/dist/src/domain/platform-approval-contract.js +77 -0
  13. package/dist/src/domain/platform-approval-contract.js.map +1 -0
  14. package/dist/src/domain/provider-branding.d.ts.map +1 -1
  15. package/dist/src/domain/provider-branding.js +10 -0
  16. package/dist/src/domain/provider-branding.js.map +1 -1
  17. package/dist/src/domain/stacklink-meta-tools.d.ts +2 -2
  18. package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
  19. package/dist/src/domain/stacklink-meta-tools.js +15 -4
  20. package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
  21. package/dist/src/sdk/framework-tools.d.ts +21 -0
  22. package/dist/src/sdk/framework-tools.d.ts.map +1 -1
  23. package/dist/src/sdk/framework-tools.js +49 -0
  24. package/dist/src/sdk/framework-tools.js.map +1 -1
  25. package/dist/src/sdk/index.d.ts +196 -2
  26. package/dist/src/sdk/index.d.ts.map +1 -1
  27. package/dist/src/sdk/index.js +209 -21
  28. package/dist/src/sdk/index.js.map +1 -1
  29. package/dist/src/sdk/vercel-ai.d.ts +4 -0
  30. package/dist/src/sdk/vercel-ai.d.ts.map +1 -1
  31. package/dist/src/sdk/vercel-ai.js +13 -4
  32. package/dist/src/sdk/vercel-ai.js.map +1 -1
  33. package/package.json +1 -1
@@ -28,17 +28,17 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
28
28
  defaultDestination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
29
29
  allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
30
30
  }, "strict", z.ZodTypeAny, {
31
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
31
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
32
32
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
33
33
  canonicalKey: string;
34
34
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
35
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
35
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
36
36
  }, {
37
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
37
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
38
38
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
39
39
  canonicalKey: string;
40
40
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
41
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
41
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
42
42
  }>, "many">>;
43
43
  connectedUserCanonicalKey: z.ZodNullable<z.ZodString>;
44
44
  allowConnectedUserIntent: z.ZodBoolean;
@@ -53,17 +53,17 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
53
53
  contract: "stacklink.memory.source-quality.v1";
54
54
  qualityContractVersion: 1;
55
55
  sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
56
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
56
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
57
57
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
58
58
  actorCanonicalKey: string | null;
59
59
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
60
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
60
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
61
61
  actors: {
62
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
62
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
63
63
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
64
64
  canonicalKey: string;
65
65
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
66
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
66
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
67
67
  }[];
68
68
  connectedUserCanonicalKey: string | null;
69
69
  allowConnectedUserIntent: boolean;
@@ -77,11 +77,11 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
77
77
  contract: "stacklink.memory.source-quality.v1";
78
78
  qualityContractVersion: 1;
79
79
  sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
80
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
80
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
81
81
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
82
82
  actorCanonicalKey: string | null;
83
83
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
84
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
84
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
85
85
  connectedUserCanonicalKey: string | null;
86
86
  allowConnectedUserIntent: boolean;
87
87
  defaultDurability: "durable" | "episodic" | "transient";
@@ -89,11 +89,11 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
89
89
  hardExclusionSignals: string[];
90
90
  authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
91
91
  actors?: {
92
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
92
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
93
93
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
94
94
  canonicalKey: string;
95
95
  defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
96
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
96
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
97
97
  }[] | undefined;
98
98
  validFrom?: string | null | undefined;
99
99
  validTo?: string | null | undefined;
@@ -108,10 +108,10 @@ export declare const memorySubjectRefSchema: z.ZodObject<{
108
108
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
109
109
  externalId: z.ZodString;
110
110
  }, "strict", z.ZodTypeAny, {
111
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
111
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
112
112
  externalId: string;
113
113
  }, {
114
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
114
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
115
115
  externalId: string;
116
116
  }>;
117
117
  export type MemorySubjectRef = z.infer<typeof memorySubjectRefSchema>;
@@ -144,20 +144,20 @@ export declare const memoryTenantSelectorSchema: z.ZodEffects<z.ZodObject<{
144
144
  externalTenantId: z.ZodOptional<z.ZodString>;
145
145
  sessionId: z.ZodOptional<z.ZodString>;
146
146
  }, "strip", z.ZodTypeAny, {
147
- sessionId?: string | undefined;
148
147
  tenantId?: string | undefined;
148
+ sessionId?: string | undefined;
149
149
  externalTenantId?: string | undefined;
150
150
  }, {
151
- sessionId?: string | undefined;
152
151
  tenantId?: string | undefined;
152
+ sessionId?: string | undefined;
153
153
  externalTenantId?: string | undefined;
154
154
  }>, {
155
- sessionId?: string | undefined;
156
155
  tenantId?: string | undefined;
156
+ sessionId?: string | undefined;
157
157
  externalTenantId?: string | undefined;
158
158
  }, {
159
- sessionId?: string | undefined;
160
159
  tenantId?: string | undefined;
160
+ sessionId?: string | undefined;
161
161
  externalTenantId?: string | undefined;
162
162
  }>;
163
163
  /** Minimal retained provenance, independent of the original source payload. */
@@ -184,14 +184,14 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
184
184
  id: z.ZodString;
185
185
  observed: z.ZodOptional<z.ZodString>;
186
186
  }, "strip", z.ZodTypeAny, {
187
+ kind: string;
187
188
  id: string;
188
189
  name: string;
189
- kind: string;
190
190
  observed?: string | undefined;
191
191
  }, {
192
+ kind: string;
192
193
  id: string;
193
194
  name: string;
194
- kind: string;
195
195
  observed?: string | undefined;
196
196
  }>>;
197
197
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -239,15 +239,16 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
239
239
  by: z.ZodOptional<z.ZodString>;
240
240
  requestId: z.ZodOptional<z.ZodString>;
241
241
  }, "strict", z.ZodTypeAny, {
242
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
242
243
  contract: "stacklink.memory.evidence.v1";
243
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
244
244
  availability: "unknown" | "available" | "deleted";
245
245
  object?: {
246
+ kind: string;
246
247
  id: string;
247
248
  name: string;
248
- kind: string;
249
249
  observed?: string | undefined;
250
250
  } | undefined;
251
+ channel?: string | undefined;
251
252
  conversation?: {
252
253
  sessionId?: string | undefined;
253
254
  turn?: string | undefined;
@@ -265,7 +266,6 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
265
266
  address?: string | undefined;
266
267
  } | undefined;
267
268
  subject?: string | undefined;
268
- channel?: string | undefined;
269
269
  fields?: {
270
270
  label: string;
271
271
  after: string;
@@ -274,13 +274,14 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
274
274
  by?: string | undefined;
275
275
  requestId?: string | undefined;
276
276
  }, {
277
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
277
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
278
278
  object?: {
279
+ kind: string;
279
280
  id: string;
280
281
  name: string;
281
- kind: string;
282
282
  observed?: string | undefined;
283
283
  } | undefined;
284
+ channel?: string | undefined;
284
285
  contract?: "stacklink.memory.evidence.v1" | undefined;
285
286
  conversation?: {
286
287
  sessionId?: string | undefined;
@@ -300,7 +301,6 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
300
301
  address?: string | undefined;
301
302
  } | undefined;
302
303
  subject?: string | undefined;
303
- channel?: string | undefined;
304
304
  fields?: {
305
305
  label: string;
306
306
  after: string;
@@ -321,10 +321,10 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
321
321
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
322
322
  externalId: z.ZodString;
323
323
  }, "strict", z.ZodTypeAny, {
324
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
324
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
325
325
  externalId: string;
326
326
  }, {
327
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
327
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
328
328
  externalId: string;
329
329
  }>, "many">>;
330
330
  mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
@@ -368,14 +368,14 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
368
368
  id: z.ZodString;
369
369
  observed: z.ZodOptional<z.ZodString>;
370
370
  }, "strip", z.ZodTypeAny, {
371
+ kind: string;
371
372
  id: string;
372
373
  name: string;
373
- kind: string;
374
374
  observed?: string | undefined;
375
375
  }, {
376
+ kind: string;
376
377
  id: string;
377
378
  name: string;
378
- kind: string;
379
379
  observed?: string | undefined;
380
380
  }>>;
381
381
  fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -423,15 +423,16 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
423
423
  by: z.ZodOptional<z.ZodString>;
424
424
  requestId: z.ZodOptional<z.ZodString>;
425
425
  }, "strict", z.ZodTypeAny, {
426
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
426
427
  contract: "stacklink.memory.evidence.v1";
427
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
428
428
  availability: "unknown" | "available" | "deleted";
429
429
  object?: {
430
+ kind: string;
430
431
  id: string;
431
432
  name: string;
432
- kind: string;
433
433
  observed?: string | undefined;
434
434
  } | undefined;
435
+ channel?: string | undefined;
435
436
  conversation?: {
436
437
  sessionId?: string | undefined;
437
438
  turn?: string | undefined;
@@ -449,7 +450,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
449
450
  address?: string | undefined;
450
451
  } | undefined;
451
452
  subject?: string | undefined;
452
- channel?: string | undefined;
453
453
  fields?: {
454
454
  label: string;
455
455
  after: string;
@@ -458,13 +458,14 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
458
458
  by?: string | undefined;
459
459
  requestId?: string | undefined;
460
460
  }, {
461
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
461
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
462
462
  object?: {
463
+ kind: string;
463
464
  id: string;
464
465
  name: string;
465
- kind: string;
466
466
  observed?: string | undefined;
467
467
  } | undefined;
468
+ channel?: string | undefined;
468
469
  contract?: "stacklink.memory.evidence.v1" | undefined;
469
470
  conversation?: {
470
471
  sessionId?: string | undefined;
@@ -484,7 +485,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
484
485
  address?: string | undefined;
485
486
  } | undefined;
486
487
  subject?: string | undefined;
487
- channel?: string | undefined;
488
488
  fields?: {
489
489
  label: string;
490
490
  after: string;
@@ -494,24 +494,25 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
494
494
  requestId?: string | undefined;
495
495
  }>>;
496
496
  }, "strict", z.ZodTypeAny, {
497
- kind: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider";
497
+ kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
498
498
  externalId?: string | undefined;
499
499
  providerKey?: string | undefined;
500
+ resourceId?: string | undefined;
500
501
  connectedAccountId?: string | undefined;
501
502
  resourceType?: string | undefined;
502
- resourceId?: string | undefined;
503
503
  toolExecutionId?: string | undefined;
504
504
  applicationKey?: string | undefined;
505
505
  evidence?: {
506
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
506
507
  contract: "stacklink.memory.evidence.v1";
507
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
508
508
  availability: "unknown" | "available" | "deleted";
509
509
  object?: {
510
+ kind: string;
510
511
  id: string;
511
512
  name: string;
512
- kind: string;
513
513
  observed?: string | undefined;
514
514
  } | undefined;
515
+ channel?: string | undefined;
515
516
  conversation?: {
516
517
  sessionId?: string | undefined;
517
518
  turn?: string | undefined;
@@ -529,7 +530,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
529
530
  address?: string | undefined;
530
531
  } | undefined;
531
532
  subject?: string | undefined;
532
- channel?: string | undefined;
533
533
  fields?: {
534
534
  label: string;
535
535
  after: string;
@@ -539,22 +539,23 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
539
539
  requestId?: string | undefined;
540
540
  } | undefined;
541
541
  }, {
542
+ kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
542
543
  externalId?: string | undefined;
543
- kind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
544
544
  providerKey?: string | undefined;
545
+ resourceId?: string | undefined;
545
546
  connectedAccountId?: string | undefined;
546
547
  resourceType?: string | undefined;
547
- resourceId?: string | undefined;
548
548
  toolExecutionId?: string | undefined;
549
549
  applicationKey?: string | undefined;
550
550
  evidence?: {
551
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
551
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
552
552
  object?: {
553
+ kind: string;
553
554
  id: string;
554
555
  name: string;
555
- kind: string;
556
556
  observed?: string | undefined;
557
557
  } | undefined;
558
+ channel?: string | undefined;
558
559
  contract?: "stacklink.memory.evidence.v1" | undefined;
559
560
  conversation?: {
560
561
  sessionId?: string | undefined;
@@ -574,7 +575,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
574
575
  address?: string | undefined;
575
576
  } | undefined;
576
577
  subject?: string | undefined;
577
- channel?: string | undefined;
578
578
  fields?: {
579
579
  label: string;
580
580
  after: string;
@@ -604,25 +604,27 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
604
604
  }>>;
605
605
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
606
606
  }, "strip", z.ZodTypeAny, {
607
+ kind: "block" | "fact" | "episode" | "profile_item";
607
608
  source: {
608
- kind: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider";
609
+ kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
609
610
  externalId?: string | undefined;
610
611
  providerKey?: string | undefined;
612
+ resourceId?: string | undefined;
611
613
  connectedAccountId?: string | undefined;
612
614
  resourceType?: string | undefined;
613
- resourceId?: string | undefined;
614
615
  toolExecutionId?: string | undefined;
615
616
  applicationKey?: string | undefined;
616
617
  evidence?: {
618
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
617
619
  contract: "stacklink.memory.evidence.v1";
618
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
619
620
  availability: "unknown" | "available" | "deleted";
620
621
  object?: {
622
+ kind: string;
621
623
  id: string;
622
624
  name: string;
623
- kind: string;
624
625
  observed?: string | undefined;
625
626
  } | undefined;
627
+ channel?: string | undefined;
626
628
  conversation?: {
627
629
  sessionId?: string | undefined;
628
630
  turn?: string | undefined;
@@ -640,7 +642,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
640
642
  address?: string | undefined;
641
643
  } | undefined;
642
644
  subject?: string | undefined;
643
- channel?: string | undefined;
644
645
  fields?: {
645
646
  label: string;
646
647
  after: string;
@@ -653,20 +654,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
653
654
  metadata: Record<string, unknown>;
654
655
  content: string;
655
656
  mode: "exact" | "extract";
656
- kind: "fact" | "episode" | "profile_item" | "block";
657
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
657
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
658
658
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
659
659
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
660
660
  topicTags: string[];
661
- idempotencyKey?: string | undefined;
661
+ tenantId?: string | undefined;
662
662
  sessionId?: string | undefined;
663
+ idempotencyKey?: string | undefined;
663
664
  validFrom?: string | undefined;
664
665
  validTo?: string | undefined;
665
- tenantId?: string | undefined;
666
666
  externalTenantId?: string | undefined;
667
667
  title?: string | undefined;
668
668
  subjects?: {
669
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
669
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
670
670
  externalId: string;
671
671
  }[] | undefined;
672
672
  language?: string | undefined;
@@ -680,23 +680,26 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
680
680
  occurredAt?: string | undefined;
681
681
  }, {
682
682
  content: string;
683
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
684
+ tenantId?: string | undefined;
683
685
  source?: {
686
+ kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
684
687
  externalId?: string | undefined;
685
- kind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
686
688
  providerKey?: string | undefined;
689
+ resourceId?: string | undefined;
687
690
  connectedAccountId?: string | undefined;
688
691
  resourceType?: string | undefined;
689
- resourceId?: string | undefined;
690
692
  toolExecutionId?: string | undefined;
691
693
  applicationKey?: string | undefined;
692
694
  evidence?: {
693
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
695
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
694
696
  object?: {
697
+ kind: string;
695
698
  id: string;
696
699
  name: string;
697
- kind: string;
698
700
  observed?: string | undefined;
699
701
  } | undefined;
702
+ channel?: string | undefined;
700
703
  contract?: "stacklink.memory.evidence.v1" | undefined;
701
704
  conversation?: {
702
705
  sessionId?: string | undefined;
@@ -716,7 +719,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
716
719
  address?: string | undefined;
717
720
  } | undefined;
718
721
  subject?: string | undefined;
719
- channel?: string | undefined;
720
722
  fields?: {
721
723
  label: string;
722
724
  after: string;
@@ -726,21 +728,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
726
728
  requestId?: string | undefined;
727
729
  } | undefined;
728
730
  } | undefined;
731
+ sessionId?: string | undefined;
729
732
  metadata?: Record<string, unknown> | undefined;
730
733
  idempotencyKey?: string | undefined;
731
- sessionId?: string | undefined;
732
734
  mode?: "exact" | "extract" | undefined;
733
735
  validFrom?: string | undefined;
734
736
  validTo?: string | undefined;
735
- tenantId?: string | undefined;
736
737
  externalTenantId?: string | undefined;
737
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
738
738
  title?: string | undefined;
739
739
  subjects?: {
740
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
740
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
741
741
  externalId: string;
742
742
  }[] | undefined;
743
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
743
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
744
744
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
745
745
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
746
746
  topicTags?: string[] | undefined;
@@ -754,25 +754,27 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
754
754
  } | undefined;
755
755
  occurredAt?: string | undefined;
756
756
  }>, {
757
+ kind: "block" | "fact" | "episode" | "profile_item";
757
758
  source: {
758
- kind: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider";
759
+ kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
759
760
  externalId?: string | undefined;
760
761
  providerKey?: string | undefined;
762
+ resourceId?: string | undefined;
761
763
  connectedAccountId?: string | undefined;
762
764
  resourceType?: string | undefined;
763
- resourceId?: string | undefined;
764
765
  toolExecutionId?: string | undefined;
765
766
  applicationKey?: string | undefined;
766
767
  evidence?: {
768
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
767
769
  contract: "stacklink.memory.evidence.v1";
768
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
769
770
  availability: "unknown" | "available" | "deleted";
770
771
  object?: {
772
+ kind: string;
771
773
  id: string;
772
774
  name: string;
773
- kind: string;
774
775
  observed?: string | undefined;
775
776
  } | undefined;
777
+ channel?: string | undefined;
776
778
  conversation?: {
777
779
  sessionId?: string | undefined;
778
780
  turn?: string | undefined;
@@ -790,7 +792,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
790
792
  address?: string | undefined;
791
793
  } | undefined;
792
794
  subject?: string | undefined;
793
- channel?: string | undefined;
794
795
  fields?: {
795
796
  label: string;
796
797
  after: string;
@@ -803,20 +804,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
803
804
  metadata: Record<string, unknown>;
804
805
  content: string;
805
806
  mode: "exact" | "extract";
806
- kind: "fact" | "episode" | "profile_item" | "block";
807
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
807
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
808
808
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
809
809
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
810
810
  topicTags: string[];
811
- idempotencyKey?: string | undefined;
811
+ tenantId?: string | undefined;
812
812
  sessionId?: string | undefined;
813
+ idempotencyKey?: string | undefined;
813
814
  validFrom?: string | undefined;
814
815
  validTo?: string | undefined;
815
- tenantId?: string | undefined;
816
816
  externalTenantId?: string | undefined;
817
817
  title?: string | undefined;
818
818
  subjects?: {
819
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
819
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
820
820
  externalId: string;
821
821
  }[] | undefined;
822
822
  language?: string | undefined;
@@ -830,23 +830,26 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
830
830
  occurredAt?: string | undefined;
831
831
  }, {
832
832
  content: string;
833
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
834
+ tenantId?: string | undefined;
833
835
  source?: {
836
+ kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
834
837
  externalId?: string | undefined;
835
- kind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
836
838
  providerKey?: string | undefined;
839
+ resourceId?: string | undefined;
837
840
  connectedAccountId?: string | undefined;
838
841
  resourceType?: string | undefined;
839
- resourceId?: string | undefined;
840
842
  toolExecutionId?: string | undefined;
841
843
  applicationKey?: string | undefined;
842
844
  evidence?: {
843
- kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
845
+ kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
844
846
  object?: {
847
+ kind: string;
845
848
  id: string;
846
849
  name: string;
847
- kind: string;
848
850
  observed?: string | undefined;
849
851
  } | undefined;
852
+ channel?: string | undefined;
850
853
  contract?: "stacklink.memory.evidence.v1" | undefined;
851
854
  conversation?: {
852
855
  sessionId?: string | undefined;
@@ -866,7 +869,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
866
869
  address?: string | undefined;
867
870
  } | undefined;
868
871
  subject?: string | undefined;
869
- channel?: string | undefined;
870
872
  fields?: {
871
873
  label: string;
872
874
  after: string;
@@ -876,21 +878,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
876
878
  requestId?: string | undefined;
877
879
  } | undefined;
878
880
  } | undefined;
881
+ sessionId?: string | undefined;
879
882
  metadata?: Record<string, unknown> | undefined;
880
883
  idempotencyKey?: string | undefined;
881
- sessionId?: string | undefined;
882
884
  mode?: "exact" | "extract" | undefined;
883
885
  validFrom?: string | undefined;
884
886
  validTo?: string | undefined;
885
- tenantId?: string | undefined;
886
887
  externalTenantId?: string | undefined;
887
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
888
888
  title?: string | undefined;
889
889
  subjects?: {
890
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
890
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
891
891
  externalId: string;
892
892
  }[] | undefined;
893
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
893
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
894
894
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
895
895
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
896
896
  topicTags?: string[] | undefined;
@@ -917,10 +917,10 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
917
917
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
918
918
  externalId: z.ZodString;
919
919
  }, "strict", z.ZodTypeAny, {
920
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
920
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
921
921
  externalId: string;
922
922
  }, {
923
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
923
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
924
924
  externalId: string;
925
925
  }>, "many">>;
926
926
  mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
@@ -976,6 +976,7 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
976
976
  }>>;
977
977
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
978
978
  }, "strip", z.ZodTypeAny, {
979
+ kind: "block" | "fact" | "episode" | "profile_item";
979
980
  metadata: Record<string, unknown>;
980
981
  input: {
981
982
  type: "file";
@@ -987,20 +988,19 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
987
988
  url: string;
988
989
  };
989
990
  mode: "exact" | "extract";
990
- kind: "fact" | "episode" | "profile_item" | "block";
991
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
991
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
992
992
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
993
993
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
994
994
  topicTags: string[];
995
- idempotencyKey?: string | undefined;
995
+ tenantId?: string | undefined;
996
996
  sessionId?: string | undefined;
997
+ idempotencyKey?: string | undefined;
997
998
  validFrom?: string | undefined;
998
999
  validTo?: string | undefined;
999
- tenantId?: string | undefined;
1000
1000
  externalTenantId?: string | undefined;
1001
1001
  title?: string | undefined;
1002
1002
  subjects?: {
1003
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1003
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1004
1004
  externalId: string;
1005
1005
  }[] | undefined;
1006
1006
  language?: string | undefined;
@@ -1022,21 +1022,21 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1022
1022
  type: "url";
1023
1023
  url: string;
1024
1024
  };
1025
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1026
+ tenantId?: string | undefined;
1027
+ sessionId?: string | undefined;
1025
1028
  metadata?: Record<string, unknown> | undefined;
1026
1029
  idempotencyKey?: string | undefined;
1027
- sessionId?: string | undefined;
1028
1030
  mode?: "exact" | "extract" | undefined;
1029
1031
  validFrom?: string | undefined;
1030
1032
  validTo?: string | undefined;
1031
- tenantId?: string | undefined;
1032
1033
  externalTenantId?: string | undefined;
1033
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1034
1034
  title?: string | undefined;
1035
1035
  subjects?: {
1036
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1036
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1037
1037
  externalId: string;
1038
1038
  }[] | undefined;
1039
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1039
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1040
1040
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1041
1041
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1042
1042
  topicTags?: string[] | undefined;
@@ -1050,6 +1050,7 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1050
1050
  } | undefined;
1051
1051
  occurredAt?: string | undefined;
1052
1052
  }>, {
1053
+ kind: "block" | "fact" | "episode" | "profile_item";
1053
1054
  metadata: Record<string, unknown>;
1054
1055
  input: {
1055
1056
  type: "file";
@@ -1061,20 +1062,19 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1061
1062
  url: string;
1062
1063
  };
1063
1064
  mode: "exact" | "extract";
1064
- kind: "fact" | "episode" | "profile_item" | "block";
1065
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1065
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1066
1066
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1067
1067
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1068
1068
  topicTags: string[];
1069
- idempotencyKey?: string | undefined;
1069
+ tenantId?: string | undefined;
1070
1070
  sessionId?: string | undefined;
1071
+ idempotencyKey?: string | undefined;
1071
1072
  validFrom?: string | undefined;
1072
1073
  validTo?: string | undefined;
1073
- tenantId?: string | undefined;
1074
1074
  externalTenantId?: string | undefined;
1075
1075
  title?: string | undefined;
1076
1076
  subjects?: {
1077
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1077
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1078
1078
  externalId: string;
1079
1079
  }[] | undefined;
1080
1080
  language?: string | undefined;
@@ -1096,21 +1096,21 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1096
1096
  type: "url";
1097
1097
  url: string;
1098
1098
  };
1099
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1100
+ tenantId?: string | undefined;
1101
+ sessionId?: string | undefined;
1099
1102
  metadata?: Record<string, unknown> | undefined;
1100
1103
  idempotencyKey?: string | undefined;
1101
- sessionId?: string | undefined;
1102
1104
  mode?: "exact" | "extract" | undefined;
1103
1105
  validFrom?: string | undefined;
1104
1106
  validTo?: string | undefined;
1105
- tenantId?: string | undefined;
1106
1107
  externalTenantId?: string | undefined;
1107
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1108
1108
  title?: string | undefined;
1109
1109
  subjects?: {
1110
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1110
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1111
1111
  externalId: string;
1112
1112
  }[] | undefined;
1113
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1113
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1114
1114
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1115
1115
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1116
1116
  topicTags?: string[] | undefined;
@@ -1139,10 +1139,10 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1139
1139
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1140
1140
  externalId: z.ZodString;
1141
1141
  }, "strict", z.ZodTypeAny, {
1142
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1142
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1143
1143
  externalId: string;
1144
1144
  }, {
1145
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1145
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1146
1146
  externalId: string;
1147
1147
  }>, "many">>;
1148
1148
  query: z.ZodString;
@@ -1166,16 +1166,16 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1166
1166
  states: ("current" | "conflicted")[];
1167
1167
  includeGraph: boolean;
1168
1168
  includeSourceRefs: boolean;
1169
+ tenantId?: string | undefined;
1169
1170
  sessionId?: string | undefined;
1170
1171
  recordedAt?: string | undefined;
1171
- tenantId?: string | undefined;
1172
1172
  externalTenantId?: string | undefined;
1173
1173
  subjects?: {
1174
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1174
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1175
1175
  externalId: string;
1176
1176
  }[] | undefined;
1177
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1178
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1177
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1178
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1179
1179
  providerKeys?: string[] | undefined;
1180
1180
  sourceFamilyKeys?: string[] | undefined;
1181
1181
  connectedAccountIds?: string[] | undefined;
@@ -1185,17 +1185,17 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1185
1185
  semanticCandidateLimit?: number | undefined;
1186
1186
  }, {
1187
1187
  query: string;
1188
- limit?: number | undefined;
1188
+ tenantId?: string | undefined;
1189
1189
  sessionId?: string | undefined;
1190
+ limit?: number | undefined;
1190
1191
  recordedAt?: string | undefined;
1191
- tenantId?: string | undefined;
1192
1192
  externalTenantId?: string | undefined;
1193
1193
  subjects?: {
1194
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1194
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1195
1195
  externalId: string;
1196
1196
  }[] | undefined;
1197
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1198
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1197
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1198
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1199
1199
  providerKeys?: string[] | undefined;
1200
1200
  sourceFamilyKeys?: string[] | undefined;
1201
1201
  connectedAccountIds?: string[] | undefined;
@@ -1212,16 +1212,16 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1212
1212
  states: ("current" | "conflicted")[];
1213
1213
  includeGraph: boolean;
1214
1214
  includeSourceRefs: boolean;
1215
+ tenantId?: string | undefined;
1215
1216
  sessionId?: string | undefined;
1216
1217
  recordedAt?: string | undefined;
1217
- tenantId?: string | undefined;
1218
1218
  externalTenantId?: string | undefined;
1219
1219
  subjects?: {
1220
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1220
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1221
1221
  externalId: string;
1222
1222
  }[] | undefined;
1223
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1224
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1223
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1224
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1225
1225
  providerKeys?: string[] | undefined;
1226
1226
  sourceFamilyKeys?: string[] | undefined;
1227
1227
  connectedAccountIds?: string[] | undefined;
@@ -1231,17 +1231,17 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1231
1231
  semanticCandidateLimit?: number | undefined;
1232
1232
  }, {
1233
1233
  query: string;
1234
- limit?: number | undefined;
1234
+ tenantId?: string | undefined;
1235
1235
  sessionId?: string | undefined;
1236
+ limit?: number | undefined;
1236
1237
  recordedAt?: string | undefined;
1237
- tenantId?: string | undefined;
1238
1238
  externalTenantId?: string | undefined;
1239
1239
  subjects?: {
1240
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1240
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1241
1241
  externalId: string;
1242
1242
  }[] | undefined;
1243
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1244
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1243
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1244
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1245
1245
  providerKeys?: string[] | undefined;
1246
1246
  sourceFamilyKeys?: string[] | undefined;
1247
1247
  connectedAccountIds?: string[] | undefined;
@@ -1263,10 +1263,10 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1263
1263
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1264
1264
  externalId: z.ZodString;
1265
1265
  }, "strict", z.ZodTypeAny, {
1266
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1266
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1267
1267
  externalId: string;
1268
1268
  }, {
1269
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1269
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1270
1270
  externalId: string;
1271
1271
  }>, "many">>;
1272
1272
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
@@ -1298,16 +1298,16 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1298
1298
  includeSourceRefs: boolean;
1299
1299
  includeRecentEpisodes: boolean;
1300
1300
  promptFormat: "text" | "markdown";
1301
+ tenantId?: string | undefined;
1301
1302
  sessionId?: string | undefined;
1302
1303
  recordedAt?: string | undefined;
1303
- tenantId?: string | undefined;
1304
1304
  externalTenantId?: string | undefined;
1305
1305
  subjects?: {
1306
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1306
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1307
1307
  externalId: string;
1308
1308
  }[] | undefined;
1309
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1310
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1309
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1310
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1311
1311
  providerKeys?: string[] | undefined;
1312
1312
  sourceFamilyKeys?: string[] | undefined;
1313
1313
  connectedAccountIds?: string[] | undefined;
@@ -1320,17 +1320,17 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1320
1320
  includeBlocks?: boolean | undefined;
1321
1321
  }, {
1322
1322
  query: string;
1323
- limit?: number | undefined;
1323
+ tenantId?: string | undefined;
1324
1324
  sessionId?: string | undefined;
1325
+ limit?: number | undefined;
1325
1326
  recordedAt?: string | undefined;
1326
- tenantId?: string | undefined;
1327
1327
  externalTenantId?: string | undefined;
1328
1328
  subjects?: {
1329
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1329
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1330
1330
  externalId: string;
1331
1331
  }[] | undefined;
1332
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1333
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1332
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1333
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1334
1334
  providerKeys?: string[] | undefined;
1335
1335
  sourceFamilyKeys?: string[] | undefined;
1336
1336
  connectedAccountIds?: string[] | undefined;
@@ -1354,16 +1354,16 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1354
1354
  includeSourceRefs: boolean;
1355
1355
  includeRecentEpisodes: boolean;
1356
1356
  promptFormat: "text" | "markdown";
1357
+ tenantId?: string | undefined;
1357
1358
  sessionId?: string | undefined;
1358
1359
  recordedAt?: string | undefined;
1359
- tenantId?: string | undefined;
1360
1360
  externalTenantId?: string | undefined;
1361
1361
  subjects?: {
1362
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1362
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1363
1363
  externalId: string;
1364
1364
  }[] | undefined;
1365
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1366
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1365
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1366
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1367
1367
  providerKeys?: string[] | undefined;
1368
1368
  sourceFamilyKeys?: string[] | undefined;
1369
1369
  connectedAccountIds?: string[] | undefined;
@@ -1376,17 +1376,17 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1376
1376
  includeBlocks?: boolean | undefined;
1377
1377
  }, {
1378
1378
  query: string;
1379
- limit?: number | undefined;
1379
+ tenantId?: string | undefined;
1380
1380
  sessionId?: string | undefined;
1381
+ limit?: number | undefined;
1381
1382
  recordedAt?: string | undefined;
1382
- tenantId?: string | undefined;
1383
1383
  externalTenantId?: string | undefined;
1384
1384
  subjects?: {
1385
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1385
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1386
1386
  externalId: string;
1387
1387
  }[] | undefined;
1388
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
1389
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1388
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1389
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1390
1390
  providerKeys?: string[] | undefined;
1391
1391
  sourceFamilyKeys?: string[] | undefined;
1392
1392
  connectedAccountIds?: string[] | undefined;
@@ -1418,48 +1418,48 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
1418
1418
  limit: z.ZodDefault<z.ZodNumber>;
1419
1419
  }, "strip", z.ZodTypeAny, {
1420
1420
  limit: number;
1421
- cursor?: string | undefined;
1422
- sessionId?: string | undefined;
1421
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1423
1422
  tenantId?: string | undefined;
1424
- externalTenantId?: string | undefined;
1425
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1423
+ sessionId?: string | undefined;
1424
+ cursor?: string | undefined;
1426
1425
  state?: "current" | "conflicted" | undefined;
1427
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1426
+ externalTenantId?: string | undefined;
1427
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1428
1428
  externalSubjectId?: string | undefined;
1429
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1429
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1430
1430
  }, {
1431
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1432
+ tenantId?: string | undefined;
1433
+ sessionId?: string | undefined;
1431
1434
  cursor?: string | undefined;
1432
1435
  limit?: number | undefined;
1433
- sessionId?: string | undefined;
1434
- tenantId?: string | undefined;
1435
- externalTenantId?: string | undefined;
1436
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1437
1436
  state?: "current" | "conflicted" | undefined;
1438
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1437
+ externalTenantId?: string | undefined;
1438
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1439
1439
  externalSubjectId?: string | undefined;
1440
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1440
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1441
1441
  }>, {
1442
1442
  limit: number;
1443
- cursor?: string | undefined;
1444
- sessionId?: string | undefined;
1443
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1445
1444
  tenantId?: string | undefined;
1446
- externalTenantId?: string | undefined;
1447
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1445
+ sessionId?: string | undefined;
1446
+ cursor?: string | undefined;
1448
1447
  state?: "current" | "conflicted" | undefined;
1449
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1448
+ externalTenantId?: string | undefined;
1449
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1450
1450
  externalSubjectId?: string | undefined;
1451
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1451
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1452
1452
  }, {
1453
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1454
+ tenantId?: string | undefined;
1455
+ sessionId?: string | undefined;
1453
1456
  cursor?: string | undefined;
1454
1457
  limit?: number | undefined;
1455
- sessionId?: string | undefined;
1456
- tenantId?: string | undefined;
1457
- externalTenantId?: string | undefined;
1458
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1459
1458
  state?: "current" | "conflicted" | undefined;
1460
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1459
+ externalTenantId?: string | undefined;
1460
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1461
1461
  externalSubjectId?: string | undefined;
1462
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1462
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1463
1463
  }>;
1464
1464
  export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
1465
1465
  readonly tenantId: z.ZodOptional<z.ZodString>;
@@ -1473,44 +1473,44 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
1473
1473
  readonly limit: z.ZodDefault<z.ZodNumber>;
1474
1474
  }, "strip", z.ZodTypeAny, {
1475
1475
  limit: number;
1476
- cursor?: string | undefined;
1477
- sessionId?: string | undefined;
1476
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1478
1477
  tenantId?: string | undefined;
1478
+ sessionId?: string | undefined;
1479
+ cursor?: string | undefined;
1479
1480
  externalTenantId?: string | undefined;
1480
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1481
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1481
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1482
1482
  externalSubjectId?: string | undefined;
1483
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1483
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1484
1484
  }, {
1485
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1486
+ tenantId?: string | undefined;
1487
+ sessionId?: string | undefined;
1485
1488
  cursor?: string | undefined;
1486
1489
  limit?: number | undefined;
1487
- sessionId?: string | undefined;
1488
- tenantId?: string | undefined;
1489
1490
  externalTenantId?: string | undefined;
1490
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1491
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1491
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1492
1492
  externalSubjectId?: string | undefined;
1493
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1493
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1494
1494
  }>, {
1495
1495
  limit: number;
1496
- cursor?: string | undefined;
1497
- sessionId?: string | undefined;
1496
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1498
1497
  tenantId?: string | undefined;
1498
+ sessionId?: string | undefined;
1499
+ cursor?: string | undefined;
1499
1500
  externalTenantId?: string | undefined;
1500
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1501
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1501
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1502
1502
  externalSubjectId?: string | undefined;
1503
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1503
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1504
1504
  }, {
1505
+ kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
1506
+ tenantId?: string | undefined;
1507
+ sessionId?: string | undefined;
1505
1508
  cursor?: string | undefined;
1506
1509
  limit?: number | undefined;
1507
- sessionId?: string | undefined;
1508
- tenantId?: string | undefined;
1509
1510
  externalTenantId?: string | undefined;
1510
- kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
1511
- subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
1511
+ subjectType?: "custom" | "run" | "user" | "agent" | "tenant" | "application" | undefined;
1512
1512
  externalSubjectId?: string | undefined;
1513
- sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
1513
+ sourceKind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
1514
1514
  }>;
1515
1515
  export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
1516
1516
  content: z.ZodOptional<z.ZodString>;
@@ -1526,57 +1526,57 @@ export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
1526
1526
  reason: z.ZodOptional<z.ZodString>;
1527
1527
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1528
1528
  }, "strip", z.ZodTypeAny, {
1529
+ reason?: string | undefined;
1529
1530
  metadata?: Record<string, unknown> | undefined;
1530
1531
  content?: string | undefined;
1531
- reason?: string | undefined;
1532
+ state?: "current" | "conflicted" | undefined;
1532
1533
  validFrom?: string | null | undefined;
1533
1534
  validTo?: string | null | undefined;
1534
1535
  title?: string | null | undefined;
1535
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1536
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1536
1537
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1537
1538
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1538
1539
  topicTags?: string[] | undefined;
1539
1540
  language?: string | null | undefined;
1540
- state?: "current" | "conflicted" | undefined;
1541
1541
  }, {
1542
+ reason?: string | undefined;
1542
1543
  metadata?: Record<string, unknown> | undefined;
1543
1544
  content?: string | undefined;
1544
- reason?: string | undefined;
1545
+ state?: "current" | "conflicted" | undefined;
1545
1546
  validFrom?: string | null | undefined;
1546
1547
  validTo?: string | null | undefined;
1547
1548
  title?: string | null | undefined;
1548
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1549
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1549
1550
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1550
1551
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1551
1552
  topicTags?: string[] | undefined;
1552
1553
  language?: string | null | undefined;
1553
- state?: "current" | "conflicted" | undefined;
1554
1554
  }>, {
1555
+ reason?: string | undefined;
1555
1556
  metadata?: Record<string, unknown> | undefined;
1556
1557
  content?: string | undefined;
1557
- reason?: string | undefined;
1558
+ state?: "current" | "conflicted" | undefined;
1558
1559
  validFrom?: string | null | undefined;
1559
1560
  validTo?: string | null | undefined;
1560
1561
  title?: string | null | undefined;
1561
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1562
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1562
1563
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1563
1564
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1564
1565
  topicTags?: string[] | undefined;
1565
1566
  language?: string | null | undefined;
1566
- state?: "current" | "conflicted" | undefined;
1567
1567
  }, {
1568
+ reason?: string | undefined;
1568
1569
  metadata?: Record<string, unknown> | undefined;
1569
1570
  content?: string | undefined;
1570
- reason?: string | undefined;
1571
+ state?: "current" | "conflicted" | undefined;
1571
1572
  validFrom?: string | null | undefined;
1572
1573
  validTo?: string | null | undefined;
1573
1574
  title?: string | null | undefined;
1574
- memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1575
+ memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
1575
1576
  sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
1576
1577
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
1577
1578
  topicTags?: string[] | undefined;
1578
1579
  language?: string | null | undefined;
1579
- state?: "current" | "conflicted" | undefined;
1580
1580
  }>;
1581
1581
  export type MemoryRecordUpdateInput = z.infer<typeof memoryRecordUpdateInputSchema>;
1582
1582
  export declare const memoryQualityReviewDispositions: readonly ["keep", "correct", "convert_to_episode", "restrict"];
@@ -1645,8 +1645,8 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1645
1645
  reason: z.ZodString;
1646
1646
  }, "strict", z.ZodTypeAny, {
1647
1647
  reason: string;
1648
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
1649
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1648
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1649
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1650
1650
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1651
1651
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1652
1652
  disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
@@ -1672,8 +1672,8 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1672
1672
  language?: string | null | undefined;
1673
1673
  }, {
1674
1674
  reason: string;
1675
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
1676
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1675
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1676
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1677
1677
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1678
1678
  disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
1679
1679
  salience: "low" | "medium" | "high";
@@ -1699,8 +1699,8 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1699
1699
  language?: string | null | undefined;
1700
1700
  }>, {
1701
1701
  reason: string;
1702
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
1703
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1702
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1703
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1704
1704
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1705
1705
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
1706
1706
  disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
@@ -1726,8 +1726,8 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
1726
1726
  language?: string | null | undefined;
1727
1727
  }, {
1728
1728
  reason: string;
1729
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
1730
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1729
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
1730
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
1731
1731
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
1732
1732
  disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
1733
1733
  salience: "low" | "medium" | "high";
@@ -1768,10 +1768,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1768
1768
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1769
1769
  externalId: z.ZodString;
1770
1770
  }, "strict", z.ZodTypeAny, {
1771
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1771
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1772
1772
  externalId: string;
1773
1773
  }, {
1774
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1774
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1775
1775
  externalId: string;
1776
1776
  }>, "many">>;
1777
1777
  title: z.ZodString;
@@ -1781,60 +1781,60 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1781
1781
  required: z.ZodDefault<z.ZodBoolean>;
1782
1782
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1783
1783
  }, "strip", z.ZodTypeAny, {
1784
- required: boolean;
1785
1784
  metadata: Record<string, unknown>;
1786
1785
  content: string;
1787
- title: string;
1788
1786
  access: "read_only" | "editable";
1787
+ required: boolean;
1788
+ title: string;
1789
1789
  priority: number;
1790
- sessionId?: string | undefined;
1791
1790
  tenantId?: string | undefined;
1791
+ sessionId?: string | undefined;
1792
1792
  externalTenantId?: string | undefined;
1793
1793
  subjects?: {
1794
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1794
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1795
1795
  externalId: string;
1796
1796
  }[] | undefined;
1797
1797
  }, {
1798
1798
  content: string;
1799
1799
  title: string;
1800
- required?: boolean | undefined;
1801
- metadata?: Record<string, unknown> | undefined;
1802
- sessionId?: string | undefined;
1803
1800
  tenantId?: string | undefined;
1801
+ sessionId?: string | undefined;
1802
+ metadata?: Record<string, unknown> | undefined;
1803
+ access?: "read_only" | "editable" | undefined;
1804
+ required?: boolean | undefined;
1804
1805
  externalTenantId?: string | undefined;
1805
1806
  subjects?: {
1806
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1807
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1807
1808
  externalId: string;
1808
1809
  }[] | undefined;
1809
- access?: "read_only" | "editable" | undefined;
1810
1810
  priority?: number | undefined;
1811
1811
  }>, {
1812
- required: boolean;
1813
1812
  metadata: Record<string, unknown>;
1814
1813
  content: string;
1815
- title: string;
1816
1814
  access: "read_only" | "editable";
1815
+ required: boolean;
1816
+ title: string;
1817
1817
  priority: number;
1818
- sessionId?: string | undefined;
1819
1818
  tenantId?: string | undefined;
1819
+ sessionId?: string | undefined;
1820
1820
  externalTenantId?: string | undefined;
1821
1821
  subjects?: {
1822
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1822
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1823
1823
  externalId: string;
1824
1824
  }[] | undefined;
1825
1825
  }, {
1826
1826
  content: string;
1827
1827
  title: string;
1828
- required?: boolean | undefined;
1829
- metadata?: Record<string, unknown> | undefined;
1830
- sessionId?: string | undefined;
1831
1828
  tenantId?: string | undefined;
1829
+ sessionId?: string | undefined;
1830
+ metadata?: Record<string, unknown> | undefined;
1831
+ access?: "read_only" | "editable" | undefined;
1832
+ required?: boolean | undefined;
1832
1833
  externalTenantId?: string | undefined;
1833
1834
  subjects?: {
1834
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1835
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1835
1836
  externalId: string;
1836
1837
  }[] | undefined;
1837
- access?: "read_only" | "editable" | undefined;
1838
1838
  priority?: number | undefined;
1839
1839
  }>;
1840
1840
  export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
@@ -1863,10 +1863,10 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1863
1863
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1864
1864
  externalId: z.ZodString;
1865
1865
  }, "strict", z.ZodTypeAny, {
1866
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1866
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1867
1867
  externalId: string;
1868
1868
  }, {
1869
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1869
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1870
1870
  externalId: string;
1871
1871
  }>, "many">;
1872
1872
  policyKey: z.ZodDefault<z.ZodString>;
@@ -1898,7 +1898,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1898
1898
  metadata: Record<string, unknown>;
1899
1899
  policyKey: string;
1900
1900
  targets: {
1901
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1901
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1902
1902
  externalId: string;
1903
1903
  }[];
1904
1904
  tenantId?: string | undefined;
@@ -1918,11 +1918,11 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1918
1918
  artifactIds?: string[] | undefined;
1919
1919
  };
1920
1920
  targets: {
1921
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1921
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1922
1922
  externalId: string;
1923
1923
  }[];
1924
- metadata?: Record<string, unknown> | undefined;
1925
1924
  tenantId?: string | undefined;
1925
+ metadata?: Record<string, unknown> | undefined;
1926
1926
  externalTenantId?: string | undefined;
1927
1927
  policyKey?: string | undefined;
1928
1928
  consent?: {
@@ -1942,7 +1942,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1942
1942
  metadata: Record<string, unknown>;
1943
1943
  policyKey: string;
1944
1944
  targets: {
1945
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1945
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1946
1946
  externalId: string;
1947
1947
  }[];
1948
1948
  tenantId?: string | undefined;
@@ -1962,11 +1962,11 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
1962
1962
  artifactIds?: string[] | undefined;
1963
1963
  };
1964
1964
  targets: {
1965
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1965
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1966
1966
  externalId: string;
1967
1967
  }[];
1968
- metadata?: Record<string, unknown> | undefined;
1969
1968
  tenantId?: string | undefined;
1969
+ metadata?: Record<string, unknown> | undefined;
1970
1970
  externalTenantId?: string | undefined;
1971
1971
  policyKey?: string | undefined;
1972
1972
  consent?: {
@@ -1991,10 +1991,10 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
1991
1991
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
1992
1992
  externalId: z.ZodString;
1993
1993
  }, "strict", z.ZodTypeAny, {
1994
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1994
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1995
1995
  externalId: string;
1996
1996
  }, {
1997
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
1997
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1998
1998
  externalId: string;
1999
1999
  }>, "many">;
2000
2000
  existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
@@ -2014,7 +2014,7 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2014
2014
  rememberInstructions: z.ZodDefault<z.ZodString>;
2015
2015
  excludeInstructions: z.ZodDefault<z.ZodString>;
2016
2016
  allowedMemoryTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
2017
- learnedRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2017
+ learnedRetentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2018
2018
  sourceRetentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2019
2019
  consent: z.ZodOptional<z.ZodObject<{
2020
2020
  status: z.ZodLiteral<"granted">;
@@ -2036,19 +2036,19 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2036
2036
  }, "strict", z.ZodTypeAny, {
2037
2037
  metadata: Record<string, unknown>;
2038
2038
  idempotencyKey: string;
2039
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2039
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2040
2040
  connectedAccountId: string;
2041
2041
  resourceIds: string[];
2042
2042
  targets: {
2043
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2043
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2044
2044
  externalId: string;
2045
2045
  }[];
2046
2046
  approvedOperationalActorCanonicalKeys: string[];
2047
2047
  sourceFamilyKey: string;
2048
2048
  selectionMode: "selected_resources" | "recipe_default";
2049
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2049
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2050
2050
  maxBackfillItems: number | null;
2051
- deliveryMode: "auto" | "webhook" | "polling";
2051
+ deliveryMode: "webhook" | "auto" | "polling";
2052
2052
  authorizationPerspective: "bot" | "user" | "provider_default";
2053
2053
  includeAttachments: boolean;
2054
2054
  includeFileContent: boolean;
@@ -2061,10 +2061,9 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2061
2061
  excludedActorCanonicalKeys: string[];
2062
2062
  rememberInstructions: string;
2063
2063
  excludeInstructions: string;
2064
- learnedRetentionDays: number | null;
2065
2064
  sourceRetentionDays: number | null;
2066
- sessionId?: string | undefined;
2067
2065
  tenantId?: string | undefined;
2066
+ sessionId?: string | undefined;
2068
2067
  externalTenantId?: string | undefined;
2069
2068
  consent?: {
2070
2069
  status: "granted";
@@ -2072,18 +2071,19 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2072
2071
  recordedAt: string;
2073
2072
  reference?: string | undefined;
2074
2073
  } | undefined;
2074
+ learnedRetentionDays?: number | null | undefined;
2075
2075
  }, {
2076
2076
  idempotencyKey: string;
2077
2077
  connectedAccountId: string;
2078
2078
  targets: {
2079
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2079
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2080
2080
  externalId: string;
2081
2081
  }[];
2082
2082
  sourceFamilyKey: string;
2083
- metadata?: Record<string, unknown> | undefined;
2084
- sessionId?: string | undefined;
2085
- allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2086
2083
  tenantId?: string | undefined;
2084
+ sessionId?: string | undefined;
2085
+ metadata?: Record<string, unknown> | undefined;
2086
+ allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2087
2087
  externalTenantId?: string | undefined;
2088
2088
  consent?: {
2089
2089
  status: "granted";
@@ -2094,9 +2094,9 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2094
2094
  resourceIds?: string[] | undefined;
2095
2095
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2096
2096
  selectionMode?: "selected_resources" | "recipe_default" | undefined;
2097
- existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2097
+ existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2098
2098
  maxBackfillItems?: number | null | undefined;
2099
- deliveryMode?: "auto" | "webhook" | "polling" | undefined;
2099
+ deliveryMode?: "webhook" | "auto" | "polling" | undefined;
2100
2100
  authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2101
2101
  includeAttachments?: boolean | undefined;
2102
2102
  includeFileContent?: boolean | undefined;
@@ -2114,19 +2114,19 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2114
2114
  }>, {
2115
2115
  metadata: Record<string, unknown>;
2116
2116
  idempotencyKey: string;
2117
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2117
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2118
2118
  connectedAccountId: string;
2119
2119
  resourceIds: string[];
2120
2120
  targets: {
2121
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2121
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2122
2122
  externalId: string;
2123
2123
  }[];
2124
2124
  approvedOperationalActorCanonicalKeys: string[];
2125
2125
  sourceFamilyKey: string;
2126
2126
  selectionMode: "selected_resources" | "recipe_default";
2127
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2127
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2128
2128
  maxBackfillItems: number | null;
2129
- deliveryMode: "auto" | "webhook" | "polling";
2129
+ deliveryMode: "webhook" | "auto" | "polling";
2130
2130
  authorizationPerspective: "bot" | "user" | "provider_default";
2131
2131
  includeAttachments: boolean;
2132
2132
  includeFileContent: boolean;
@@ -2139,10 +2139,9 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2139
2139
  excludedActorCanonicalKeys: string[];
2140
2140
  rememberInstructions: string;
2141
2141
  excludeInstructions: string;
2142
- learnedRetentionDays: number | null;
2143
2142
  sourceRetentionDays: number | null;
2144
- sessionId?: string | undefined;
2145
2143
  tenantId?: string | undefined;
2144
+ sessionId?: string | undefined;
2146
2145
  externalTenantId?: string | undefined;
2147
2146
  consent?: {
2148
2147
  status: "granted";
@@ -2150,18 +2149,19 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2150
2149
  recordedAt: string;
2151
2150
  reference?: string | undefined;
2152
2151
  } | undefined;
2152
+ learnedRetentionDays?: number | null | undefined;
2153
2153
  }, {
2154
2154
  idempotencyKey: string;
2155
2155
  connectedAccountId: string;
2156
2156
  targets: {
2157
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2157
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2158
2158
  externalId: string;
2159
2159
  }[];
2160
2160
  sourceFamilyKey: string;
2161
- metadata?: Record<string, unknown> | undefined;
2162
- sessionId?: string | undefined;
2163
- allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2164
2161
  tenantId?: string | undefined;
2162
+ sessionId?: string | undefined;
2163
+ metadata?: Record<string, unknown> | undefined;
2164
+ allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2165
2165
  externalTenantId?: string | undefined;
2166
2166
  consent?: {
2167
2167
  status: "granted";
@@ -2172,9 +2172,9 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
2172
2172
  resourceIds?: string[] | undefined;
2173
2173
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2174
2174
  selectionMode?: "selected_resources" | "recipe_default" | undefined;
2175
- existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2175
+ existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2176
2176
  maxBackfillItems?: number | null | undefined;
2177
- deliveryMode?: "auto" | "webhook" | "polling" | undefined;
2177
+ deliveryMode?: "webhook" | "auto" | "polling" | undefined;
2178
2178
  authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2179
2179
  includeAttachments?: boolean | undefined;
2180
2180
  includeFileContent?: boolean | undefined;
@@ -2214,7 +2214,7 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2214
2214
  resourceIds: string[];
2215
2215
  approvedOperationalActorCanonicalKeys: string[];
2216
2216
  sourceFamilyKey: string;
2217
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2217
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2218
2218
  authorizationPerspective: "bot" | "user" | "provider_default";
2219
2219
  includeAttachments: boolean;
2220
2220
  includeFileContent: boolean;
@@ -2225,18 +2225,18 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2225
2225
  includeExternalConversations: boolean;
2226
2226
  includeBotMessages: boolean;
2227
2227
  excludedActorCanonicalKeys: string[];
2228
- sessionId?: string | undefined;
2229
2228
  tenantId?: string | undefined;
2229
+ sessionId?: string | undefined;
2230
2230
  externalTenantId?: string | undefined;
2231
2231
  }, {
2232
2232
  connectedAccountId: string;
2233
2233
  sourceFamilyKey: string;
2234
- sessionId?: string | undefined;
2235
2234
  tenantId?: string | undefined;
2235
+ sessionId?: string | undefined;
2236
2236
  externalTenantId?: string | undefined;
2237
2237
  resourceIds?: string[] | undefined;
2238
2238
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2239
- existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2239
+ existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2240
2240
  authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2241
2241
  includeAttachments?: boolean | undefined;
2242
2242
  includeFileContent?: boolean | undefined;
@@ -2252,7 +2252,7 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2252
2252
  resourceIds: string[];
2253
2253
  approvedOperationalActorCanonicalKeys: string[];
2254
2254
  sourceFamilyKey: string;
2255
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2255
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2256
2256
  authorizationPerspective: "bot" | "user" | "provider_default";
2257
2257
  includeAttachments: boolean;
2258
2258
  includeFileContent: boolean;
@@ -2263,18 +2263,18 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
2263
2263
  includeExternalConversations: boolean;
2264
2264
  includeBotMessages: boolean;
2265
2265
  excludedActorCanonicalKeys: string[];
2266
- sessionId?: string | undefined;
2267
2266
  tenantId?: string | undefined;
2267
+ sessionId?: string | undefined;
2268
2268
  externalTenantId?: string | undefined;
2269
2269
  }, {
2270
2270
  connectedAccountId: string;
2271
2271
  sourceFamilyKey: string;
2272
- sessionId?: string | undefined;
2273
2272
  tenantId?: string | undefined;
2273
+ sessionId?: string | undefined;
2274
2274
  externalTenantId?: string | undefined;
2275
2275
  resourceIds?: string[] | undefined;
2276
2276
  approvedOperationalActorCanonicalKeys?: string[] | undefined;
2277
- existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
2277
+ existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
2278
2278
  authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
2279
2279
  includeAttachments?: boolean | undefined;
2280
2280
  includeFileContent?: boolean | undefined;
@@ -2292,10 +2292,10 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
2292
2292
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2293
2293
  externalId: z.ZodString;
2294
2294
  }, "strict", z.ZodTypeAny, {
2295
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2295
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2296
2296
  externalId: string;
2297
2297
  }, {
2298
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2298
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2299
2299
  externalId: string;
2300
2300
  }>, "many">;
2301
2301
  existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
@@ -2315,14 +2315,14 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
2315
2315
  learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
2316
2316
  sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
2317
2317
  }, "strict", z.ZodTypeAny, {
2318
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2318
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2319
2319
  resourceIds: string[];
2320
2320
  targets: {
2321
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2321
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2322
2322
  externalId: string;
2323
2323
  }[];
2324
2324
  approvedOperationalActorCanonicalKeys: string[];
2325
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2325
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2326
2326
  includeAttachments: boolean;
2327
2327
  includeFileContent: boolean;
2328
2328
  includeEmailBodies: boolean;
@@ -2337,13 +2337,13 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
2337
2337
  learnedRetentionDays: number | null;
2338
2338
  sourceRetentionDays: number | null;
2339
2339
  }, {
2340
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2340
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2341
2341
  resourceIds: string[];
2342
2342
  targets: {
2343
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2343
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2344
2344
  externalId: string;
2345
2345
  }[];
2346
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2346
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2347
2347
  rememberInstructions: string;
2348
2348
  excludeInstructions: string;
2349
2349
  learnedRetentionDays: number | null;
@@ -2367,10 +2367,10 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2367
2367
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2368
2368
  externalId: z.ZodString;
2369
2369
  }, "strict", z.ZodTypeAny, {
2370
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2370
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2371
2371
  externalId: string;
2372
2372
  }, {
2373
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2373
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2374
2374
  externalId: string;
2375
2375
  }>, "many">;
2376
2376
  existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
@@ -2390,14 +2390,14 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2390
2390
  learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
2391
2391
  sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
2392
2392
  }, "strict", z.ZodTypeAny, {
2393
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2393
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2394
2394
  resourceIds: string[];
2395
2395
  targets: {
2396
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2396
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2397
2397
  externalId: string;
2398
2398
  }[];
2399
2399
  approvedOperationalActorCanonicalKeys: string[];
2400
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2400
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2401
2401
  includeAttachments: boolean;
2402
2402
  includeFileContent: boolean;
2403
2403
  includeEmailBodies: boolean;
@@ -2412,13 +2412,13 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2412
2412
  learnedRetentionDays: number | null;
2413
2413
  sourceRetentionDays: number | null;
2414
2414
  }, {
2415
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2415
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2416
2416
  resourceIds: string[];
2417
2417
  targets: {
2418
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2418
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2419
2419
  externalId: string;
2420
2420
  }[];
2421
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2421
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2422
2422
  rememberInstructions: string;
2423
2423
  excludeInstructions: string;
2424
2424
  learnedRetentionDays: number | null;
@@ -2435,16 +2435,16 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2435
2435
  excludedActorCanonicalKeys?: string[] | undefined;
2436
2436
  }>>;
2437
2437
  }, "strict", z.ZodTypeAny, {
2438
- status?: "active" | "paused" | undefined;
2438
+ status?: "paused" | "active" | undefined;
2439
2439
  connectedSource?: {
2440
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2440
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2441
2441
  resourceIds: string[];
2442
2442
  targets: {
2443
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2443
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2444
2444
  externalId: string;
2445
2445
  }[];
2446
2446
  approvedOperationalActorCanonicalKeys: string[];
2447
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2447
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2448
2448
  includeAttachments: boolean;
2449
2449
  includeFileContent: boolean;
2450
2450
  includeEmailBodies: boolean;
@@ -2460,15 +2460,15 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2460
2460
  sourceRetentionDays: number | null;
2461
2461
  } | undefined;
2462
2462
  }, {
2463
- status?: "active" | "paused" | undefined;
2463
+ status?: "paused" | "active" | undefined;
2464
2464
  connectedSource?: {
2465
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2465
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2466
2466
  resourceIds: string[];
2467
2467
  targets: {
2468
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2468
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2469
2469
  externalId: string;
2470
2470
  }[];
2471
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2471
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2472
2472
  rememberInstructions: string;
2473
2473
  excludeInstructions: string;
2474
2474
  learnedRetentionDays: number | null;
@@ -2485,16 +2485,16 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2485
2485
  excludedActorCanonicalKeys?: string[] | undefined;
2486
2486
  } | undefined;
2487
2487
  }>, {
2488
- status?: "active" | "paused" | undefined;
2488
+ status?: "paused" | "active" | undefined;
2489
2489
  connectedSource?: {
2490
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2490
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2491
2491
  resourceIds: string[];
2492
2492
  targets: {
2493
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2493
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2494
2494
  externalId: string;
2495
2495
  }[];
2496
2496
  approvedOperationalActorCanonicalKeys: string[];
2497
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2497
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2498
2498
  includeAttachments: boolean;
2499
2499
  includeFileContent: boolean;
2500
2500
  includeEmailBodies: boolean;
@@ -2510,15 +2510,15 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
2510
2510
  sourceRetentionDays: number | null;
2511
2511
  } | undefined;
2512
2512
  }, {
2513
- status?: "active" | "paused" | undefined;
2513
+ status?: "paused" | "active" | undefined;
2514
2514
  connectedSource?: {
2515
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2515
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2516
2516
  resourceIds: string[];
2517
2517
  targets: {
2518
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2518
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2519
2519
  externalId: string;
2520
2520
  }[];
2521
- existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
2521
+ existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
2522
2522
  rememberInstructions: string;
2523
2523
  excludeInstructions: string;
2524
2524
  learnedRetentionDays: number | null;
@@ -2579,9 +2579,9 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
2579
2579
  }>>;
2580
2580
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2581
2581
  }, "strict", z.ZodTypeAny, {
2582
+ sessionId: string;
2582
2583
  metadata: Record<string, unknown>;
2583
2584
  content: string;
2584
- sessionId: string;
2585
2585
  applicationKey: string;
2586
2586
  turnId: string;
2587
2587
  title?: string | undefined;
@@ -2593,8 +2593,8 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
2593
2593
  } | undefined;
2594
2594
  occurredAt?: string | undefined;
2595
2595
  }, {
2596
- content: string;
2597
2596
  sessionId: string;
2597
+ content: string;
2598
2598
  applicationKey: string;
2599
2599
  turnId: string;
2600
2600
  metadata?: Record<string, unknown> | undefined;
@@ -2616,10 +2616,10 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2616
2616
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2617
2617
  externalId: z.ZodString;
2618
2618
  }, "strict", z.ZodTypeAny, {
2619
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2619
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2620
2620
  externalId: string;
2621
2621
  }, {
2622
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2622
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2623
2623
  externalId: string;
2624
2624
  }>, "many">>;
2625
2625
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
@@ -2650,17 +2650,17 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2650
2650
  seedRecordIds: string[];
2651
2651
  maxDepth: number;
2652
2652
  maxClaims: number;
2653
+ tenantId?: string | undefined;
2653
2654
  sessionId?: string | undefined;
2655
+ query?: string | undefined;
2654
2656
  recordedAt?: string | undefined;
2655
- tenantId?: string | undefined;
2656
2657
  externalTenantId?: string | undefined;
2657
2658
  subjects?: {
2658
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2659
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2659
2660
  externalId: string;
2660
2661
  }[] | undefined;
2661
- query?: string | undefined;
2662
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2663
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2662
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2663
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2664
2664
  providerKeys?: string[] | undefined;
2665
2665
  sourceFamilyKeys?: string[] | undefined;
2666
2666
  connectedAccountIds?: string[] | undefined;
@@ -2670,18 +2670,18 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2670
2670
  semanticCandidateLimit?: number | undefined;
2671
2671
  predicates?: string[] | undefined;
2672
2672
  }, {
2673
- limit?: number | undefined;
2673
+ tenantId?: string | undefined;
2674
2674
  sessionId?: string | undefined;
2675
+ limit?: number | undefined;
2676
+ query?: string | undefined;
2675
2677
  recordedAt?: string | undefined;
2676
- tenantId?: string | undefined;
2677
2678
  externalTenantId?: string | undefined;
2678
2679
  subjects?: {
2679
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2680
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2680
2681
  externalId: string;
2681
2682
  }[] | undefined;
2682
- query?: string | undefined;
2683
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2684
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2683
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2684
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2685
2685
  providerKeys?: string[] | undefined;
2686
2686
  sourceFamilyKeys?: string[] | undefined;
2687
2687
  connectedAccountIds?: string[] | undefined;
@@ -2704,17 +2704,17 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2704
2704
  seedRecordIds: string[];
2705
2705
  maxDepth: number;
2706
2706
  maxClaims: number;
2707
+ tenantId?: string | undefined;
2707
2708
  sessionId?: string | undefined;
2709
+ query?: string | undefined;
2708
2710
  recordedAt?: string | undefined;
2709
- tenantId?: string | undefined;
2710
2711
  externalTenantId?: string | undefined;
2711
2712
  subjects?: {
2712
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2713
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2713
2714
  externalId: string;
2714
2715
  }[] | undefined;
2715
- query?: string | undefined;
2716
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2717
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2716
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2717
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2718
2718
  providerKeys?: string[] | undefined;
2719
2719
  sourceFamilyKeys?: string[] | undefined;
2720
2720
  connectedAccountIds?: string[] | undefined;
@@ -2724,18 +2724,18 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2724
2724
  semanticCandidateLimit?: number | undefined;
2725
2725
  predicates?: string[] | undefined;
2726
2726
  }, {
2727
- limit?: number | undefined;
2727
+ tenantId?: string | undefined;
2728
2728
  sessionId?: string | undefined;
2729
+ limit?: number | undefined;
2730
+ query?: string | undefined;
2729
2731
  recordedAt?: string | undefined;
2730
- tenantId?: string | undefined;
2731
2732
  externalTenantId?: string | undefined;
2732
2733
  subjects?: {
2733
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2734
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2734
2735
  externalId: string;
2735
2736
  }[] | undefined;
2736
- query?: string | undefined;
2737
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2738
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2737
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2738
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2739
2739
  providerKeys?: string[] | undefined;
2740
2740
  sourceFamilyKeys?: string[] | undefined;
2741
2741
  connectedAccountIds?: string[] | undefined;
@@ -2758,17 +2758,17 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2758
2758
  seedRecordIds: string[];
2759
2759
  maxDepth: number;
2760
2760
  maxClaims: number;
2761
+ tenantId?: string | undefined;
2761
2762
  sessionId?: string | undefined;
2763
+ query?: string | undefined;
2762
2764
  recordedAt?: string | undefined;
2763
- tenantId?: string | undefined;
2764
2765
  externalTenantId?: string | undefined;
2765
2766
  subjects?: {
2766
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2767
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2767
2768
  externalId: string;
2768
2769
  }[] | undefined;
2769
- query?: string | undefined;
2770
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2771
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2770
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2771
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2772
2772
  providerKeys?: string[] | undefined;
2773
2773
  sourceFamilyKeys?: string[] | undefined;
2774
2774
  connectedAccountIds?: string[] | undefined;
@@ -2778,18 +2778,18 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2778
2778
  semanticCandidateLimit?: number | undefined;
2779
2779
  predicates?: string[] | undefined;
2780
2780
  }, {
2781
- limit?: number | undefined;
2781
+ tenantId?: string | undefined;
2782
2782
  sessionId?: string | undefined;
2783
+ limit?: number | undefined;
2784
+ query?: string | undefined;
2783
2785
  recordedAt?: string | undefined;
2784
- tenantId?: string | undefined;
2785
2786
  externalTenantId?: string | undefined;
2786
2787
  subjects?: {
2787
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2788
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2788
2789
  externalId: string;
2789
2790
  }[] | undefined;
2790
- query?: string | undefined;
2791
- kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
2792
- memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2791
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2792
+ memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2793
2793
  providerKeys?: string[] | undefined;
2794
2794
  sourceFamilyKeys?: string[] | undefined;
2795
2795
  connectedAccountIds?: string[] | undefined;
@@ -2813,10 +2813,10 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
2813
2813
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2814
2814
  externalId: z.ZodString;
2815
2815
  }, "strict", z.ZodTypeAny, {
2816
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2816
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2817
2817
  externalId: string;
2818
2818
  }, {
2819
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2819
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2820
2820
  externalId: string;
2821
2821
  }>>;
2822
2822
  format: z.ZodDefault<z.ZodEnum<["json", "jsonl"]>>;
@@ -2825,15 +2825,15 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
2825
2825
  tenantId?: string | undefined;
2826
2826
  externalTenantId?: string | undefined;
2827
2827
  subject?: {
2828
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2828
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2829
2829
  externalId: string;
2830
2830
  } | undefined;
2831
2831
  }, {
2832
- format?: "json" | "jsonl" | undefined;
2833
2832
  tenantId?: string | undefined;
2833
+ format?: "json" | "jsonl" | undefined;
2834
2834
  externalTenantId?: string | undefined;
2835
2835
  subject?: {
2836
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2836
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2837
2837
  externalId: string;
2838
2838
  } | undefined;
2839
2839
  }>, {
@@ -2841,15 +2841,15 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
2841
2841
  tenantId?: string | undefined;
2842
2842
  externalTenantId?: string | undefined;
2843
2843
  subject?: {
2844
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2844
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2845
2845
  externalId: string;
2846
2846
  } | undefined;
2847
2847
  }, {
2848
- format?: "json" | "jsonl" | undefined;
2849
2848
  tenantId?: string | undefined;
2849
+ format?: "json" | "jsonl" | undefined;
2850
2850
  externalTenantId?: string | undefined;
2851
2851
  subject?: {
2852
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2852
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2853
2853
  externalId: string;
2854
2854
  } | undefined;
2855
2855
  }>;
@@ -2861,10 +2861,10 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2861
2861
  type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
2862
2862
  externalId: z.ZodString;
2863
2863
  }, "strict", z.ZodTypeAny, {
2864
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2864
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2865
2865
  externalId: string;
2866
2866
  }, {
2867
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2867
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2868
2868
  externalId: string;
2869
2869
  }>>;
2870
2870
  reason: z.ZodString;
@@ -2873,7 +2873,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2873
2873
  tenantId?: string | undefined;
2874
2874
  externalTenantId?: string | undefined;
2875
2875
  subject?: {
2876
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2876
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2877
2877
  externalId: string;
2878
2878
  } | undefined;
2879
2879
  }, {
@@ -2881,7 +2881,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2881
2881
  tenantId?: string | undefined;
2882
2882
  externalTenantId?: string | undefined;
2883
2883
  subject?: {
2884
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2884
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2885
2885
  externalId: string;
2886
2886
  } | undefined;
2887
2887
  }>, {
@@ -2889,7 +2889,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2889
2889
  tenantId?: string | undefined;
2890
2890
  externalTenantId?: string | undefined;
2891
2891
  subject?: {
2892
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2892
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2893
2893
  externalId: string;
2894
2894
  } | undefined;
2895
2895
  }, {
@@ -2897,7 +2897,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
2897
2897
  tenantId?: string | undefined;
2898
2898
  externalTenantId?: string | undefined;
2899
2899
  subject?: {
2900
- type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
2900
+ type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2901
2901
  externalId: string;
2902
2902
  } | undefined;
2903
2903
  }>;
@@ -2917,33 +2917,33 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
2917
2917
  context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2918
2918
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2919
2919
  }, "strip", z.ZodTypeAny, {
2920
+ context: Record<string, unknown>;
2920
2921
  metadata: Record<string, unknown>;
2921
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2922
+ key: string;
2923
+ languages: string[];
2924
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2922
2925
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2923
2926
  consent: Record<string, unknown>;
2924
2927
  sourceRetentionDays: number | null;
2925
- key: string;
2926
2928
  captureMode: "explicit" | "bound_sources";
2927
2929
  extractionEnabled: boolean;
2928
2930
  profileEnabled: boolean;
2929
2931
  retentionDays: number | null;
2930
- languages: string[];
2931
2932
  extraction: Record<string, unknown>;
2932
- context: Record<string, unknown>;
2933
2933
  }, {
2934
+ context?: Record<string, unknown> | undefined;
2934
2935
  metadata?: Record<string, unknown> | undefined;
2935
- allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2936
+ key?: string | undefined;
2937
+ languages?: string[] | undefined;
2938
+ allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2936
2939
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2937
2940
  consent?: Record<string, unknown> | undefined;
2938
2941
  sourceRetentionDays?: number | null | undefined;
2939
- key?: string | undefined;
2940
2942
  captureMode?: "explicit" | "bound_sources" | undefined;
2941
2943
  extractionEnabled?: boolean | undefined;
2942
2944
  profileEnabled?: boolean | undefined;
2943
2945
  retentionDays?: number | null | undefined;
2944
- languages?: string[] | undefined;
2945
2946
  extraction?: Record<string, unknown> | undefined;
2946
- context?: Record<string, unknown> | undefined;
2947
2947
  }>;
2948
2948
  export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
2949
2949
  key: z.ZodDefault<z.ZodString>;
@@ -2962,8 +2962,10 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
2962
2962
  }, "key"> & {
2963
2963
  expectedVersion: z.ZodNumber;
2964
2964
  }, "strict", z.ZodTypeAny, {
2965
+ context: Record<string, unknown>;
2965
2966
  metadata: Record<string, unknown>;
2966
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2967
+ languages: string[];
2968
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
2967
2969
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
2968
2970
  consent: Record<string, unknown>;
2969
2971
  sourceRetentionDays: number | null;
@@ -2971,14 +2973,14 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
2971
2973
  extractionEnabled: boolean;
2972
2974
  profileEnabled: boolean;
2973
2975
  retentionDays: number | null;
2974
- languages: string[];
2975
2976
  extraction: Record<string, unknown>;
2976
- context: Record<string, unknown>;
2977
2977
  expectedVersion: number;
2978
2978
  }, {
2979
2979
  expectedVersion: number;
2980
+ context?: Record<string, unknown> | undefined;
2980
2981
  metadata?: Record<string, unknown> | undefined;
2981
- allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2982
+ languages?: string[] | undefined;
2983
+ allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2982
2984
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
2983
2985
  consent?: Record<string, unknown> | undefined;
2984
2986
  sourceRetentionDays?: number | null | undefined;
@@ -2986,9 +2988,7 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
2986
2988
  extractionEnabled?: boolean | undefined;
2987
2989
  profileEnabled?: boolean | undefined;
2988
2990
  retentionDays?: number | null | undefined;
2989
- languages?: string[] | undefined;
2990
2991
  extraction?: Record<string, unknown> | undefined;
2991
- context?: Record<string, unknown> | undefined;
2992
2992
  }>;
2993
2993
  export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
2994
2994
  idempotencyKey: z.ZodString;
@@ -3011,8 +3011,10 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3011
3011
  context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3012
3012
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3013
3013
  }, "key">, "strip", z.ZodTypeAny, {
3014
+ context: Record<string, unknown>;
3014
3015
  metadata: Record<string, unknown>;
3015
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3016
+ languages: string[];
3017
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3016
3018
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3017
3019
  consent: Record<string, unknown>;
3018
3020
  sourceRetentionDays: number | null;
@@ -3020,12 +3022,12 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3020
3022
  extractionEnabled: boolean;
3021
3023
  profileEnabled: boolean;
3022
3024
  retentionDays: number | null;
3023
- languages: string[];
3024
3025
  extraction: Record<string, unknown>;
3025
- context: Record<string, unknown>;
3026
3026
  }, {
3027
+ context?: Record<string, unknown> | undefined;
3027
3028
  metadata?: Record<string, unknown> | undefined;
3028
- allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3029
+ languages?: string[] | undefined;
3030
+ allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3029
3031
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3030
3032
  consent?: Record<string, unknown> | undefined;
3031
3033
  sourceRetentionDays?: number | null | undefined;
@@ -3033,16 +3035,16 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3033
3035
  extractionEnabled?: boolean | undefined;
3034
3036
  profileEnabled?: boolean | undefined;
3035
3037
  retentionDays?: number | null | undefined;
3036
- languages?: string[] | undefined;
3037
3038
  extraction?: Record<string, unknown> | undefined;
3038
- context?: Record<string, unknown> | undefined;
3039
3039
  }>>;
3040
3040
  }, "strict", z.ZodTypeAny, {
3041
3041
  content: string;
3042
3042
  idempotencyKey: string;
3043
3043
  policy: {
3044
+ context: Record<string, unknown>;
3044
3045
  metadata: Record<string, unknown>;
3045
- allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3046
+ languages: string[];
3047
+ allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
3046
3048
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3047
3049
  consent: Record<string, unknown>;
3048
3050
  sourceRetentionDays: number | null;
@@ -3050,9 +3052,7 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3050
3052
  extractionEnabled: boolean;
3051
3053
  profileEnabled: boolean;
3052
3054
  retentionDays: number | null;
3053
- languages: string[];
3054
3055
  extraction: Record<string, unknown>;
3055
- context: Record<string, unknown>;
3056
3056
  };
3057
3057
  title?: string | undefined;
3058
3058
  language?: string | undefined;
@@ -3064,8 +3064,10 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3064
3064
  language?: string | undefined;
3065
3065
  sourceCategory?: string | undefined;
3066
3066
  policy?: {
3067
+ context?: Record<string, unknown> | undefined;
3067
3068
  metadata?: Record<string, unknown> | undefined;
3068
- allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3069
+ languages?: string[] | undefined;
3070
+ allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
3069
3071
  restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
3070
3072
  consent?: Record<string, unknown> | undefined;
3071
3073
  sourceRetentionDays?: number | null | undefined;
@@ -3073,9 +3075,7 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3073
3075
  extractionEnabled?: boolean | undefined;
3074
3076
  profileEnabled?: boolean | undefined;
3075
3077
  retentionDays?: number | null | undefined;
3076
- languages?: string[] | undefined;
3077
3078
  extraction?: Record<string, unknown> | undefined;
3078
- context?: Record<string, unknown> | undefined;
3079
3079
  } | undefined;
3080
3080
  }>;
3081
3081
  export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
@@ -3092,41 +3092,41 @@ export declare const memorySessionConfigSchema: z.ZodEffects<z.ZodObject<{
3092
3092
  contextTokenBudget: z.ZodDefault<z.ZodNumber>;
3093
3093
  policyKey: z.ZodDefault<z.ZodString>;
3094
3094
  }, "strict", z.ZodTypeAny, {
3095
+ enabled: boolean;
3095
3096
  policyKey: string;
3096
3097
  includeProfile: boolean;
3097
3098
  includeBlocks: boolean;
3098
3099
  captureMode: "explicit" | "bound_sources";
3099
- enabled: boolean;
3100
3100
  readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3101
3101
  writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3102
3102
  contextTokenBudget: number;
3103
3103
  agentExternalId?: string | undefined;
3104
3104
  }, {
3105
+ enabled?: boolean | undefined;
3105
3106
  policyKey?: string | undefined;
3106
3107
  includeProfile?: boolean | undefined;
3107
3108
  includeBlocks?: boolean | undefined;
3108
3109
  captureMode?: "explicit" | "bound_sources" | undefined;
3109
- enabled?: boolean | undefined;
3110
3110
  agentExternalId?: string | undefined;
3111
3111
  readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
3112
3112
  writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
3113
3113
  contextTokenBudget?: number | undefined;
3114
3114
  }>, {
3115
+ enabled: boolean;
3115
3116
  policyKey: string;
3116
3117
  includeProfile: boolean;
3117
3118
  includeBlocks: boolean;
3118
3119
  captureMode: "explicit" | "bound_sources";
3119
- enabled: boolean;
3120
3120
  readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3121
3121
  writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
3122
3122
  contextTokenBudget: number;
3123
3123
  agentExternalId?: string | undefined;
3124
3124
  }, {
3125
+ enabled?: boolean | undefined;
3125
3126
  policyKey?: string | undefined;
3126
3127
  includeProfile?: boolean | undefined;
3127
3128
  includeBlocks?: boolean | undefined;
3128
3129
  captureMode?: "explicit" | "bound_sources" | undefined;
3129
- enabled?: boolean | undefined;
3130
3130
  agentExternalId?: string | undefined;
3131
3131
  readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
3132
3132
  writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
@@ -3141,16 +3141,16 @@ export declare const memoryExtractedEntitySchema: z.ZodObject<{
3141
3141
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3142
3142
  }, "strict", z.ZodTypeAny, {
3143
3143
  type: string;
3144
+ key: string;
3144
3145
  canonicalKey: string;
3145
3146
  displayName: string | null;
3146
3147
  attributes: Record<string, unknown>;
3147
- key: string;
3148
3148
  }, {
3149
3149
  type: string;
3150
+ key: string;
3150
3151
  canonicalKey: string;
3151
3152
  displayName: string | null;
3152
3153
  attributes: Record<string, unknown>;
3153
- key: string;
3154
3154
  }>;
3155
3155
  export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
3156
3156
  subjectEntityKey: z.ZodString;
@@ -3285,16 +3285,16 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3285
3285
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3286
3286
  }, "strict", z.ZodTypeAny, {
3287
3287
  type: string;
3288
+ key: string;
3288
3289
  canonicalKey: string;
3289
3290
  displayName: string | null;
3290
3291
  attributes: Record<string, unknown>;
3291
- key: string;
3292
3292
  }, {
3293
3293
  type: string;
3294
+ key: string;
3294
3295
  canonicalKey: string;
3295
3296
  displayName: string | null;
3296
3297
  attributes: Record<string, unknown>;
3297
- key: string;
3298
3298
  }>, "many">;
3299
3299
  claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
3300
3300
  subjectEntityKey: z.ZodString;
@@ -3341,12 +3341,12 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3341
3341
  }, "strict", z.ZodTypeAny, {
3342
3342
  content: string;
3343
3343
  qualityContractVersion: 1;
3344
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3344
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3345
3345
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3346
3346
  validFrom: string | null;
3347
3347
  validTo: string | null;
3348
3348
  title: string;
3349
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3349
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3350
3350
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3351
3351
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3352
3352
  topicTags: string[];
@@ -3370,10 +3370,10 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3370
3370
  contextEligible: boolean;
3371
3371
  entities: {
3372
3372
  type: string;
3373
+ key: string;
3373
3374
  canonicalKey: string;
3374
3375
  displayName: string | null;
3375
3376
  attributes: Record<string, unknown>;
3376
- key: string;
3377
3377
  }[];
3378
3378
  claims: {
3379
3379
  validFrom: string | null;
@@ -3387,10 +3387,10 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3387
3387
  }, {
3388
3388
  content: string;
3389
3389
  qualityContractVersion: 1;
3390
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3390
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3391
3391
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3392
3392
  title: string;
3393
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3393
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3394
3394
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3395
3395
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3396
3396
  topicTags: string[];
@@ -3414,10 +3414,10 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3414
3414
  contextEligible: boolean;
3415
3415
  entities: {
3416
3416
  type: string;
3417
+ key: string;
3417
3418
  canonicalKey: string;
3418
3419
  displayName: string | null;
3419
3420
  attributes: Record<string, unknown>;
3420
- key: string;
3421
3421
  }[];
3422
3422
  claims: {
3423
3423
  subjectEntityKey: string;
@@ -3433,12 +3433,12 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3433
3433
  }>, {
3434
3434
  content: string;
3435
3435
  qualityContractVersion: 1;
3436
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3436
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3437
3437
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3438
3438
  validFrom: string | null;
3439
3439
  validTo: string | null;
3440
3440
  title: string;
3441
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3441
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3442
3442
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3443
3443
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3444
3444
  topicTags: string[];
@@ -3462,10 +3462,10 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3462
3462
  contextEligible: boolean;
3463
3463
  entities: {
3464
3464
  type: string;
3465
+ key: string;
3465
3466
  canonicalKey: string;
3466
3467
  displayName: string | null;
3467
3468
  attributes: Record<string, unknown>;
3468
- key: string;
3469
3469
  }[];
3470
3470
  claims: {
3471
3471
  validFrom: string | null;
@@ -3479,10 +3479,10 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3479
3479
  }, {
3480
3480
  content: string;
3481
3481
  qualityContractVersion: 1;
3482
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3482
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3483
3483
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3484
3484
  title: string;
3485
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3485
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3486
3486
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3487
3487
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3488
3488
  topicTags: string[];
@@ -3506,10 +3506,10 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
3506
3506
  contextEligible: boolean;
3507
3507
  entities: {
3508
3508
  type: string;
3509
+ key: string;
3509
3510
  canonicalKey: string;
3510
3511
  displayName: string | null;
3511
3512
  attributes: Record<string, unknown>;
3512
- key: string;
3513
3513
  }[];
3514
3514
  claims: {
3515
3515
  subjectEntityKey: string;
@@ -3585,16 +3585,16 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3585
3585
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3586
3586
  }, "strict", z.ZodTypeAny, {
3587
3587
  type: string;
3588
+ key: string;
3588
3589
  canonicalKey: string;
3589
3590
  displayName: string | null;
3590
3591
  attributes: Record<string, unknown>;
3591
- key: string;
3592
3592
  }, {
3593
3593
  type: string;
3594
+ key: string;
3594
3595
  canonicalKey: string;
3595
3596
  displayName: string | null;
3596
3597
  attributes: Record<string, unknown>;
3597
- key: string;
3598
3598
  }>, "many">;
3599
3599
  claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
3600
3600
  subjectEntityKey: z.ZodString;
@@ -3641,12 +3641,12 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3641
3641
  }, "strict", z.ZodTypeAny, {
3642
3642
  content: string;
3643
3643
  qualityContractVersion: 1;
3644
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3644
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3645
3645
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3646
3646
  validFrom: string | null;
3647
3647
  validTo: string | null;
3648
3648
  title: string;
3649
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3649
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3650
3650
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3651
3651
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3652
3652
  topicTags: string[];
@@ -3670,10 +3670,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3670
3670
  contextEligible: boolean;
3671
3671
  entities: {
3672
3672
  type: string;
3673
+ key: string;
3673
3674
  canonicalKey: string;
3674
3675
  displayName: string | null;
3675
3676
  attributes: Record<string, unknown>;
3676
- key: string;
3677
3677
  }[];
3678
3678
  claims: {
3679
3679
  validFrom: string | null;
@@ -3687,10 +3687,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3687
3687
  }, {
3688
3688
  content: string;
3689
3689
  qualityContractVersion: 1;
3690
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3690
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3691
3691
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3692
3692
  title: string;
3693
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3693
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3694
3694
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3695
3695
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3696
3696
  topicTags: string[];
@@ -3714,10 +3714,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3714
3714
  contextEligible: boolean;
3715
3715
  entities: {
3716
3716
  type: string;
3717
+ key: string;
3717
3718
  canonicalKey: string;
3718
3719
  displayName: string | null;
3719
3720
  attributes: Record<string, unknown>;
3720
- key: string;
3721
3721
  }[];
3722
3722
  claims: {
3723
3723
  subjectEntityKey: string;
@@ -3733,12 +3733,12 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3733
3733
  }>, {
3734
3734
  content: string;
3735
3735
  qualityContractVersion: 1;
3736
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3736
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3737
3737
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3738
3738
  validFrom: string | null;
3739
3739
  validTo: string | null;
3740
3740
  title: string;
3741
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3741
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3742
3742
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3743
3743
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3744
3744
  topicTags: string[];
@@ -3762,10 +3762,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3762
3762
  contextEligible: boolean;
3763
3763
  entities: {
3764
3764
  type: string;
3765
+ key: string;
3765
3766
  canonicalKey: string;
3766
3767
  displayName: string | null;
3767
3768
  attributes: Record<string, unknown>;
3768
- key: string;
3769
3769
  }[];
3770
3770
  claims: {
3771
3771
  validFrom: string | null;
@@ -3779,10 +3779,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3779
3779
  }, {
3780
3780
  content: string;
3781
3781
  qualityContractVersion: 1;
3782
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3782
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3783
3783
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3784
3784
  title: string;
3785
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3785
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3786
3786
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3787
3787
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3788
3788
  topicTags: string[];
@@ -3806,10 +3806,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3806
3806
  contextEligible: boolean;
3807
3807
  entities: {
3808
3808
  type: string;
3809
+ key: string;
3809
3810
  canonicalKey: string;
3810
3811
  displayName: string | null;
3811
3812
  attributes: Record<string, unknown>;
3812
- key: string;
3813
3813
  }[];
3814
3814
  claims: {
3815
3815
  subjectEntityKey: string;
@@ -3827,12 +3827,12 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3827
3827
  records: {
3828
3828
  content: string;
3829
3829
  qualityContractVersion: 1;
3830
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3830
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3831
3831
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3832
3832
  validFrom: string | null;
3833
3833
  validTo: string | null;
3834
3834
  title: string;
3835
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3835
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3836
3836
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3837
3837
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3838
3838
  topicTags: string[];
@@ -3856,10 +3856,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3856
3856
  contextEligible: boolean;
3857
3857
  entities: {
3858
3858
  type: string;
3859
+ key: string;
3859
3860
  canonicalKey: string;
3860
3861
  displayName: string | null;
3861
3862
  attributes: Record<string, unknown>;
3862
- key: string;
3863
3863
  }[];
3864
3864
  claims: {
3865
3865
  validFrom: string | null;
@@ -3875,10 +3875,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3875
3875
  records: {
3876
3876
  content: string;
3877
3877
  qualityContractVersion: 1;
3878
- authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
3878
+ authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
3879
3879
  admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
3880
3880
  title: string;
3881
- memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3881
+ memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
3882
3882
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3883
3883
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3884
3884
  topicTags: string[];
@@ -3902,10 +3902,10 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
3902
3902
  contextEligible: boolean;
3903
3903
  entities: {
3904
3904
  type: string;
3905
+ key: string;
3905
3906
  canonicalKey: string;
3906
3907
  displayName: string | null;
3907
3908
  attributes: Record<string, unknown>;
3908
- key: string;
3909
3909
  }[];
3910
3910
  claims: {
3911
3911
  subjectEntityKey: string;
@@ -3934,7 +3934,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
3934
3934
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3935
3935
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3936
3936
  candidateId: string;
3937
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3937
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3938
3938
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3939
3939
  }, {
3940
3940
  status: "uncertain" | "classified";
@@ -3942,7 +3942,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
3942
3942
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3943
3943
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3944
3944
  candidateId: string;
3945
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3945
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3946
3946
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3947
3947
  }>, {
3948
3948
  status: "uncertain" | "classified";
@@ -3950,7 +3950,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
3950
3950
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3951
3951
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3952
3952
  candidateId: string;
3953
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3953
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3954
3954
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3955
3955
  }, {
3956
3956
  status: "uncertain" | "classified";
@@ -3958,7 +3958,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
3958
3958
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3959
3959
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3960
3960
  candidateId: string;
3961
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3961
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3962
3962
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3963
3963
  }>;
3964
3964
  export declare const memorySafetyResultSchema: z.ZodObject<{
@@ -3976,7 +3976,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
3976
3976
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3977
3977
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3978
3978
  candidateId: string;
3979
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3979
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3980
3980
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3981
3981
  }, {
3982
3982
  status: "uncertain" | "classified";
@@ -3984,7 +3984,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
3984
3984
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3985
3985
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3986
3986
  candidateId: string;
3987
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3987
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3988
3988
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3989
3989
  }>, {
3990
3990
  status: "uncertain" | "classified";
@@ -3992,7 +3992,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
3992
3992
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
3993
3993
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
3994
3994
  candidateId: string;
3995
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
3995
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
3996
3996
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
3997
3997
  }, {
3998
3998
  status: "uncertain" | "classified";
@@ -4000,7 +4000,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
4000
4000
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4001
4001
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4002
4002
  candidateId: string;
4003
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
4003
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4004
4004
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4005
4005
  }>, "many">;
4006
4006
  }, "strict", z.ZodTypeAny, {
@@ -4010,7 +4010,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
4010
4010
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4011
4011
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4012
4012
  candidateId: string;
4013
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
4013
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4014
4014
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4015
4015
  }[];
4016
4016
  }, {
@@ -4020,7 +4020,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
4020
4020
  sensitivityClass: "standard" | "personal" | "restricted" | "secret";
4021
4021
  restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
4022
4022
  candidateId: string;
4023
- retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
4023
+ retentionStatus: "memory" | "source_only" | "reject_noise" | "uncertain";
4024
4024
  authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
4025
4025
  }[];
4026
4026
  }>;
@@ -4031,37 +4031,37 @@ export declare const memoryConsolidationResultSchema: z.ZodObject<{
4031
4031
  targetRecordId: z.ZodNullable<z.ZodString>;
4032
4032
  reason: z.ZodString;
4033
4033
  }, "strict", z.ZodTypeAny, {
4034
- action: "add" | "supersede" | "contradict" | "support" | "no_change";
4035
4034
  reason: string;
4035
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
4036
4036
  candidateId: string;
4037
4037
  targetRecordId: string | null;
4038
4038
  }, {
4039
- action: "add" | "supersede" | "contradict" | "support" | "no_change";
4040
4039
  reason: string;
4040
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
4041
4041
  candidateId: string;
4042
4042
  targetRecordId: string | null;
4043
4043
  }>, {
4044
- action: "add" | "supersede" | "contradict" | "support" | "no_change";
4045
4044
  reason: string;
4045
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
4046
4046
  candidateId: string;
4047
4047
  targetRecordId: string | null;
4048
4048
  }, {
4049
- action: "add" | "supersede" | "contradict" | "support" | "no_change";
4050
4049
  reason: string;
4050
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
4051
4051
  candidateId: string;
4052
4052
  targetRecordId: string | null;
4053
4053
  }>, "many">;
4054
4054
  }, "strict", z.ZodTypeAny, {
4055
4055
  decisions: {
4056
- action: "add" | "supersede" | "contradict" | "support" | "no_change";
4057
4056
  reason: string;
4057
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
4058
4058
  candidateId: string;
4059
4059
  targetRecordId: string | null;
4060
4060
  }[];
4061
4061
  }, {
4062
4062
  decisions: {
4063
- action: "add" | "supersede" | "contradict" | "support" | "no_change";
4064
4063
  reason: string;
4064
+ action: "add" | "supersede" | "contradict" | "support" | "no_change";
4065
4065
  candidateId: string;
4066
4066
  targetRecordId: string | null;
4067
4067
  }[];
@@ -4075,36 +4075,36 @@ export declare const memoryProfileResultSchema: z.ZodEffects<z.ZodObject<{
4075
4075
  content: z.ZodString;
4076
4076
  includedRecordVersionIds: z.ZodArray<z.ZodString, "many">;
4077
4077
  }, "strict", z.ZodTypeAny, {
4078
- content: string;
4079
4078
  key: string;
4079
+ content: string;
4080
4080
  includedRecordVersionIds: string[];
4081
4081
  }, {
4082
- content: string;
4083
4082
  key: string;
4083
+ content: string;
4084
4084
  includedRecordVersionIds: string[];
4085
4085
  }>, "many">;
4086
4086
  }, "strict", z.ZodTypeAny, {
4087
4087
  buckets: {
4088
- content: string;
4089
4088
  key: string;
4089
+ content: string;
4090
4090
  includedRecordVersionIds: string[];
4091
4091
  }[];
4092
4092
  }, {
4093
4093
  buckets: {
4094
- content: string;
4095
4094
  key: string;
4095
+ content: string;
4096
4096
  includedRecordVersionIds: string[];
4097
4097
  }[];
4098
4098
  }>, {
4099
4099
  buckets: {
4100
- content: string;
4101
4100
  key: string;
4101
+ content: string;
4102
4102
  includedRecordVersionIds: string[];
4103
4103
  }[];
4104
4104
  }, {
4105
4105
  buckets: {
4106
- content: string;
4107
4106
  key: string;
4107
+ content: string;
4108
4108
  includedRecordVersionIds: string[];
4109
4109
  }[];
4110
4110
  }>;
@@ -4114,40 +4114,40 @@ export declare const memoryProfileDeltaResultSchema: z.ZodEffects<z.ZodObject<{
4114
4114
  content: z.ZodString;
4115
4115
  includedRecordVersionIds: z.ZodArray<z.ZodString, "many">;
4116
4116
  }, "strict", z.ZodTypeAny, {
4117
- content: string;
4118
4117
  key: string;
4118
+ content: string;
4119
4119
  includedRecordVersionIds: string[];
4120
4120
  }, {
4121
- content: string;
4122
4121
  key: string;
4122
+ content: string;
4123
4123
  includedRecordVersionIds: string[];
4124
4124
  }>, "many">;
4125
4125
  removeBucketKeys: z.ZodArray<z.ZodString, "many">;
4126
4126
  }, "strict", z.ZodTypeAny, {
4127
4127
  buckets: {
4128
- content: string;
4129
4128
  key: string;
4129
+ content: string;
4130
4130
  includedRecordVersionIds: string[];
4131
4131
  }[];
4132
4132
  removeBucketKeys: string[];
4133
4133
  }, {
4134
4134
  buckets: {
4135
- content: string;
4136
4135
  key: string;
4136
+ content: string;
4137
4137
  includedRecordVersionIds: string[];
4138
4138
  }[];
4139
4139
  removeBucketKeys: string[];
4140
4140
  }>, {
4141
4141
  buckets: {
4142
- content: string;
4143
4142
  key: string;
4143
+ content: string;
4144
4144
  includedRecordVersionIds: string[];
4145
4145
  }[];
4146
4146
  removeBucketKeys: string[];
4147
4147
  }, {
4148
4148
  buckets: {
4149
- content: string;
4150
4149
  key: string;
4150
+ content: string;
4151
4151
  includedRecordVersionIds: string[];
4152
4152
  }[];
4153
4153
  removeBucketKeys: string[];