@stacklink/sdk 0.3.10 → 0.3.14

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 (34) hide show
  1. package/compatibility.json +1 -1
  2. package/dist/src/domain/bot-contract.d.ts +671 -312
  3. package/dist/src/domain/bot-contract.d.ts.map +1 -1
  4. package/dist/src/domain/bot-contract.js +69 -1
  5. package/dist/src/domain/bot-contract.js.map +1 -1
  6. package/dist/src/domain/memory-contract.d.ts +117 -117
  7. package/dist/src/domain/platform-approval-contract.d.ts +119 -1
  8. package/dist/src/domain/platform-approval-contract.d.ts.map +1 -1
  9. package/dist/src/domain/platform-approval-contract.js +8 -0
  10. package/dist/src/domain/platform-approval-contract.js.map +1 -1
  11. package/dist/src/domain/provider-branding.d.ts.map +1 -1
  12. package/dist/src/domain/provider-branding.js +7 -0
  13. package/dist/src/domain/provider-branding.js.map +1 -1
  14. package/dist/src/domain/stacklink-meta-tools.d.ts +1 -1
  15. package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
  16. package/dist/src/domain/stacklink-meta-tools.js +2 -2
  17. package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
  18. package/dist/src/sdk/index.d.ts +25 -2
  19. package/dist/src/sdk/index.d.ts.map +1 -1
  20. package/dist/src/sdk/index.js +9 -1
  21. package/dist/src/sdk/index.js.map +1 -1
  22. package/dist/src/sdk/vercel-ai.d.ts +2 -0
  23. package/dist/src/sdk/vercel-ai.d.ts.map +1 -1
  24. package/dist/src/sdk/vercel-ai.js +16 -2
  25. package/dist/src/sdk/vercel-ai.js.map +1 -1
  26. package/dist/src/services/content-normalization/content-type-capabilities.d.ts +15 -0
  27. package/dist/src/services/content-normalization/content-type-capabilities.d.ts.map +1 -0
  28. package/dist/src/services/content-normalization/content-type-capabilities.js +164 -0
  29. package/dist/src/services/content-normalization/content-type-capabilities.js.map +1 -0
  30. package/dist/src/services/content-normalization/normalized-content-artifact.d.ts +230 -0
  31. package/dist/src/services/content-normalization/normalized-content-artifact.d.ts.map +1 -0
  32. package/dist/src/services/content-normalization/normalized-content-artifact.js +147 -0
  33. package/dist/src/services/content-normalization/normalized-content-artifact.js.map +1 -0
  34. package/package.json +1 -1
@@ -213,14 +213,14 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
213
213
  speaker: z.ZodOptional<z.ZodString>;
214
214
  assistant: z.ZodOptional<z.ZodBoolean>;
215
215
  }, "strip", z.ZodTypeAny, {
216
+ speaker?: string | undefined;
216
217
  sessionId?: string | undefined;
217
218
  turn?: string | undefined;
218
- speaker?: string | undefined;
219
219
  assistant?: boolean | undefined;
220
220
  }, {
221
+ speaker?: string | undefined;
221
222
  sessionId?: string | undefined;
222
223
  turn?: string | undefined;
223
- speaker?: string | undefined;
224
224
  assistant?: boolean | undefined;
225
225
  }>>;
226
226
  file: z.ZodOptional<z.ZodObject<{
@@ -239,7 +239,7 @@ 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
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
243
243
  contract: "stacklink.memory.evidence.v1";
244
244
  availability: "unknown" | "available" | "deleted";
245
245
  object?: {
@@ -248,18 +248,19 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
248
248
  name: string;
249
249
  observed?: string | undefined;
250
250
  } | undefined;
251
+ file?: {
252
+ title: string;
253
+ section?: string | undefined;
254
+ edited?: string | undefined;
255
+ } | undefined;
251
256
  channel?: string | undefined;
257
+ requestId?: string | undefined;
252
258
  conversation?: {
259
+ speaker?: string | undefined;
253
260
  sessionId?: string | undefined;
254
261
  turn?: string | undefined;
255
- speaker?: string | undefined;
256
262
  assistant?: boolean | undefined;
257
263
  } | undefined;
258
- file?: {
259
- title: string;
260
- section?: string | undefined;
261
- edited?: string | undefined;
262
- } | undefined;
263
264
  href?: string | undefined;
264
265
  from?: {
265
266
  name: string;
@@ -272,28 +273,28 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
272
273
  before?: string | null | undefined;
273
274
  }[] | undefined;
274
275
  by?: string | undefined;
275
- requestId?: string | undefined;
276
276
  }, {
277
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
277
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
278
278
  object?: {
279
279
  kind: string;
280
280
  id: string;
281
281
  name: string;
282
282
  observed?: string | undefined;
283
283
  } | undefined;
284
+ file?: {
285
+ title: string;
286
+ section?: string | undefined;
287
+ edited?: string | undefined;
288
+ } | undefined;
284
289
  channel?: string | undefined;
290
+ requestId?: string | undefined;
285
291
  contract?: "stacklink.memory.evidence.v1" | undefined;
286
292
  conversation?: {
293
+ speaker?: string | undefined;
287
294
  sessionId?: string | undefined;
288
295
  turn?: string | undefined;
289
- speaker?: string | undefined;
290
296
  assistant?: boolean | undefined;
291
297
  } | undefined;
292
- file?: {
293
- title: string;
294
- section?: string | undefined;
295
- edited?: string | undefined;
296
- } | undefined;
297
298
  href?: string | undefined;
298
299
  availability?: "unknown" | "available" | "deleted" | undefined;
299
300
  from?: {
@@ -307,7 +308,6 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
307
308
  before?: string | null | undefined;
308
309
  }[] | undefined;
309
310
  by?: string | undefined;
310
- requestId?: string | undefined;
311
311
  }>;
312
312
  export type MemoryEvidenceReference = z.input<typeof memoryEvidenceReferenceSchema>;
313
313
  export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
@@ -397,14 +397,14 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
397
397
  speaker: z.ZodOptional<z.ZodString>;
398
398
  assistant: z.ZodOptional<z.ZodBoolean>;
399
399
  }, "strip", z.ZodTypeAny, {
400
+ speaker?: string | undefined;
400
401
  sessionId?: string | undefined;
401
402
  turn?: string | undefined;
402
- speaker?: string | undefined;
403
403
  assistant?: boolean | undefined;
404
404
  }, {
405
+ speaker?: string | undefined;
405
406
  sessionId?: string | undefined;
406
407
  turn?: string | undefined;
407
- speaker?: string | undefined;
408
408
  assistant?: boolean | undefined;
409
409
  }>>;
410
410
  file: z.ZodOptional<z.ZodObject<{
@@ -423,7 +423,7 @@ 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
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
427
427
  contract: "stacklink.memory.evidence.v1";
428
428
  availability: "unknown" | "available" | "deleted";
429
429
  object?: {
@@ -432,18 +432,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
432
432
  name: string;
433
433
  observed?: string | undefined;
434
434
  } | undefined;
435
+ file?: {
436
+ title: string;
437
+ section?: string | undefined;
438
+ edited?: string | undefined;
439
+ } | undefined;
435
440
  channel?: string | undefined;
441
+ requestId?: string | undefined;
436
442
  conversation?: {
443
+ speaker?: string | undefined;
437
444
  sessionId?: string | undefined;
438
445
  turn?: string | undefined;
439
- speaker?: string | undefined;
440
446
  assistant?: boolean | undefined;
441
447
  } | undefined;
442
- file?: {
443
- title: string;
444
- section?: string | undefined;
445
- edited?: string | undefined;
446
- } | undefined;
447
448
  href?: string | undefined;
448
449
  from?: {
449
450
  name: string;
@@ -456,28 +457,28 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
456
457
  before?: string | null | undefined;
457
458
  }[] | undefined;
458
459
  by?: string | undefined;
459
- requestId?: string | undefined;
460
460
  }, {
461
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
461
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
462
462
  object?: {
463
463
  kind: string;
464
464
  id: string;
465
465
  name: string;
466
466
  observed?: string | undefined;
467
467
  } | undefined;
468
+ file?: {
469
+ title: string;
470
+ section?: string | undefined;
471
+ edited?: string | undefined;
472
+ } | undefined;
468
473
  channel?: string | undefined;
474
+ requestId?: string | undefined;
469
475
  contract?: "stacklink.memory.evidence.v1" | undefined;
470
476
  conversation?: {
477
+ speaker?: string | undefined;
471
478
  sessionId?: string | undefined;
472
479
  turn?: string | undefined;
473
- speaker?: string | undefined;
474
480
  assistant?: boolean | undefined;
475
481
  } | undefined;
476
- file?: {
477
- title: string;
478
- section?: string | undefined;
479
- edited?: string | undefined;
480
- } | undefined;
481
482
  href?: string | undefined;
482
483
  availability?: "unknown" | "available" | "deleted" | undefined;
483
484
  from?: {
@@ -491,7 +492,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
491
492
  before?: string | null | undefined;
492
493
  }[] | undefined;
493
494
  by?: string | undefined;
494
- requestId?: string | undefined;
495
495
  }>>;
496
496
  }, "strict", z.ZodTypeAny, {
497
497
  kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
@@ -503,7 +503,7 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
503
503
  toolExecutionId?: string | undefined;
504
504
  applicationKey?: string | undefined;
505
505
  evidence?: {
506
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
506
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
507
507
  contract: "stacklink.memory.evidence.v1";
508
508
  availability: "unknown" | "available" | "deleted";
509
509
  object?: {
@@ -512,18 +512,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
512
512
  name: string;
513
513
  observed?: string | undefined;
514
514
  } | undefined;
515
+ file?: {
516
+ title: string;
517
+ section?: string | undefined;
518
+ edited?: string | undefined;
519
+ } | undefined;
515
520
  channel?: string | undefined;
521
+ requestId?: string | undefined;
516
522
  conversation?: {
523
+ speaker?: string | undefined;
517
524
  sessionId?: string | undefined;
518
525
  turn?: string | undefined;
519
- speaker?: string | undefined;
520
526
  assistant?: boolean | undefined;
521
527
  } | undefined;
522
- file?: {
523
- title: string;
524
- section?: string | undefined;
525
- edited?: string | undefined;
526
- } | undefined;
527
528
  href?: string | undefined;
528
529
  from?: {
529
530
  name: string;
@@ -536,7 +537,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
536
537
  before?: string | null | undefined;
537
538
  }[] | undefined;
538
539
  by?: string | undefined;
539
- requestId?: string | undefined;
540
540
  } | undefined;
541
541
  }, {
542
542
  kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
@@ -548,26 +548,27 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
548
548
  toolExecutionId?: string | undefined;
549
549
  applicationKey?: string | undefined;
550
550
  evidence?: {
551
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
551
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
552
552
  object?: {
553
553
  kind: string;
554
554
  id: string;
555
555
  name: string;
556
556
  observed?: string | undefined;
557
557
  } | undefined;
558
+ file?: {
559
+ title: string;
560
+ section?: string | undefined;
561
+ edited?: string | undefined;
562
+ } | undefined;
558
563
  channel?: string | undefined;
564
+ requestId?: string | undefined;
559
565
  contract?: "stacklink.memory.evidence.v1" | undefined;
560
566
  conversation?: {
567
+ speaker?: string | undefined;
561
568
  sessionId?: string | undefined;
562
569
  turn?: string | undefined;
563
- speaker?: string | undefined;
564
570
  assistant?: boolean | undefined;
565
571
  } | undefined;
566
- file?: {
567
- title: string;
568
- section?: string | undefined;
569
- edited?: string | undefined;
570
- } | undefined;
571
572
  href?: string | undefined;
572
573
  availability?: "unknown" | "available" | "deleted" | undefined;
573
574
  from?: {
@@ -581,7 +582,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
581
582
  before?: string | null | undefined;
582
583
  }[] | undefined;
583
584
  by?: string | undefined;
584
- requestId?: string | undefined;
585
585
  } | undefined;
586
586
  }>>;
587
587
  idempotencyKey: z.ZodOptional<z.ZodString>;
@@ -615,7 +615,7 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
615
615
  toolExecutionId?: string | undefined;
616
616
  applicationKey?: string | undefined;
617
617
  evidence?: {
618
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
618
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
619
619
  contract: "stacklink.memory.evidence.v1";
620
620
  availability: "unknown" | "available" | "deleted";
621
621
  object?: {
@@ -624,18 +624,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
624
624
  name: string;
625
625
  observed?: string | undefined;
626
626
  } | undefined;
627
+ file?: {
628
+ title: string;
629
+ section?: string | undefined;
630
+ edited?: string | undefined;
631
+ } | undefined;
627
632
  channel?: string | undefined;
633
+ requestId?: string | undefined;
628
634
  conversation?: {
635
+ speaker?: string | undefined;
629
636
  sessionId?: string | undefined;
630
637
  turn?: string | undefined;
631
- speaker?: string | undefined;
632
638
  assistant?: boolean | undefined;
633
639
  } | undefined;
634
- file?: {
635
- title: string;
636
- section?: string | undefined;
637
- edited?: string | undefined;
638
- } | undefined;
639
640
  href?: string | undefined;
640
641
  from?: {
641
642
  name: string;
@@ -648,7 +649,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
648
649
  before?: string | null | undefined;
649
650
  }[] | undefined;
650
651
  by?: string | undefined;
651
- requestId?: string | undefined;
652
652
  } | undefined;
653
653
  };
654
654
  metadata: Record<string, unknown>;
@@ -692,26 +692,27 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
692
692
  toolExecutionId?: string | undefined;
693
693
  applicationKey?: string | undefined;
694
694
  evidence?: {
695
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
695
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
696
696
  object?: {
697
697
  kind: string;
698
698
  id: string;
699
699
  name: string;
700
700
  observed?: string | undefined;
701
701
  } | undefined;
702
+ file?: {
703
+ title: string;
704
+ section?: string | undefined;
705
+ edited?: string | undefined;
706
+ } | undefined;
702
707
  channel?: string | undefined;
708
+ requestId?: string | undefined;
703
709
  contract?: "stacklink.memory.evidence.v1" | undefined;
704
710
  conversation?: {
711
+ speaker?: string | undefined;
705
712
  sessionId?: string | undefined;
706
713
  turn?: string | undefined;
707
- speaker?: string | undefined;
708
714
  assistant?: boolean | undefined;
709
715
  } | undefined;
710
- file?: {
711
- title: string;
712
- section?: string | undefined;
713
- edited?: string | undefined;
714
- } | undefined;
715
716
  href?: string | undefined;
716
717
  availability?: "unknown" | "available" | "deleted" | undefined;
717
718
  from?: {
@@ -725,7 +726,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
725
726
  before?: string | null | undefined;
726
727
  }[] | undefined;
727
728
  by?: string | undefined;
728
- requestId?: string | undefined;
729
729
  } | undefined;
730
730
  } | undefined;
731
731
  sessionId?: string | undefined;
@@ -765,7 +765,7 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
765
765
  toolExecutionId?: string | undefined;
766
766
  applicationKey?: string | undefined;
767
767
  evidence?: {
768
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
768
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
769
769
  contract: "stacklink.memory.evidence.v1";
770
770
  availability: "unknown" | "available" | "deleted";
771
771
  object?: {
@@ -774,18 +774,19 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
774
774
  name: string;
775
775
  observed?: string | undefined;
776
776
  } | undefined;
777
+ file?: {
778
+ title: string;
779
+ section?: string | undefined;
780
+ edited?: string | undefined;
781
+ } | undefined;
777
782
  channel?: string | undefined;
783
+ requestId?: string | undefined;
778
784
  conversation?: {
785
+ speaker?: string | undefined;
779
786
  sessionId?: string | undefined;
780
787
  turn?: string | undefined;
781
- speaker?: string | undefined;
782
788
  assistant?: boolean | undefined;
783
789
  } | undefined;
784
- file?: {
785
- title: string;
786
- section?: string | undefined;
787
- edited?: string | undefined;
788
- } | undefined;
789
790
  href?: string | undefined;
790
791
  from?: {
791
792
  name: string;
@@ -798,7 +799,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
798
799
  before?: string | null | undefined;
799
800
  }[] | undefined;
800
801
  by?: string | undefined;
801
- requestId?: string | undefined;
802
802
  } | undefined;
803
803
  };
804
804
  metadata: Record<string, unknown>;
@@ -842,26 +842,27 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
842
842
  toolExecutionId?: string | undefined;
843
843
  applicationKey?: string | undefined;
844
844
  evidence?: {
845
- kind: "object" | "message" | "unknown" | "email" | "manual" | "api" | "conversation" | "file";
845
+ kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
846
846
  object?: {
847
847
  kind: string;
848
848
  id: string;
849
849
  name: string;
850
850
  observed?: string | undefined;
851
851
  } | undefined;
852
+ file?: {
853
+ title: string;
854
+ section?: string | undefined;
855
+ edited?: string | undefined;
856
+ } | undefined;
852
857
  channel?: string | undefined;
858
+ requestId?: string | undefined;
853
859
  contract?: "stacklink.memory.evidence.v1" | undefined;
854
860
  conversation?: {
861
+ speaker?: string | undefined;
855
862
  sessionId?: string | undefined;
856
863
  turn?: string | undefined;
857
- speaker?: string | undefined;
858
864
  assistant?: boolean | undefined;
859
865
  } | undefined;
860
- file?: {
861
- title: string;
862
- section?: string | undefined;
863
- edited?: string | undefined;
864
- } | undefined;
865
866
  href?: string | undefined;
866
867
  availability?: "unknown" | "available" | "deleted" | undefined;
867
868
  from?: {
@@ -875,7 +876,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
875
876
  before?: string | null | undefined;
876
877
  }[] | undefined;
877
878
  by?: string | undefined;
878
- requestId?: string | undefined;
879
879
  } | undefined;
880
880
  } | undefined;
881
881
  sessionId?: string | undefined;
@@ -932,13 +932,13 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
932
932
  dataBase64: z.ZodString;
933
933
  }, "strict", z.ZodTypeAny, {
934
934
  type: "file";
935
- filename: string;
936
935
  mediaType: string;
936
+ filename: string;
937
937
  dataBase64: string;
938
938
  }, {
939
939
  type: "file";
940
- filename: string;
941
940
  mediaType: string;
941
+ filename: string;
942
942
  dataBase64: string;
943
943
  }>, z.ZodObject<{
944
944
  type: z.ZodLiteral<"url">;
@@ -980,8 +980,8 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
980
980
  metadata: Record<string, unknown>;
981
981
  input: {
982
982
  type: "file";
983
- filename: string;
984
983
  mediaType: string;
984
+ filename: string;
985
985
  dataBase64: string;
986
986
  } | {
987
987
  type: "url";
@@ -1015,8 +1015,8 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1015
1015
  }, {
1016
1016
  input: {
1017
1017
  type: "file";
1018
- filename: string;
1019
1018
  mediaType: string;
1019
+ filename: string;
1020
1020
  dataBase64: string;
1021
1021
  } | {
1022
1022
  type: "url";
@@ -1054,8 +1054,8 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1054
1054
  metadata: Record<string, unknown>;
1055
1055
  input: {
1056
1056
  type: "file";
1057
- filename: string;
1058
1057
  mediaType: string;
1058
+ filename: string;
1059
1059
  dataBase64: string;
1060
1060
  } | {
1061
1061
  type: "url";
@@ -1089,8 +1089,8 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
1089
1089
  }, {
1090
1090
  input: {
1091
1091
  type: "file";
1092
- filename: string;
1093
1092
  mediaType: string;
1093
+ filename: string;
1094
1094
  dataBase64: string;
1095
1095
  } | {
1096
1096
  type: "url";
@@ -1168,13 +1168,13 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1168
1168
  includeSourceRefs: boolean;
1169
1169
  tenantId?: string | undefined;
1170
1170
  sessionId?: string | undefined;
1171
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1171
1172
  recordedAt?: string | undefined;
1172
1173
  externalTenantId?: string | undefined;
1173
1174
  subjects?: {
1174
1175
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1175
1176
  externalId: string;
1176
1177
  }[] | undefined;
1177
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1178
1178
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1179
1179
  providerKeys?: string[] | undefined;
1180
1180
  sourceFamilyKeys?: string[] | undefined;
@@ -1188,13 +1188,13 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1188
1188
  tenantId?: string | undefined;
1189
1189
  sessionId?: string | undefined;
1190
1190
  limit?: number | undefined;
1191
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1191
1192
  recordedAt?: string | undefined;
1192
1193
  externalTenantId?: string | undefined;
1193
1194
  subjects?: {
1194
1195
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1195
1196
  externalId: string;
1196
1197
  }[] | undefined;
1197
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1198
1198
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1199
1199
  providerKeys?: string[] | undefined;
1200
1200
  sourceFamilyKeys?: string[] | undefined;
@@ -1214,13 +1214,13 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1214
1214
  includeSourceRefs: boolean;
1215
1215
  tenantId?: string | undefined;
1216
1216
  sessionId?: string | undefined;
1217
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1217
1218
  recordedAt?: string | undefined;
1218
1219
  externalTenantId?: string | undefined;
1219
1220
  subjects?: {
1220
1221
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1221
1222
  externalId: string;
1222
1223
  }[] | undefined;
1223
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1224
1224
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1225
1225
  providerKeys?: string[] | undefined;
1226
1226
  sourceFamilyKeys?: string[] | undefined;
@@ -1234,13 +1234,13 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
1234
1234
  tenantId?: string | undefined;
1235
1235
  sessionId?: string | undefined;
1236
1236
  limit?: number | undefined;
1237
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1237
1238
  recordedAt?: string | undefined;
1238
1239
  externalTenantId?: string | undefined;
1239
1240
  subjects?: {
1240
1241
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1241
1242
  externalId: string;
1242
1243
  }[] | undefined;
1243
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1244
1244
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1245
1245
  providerKeys?: string[] | undefined;
1246
1246
  sourceFamilyKeys?: string[] | undefined;
@@ -1297,16 +1297,16 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1297
1297
  includeGraph: boolean;
1298
1298
  includeSourceRefs: boolean;
1299
1299
  includeRecentEpisodes: boolean;
1300
- promptFormat: "text" | "markdown";
1300
+ promptFormat: "markdown" | "text";
1301
1301
  tenantId?: string | undefined;
1302
1302
  sessionId?: string | undefined;
1303
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1303
1304
  recordedAt?: string | undefined;
1304
1305
  externalTenantId?: string | undefined;
1305
1306
  subjects?: {
1306
1307
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1307
1308
  externalId: string;
1308
1309
  }[] | undefined;
1309
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1310
1310
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1311
1311
  providerKeys?: string[] | undefined;
1312
1312
  sourceFamilyKeys?: string[] | undefined;
@@ -1323,13 +1323,13 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1323
1323
  tenantId?: string | undefined;
1324
1324
  sessionId?: string | undefined;
1325
1325
  limit?: number | undefined;
1326
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1326
1327
  recordedAt?: string | undefined;
1327
1328
  externalTenantId?: string | undefined;
1328
1329
  subjects?: {
1329
1330
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1330
1331
  externalId: string;
1331
1332
  }[] | undefined;
1332
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1333
1333
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1334
1334
  providerKeys?: string[] | undefined;
1335
1335
  sourceFamilyKeys?: string[] | undefined;
@@ -1345,7 +1345,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1345
1345
  includeProfile?: boolean | undefined;
1346
1346
  includeBlocks?: boolean | undefined;
1347
1347
  includeRecentEpisodes?: boolean | undefined;
1348
- promptFormat?: "text" | "markdown" | undefined;
1348
+ promptFormat?: "markdown" | "text" | undefined;
1349
1349
  }>, {
1350
1350
  limit: number;
1351
1351
  query: string;
@@ -1353,16 +1353,16 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1353
1353
  includeGraph: boolean;
1354
1354
  includeSourceRefs: boolean;
1355
1355
  includeRecentEpisodes: boolean;
1356
- promptFormat: "text" | "markdown";
1356
+ promptFormat: "markdown" | "text";
1357
1357
  tenantId?: string | undefined;
1358
1358
  sessionId?: string | undefined;
1359
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1359
1360
  recordedAt?: string | undefined;
1360
1361
  externalTenantId?: string | undefined;
1361
1362
  subjects?: {
1362
1363
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1363
1364
  externalId: string;
1364
1365
  }[] | undefined;
1365
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1366
1366
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1367
1367
  providerKeys?: string[] | undefined;
1368
1368
  sourceFamilyKeys?: string[] | undefined;
@@ -1379,13 +1379,13 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1379
1379
  tenantId?: string | undefined;
1380
1380
  sessionId?: string | undefined;
1381
1381
  limit?: number | undefined;
1382
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1382
1383
  recordedAt?: string | undefined;
1383
1384
  externalTenantId?: string | undefined;
1384
1385
  subjects?: {
1385
1386
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
1386
1387
  externalId: string;
1387
1388
  }[] | undefined;
1388
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
1389
1389
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
1390
1390
  providerKeys?: string[] | undefined;
1391
1391
  sourceFamilyKeys?: string[] | undefined;
@@ -1401,7 +1401,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
1401
1401
  includeProfile?: boolean | undefined;
1402
1402
  includeBlocks?: boolean | undefined;
1403
1403
  includeRecentEpisodes?: boolean | undefined;
1404
- promptFormat?: "text" | "markdown" | undefined;
1404
+ promptFormat?: "markdown" | "text" | undefined;
1405
1405
  }>;
1406
1406
  export type MemoryContextInput = z.input<typeof memoryContextInputSchema>;
1407
1407
  export type ParsedMemoryContextInput = z.output<typeof memoryContextInputSchema>;
@@ -1781,10 +1781,10 @@ 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;
1784
1785
  metadata: Record<string, unknown>;
1785
1786
  content: string;
1786
1787
  access: "read_only" | "editable";
1787
- required: boolean;
1788
1788
  title: string;
1789
1789
  priority: number;
1790
1790
  tenantId?: string | undefined;
@@ -1798,10 +1798,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1798
1798
  content: string;
1799
1799
  title: string;
1800
1800
  tenantId?: string | undefined;
1801
+ required?: boolean | undefined;
1801
1802
  sessionId?: string | undefined;
1802
1803
  metadata?: Record<string, unknown> | undefined;
1803
1804
  access?: "read_only" | "editable" | undefined;
1804
- required?: boolean | undefined;
1805
1805
  externalTenantId?: string | undefined;
1806
1806
  subjects?: {
1807
1807
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
@@ -1809,10 +1809,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1809
1809
  }[] | undefined;
1810
1810
  priority?: number | undefined;
1811
1811
  }>, {
1812
+ required: boolean;
1812
1813
  metadata: Record<string, unknown>;
1813
1814
  content: string;
1814
1815
  access: "read_only" | "editable";
1815
- required: boolean;
1816
1816
  title: string;
1817
1817
  priority: number;
1818
1818
  tenantId?: string | undefined;
@@ -1826,10 +1826,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
1826
1826
  content: string;
1827
1827
  title: string;
1828
1828
  tenantId?: string | undefined;
1829
+ required?: boolean | undefined;
1829
1830
  sessionId?: string | undefined;
1830
1831
  metadata?: Record<string, unknown> | undefined;
1831
1832
  access?: "read_only" | "editable" | undefined;
1832
- required?: boolean | undefined;
1833
1833
  externalTenantId?: string | undefined;
1834
1834
  subjects?: {
1835
1835
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
@@ -2657,6 +2657,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2657
2657
  maxClaims: number;
2658
2658
  tenantId?: string | undefined;
2659
2659
  sessionId?: string | undefined;
2660
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2660
2661
  query?: string | undefined;
2661
2662
  recordedAt?: string | undefined;
2662
2663
  externalTenantId?: string | undefined;
@@ -2664,7 +2665,6 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2664
2665
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2665
2666
  externalId: string;
2666
2667
  }[] | undefined;
2667
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2668
2668
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2669
2669
  providerKeys?: string[] | undefined;
2670
2670
  sourceFamilyKeys?: string[] | undefined;
@@ -2678,6 +2678,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2678
2678
  tenantId?: string | undefined;
2679
2679
  sessionId?: string | undefined;
2680
2680
  limit?: number | undefined;
2681
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2681
2682
  query?: string | undefined;
2682
2683
  recordedAt?: string | undefined;
2683
2684
  externalTenantId?: string | undefined;
@@ -2685,7 +2686,6 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2685
2686
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2686
2687
  externalId: string;
2687
2688
  }[] | undefined;
2688
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2689
2689
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2690
2690
  providerKeys?: string[] | undefined;
2691
2691
  sourceFamilyKeys?: string[] | undefined;
@@ -2711,6 +2711,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2711
2711
  maxClaims: number;
2712
2712
  tenantId?: string | undefined;
2713
2713
  sessionId?: string | undefined;
2714
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2714
2715
  query?: string | undefined;
2715
2716
  recordedAt?: string | undefined;
2716
2717
  externalTenantId?: string | undefined;
@@ -2718,7 +2719,6 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2718
2719
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2719
2720
  externalId: string;
2720
2721
  }[] | undefined;
2721
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2722
2722
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2723
2723
  providerKeys?: string[] | undefined;
2724
2724
  sourceFamilyKeys?: string[] | undefined;
@@ -2732,6 +2732,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2732
2732
  tenantId?: string | undefined;
2733
2733
  sessionId?: string | undefined;
2734
2734
  limit?: number | undefined;
2735
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2735
2736
  query?: string | undefined;
2736
2737
  recordedAt?: string | undefined;
2737
2738
  externalTenantId?: string | undefined;
@@ -2739,7 +2740,6 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2739
2740
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2740
2741
  externalId: string;
2741
2742
  }[] | undefined;
2742
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2743
2743
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2744
2744
  providerKeys?: string[] | undefined;
2745
2745
  sourceFamilyKeys?: string[] | undefined;
@@ -2765,6 +2765,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2765
2765
  maxClaims: number;
2766
2766
  tenantId?: string | undefined;
2767
2767
  sessionId?: string | undefined;
2768
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2768
2769
  query?: string | undefined;
2769
2770
  recordedAt?: string | undefined;
2770
2771
  externalTenantId?: string | undefined;
@@ -2772,7 +2773,6 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2772
2773
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2773
2774
  externalId: string;
2774
2775
  }[] | undefined;
2775
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2776
2776
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2777
2777
  providerKeys?: string[] | undefined;
2778
2778
  sourceFamilyKeys?: string[] | undefined;
@@ -2786,6 +2786,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2786
2786
  tenantId?: string | undefined;
2787
2787
  sessionId?: string | undefined;
2788
2788
  limit?: number | undefined;
2789
+ kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2789
2790
  query?: string | undefined;
2790
2791
  recordedAt?: string | undefined;
2791
2792
  externalTenantId?: string | undefined;
@@ -2793,7 +2794,6 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
2793
2794
  type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
2794
2795
  externalId: string;
2795
2796
  }[] | undefined;
2796
- kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
2797
2797
  memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
2798
2798
  providerKeys?: string[] | undefined;
2799
2799
  sourceFamilyKeys?: string[] | undefined;
@@ -3043,8 +3043,6 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3043
3043
  extraction?: Record<string, unknown> | undefined;
3044
3044
  }>>;
3045
3045
  }, "strict", z.ZodTypeAny, {
3046
- content: string;
3047
- idempotencyKey: string;
3048
3046
  policy: {
3049
3047
  context: Record<string, unknown>;
3050
3048
  metadata: Record<string, unknown>;
@@ -3059,15 +3057,14 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3059
3057
  retentionDays: number | null;
3060
3058
  extraction: Record<string, unknown>;
3061
3059
  };
3060
+ content: string;
3061
+ idempotencyKey: string;
3062
3062
  title?: string | undefined;
3063
3063
  language?: string | undefined;
3064
3064
  sourceCategory?: string | undefined;
3065
3065
  }, {
3066
3066
  content: string;
3067
3067
  idempotencyKey: string;
3068
- title?: string | undefined;
3069
- language?: string | undefined;
3070
- sourceCategory?: string | undefined;
3071
3068
  policy?: {
3072
3069
  context?: Record<string, unknown> | undefined;
3073
3070
  metadata?: Record<string, unknown> | undefined;
@@ -3082,6 +3079,9 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
3082
3079
  retentionDays?: number | null | undefined;
3083
3080
  extraction?: Record<string, unknown> | undefined;
3084
3081
  } | undefined;
3082
+ title?: string | undefined;
3083
+ language?: string | undefined;
3084
+ sourceCategory?: string | undefined;
3085
3085
  }>;
3086
3086
  export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
3087
3087
  export type MemoryProjectPolicyUpdateInput = z.input<typeof memoryProjectPolicyUpdateInputSchema>;