@stacklink/sdk 0.3.15 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/compatibility.json +1 -1
- package/dist/src/domain/billing-plans.d.ts +827 -0
- package/dist/src/domain/billing-plans.d.ts.map +1 -0
- package/dist/src/domain/billing-plans.js +893 -0
- package/dist/src/domain/billing-plans.js.map +1 -0
- package/dist/src/domain/bot-avatar.d.ts +46 -0
- package/dist/src/domain/bot-avatar.d.ts.map +1 -0
- package/dist/src/domain/bot-avatar.js +436 -0
- package/dist/src/domain/bot-avatar.js.map +1 -0
- package/dist/src/domain/bot-contract.d.ts +1472 -700
- package/dist/src/domain/bot-contract.d.ts.map +1 -1
- package/dist/src/domain/bot-contract.js +133 -10
- package/dist/src/domain/bot-contract.js.map +1 -1
- package/dist/src/domain/memory-contract.d.ts +275 -275
- package/dist/src/domain/platform-approval-contract.d.ts +10 -4
- package/dist/src/domain/platform-approval-contract.d.ts.map +1 -1
- package/dist/src/domain/platform-approval-contract.js.map +1 -1
- package/dist/src/domain/provider-branding.d.ts.map +1 -1
- package/dist/src/domain/provider-branding.js +3 -0
- package/dist/src/domain/provider-branding.js.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.d.ts +21 -5
- package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +73 -45
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +24338 -0
- package/dist/src/domain/workflow-contract.d.ts.map +1 -0
- package/dist/src/domain/workflow-contract.js +95 -0
- package/dist/src/domain/workflow-contract.js.map +1 -0
- package/dist/src/sdk/index.d.ts +329 -30
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +194 -47
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -213,13 +213,13 @@ 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;
|
|
217
216
|
sessionId?: string | undefined;
|
|
217
|
+
speaker?: string | undefined;
|
|
218
218
|
turn?: string | undefined;
|
|
219
219
|
assistant?: boolean | undefined;
|
|
220
220
|
}, {
|
|
221
|
-
speaker?: string | undefined;
|
|
222
221
|
sessionId?: string | undefined;
|
|
222
|
+
speaker?: string | undefined;
|
|
223
223
|
turn?: string | undefined;
|
|
224
224
|
assistant?: boolean | undefined;
|
|
225
225
|
}>>;
|
|
@@ -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" | "
|
|
242
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
243
243
|
contract: "stacklink.memory.evidence.v1";
|
|
244
244
|
availability: "unknown" | "available" | "deleted";
|
|
245
245
|
object?: {
|
|
@@ -248,65 +248,65 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
|
|
|
248
248
|
name: string;
|
|
249
249
|
observed?: string | undefined;
|
|
250
250
|
} | undefined;
|
|
251
|
+
channel?: string | undefined;
|
|
252
|
+
fields?: {
|
|
253
|
+
label: string;
|
|
254
|
+
after: string;
|
|
255
|
+
before?: string | null | undefined;
|
|
256
|
+
}[] | undefined;
|
|
251
257
|
file?: {
|
|
252
258
|
title: string;
|
|
253
259
|
section?: string | undefined;
|
|
254
260
|
edited?: string | undefined;
|
|
255
261
|
} | undefined;
|
|
256
|
-
|
|
262
|
+
from?: {
|
|
263
|
+
name: string;
|
|
264
|
+
address?: string | undefined;
|
|
265
|
+
} | undefined;
|
|
257
266
|
requestId?: string | undefined;
|
|
258
267
|
conversation?: {
|
|
259
|
-
speaker?: string | undefined;
|
|
260
268
|
sessionId?: string | undefined;
|
|
269
|
+
speaker?: string | undefined;
|
|
261
270
|
turn?: string | undefined;
|
|
262
271
|
assistant?: boolean | undefined;
|
|
263
272
|
} | undefined;
|
|
264
273
|
href?: string | undefined;
|
|
265
|
-
from?: {
|
|
266
|
-
name: string;
|
|
267
|
-
address?: string | undefined;
|
|
268
|
-
} | undefined;
|
|
269
274
|
subject?: string | undefined;
|
|
270
|
-
fields?: {
|
|
271
|
-
label: string;
|
|
272
|
-
after: string;
|
|
273
|
-
before?: string | null | undefined;
|
|
274
|
-
}[] | undefined;
|
|
275
275
|
by?: string | undefined;
|
|
276
276
|
}, {
|
|
277
|
-
kind: "object" | "
|
|
277
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "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
|
+
channel?: string | undefined;
|
|
285
|
+
fields?: {
|
|
286
|
+
label: string;
|
|
287
|
+
after: string;
|
|
288
|
+
before?: string | null | undefined;
|
|
289
|
+
}[] | undefined;
|
|
284
290
|
file?: {
|
|
285
291
|
title: string;
|
|
286
292
|
section?: string | undefined;
|
|
287
293
|
edited?: string | undefined;
|
|
288
294
|
} | undefined;
|
|
289
|
-
|
|
295
|
+
from?: {
|
|
296
|
+
name: string;
|
|
297
|
+
address?: string | undefined;
|
|
298
|
+
} | undefined;
|
|
290
299
|
requestId?: string | undefined;
|
|
291
300
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
292
301
|
conversation?: {
|
|
293
|
-
speaker?: string | undefined;
|
|
294
302
|
sessionId?: string | undefined;
|
|
303
|
+
speaker?: string | undefined;
|
|
295
304
|
turn?: string | undefined;
|
|
296
305
|
assistant?: boolean | undefined;
|
|
297
306
|
} | undefined;
|
|
298
307
|
href?: string | undefined;
|
|
299
308
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
300
|
-
from?: {
|
|
301
|
-
name: string;
|
|
302
|
-
address?: string | undefined;
|
|
303
|
-
} | undefined;
|
|
304
309
|
subject?: string | undefined;
|
|
305
|
-
fields?: {
|
|
306
|
-
label: string;
|
|
307
|
-
after: string;
|
|
308
|
-
before?: string | null | undefined;
|
|
309
|
-
}[] | undefined;
|
|
310
310
|
by?: string | undefined;
|
|
311
311
|
}>;
|
|
312
312
|
export type MemoryEvidenceReference = z.input<typeof memoryEvidenceReferenceSchema>;
|
|
@@ -397,13 +397,13 @@ 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;
|
|
401
400
|
sessionId?: string | undefined;
|
|
401
|
+
speaker?: string | undefined;
|
|
402
402
|
turn?: string | undefined;
|
|
403
403
|
assistant?: boolean | undefined;
|
|
404
404
|
}, {
|
|
405
|
-
speaker?: string | undefined;
|
|
406
405
|
sessionId?: string | undefined;
|
|
406
|
+
speaker?: string | undefined;
|
|
407
407
|
turn?: string | undefined;
|
|
408
408
|
assistant?: boolean | undefined;
|
|
409
409
|
}>>;
|
|
@@ -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" | "
|
|
426
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
427
427
|
contract: "stacklink.memory.evidence.v1";
|
|
428
428
|
availability: "unknown" | "available" | "deleted";
|
|
429
429
|
object?: {
|
|
@@ -432,78 +432,78 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
432
432
|
name: string;
|
|
433
433
|
observed?: string | undefined;
|
|
434
434
|
} | undefined;
|
|
435
|
+
channel?: string | undefined;
|
|
436
|
+
fields?: {
|
|
437
|
+
label: string;
|
|
438
|
+
after: string;
|
|
439
|
+
before?: string | null | undefined;
|
|
440
|
+
}[] | undefined;
|
|
435
441
|
file?: {
|
|
436
442
|
title: string;
|
|
437
443
|
section?: string | undefined;
|
|
438
444
|
edited?: string | undefined;
|
|
439
445
|
} | undefined;
|
|
440
|
-
|
|
446
|
+
from?: {
|
|
447
|
+
name: string;
|
|
448
|
+
address?: string | undefined;
|
|
449
|
+
} | undefined;
|
|
441
450
|
requestId?: string | undefined;
|
|
442
451
|
conversation?: {
|
|
443
|
-
speaker?: string | undefined;
|
|
444
452
|
sessionId?: string | undefined;
|
|
453
|
+
speaker?: string | undefined;
|
|
445
454
|
turn?: string | undefined;
|
|
446
455
|
assistant?: boolean | undefined;
|
|
447
456
|
} | undefined;
|
|
448
457
|
href?: string | undefined;
|
|
449
|
-
from?: {
|
|
450
|
-
name: string;
|
|
451
|
-
address?: string | undefined;
|
|
452
|
-
} | undefined;
|
|
453
458
|
subject?: string | undefined;
|
|
454
|
-
fields?: {
|
|
455
|
-
label: string;
|
|
456
|
-
after: string;
|
|
457
|
-
before?: string | null | undefined;
|
|
458
|
-
}[] | undefined;
|
|
459
459
|
by?: string | undefined;
|
|
460
460
|
}, {
|
|
461
|
-
kind: "object" | "
|
|
461
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "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
|
+
channel?: string | undefined;
|
|
469
|
+
fields?: {
|
|
470
|
+
label: string;
|
|
471
|
+
after: string;
|
|
472
|
+
before?: string | null | undefined;
|
|
473
|
+
}[] | undefined;
|
|
468
474
|
file?: {
|
|
469
475
|
title: string;
|
|
470
476
|
section?: string | undefined;
|
|
471
477
|
edited?: string | undefined;
|
|
472
478
|
} | undefined;
|
|
473
|
-
|
|
479
|
+
from?: {
|
|
480
|
+
name: string;
|
|
481
|
+
address?: string | undefined;
|
|
482
|
+
} | undefined;
|
|
474
483
|
requestId?: string | undefined;
|
|
475
484
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
476
485
|
conversation?: {
|
|
477
|
-
speaker?: string | undefined;
|
|
478
486
|
sessionId?: string | undefined;
|
|
487
|
+
speaker?: string | undefined;
|
|
479
488
|
turn?: string | undefined;
|
|
480
489
|
assistant?: boolean | undefined;
|
|
481
490
|
} | undefined;
|
|
482
491
|
href?: string | undefined;
|
|
483
492
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
484
|
-
from?: {
|
|
485
|
-
name: string;
|
|
486
|
-
address?: string | undefined;
|
|
487
|
-
} | undefined;
|
|
488
493
|
subject?: string | undefined;
|
|
489
|
-
fields?: {
|
|
490
|
-
label: string;
|
|
491
|
-
after: string;
|
|
492
|
-
before?: string | null | undefined;
|
|
493
|
-
}[] | undefined;
|
|
494
494
|
by?: string | undefined;
|
|
495
495
|
}>>;
|
|
496
496
|
}, "strict", z.ZodTypeAny, {
|
|
497
497
|
kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
|
|
498
498
|
externalId?: string | undefined;
|
|
499
499
|
providerKey?: string | undefined;
|
|
500
|
-
resourceId?: string | undefined;
|
|
501
500
|
connectedAccountId?: string | undefined;
|
|
501
|
+
resourceId?: string | undefined;
|
|
502
502
|
resourceType?: string | undefined;
|
|
503
503
|
toolExecutionId?: string | undefined;
|
|
504
504
|
applicationKey?: string | undefined;
|
|
505
505
|
evidence?: {
|
|
506
|
-
kind: "object" | "
|
|
506
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
507
507
|
contract: "stacklink.memory.evidence.v1";
|
|
508
508
|
availability: "unknown" | "available" | "deleted";
|
|
509
509
|
object?: {
|
|
@@ -512,75 +512,75 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
512
512
|
name: string;
|
|
513
513
|
observed?: string | undefined;
|
|
514
514
|
} | undefined;
|
|
515
|
+
channel?: string | undefined;
|
|
516
|
+
fields?: {
|
|
517
|
+
label: string;
|
|
518
|
+
after: string;
|
|
519
|
+
before?: string | null | undefined;
|
|
520
|
+
}[] | undefined;
|
|
515
521
|
file?: {
|
|
516
522
|
title: string;
|
|
517
523
|
section?: string | undefined;
|
|
518
524
|
edited?: string | undefined;
|
|
519
525
|
} | undefined;
|
|
520
|
-
|
|
526
|
+
from?: {
|
|
527
|
+
name: string;
|
|
528
|
+
address?: string | undefined;
|
|
529
|
+
} | undefined;
|
|
521
530
|
requestId?: string | undefined;
|
|
522
531
|
conversation?: {
|
|
523
|
-
speaker?: string | undefined;
|
|
524
532
|
sessionId?: string | undefined;
|
|
533
|
+
speaker?: string | undefined;
|
|
525
534
|
turn?: string | undefined;
|
|
526
535
|
assistant?: boolean | undefined;
|
|
527
536
|
} | undefined;
|
|
528
537
|
href?: string | undefined;
|
|
529
|
-
from?: {
|
|
530
|
-
name: string;
|
|
531
|
-
address?: string | undefined;
|
|
532
|
-
} | undefined;
|
|
533
538
|
subject?: string | undefined;
|
|
534
|
-
fields?: {
|
|
535
|
-
label: string;
|
|
536
|
-
after: string;
|
|
537
|
-
before?: string | null | undefined;
|
|
538
|
-
}[] | undefined;
|
|
539
539
|
by?: string | undefined;
|
|
540
540
|
} | undefined;
|
|
541
541
|
}, {
|
|
542
542
|
kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
|
|
543
543
|
externalId?: string | undefined;
|
|
544
544
|
providerKey?: string | undefined;
|
|
545
|
-
resourceId?: string | undefined;
|
|
546
545
|
connectedAccountId?: string | undefined;
|
|
546
|
+
resourceId?: string | undefined;
|
|
547
547
|
resourceType?: string | undefined;
|
|
548
548
|
toolExecutionId?: string | undefined;
|
|
549
549
|
applicationKey?: string | undefined;
|
|
550
550
|
evidence?: {
|
|
551
|
-
kind: "object" | "
|
|
551
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "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
|
+
channel?: string | undefined;
|
|
559
|
+
fields?: {
|
|
560
|
+
label: string;
|
|
561
|
+
after: string;
|
|
562
|
+
before?: string | null | undefined;
|
|
563
|
+
}[] | undefined;
|
|
558
564
|
file?: {
|
|
559
565
|
title: string;
|
|
560
566
|
section?: string | undefined;
|
|
561
567
|
edited?: string | undefined;
|
|
562
568
|
} | undefined;
|
|
563
|
-
|
|
569
|
+
from?: {
|
|
570
|
+
name: string;
|
|
571
|
+
address?: string | undefined;
|
|
572
|
+
} | undefined;
|
|
564
573
|
requestId?: string | undefined;
|
|
565
574
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
566
575
|
conversation?: {
|
|
567
|
-
speaker?: string | undefined;
|
|
568
576
|
sessionId?: string | undefined;
|
|
577
|
+
speaker?: string | undefined;
|
|
569
578
|
turn?: string | undefined;
|
|
570
579
|
assistant?: boolean | undefined;
|
|
571
580
|
} | undefined;
|
|
572
581
|
href?: string | undefined;
|
|
573
582
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
574
|
-
from?: {
|
|
575
|
-
name: string;
|
|
576
|
-
address?: string | undefined;
|
|
577
|
-
} | undefined;
|
|
578
583
|
subject?: string | undefined;
|
|
579
|
-
fields?: {
|
|
580
|
-
label: string;
|
|
581
|
-
after: string;
|
|
582
|
-
before?: string | null | undefined;
|
|
583
|
-
}[] | undefined;
|
|
584
584
|
by?: string | undefined;
|
|
585
585
|
} | undefined;
|
|
586
586
|
}>>;
|
|
@@ -604,18 +604,17 @@ 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";
|
|
608
607
|
source: {
|
|
609
608
|
kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
|
|
610
609
|
externalId?: string | undefined;
|
|
611
610
|
providerKey?: string | undefined;
|
|
612
|
-
resourceId?: string | undefined;
|
|
613
611
|
connectedAccountId?: string | undefined;
|
|
612
|
+
resourceId?: string | undefined;
|
|
614
613
|
resourceType?: string | undefined;
|
|
615
614
|
toolExecutionId?: string | undefined;
|
|
616
615
|
applicationKey?: string | undefined;
|
|
617
616
|
evidence?: {
|
|
618
|
-
kind: "object" | "
|
|
617
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
619
618
|
contract: "stacklink.memory.evidence.v1";
|
|
620
619
|
availability: "unknown" | "available" | "deleted";
|
|
621
620
|
object?: {
|
|
@@ -624,52 +623,53 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
624
623
|
name: string;
|
|
625
624
|
observed?: string | undefined;
|
|
626
625
|
} | undefined;
|
|
626
|
+
channel?: string | undefined;
|
|
627
|
+
fields?: {
|
|
628
|
+
label: string;
|
|
629
|
+
after: string;
|
|
630
|
+
before?: string | null | undefined;
|
|
631
|
+
}[] | undefined;
|
|
627
632
|
file?: {
|
|
628
633
|
title: string;
|
|
629
634
|
section?: string | undefined;
|
|
630
635
|
edited?: string | undefined;
|
|
631
636
|
} | undefined;
|
|
632
|
-
|
|
637
|
+
from?: {
|
|
638
|
+
name: string;
|
|
639
|
+
address?: string | undefined;
|
|
640
|
+
} | undefined;
|
|
633
641
|
requestId?: string | undefined;
|
|
634
642
|
conversation?: {
|
|
635
|
-
speaker?: string | undefined;
|
|
636
643
|
sessionId?: string | undefined;
|
|
644
|
+
speaker?: string | undefined;
|
|
637
645
|
turn?: string | undefined;
|
|
638
646
|
assistant?: boolean | undefined;
|
|
639
647
|
} | undefined;
|
|
640
648
|
href?: string | undefined;
|
|
641
|
-
from?: {
|
|
642
|
-
name: string;
|
|
643
|
-
address?: string | undefined;
|
|
644
|
-
} | undefined;
|
|
645
649
|
subject?: string | undefined;
|
|
646
|
-
fields?: {
|
|
647
|
-
label: string;
|
|
648
|
-
after: string;
|
|
649
|
-
before?: string | null | undefined;
|
|
650
|
-
}[] | undefined;
|
|
651
650
|
by?: string | undefined;
|
|
652
651
|
} | undefined;
|
|
653
652
|
};
|
|
653
|
+
kind: "block" | "fact" | "episode" | "profile_item";
|
|
654
|
+
mode: "exact" | "extract";
|
|
654
655
|
metadata: Record<string, unknown>;
|
|
655
656
|
content: string;
|
|
656
|
-
mode: "exact" | "extract";
|
|
657
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
661
|
tenantId?: string | undefined;
|
|
662
662
|
sessionId?: string | undefined;
|
|
663
|
+
language?: string | undefined;
|
|
664
|
+
title?: string | undefined;
|
|
663
665
|
idempotencyKey?: string | undefined;
|
|
664
666
|
validFrom?: string | undefined;
|
|
665
667
|
validTo?: string | undefined;
|
|
666
668
|
externalTenantId?: string | undefined;
|
|
667
|
-
title?: string | undefined;
|
|
668
669
|
subjects?: {
|
|
669
670
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
670
671
|
externalId: string;
|
|
671
672
|
}[] | undefined;
|
|
672
|
-
language?: string | undefined;
|
|
673
673
|
policyKey?: string | undefined;
|
|
674
674
|
consent?: {
|
|
675
675
|
status: "granted";
|
|
@@ -680,62 +680,63 @@ 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;
|
|
685
683
|
source?: {
|
|
686
684
|
kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
|
|
687
685
|
externalId?: string | undefined;
|
|
688
686
|
providerKey?: string | undefined;
|
|
689
|
-
resourceId?: string | undefined;
|
|
690
687
|
connectedAccountId?: string | undefined;
|
|
688
|
+
resourceId?: string | undefined;
|
|
691
689
|
resourceType?: string | undefined;
|
|
692
690
|
toolExecutionId?: string | undefined;
|
|
693
691
|
applicationKey?: string | undefined;
|
|
694
692
|
evidence?: {
|
|
695
|
-
kind: "object" | "
|
|
693
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
696
694
|
object?: {
|
|
697
695
|
kind: string;
|
|
698
696
|
id: string;
|
|
699
697
|
name: string;
|
|
700
698
|
observed?: string | undefined;
|
|
701
699
|
} | undefined;
|
|
700
|
+
channel?: string | undefined;
|
|
701
|
+
fields?: {
|
|
702
|
+
label: string;
|
|
703
|
+
after: string;
|
|
704
|
+
before?: string | null | undefined;
|
|
705
|
+
}[] | undefined;
|
|
702
706
|
file?: {
|
|
703
707
|
title: string;
|
|
704
708
|
section?: string | undefined;
|
|
705
709
|
edited?: string | undefined;
|
|
706
710
|
} | undefined;
|
|
707
|
-
|
|
711
|
+
from?: {
|
|
712
|
+
name: string;
|
|
713
|
+
address?: string | undefined;
|
|
714
|
+
} | undefined;
|
|
708
715
|
requestId?: string | undefined;
|
|
709
716
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
710
717
|
conversation?: {
|
|
711
|
-
speaker?: string | undefined;
|
|
712
718
|
sessionId?: string | undefined;
|
|
719
|
+
speaker?: string | undefined;
|
|
713
720
|
turn?: string | undefined;
|
|
714
721
|
assistant?: boolean | undefined;
|
|
715
722
|
} | undefined;
|
|
716
723
|
href?: string | undefined;
|
|
717
724
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
718
|
-
from?: {
|
|
719
|
-
name: string;
|
|
720
|
-
address?: string | undefined;
|
|
721
|
-
} | undefined;
|
|
722
725
|
subject?: string | undefined;
|
|
723
|
-
fields?: {
|
|
724
|
-
label: string;
|
|
725
|
-
after: string;
|
|
726
|
-
before?: string | null | undefined;
|
|
727
|
-
}[] | undefined;
|
|
728
726
|
by?: string | undefined;
|
|
729
727
|
} | undefined;
|
|
730
728
|
} | undefined;
|
|
729
|
+
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
730
|
+
tenantId?: string | undefined;
|
|
731
731
|
sessionId?: string | undefined;
|
|
732
|
+
language?: string | undefined;
|
|
733
|
+
mode?: "exact" | "extract" | undefined;
|
|
734
|
+
title?: string | undefined;
|
|
732
735
|
metadata?: Record<string, unknown> | undefined;
|
|
733
736
|
idempotencyKey?: string | undefined;
|
|
734
|
-
mode?: "exact" | "extract" | undefined;
|
|
735
737
|
validFrom?: string | undefined;
|
|
736
738
|
validTo?: string | undefined;
|
|
737
739
|
externalTenantId?: string | undefined;
|
|
738
|
-
title?: string | undefined;
|
|
739
740
|
subjects?: {
|
|
740
741
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
741
742
|
externalId: string;
|
|
@@ -744,7 +745,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
744
745
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
745
746
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
746
747
|
topicTags?: string[] | undefined;
|
|
747
|
-
language?: string | undefined;
|
|
748
748
|
policyKey?: string | undefined;
|
|
749
749
|
consent?: {
|
|
750
750
|
status: "granted";
|
|
@@ -754,18 +754,17 @@ 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";
|
|
758
757
|
source: {
|
|
759
758
|
kind: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document";
|
|
760
759
|
externalId?: string | undefined;
|
|
761
760
|
providerKey?: string | undefined;
|
|
762
|
-
resourceId?: string | undefined;
|
|
763
761
|
connectedAccountId?: string | undefined;
|
|
762
|
+
resourceId?: string | undefined;
|
|
764
763
|
resourceType?: string | undefined;
|
|
765
764
|
toolExecutionId?: string | undefined;
|
|
766
765
|
applicationKey?: string | undefined;
|
|
767
766
|
evidence?: {
|
|
768
|
-
kind: "object" | "
|
|
767
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
769
768
|
contract: "stacklink.memory.evidence.v1";
|
|
770
769
|
availability: "unknown" | "available" | "deleted";
|
|
771
770
|
object?: {
|
|
@@ -774,52 +773,53 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
774
773
|
name: string;
|
|
775
774
|
observed?: string | undefined;
|
|
776
775
|
} | undefined;
|
|
776
|
+
channel?: string | undefined;
|
|
777
|
+
fields?: {
|
|
778
|
+
label: string;
|
|
779
|
+
after: string;
|
|
780
|
+
before?: string | null | undefined;
|
|
781
|
+
}[] | undefined;
|
|
777
782
|
file?: {
|
|
778
783
|
title: string;
|
|
779
784
|
section?: string | undefined;
|
|
780
785
|
edited?: string | undefined;
|
|
781
786
|
} | undefined;
|
|
782
|
-
|
|
787
|
+
from?: {
|
|
788
|
+
name: string;
|
|
789
|
+
address?: string | undefined;
|
|
790
|
+
} | undefined;
|
|
783
791
|
requestId?: string | undefined;
|
|
784
792
|
conversation?: {
|
|
785
|
-
speaker?: string | undefined;
|
|
786
793
|
sessionId?: string | undefined;
|
|
794
|
+
speaker?: string | undefined;
|
|
787
795
|
turn?: string | undefined;
|
|
788
796
|
assistant?: boolean | undefined;
|
|
789
797
|
} | undefined;
|
|
790
798
|
href?: string | undefined;
|
|
791
|
-
from?: {
|
|
792
|
-
name: string;
|
|
793
|
-
address?: string | undefined;
|
|
794
|
-
} | undefined;
|
|
795
799
|
subject?: string | undefined;
|
|
796
|
-
fields?: {
|
|
797
|
-
label: string;
|
|
798
|
-
after: string;
|
|
799
|
-
before?: string | null | undefined;
|
|
800
|
-
}[] | undefined;
|
|
801
800
|
by?: string | undefined;
|
|
802
801
|
} | undefined;
|
|
803
802
|
};
|
|
803
|
+
kind: "block" | "fact" | "episode" | "profile_item";
|
|
804
|
+
mode: "exact" | "extract";
|
|
804
805
|
metadata: Record<string, unknown>;
|
|
805
806
|
content: string;
|
|
806
|
-
mode: "exact" | "extract";
|
|
807
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
811
|
tenantId?: string | undefined;
|
|
812
812
|
sessionId?: string | undefined;
|
|
813
|
+
language?: string | undefined;
|
|
814
|
+
title?: string | undefined;
|
|
813
815
|
idempotencyKey?: string | undefined;
|
|
814
816
|
validFrom?: string | undefined;
|
|
815
817
|
validTo?: string | undefined;
|
|
816
818
|
externalTenantId?: string | undefined;
|
|
817
|
-
title?: string | undefined;
|
|
818
819
|
subjects?: {
|
|
819
820
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
820
821
|
externalId: string;
|
|
821
822
|
}[] | undefined;
|
|
822
|
-
language?: string | undefined;
|
|
823
823
|
policyKey?: string | undefined;
|
|
824
824
|
consent?: {
|
|
825
825
|
status: "granted";
|
|
@@ -830,62 +830,63 @@ 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;
|
|
835
833
|
source?: {
|
|
836
834
|
kind?: "provider" | "artifact" | "tool_execution" | "direct" | "conversation" | "document" | undefined;
|
|
837
835
|
externalId?: string | undefined;
|
|
838
836
|
providerKey?: string | undefined;
|
|
839
|
-
resourceId?: string | undefined;
|
|
840
837
|
connectedAccountId?: string | undefined;
|
|
838
|
+
resourceId?: string | undefined;
|
|
841
839
|
resourceType?: string | undefined;
|
|
842
840
|
toolExecutionId?: string | undefined;
|
|
843
841
|
applicationKey?: string | undefined;
|
|
844
842
|
evidence?: {
|
|
845
|
-
kind: "object" | "
|
|
843
|
+
kind: "object" | "message" | "unknown" | "email" | "api" | "file" | "manual" | "conversation";
|
|
846
844
|
object?: {
|
|
847
845
|
kind: string;
|
|
848
846
|
id: string;
|
|
849
847
|
name: string;
|
|
850
848
|
observed?: string | undefined;
|
|
851
849
|
} | undefined;
|
|
850
|
+
channel?: string | undefined;
|
|
851
|
+
fields?: {
|
|
852
|
+
label: string;
|
|
853
|
+
after: string;
|
|
854
|
+
before?: string | null | undefined;
|
|
855
|
+
}[] | undefined;
|
|
852
856
|
file?: {
|
|
853
857
|
title: string;
|
|
854
858
|
section?: string | undefined;
|
|
855
859
|
edited?: string | undefined;
|
|
856
860
|
} | undefined;
|
|
857
|
-
|
|
861
|
+
from?: {
|
|
862
|
+
name: string;
|
|
863
|
+
address?: string | undefined;
|
|
864
|
+
} | undefined;
|
|
858
865
|
requestId?: string | undefined;
|
|
859
866
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
860
867
|
conversation?: {
|
|
861
|
-
speaker?: string | undefined;
|
|
862
868
|
sessionId?: string | undefined;
|
|
869
|
+
speaker?: string | undefined;
|
|
863
870
|
turn?: string | undefined;
|
|
864
871
|
assistant?: boolean | undefined;
|
|
865
872
|
} | undefined;
|
|
866
873
|
href?: string | undefined;
|
|
867
874
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
868
|
-
from?: {
|
|
869
|
-
name: string;
|
|
870
|
-
address?: string | undefined;
|
|
871
|
-
} | undefined;
|
|
872
875
|
subject?: string | undefined;
|
|
873
|
-
fields?: {
|
|
874
|
-
label: string;
|
|
875
|
-
after: string;
|
|
876
|
-
before?: string | null | undefined;
|
|
877
|
-
}[] | undefined;
|
|
878
876
|
by?: string | undefined;
|
|
879
877
|
} | undefined;
|
|
880
878
|
} | undefined;
|
|
879
|
+
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
880
|
+
tenantId?: string | undefined;
|
|
881
881
|
sessionId?: string | undefined;
|
|
882
|
+
language?: string | undefined;
|
|
883
|
+
mode?: "exact" | "extract" | undefined;
|
|
884
|
+
title?: string | undefined;
|
|
882
885
|
metadata?: Record<string, unknown> | undefined;
|
|
883
886
|
idempotencyKey?: string | undefined;
|
|
884
|
-
mode?: "exact" | "extract" | undefined;
|
|
885
887
|
validFrom?: string | undefined;
|
|
886
888
|
validTo?: string | undefined;
|
|
887
889
|
externalTenantId?: string | undefined;
|
|
888
|
-
title?: string | undefined;
|
|
889
890
|
subjects?: {
|
|
890
891
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
891
892
|
externalId: string;
|
|
@@ -894,7 +895,6 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
894
895
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
895
896
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
896
897
|
topicTags?: string[] | undefined;
|
|
897
|
-
language?: string | undefined;
|
|
898
898
|
policyKey?: string | undefined;
|
|
899
899
|
consent?: {
|
|
900
900
|
status: "granted";
|
|
@@ -977,7 +977,6 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
977
977
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
978
978
|
}, "strip", z.ZodTypeAny, {
|
|
979
979
|
kind: "block" | "fact" | "episode" | "profile_item";
|
|
980
|
-
metadata: Record<string, unknown>;
|
|
981
980
|
input: {
|
|
982
981
|
type: "file";
|
|
983
982
|
mediaType: string;
|
|
@@ -988,22 +987,23 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
988
987
|
url: string;
|
|
989
988
|
};
|
|
990
989
|
mode: "exact" | "extract";
|
|
990
|
+
metadata: Record<string, unknown>;
|
|
991
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
995
|
tenantId?: string | undefined;
|
|
996
996
|
sessionId?: string | undefined;
|
|
997
|
+
language?: string | undefined;
|
|
998
|
+
title?: string | undefined;
|
|
997
999
|
idempotencyKey?: string | undefined;
|
|
998
1000
|
validFrom?: string | undefined;
|
|
999
1001
|
validTo?: string | undefined;
|
|
1000
1002
|
externalTenantId?: string | undefined;
|
|
1001
|
-
title?: string | undefined;
|
|
1002
1003
|
subjects?: {
|
|
1003
1004
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
1004
1005
|
externalId: string;
|
|
1005
1006
|
}[] | undefined;
|
|
1006
|
-
language?: string | undefined;
|
|
1007
1007
|
policyKey?: string | undefined;
|
|
1008
1008
|
consent?: {
|
|
1009
1009
|
status: "granted";
|
|
@@ -1025,13 +1025,14 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1025
1025
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1026
1026
|
tenantId?: string | undefined;
|
|
1027
1027
|
sessionId?: string | undefined;
|
|
1028
|
+
language?: string | undefined;
|
|
1029
|
+
mode?: "exact" | "extract" | undefined;
|
|
1030
|
+
title?: string | undefined;
|
|
1028
1031
|
metadata?: Record<string, unknown> | undefined;
|
|
1029
1032
|
idempotencyKey?: string | undefined;
|
|
1030
|
-
mode?: "exact" | "extract" | undefined;
|
|
1031
1033
|
validFrom?: string | undefined;
|
|
1032
1034
|
validTo?: string | undefined;
|
|
1033
1035
|
externalTenantId?: string | undefined;
|
|
1034
|
-
title?: string | undefined;
|
|
1035
1036
|
subjects?: {
|
|
1036
1037
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
1037
1038
|
externalId: string;
|
|
@@ -1040,7 +1041,6 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1040
1041
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1041
1042
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1042
1043
|
topicTags?: string[] | undefined;
|
|
1043
|
-
language?: string | undefined;
|
|
1044
1044
|
policyKey?: string | undefined;
|
|
1045
1045
|
consent?: {
|
|
1046
1046
|
status: "granted";
|
|
@@ -1051,7 +1051,6 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1051
1051
|
occurredAt?: string | undefined;
|
|
1052
1052
|
}>, {
|
|
1053
1053
|
kind: "block" | "fact" | "episode" | "profile_item";
|
|
1054
|
-
metadata: Record<string, unknown>;
|
|
1055
1054
|
input: {
|
|
1056
1055
|
type: "file";
|
|
1057
1056
|
mediaType: string;
|
|
@@ -1062,22 +1061,23 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1062
1061
|
url: string;
|
|
1063
1062
|
};
|
|
1064
1063
|
mode: "exact" | "extract";
|
|
1064
|
+
metadata: Record<string, unknown>;
|
|
1065
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
1069
|
tenantId?: string | undefined;
|
|
1070
1070
|
sessionId?: string | undefined;
|
|
1071
|
+
language?: string | undefined;
|
|
1072
|
+
title?: string | undefined;
|
|
1071
1073
|
idempotencyKey?: string | undefined;
|
|
1072
1074
|
validFrom?: string | undefined;
|
|
1073
1075
|
validTo?: string | undefined;
|
|
1074
1076
|
externalTenantId?: string | undefined;
|
|
1075
|
-
title?: string | undefined;
|
|
1076
1077
|
subjects?: {
|
|
1077
1078
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
1078
1079
|
externalId: string;
|
|
1079
1080
|
}[] | undefined;
|
|
1080
|
-
language?: string | undefined;
|
|
1081
1081
|
policyKey?: string | undefined;
|
|
1082
1082
|
consent?: {
|
|
1083
1083
|
status: "granted";
|
|
@@ -1099,13 +1099,14 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1099
1099
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1100
1100
|
tenantId?: string | undefined;
|
|
1101
1101
|
sessionId?: string | undefined;
|
|
1102
|
+
language?: string | undefined;
|
|
1103
|
+
mode?: "exact" | "extract" | undefined;
|
|
1104
|
+
title?: string | undefined;
|
|
1102
1105
|
metadata?: Record<string, unknown> | undefined;
|
|
1103
1106
|
idempotencyKey?: string | undefined;
|
|
1104
|
-
mode?: "exact" | "extract" | undefined;
|
|
1105
1107
|
validFrom?: string | undefined;
|
|
1106
1108
|
validTo?: string | undefined;
|
|
1107
1109
|
externalTenantId?: string | undefined;
|
|
1108
|
-
title?: string | undefined;
|
|
1109
1110
|
subjects?: {
|
|
1110
1111
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
1111
1112
|
externalId: string;
|
|
@@ -1114,7 +1115,6 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1114
1115
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1115
1116
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1116
1117
|
topicTags?: string[] | undefined;
|
|
1117
|
-
language?: string | undefined;
|
|
1118
1118
|
policyKey?: string | undefined;
|
|
1119
1119
|
consent?: {
|
|
1120
1120
|
status: "granted";
|
|
@@ -1297,7 +1297,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1297
1297
|
includeGraph: boolean;
|
|
1298
1298
|
includeSourceRefs: boolean;
|
|
1299
1299
|
includeRecentEpisodes: boolean;
|
|
1300
|
-
promptFormat: "
|
|
1300
|
+
promptFormat: "text" | "markdown";
|
|
1301
1301
|
tenantId?: string | undefined;
|
|
1302
1302
|
sessionId?: string | undefined;
|
|
1303
1303
|
kinds?: ("block" | "fact" | "episode" | "profile_item")[] | 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?: "
|
|
1348
|
+
promptFormat?: "text" | "markdown" | undefined;
|
|
1349
1349
|
}>, {
|
|
1350
1350
|
limit: number;
|
|
1351
1351
|
query: string;
|
|
@@ -1353,7 +1353,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1353
1353
|
includeGraph: boolean;
|
|
1354
1354
|
includeSourceRefs: boolean;
|
|
1355
1355
|
includeRecentEpisodes: boolean;
|
|
1356
|
-
promptFormat: "
|
|
1356
|
+
promptFormat: "text" | "markdown";
|
|
1357
1357
|
tenantId?: string | undefined;
|
|
1358
1358
|
sessionId?: string | undefined;
|
|
1359
1359
|
kinds?: ("block" | "fact" | "episode" | "profile_item")[] | 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?: "
|
|
1404
|
+
promptFormat?: "text" | "markdown" | undefined;
|
|
1405
1405
|
}>;
|
|
1406
1406
|
export type MemoryContextInput = z.input<typeof memoryContextInputSchema>;
|
|
1407
1407
|
export type ParsedMemoryContextInput = z.output<typeof memoryContextInputSchema>;
|
|
@@ -1527,56 +1527,56 @@ export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1527
1527
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1528
1528
|
}, "strip", z.ZodTypeAny, {
|
|
1529
1529
|
reason?: string | undefined;
|
|
1530
|
+
language?: string | null | undefined;
|
|
1531
|
+
title?: string | null | undefined;
|
|
1530
1532
|
metadata?: Record<string, unknown> | undefined;
|
|
1531
1533
|
content?: string | undefined;
|
|
1532
1534
|
state?: "current" | "conflicted" | undefined;
|
|
1533
1535
|
validFrom?: string | null | undefined;
|
|
1534
1536
|
validTo?: string | null | undefined;
|
|
1535
|
-
title?: string | null | undefined;
|
|
1536
1537
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1537
1538
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1538
1539
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1539
1540
|
topicTags?: string[] | undefined;
|
|
1540
|
-
language?: string | null | undefined;
|
|
1541
1541
|
}, {
|
|
1542
1542
|
reason?: string | undefined;
|
|
1543
|
+
language?: string | null | undefined;
|
|
1544
|
+
title?: string | null | undefined;
|
|
1543
1545
|
metadata?: Record<string, unknown> | undefined;
|
|
1544
1546
|
content?: string | undefined;
|
|
1545
1547
|
state?: "current" | "conflicted" | undefined;
|
|
1546
1548
|
validFrom?: string | null | undefined;
|
|
1547
1549
|
validTo?: string | null | undefined;
|
|
1548
|
-
title?: string | null | undefined;
|
|
1549
1550
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1550
1551
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1551
1552
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1552
1553
|
topicTags?: string[] | undefined;
|
|
1553
|
-
language?: string | null | undefined;
|
|
1554
1554
|
}>, {
|
|
1555
1555
|
reason?: string | undefined;
|
|
1556
|
+
language?: string | null | undefined;
|
|
1557
|
+
title?: string | null | undefined;
|
|
1556
1558
|
metadata?: Record<string, unknown> | undefined;
|
|
1557
1559
|
content?: string | undefined;
|
|
1558
1560
|
state?: "current" | "conflicted" | undefined;
|
|
1559
1561
|
validFrom?: string | null | undefined;
|
|
1560
1562
|
validTo?: string | null | undefined;
|
|
1561
|
-
title?: string | null | undefined;
|
|
1562
1563
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1563
1564
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1564
1565
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1565
1566
|
topicTags?: string[] | undefined;
|
|
1566
|
-
language?: string | null | undefined;
|
|
1567
1567
|
}, {
|
|
1568
1568
|
reason?: string | undefined;
|
|
1569
|
+
language?: string | null | undefined;
|
|
1570
|
+
title?: string | null | undefined;
|
|
1569
1571
|
metadata?: Record<string, unknown> | undefined;
|
|
1570
1572
|
content?: string | undefined;
|
|
1571
1573
|
state?: "current" | "conflicted" | undefined;
|
|
1572
1574
|
validFrom?: string | null | undefined;
|
|
1573
1575
|
validTo?: string | null | undefined;
|
|
1574
|
-
title?: string | null | undefined;
|
|
1575
1576
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1576
1577
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1577
1578
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1578
1579
|
topicTags?: string[] | undefined;
|
|
1579
|
-
language?: string | null | 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"];
|
|
@@ -1650,8 +1650,8 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
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";
|
|
1653
|
-
salience: "
|
|
1654
|
-
evidenceConfidence: "
|
|
1653
|
+
salience: "medium" | "low" | "high";
|
|
1654
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
1655
1655
|
actorEntity: {
|
|
1656
1656
|
canonicalKey: string;
|
|
1657
1657
|
entityType: string;
|
|
@@ -1664,20 +1664,20 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1664
1664
|
attributes: Record<string, unknown>;
|
|
1665
1665
|
displayName?: string | null | undefined;
|
|
1666
1666
|
};
|
|
1667
|
+
language?: string | null | undefined;
|
|
1668
|
+
title?: string | null | undefined;
|
|
1667
1669
|
content?: string | undefined;
|
|
1668
1670
|
validFrom?: string | null | undefined;
|
|
1669
1671
|
validTo?: string | null | undefined;
|
|
1670
|
-
title?: string | null | undefined;
|
|
1671
1672
|
topicTags?: string[] | undefined;
|
|
1672
|
-
language?: string | null | undefined;
|
|
1673
1673
|
}, {
|
|
1674
1674
|
reason: string;
|
|
1675
1675
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
1676
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
|
-
salience: "
|
|
1680
|
-
evidenceConfidence: "
|
|
1679
|
+
salience: "medium" | "low" | "high";
|
|
1680
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
1681
1681
|
actorEntity: {
|
|
1682
1682
|
canonicalKey: string;
|
|
1683
1683
|
entityType: string;
|
|
@@ -1690,13 +1690,13 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1690
1690
|
displayName?: string | null | undefined;
|
|
1691
1691
|
attributes?: Record<string, unknown> | undefined;
|
|
1692
1692
|
};
|
|
1693
|
+
language?: string | null | undefined;
|
|
1694
|
+
title?: string | null | undefined;
|
|
1693
1695
|
content?: string | undefined;
|
|
1694
1696
|
validFrom?: string | null | undefined;
|
|
1695
1697
|
validTo?: string | null | undefined;
|
|
1696
|
-
title?: string | null | undefined;
|
|
1697
1698
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1698
1699
|
topicTags?: string[] | undefined;
|
|
1699
|
-
language?: string | null | undefined;
|
|
1700
1700
|
}>, {
|
|
1701
1701
|
reason: string;
|
|
1702
1702
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
@@ -1704,8 +1704,8 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
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";
|
|
1707
|
-
salience: "
|
|
1708
|
-
evidenceConfidence: "
|
|
1707
|
+
salience: "medium" | "low" | "high";
|
|
1708
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
1709
1709
|
actorEntity: {
|
|
1710
1710
|
canonicalKey: string;
|
|
1711
1711
|
entityType: string;
|
|
@@ -1718,20 +1718,20 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1718
1718
|
attributes: Record<string, unknown>;
|
|
1719
1719
|
displayName?: string | null | undefined;
|
|
1720
1720
|
};
|
|
1721
|
+
language?: string | null | undefined;
|
|
1722
|
+
title?: string | null | undefined;
|
|
1721
1723
|
content?: string | undefined;
|
|
1722
1724
|
validFrom?: string | null | undefined;
|
|
1723
1725
|
validTo?: string | null | undefined;
|
|
1724
|
-
title?: string | null | undefined;
|
|
1725
1726
|
topicTags?: string[] | undefined;
|
|
1726
|
-
language?: string | null | undefined;
|
|
1727
1727
|
}, {
|
|
1728
1728
|
reason: string;
|
|
1729
1729
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
1730
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
|
-
salience: "
|
|
1734
|
-
evidenceConfidence: "
|
|
1733
|
+
salience: "medium" | "low" | "high";
|
|
1734
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
1735
1735
|
actorEntity: {
|
|
1736
1736
|
canonicalKey: string;
|
|
1737
1737
|
entityType: string;
|
|
@@ -1744,13 +1744,13 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1744
1744
|
displayName?: string | null | undefined;
|
|
1745
1745
|
attributes?: Record<string, unknown> | undefined;
|
|
1746
1746
|
};
|
|
1747
|
+
language?: string | null | undefined;
|
|
1748
|
+
title?: string | null | undefined;
|
|
1747
1749
|
content?: string | undefined;
|
|
1748
1750
|
validFrom?: string | null | undefined;
|
|
1749
1751
|
validTo?: string | null | undefined;
|
|
1750
|
-
title?: string | null | undefined;
|
|
1751
1752
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1752
1753
|
topicTags?: string[] | undefined;
|
|
1753
|
-
language?: string | null | undefined;
|
|
1754
1754
|
}>;
|
|
1755
1755
|
export type MemoryRecordQualityReviewInput = z.infer<typeof memoryRecordQualityReviewInputSchema>;
|
|
1756
1756
|
export declare const memoryForgetInputSchema: z.ZodObject<{
|
|
@@ -1782,10 +1782,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1782
1782
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1783
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1784
1784
|
required: boolean;
|
|
1785
|
+
title: string;
|
|
1785
1786
|
metadata: Record<string, unknown>;
|
|
1786
1787
|
content: string;
|
|
1787
1788
|
access: "read_only" | "editable";
|
|
1788
|
-
title: string;
|
|
1789
1789
|
priority: number;
|
|
1790
1790
|
tenantId?: string | undefined;
|
|
1791
1791
|
sessionId?: string | undefined;
|
|
@@ -1795,8 +1795,8 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1795
1795
|
externalId: string;
|
|
1796
1796
|
}[] | undefined;
|
|
1797
1797
|
}, {
|
|
1798
|
-
content: string;
|
|
1799
1798
|
title: string;
|
|
1799
|
+
content: string;
|
|
1800
1800
|
tenantId?: string | undefined;
|
|
1801
1801
|
required?: boolean | undefined;
|
|
1802
1802
|
sessionId?: string | undefined;
|
|
@@ -1810,10 +1810,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1810
1810
|
priority?: number | undefined;
|
|
1811
1811
|
}>, {
|
|
1812
1812
|
required: boolean;
|
|
1813
|
+
title: string;
|
|
1813
1814
|
metadata: Record<string, unknown>;
|
|
1814
1815
|
content: string;
|
|
1815
1816
|
access: "read_only" | "editable";
|
|
1816
|
-
title: string;
|
|
1817
1817
|
priority: number;
|
|
1818
1818
|
tenantId?: string | undefined;
|
|
1819
1819
|
sessionId?: string | undefined;
|
|
@@ -1823,8 +1823,8 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1823
1823
|
externalId: string;
|
|
1824
1824
|
}[] | undefined;
|
|
1825
1825
|
}, {
|
|
1826
|
-
content: string;
|
|
1827
1826
|
title: string;
|
|
1827
|
+
content: string;
|
|
1828
1828
|
tenantId?: string | undefined;
|
|
1829
1829
|
required?: boolean | undefined;
|
|
1830
1830
|
sessionId?: string | undefined;
|
|
@@ -2035,11 +2035,11 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2035
2035
|
}>>;
|
|
2036
2036
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2037
2037
|
}, "strict", z.ZodTypeAny, {
|
|
2038
|
+
connectedAccountId: string;
|
|
2038
2039
|
metadata: Record<string, unknown>;
|
|
2039
2040
|
idempotencyKey: string;
|
|
2040
2041
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2041
2042
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2042
|
-
connectedAccountId: string;
|
|
2043
2043
|
resourceIds: string[];
|
|
2044
2044
|
targets: {
|
|
2045
2045
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
@@ -2075,8 +2075,8 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2075
2075
|
} | undefined;
|
|
2076
2076
|
learnedRetentionDays?: number | null | undefined;
|
|
2077
2077
|
}, {
|
|
2078
|
-
idempotencyKey: string;
|
|
2079
2078
|
connectedAccountId: string;
|
|
2079
|
+
idempotencyKey: string;
|
|
2080
2080
|
targets: {
|
|
2081
2081
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
2082
2082
|
externalId: string;
|
|
@@ -2115,11 +2115,11 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2115
2115
|
learnedRetentionDays?: number | null | undefined;
|
|
2116
2116
|
sourceRetentionDays?: number | null | undefined;
|
|
2117
2117
|
}>, {
|
|
2118
|
+
connectedAccountId: string;
|
|
2118
2119
|
metadata: Record<string, unknown>;
|
|
2119
2120
|
idempotencyKey: string;
|
|
2120
2121
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2121
2122
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2122
|
-
connectedAccountId: string;
|
|
2123
2123
|
resourceIds: string[];
|
|
2124
2124
|
targets: {
|
|
2125
2125
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
@@ -2155,8 +2155,8 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2155
2155
|
} | undefined;
|
|
2156
2156
|
learnedRetentionDays?: number | null | undefined;
|
|
2157
2157
|
}, {
|
|
2158
|
-
idempotencyKey: string;
|
|
2159
2158
|
connectedAccountId: string;
|
|
2159
|
+
idempotencyKey: string;
|
|
2160
2160
|
targets: {
|
|
2161
2161
|
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
2162
2162
|
externalId: string;
|
|
@@ -2602,8 +2602,8 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
|
|
|
2602
2602
|
content: string;
|
|
2603
2603
|
applicationKey: string;
|
|
2604
2604
|
turnId: string;
|
|
2605
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2606
2605
|
title?: string | undefined;
|
|
2606
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2607
2607
|
consent?: {
|
|
2608
2608
|
status: "granted";
|
|
2609
2609
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
@@ -2922,9 +2922,10 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
|
|
|
2922
2922
|
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2923
2923
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2924
2924
|
}, "strip", z.ZodTypeAny, {
|
|
2925
|
+
key: string;
|
|
2926
|
+
retentionDays: number | null;
|
|
2925
2927
|
context: Record<string, unknown>;
|
|
2926
2928
|
metadata: Record<string, unknown>;
|
|
2927
|
-
key: string;
|
|
2928
2929
|
languages: string[];
|
|
2929
2930
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2930
2931
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
@@ -2933,12 +2934,12 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
|
|
|
2933
2934
|
captureMode: "explicit" | "bound_sources";
|
|
2934
2935
|
extractionEnabled: boolean;
|
|
2935
2936
|
profileEnabled: boolean;
|
|
2936
|
-
retentionDays: number | null;
|
|
2937
2937
|
extraction: Record<string, unknown>;
|
|
2938
2938
|
}, {
|
|
2939
|
+
key?: string | undefined;
|
|
2940
|
+
retentionDays?: number | null | undefined;
|
|
2939
2941
|
context?: Record<string, unknown> | undefined;
|
|
2940
2942
|
metadata?: Record<string, unknown> | undefined;
|
|
2941
|
-
key?: string | undefined;
|
|
2942
2943
|
languages?: string[] | undefined;
|
|
2943
2944
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2944
2945
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
@@ -2947,7 +2948,6 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
|
|
|
2947
2948
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
2948
2949
|
extractionEnabled?: boolean | undefined;
|
|
2949
2950
|
profileEnabled?: boolean | undefined;
|
|
2950
|
-
retentionDays?: number | null | undefined;
|
|
2951
2951
|
extraction?: Record<string, unknown> | undefined;
|
|
2952
2952
|
}>;
|
|
2953
2953
|
export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
@@ -2967,6 +2967,7 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
|
2967
2967
|
}, "key"> & {
|
|
2968
2968
|
expectedVersion: z.ZodNumber;
|
|
2969
2969
|
}, "strict", z.ZodTypeAny, {
|
|
2970
|
+
retentionDays: number | null;
|
|
2970
2971
|
context: Record<string, unknown>;
|
|
2971
2972
|
metadata: Record<string, unknown>;
|
|
2972
2973
|
languages: string[];
|
|
@@ -2977,11 +2978,11 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
|
2977
2978
|
captureMode: "explicit" | "bound_sources";
|
|
2978
2979
|
extractionEnabled: boolean;
|
|
2979
2980
|
profileEnabled: boolean;
|
|
2980
|
-
retentionDays: number | null;
|
|
2981
2981
|
extraction: Record<string, unknown>;
|
|
2982
2982
|
expectedVersion: number;
|
|
2983
2983
|
}, {
|
|
2984
2984
|
expectedVersion: number;
|
|
2985
|
+
retentionDays?: number | null | undefined;
|
|
2985
2986
|
context?: Record<string, unknown> | undefined;
|
|
2986
2987
|
metadata?: Record<string, unknown> | undefined;
|
|
2987
2988
|
languages?: string[] | undefined;
|
|
@@ -2992,7 +2993,6 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
|
2992
2993
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
2993
2994
|
extractionEnabled?: boolean | undefined;
|
|
2994
2995
|
profileEnabled?: boolean | undefined;
|
|
2995
|
-
retentionDays?: number | null | undefined;
|
|
2996
2996
|
extraction?: Record<string, unknown> | undefined;
|
|
2997
2997
|
}>;
|
|
2998
2998
|
export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
@@ -3016,6 +3016,7 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
3016
3016
|
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3017
3017
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3018
3018
|
}, "key">, "strip", z.ZodTypeAny, {
|
|
3019
|
+
retentionDays: number | null;
|
|
3019
3020
|
context: Record<string, unknown>;
|
|
3020
3021
|
metadata: Record<string, unknown>;
|
|
3021
3022
|
languages: string[];
|
|
@@ -3026,9 +3027,9 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
3026
3027
|
captureMode: "explicit" | "bound_sources";
|
|
3027
3028
|
extractionEnabled: boolean;
|
|
3028
3029
|
profileEnabled: boolean;
|
|
3029
|
-
retentionDays: number | null;
|
|
3030
3030
|
extraction: Record<string, unknown>;
|
|
3031
3031
|
}, {
|
|
3032
|
+
retentionDays?: number | null | undefined;
|
|
3032
3033
|
context?: Record<string, unknown> | undefined;
|
|
3033
3034
|
metadata?: Record<string, unknown> | undefined;
|
|
3034
3035
|
languages?: string[] | undefined;
|
|
@@ -3039,11 +3040,11 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
3039
3040
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
3040
3041
|
extractionEnabled?: boolean | undefined;
|
|
3041
3042
|
profileEnabled?: boolean | undefined;
|
|
3042
|
-
retentionDays?: number | null | undefined;
|
|
3043
3043
|
extraction?: Record<string, unknown> | undefined;
|
|
3044
3044
|
}>>;
|
|
3045
3045
|
}, "strict", z.ZodTypeAny, {
|
|
3046
3046
|
policy: {
|
|
3047
|
+
retentionDays: number | null;
|
|
3047
3048
|
context: Record<string, unknown>;
|
|
3048
3049
|
metadata: Record<string, unknown>;
|
|
3049
3050
|
languages: string[];
|
|
@@ -3054,18 +3055,18 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
3054
3055
|
captureMode: "explicit" | "bound_sources";
|
|
3055
3056
|
extractionEnabled: boolean;
|
|
3056
3057
|
profileEnabled: boolean;
|
|
3057
|
-
retentionDays: number | null;
|
|
3058
3058
|
extraction: Record<string, unknown>;
|
|
3059
3059
|
};
|
|
3060
3060
|
content: string;
|
|
3061
3061
|
idempotencyKey: string;
|
|
3062
|
-
title?: string | undefined;
|
|
3063
3062
|
language?: string | undefined;
|
|
3063
|
+
title?: string | undefined;
|
|
3064
3064
|
sourceCategory?: string | undefined;
|
|
3065
3065
|
}, {
|
|
3066
3066
|
content: string;
|
|
3067
3067
|
idempotencyKey: string;
|
|
3068
3068
|
policy?: {
|
|
3069
|
+
retentionDays?: number | null | undefined;
|
|
3069
3070
|
context?: Record<string, unknown> | undefined;
|
|
3070
3071
|
metadata?: Record<string, unknown> | undefined;
|
|
3071
3072
|
languages?: string[] | undefined;
|
|
@@ -3076,11 +3077,10 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
3076
3077
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
3077
3078
|
extractionEnabled?: boolean | undefined;
|
|
3078
3079
|
profileEnabled?: boolean | undefined;
|
|
3079
|
-
retentionDays?: number | null | undefined;
|
|
3080
3080
|
extraction?: Record<string, unknown> | undefined;
|
|
3081
3081
|
} | undefined;
|
|
3082
|
-
title?: string | undefined;
|
|
3083
3082
|
language?: string | undefined;
|
|
3083
|
+
title?: string | undefined;
|
|
3084
3084
|
sourceCategory?: string | undefined;
|
|
3085
3085
|
}>;
|
|
3086
3086
|
export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
|
|
@@ -3145,14 +3145,14 @@ export declare const memoryExtractedEntitySchema: z.ZodObject<{
|
|
|
3145
3145
|
displayName: z.ZodNullable<z.ZodString>;
|
|
3146
3146
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3147
3147
|
}, "strict", z.ZodTypeAny, {
|
|
3148
|
-
type: string;
|
|
3149
3148
|
key: string;
|
|
3149
|
+
type: string;
|
|
3150
3150
|
displayName: string | null;
|
|
3151
3151
|
canonicalKey: string;
|
|
3152
3152
|
attributes: Record<string, unknown>;
|
|
3153
3153
|
}, {
|
|
3154
|
-
type: string;
|
|
3155
3154
|
key: string;
|
|
3155
|
+
type: string;
|
|
3156
3156
|
displayName: string | null;
|
|
3157
3157
|
canonicalKey: string;
|
|
3158
3158
|
attributes: Record<string, unknown>;
|
|
@@ -3289,14 +3289,14 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3289
3289
|
displayName: z.ZodNullable<z.ZodString>;
|
|
3290
3290
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3291
3291
|
}, "strict", z.ZodTypeAny, {
|
|
3292
|
-
type: string;
|
|
3293
3292
|
key: string;
|
|
3293
|
+
type: string;
|
|
3294
3294
|
displayName: string | null;
|
|
3295
3295
|
canonicalKey: string;
|
|
3296
3296
|
attributes: Record<string, unknown>;
|
|
3297
3297
|
}, {
|
|
3298
|
-
type: string;
|
|
3299
3298
|
key: string;
|
|
3299
|
+
type: string;
|
|
3300
3300
|
displayName: string | null;
|
|
3301
3301
|
canonicalKey: string;
|
|
3302
3302
|
attributes: Record<string, unknown>;
|
|
@@ -3344,18 +3344,18 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3344
3344
|
}>, "many">;
|
|
3345
3345
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3346
3346
|
}, "strict", z.ZodTypeAny, {
|
|
3347
|
+
language: string;
|
|
3348
|
+
title: string;
|
|
3347
3349
|
content: string;
|
|
3348
3350
|
qualityContractVersion: 1;
|
|
3349
3351
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3350
3352
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3351
3353
|
validFrom: string | null;
|
|
3352
3354
|
validTo: string | null;
|
|
3353
|
-
title: string;
|
|
3354
3355
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3355
3356
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3356
3357
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3357
3358
|
topicTags: string[];
|
|
3358
|
-
language: string;
|
|
3359
3359
|
evidence: {
|
|
3360
3360
|
sourceObjectId: string;
|
|
3361
3361
|
segmentId: string;
|
|
@@ -3364,8 +3364,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3364
3364
|
quotedText: string;
|
|
3365
3365
|
}[];
|
|
3366
3366
|
attributes: Record<string, unknown>;
|
|
3367
|
-
salience: "
|
|
3368
|
-
evidenceConfidence: "
|
|
3367
|
+
salience: "medium" | "low" | "high";
|
|
3368
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3369
3369
|
subjectEntityKey: string | null;
|
|
3370
3370
|
candidateId: string;
|
|
3371
3371
|
recordKind: "fact" | "episode";
|
|
@@ -3374,8 +3374,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3374
3374
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3375
3375
|
contextEligible: boolean;
|
|
3376
3376
|
entities: {
|
|
3377
|
-
type: string;
|
|
3378
3377
|
key: string;
|
|
3378
|
+
type: string;
|
|
3379
3379
|
displayName: string | null;
|
|
3380
3380
|
canonicalKey: string;
|
|
3381
3381
|
attributes: Record<string, unknown>;
|
|
@@ -3390,16 +3390,16 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3390
3390
|
literalValue?: unknown;
|
|
3391
3391
|
}[];
|
|
3392
3392
|
}, {
|
|
3393
|
+
language: string;
|
|
3394
|
+
title: string;
|
|
3393
3395
|
content: string;
|
|
3394
3396
|
qualityContractVersion: 1;
|
|
3395
3397
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3396
3398
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3397
|
-
title: string;
|
|
3398
3399
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3399
3400
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3400
3401
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3401
3402
|
topicTags: string[];
|
|
3402
|
-
language: string;
|
|
3403
3403
|
evidence: {
|
|
3404
3404
|
sourceObjectId: string;
|
|
3405
3405
|
segmentId: string;
|
|
@@ -3408,8 +3408,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3408
3408
|
quotedText: string;
|
|
3409
3409
|
}[];
|
|
3410
3410
|
attributes: Record<string, unknown>;
|
|
3411
|
-
salience: "
|
|
3412
|
-
evidenceConfidence: "
|
|
3411
|
+
salience: "medium" | "low" | "high";
|
|
3412
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3413
3413
|
subjectEntityKey: string | null;
|
|
3414
3414
|
candidateId: string;
|
|
3415
3415
|
recordKind: "fact" | "episode";
|
|
@@ -3418,8 +3418,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3418
3418
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3419
3419
|
contextEligible: boolean;
|
|
3420
3420
|
entities: {
|
|
3421
|
-
type: string;
|
|
3422
3421
|
key: string;
|
|
3422
|
+
type: string;
|
|
3423
3423
|
displayName: string | null;
|
|
3424
3424
|
canonicalKey: string;
|
|
3425
3425
|
attributes: Record<string, unknown>;
|
|
@@ -3436,18 +3436,18 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3436
3436
|
validFrom?: unknown;
|
|
3437
3437
|
validTo?: unknown;
|
|
3438
3438
|
}>, {
|
|
3439
|
+
language: string;
|
|
3440
|
+
title: string;
|
|
3439
3441
|
content: string;
|
|
3440
3442
|
qualityContractVersion: 1;
|
|
3441
3443
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3442
3444
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3443
3445
|
validFrom: string | null;
|
|
3444
3446
|
validTo: string | null;
|
|
3445
|
-
title: string;
|
|
3446
3447
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3447
3448
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3448
3449
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3449
3450
|
topicTags: string[];
|
|
3450
|
-
language: string;
|
|
3451
3451
|
evidence: {
|
|
3452
3452
|
sourceObjectId: string;
|
|
3453
3453
|
segmentId: string;
|
|
@@ -3456,8 +3456,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3456
3456
|
quotedText: string;
|
|
3457
3457
|
}[];
|
|
3458
3458
|
attributes: Record<string, unknown>;
|
|
3459
|
-
salience: "
|
|
3460
|
-
evidenceConfidence: "
|
|
3459
|
+
salience: "medium" | "low" | "high";
|
|
3460
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3461
3461
|
subjectEntityKey: string | null;
|
|
3462
3462
|
candidateId: string;
|
|
3463
3463
|
recordKind: "fact" | "episode";
|
|
@@ -3466,8 +3466,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3466
3466
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3467
3467
|
contextEligible: boolean;
|
|
3468
3468
|
entities: {
|
|
3469
|
-
type: string;
|
|
3470
3469
|
key: string;
|
|
3470
|
+
type: string;
|
|
3471
3471
|
displayName: string | null;
|
|
3472
3472
|
canonicalKey: string;
|
|
3473
3473
|
attributes: Record<string, unknown>;
|
|
@@ -3482,16 +3482,16 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3482
3482
|
literalValue?: unknown;
|
|
3483
3483
|
}[];
|
|
3484
3484
|
}, {
|
|
3485
|
+
language: string;
|
|
3486
|
+
title: string;
|
|
3485
3487
|
content: string;
|
|
3486
3488
|
qualityContractVersion: 1;
|
|
3487
3489
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3488
3490
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3489
|
-
title: string;
|
|
3490
3491
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3491
3492
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3492
3493
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3493
3494
|
topicTags: string[];
|
|
3494
|
-
language: string;
|
|
3495
3495
|
evidence: {
|
|
3496
3496
|
sourceObjectId: string;
|
|
3497
3497
|
segmentId: string;
|
|
@@ -3500,8 +3500,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3500
3500
|
quotedText: string;
|
|
3501
3501
|
}[];
|
|
3502
3502
|
attributes: Record<string, unknown>;
|
|
3503
|
-
salience: "
|
|
3504
|
-
evidenceConfidence: "
|
|
3503
|
+
salience: "medium" | "low" | "high";
|
|
3504
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3505
3505
|
subjectEntityKey: string | null;
|
|
3506
3506
|
candidateId: string;
|
|
3507
3507
|
recordKind: "fact" | "episode";
|
|
@@ -3510,8 +3510,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3510
3510
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3511
3511
|
contextEligible: boolean;
|
|
3512
3512
|
entities: {
|
|
3513
|
-
type: string;
|
|
3514
3513
|
key: string;
|
|
3514
|
+
type: string;
|
|
3515
3515
|
displayName: string | null;
|
|
3516
3516
|
canonicalKey: string;
|
|
3517
3517
|
attributes: Record<string, unknown>;
|
|
@@ -3589,14 +3589,14 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3589
3589
|
displayName: z.ZodNullable<z.ZodString>;
|
|
3590
3590
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3591
3591
|
}, "strict", z.ZodTypeAny, {
|
|
3592
|
-
type: string;
|
|
3593
3592
|
key: string;
|
|
3593
|
+
type: string;
|
|
3594
3594
|
displayName: string | null;
|
|
3595
3595
|
canonicalKey: string;
|
|
3596
3596
|
attributes: Record<string, unknown>;
|
|
3597
3597
|
}, {
|
|
3598
|
-
type: string;
|
|
3599
3598
|
key: string;
|
|
3599
|
+
type: string;
|
|
3600
3600
|
displayName: string | null;
|
|
3601
3601
|
canonicalKey: string;
|
|
3602
3602
|
attributes: Record<string, unknown>;
|
|
@@ -3644,18 +3644,18 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3644
3644
|
}>, "many">;
|
|
3645
3645
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3646
3646
|
}, "strict", z.ZodTypeAny, {
|
|
3647
|
+
language: string;
|
|
3648
|
+
title: string;
|
|
3647
3649
|
content: string;
|
|
3648
3650
|
qualityContractVersion: 1;
|
|
3649
3651
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3650
3652
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3651
3653
|
validFrom: string | null;
|
|
3652
3654
|
validTo: string | null;
|
|
3653
|
-
title: string;
|
|
3654
3655
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3655
3656
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3656
3657
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3657
3658
|
topicTags: string[];
|
|
3658
|
-
language: string;
|
|
3659
3659
|
evidence: {
|
|
3660
3660
|
sourceObjectId: string;
|
|
3661
3661
|
segmentId: string;
|
|
@@ -3664,8 +3664,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3664
3664
|
quotedText: string;
|
|
3665
3665
|
}[];
|
|
3666
3666
|
attributes: Record<string, unknown>;
|
|
3667
|
-
salience: "
|
|
3668
|
-
evidenceConfidence: "
|
|
3667
|
+
salience: "medium" | "low" | "high";
|
|
3668
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3669
3669
|
subjectEntityKey: string | null;
|
|
3670
3670
|
candidateId: string;
|
|
3671
3671
|
recordKind: "fact" | "episode";
|
|
@@ -3674,8 +3674,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3674
3674
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3675
3675
|
contextEligible: boolean;
|
|
3676
3676
|
entities: {
|
|
3677
|
-
type: string;
|
|
3678
3677
|
key: string;
|
|
3678
|
+
type: string;
|
|
3679
3679
|
displayName: string | null;
|
|
3680
3680
|
canonicalKey: string;
|
|
3681
3681
|
attributes: Record<string, unknown>;
|
|
@@ -3690,16 +3690,16 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3690
3690
|
literalValue?: unknown;
|
|
3691
3691
|
}[];
|
|
3692
3692
|
}, {
|
|
3693
|
+
language: string;
|
|
3694
|
+
title: string;
|
|
3693
3695
|
content: string;
|
|
3694
3696
|
qualityContractVersion: 1;
|
|
3695
3697
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3696
3698
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3697
|
-
title: string;
|
|
3698
3699
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3699
3700
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3700
3701
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3701
3702
|
topicTags: string[];
|
|
3702
|
-
language: string;
|
|
3703
3703
|
evidence: {
|
|
3704
3704
|
sourceObjectId: string;
|
|
3705
3705
|
segmentId: string;
|
|
@@ -3708,8 +3708,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3708
3708
|
quotedText: string;
|
|
3709
3709
|
}[];
|
|
3710
3710
|
attributes: Record<string, unknown>;
|
|
3711
|
-
salience: "
|
|
3712
|
-
evidenceConfidence: "
|
|
3711
|
+
salience: "medium" | "low" | "high";
|
|
3712
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3713
3713
|
subjectEntityKey: string | null;
|
|
3714
3714
|
candidateId: string;
|
|
3715
3715
|
recordKind: "fact" | "episode";
|
|
@@ -3718,8 +3718,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3718
3718
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3719
3719
|
contextEligible: boolean;
|
|
3720
3720
|
entities: {
|
|
3721
|
-
type: string;
|
|
3722
3721
|
key: string;
|
|
3722
|
+
type: string;
|
|
3723
3723
|
displayName: string | null;
|
|
3724
3724
|
canonicalKey: string;
|
|
3725
3725
|
attributes: Record<string, unknown>;
|
|
@@ -3736,18 +3736,18 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3736
3736
|
validFrom?: unknown;
|
|
3737
3737
|
validTo?: unknown;
|
|
3738
3738
|
}>, {
|
|
3739
|
+
language: string;
|
|
3740
|
+
title: string;
|
|
3739
3741
|
content: string;
|
|
3740
3742
|
qualityContractVersion: 1;
|
|
3741
3743
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3742
3744
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3743
3745
|
validFrom: string | null;
|
|
3744
3746
|
validTo: string | null;
|
|
3745
|
-
title: string;
|
|
3746
3747
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3747
3748
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3748
3749
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3749
3750
|
topicTags: string[];
|
|
3750
|
-
language: string;
|
|
3751
3751
|
evidence: {
|
|
3752
3752
|
sourceObjectId: string;
|
|
3753
3753
|
segmentId: string;
|
|
@@ -3756,8 +3756,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3756
3756
|
quotedText: string;
|
|
3757
3757
|
}[];
|
|
3758
3758
|
attributes: Record<string, unknown>;
|
|
3759
|
-
salience: "
|
|
3760
|
-
evidenceConfidence: "
|
|
3759
|
+
salience: "medium" | "low" | "high";
|
|
3760
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3761
3761
|
subjectEntityKey: string | null;
|
|
3762
3762
|
candidateId: string;
|
|
3763
3763
|
recordKind: "fact" | "episode";
|
|
@@ -3766,8 +3766,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3766
3766
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3767
3767
|
contextEligible: boolean;
|
|
3768
3768
|
entities: {
|
|
3769
|
-
type: string;
|
|
3770
3769
|
key: string;
|
|
3770
|
+
type: string;
|
|
3771
3771
|
displayName: string | null;
|
|
3772
3772
|
canonicalKey: string;
|
|
3773
3773
|
attributes: Record<string, unknown>;
|
|
@@ -3782,16 +3782,16 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3782
3782
|
literalValue?: unknown;
|
|
3783
3783
|
}[];
|
|
3784
3784
|
}, {
|
|
3785
|
+
language: string;
|
|
3786
|
+
title: string;
|
|
3785
3787
|
content: string;
|
|
3786
3788
|
qualityContractVersion: 1;
|
|
3787
3789
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3788
3790
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3789
|
-
title: string;
|
|
3790
3791
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3791
3792
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3792
3793
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3793
3794
|
topicTags: string[];
|
|
3794
|
-
language: string;
|
|
3795
3795
|
evidence: {
|
|
3796
3796
|
sourceObjectId: string;
|
|
3797
3797
|
segmentId: string;
|
|
@@ -3800,8 +3800,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3800
3800
|
quotedText: string;
|
|
3801
3801
|
}[];
|
|
3802
3802
|
attributes: Record<string, unknown>;
|
|
3803
|
-
salience: "
|
|
3804
|
-
evidenceConfidence: "
|
|
3803
|
+
salience: "medium" | "low" | "high";
|
|
3804
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3805
3805
|
subjectEntityKey: string | null;
|
|
3806
3806
|
candidateId: string;
|
|
3807
3807
|
recordKind: "fact" | "episode";
|
|
@@ -3810,8 +3810,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3810
3810
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3811
3811
|
contextEligible: boolean;
|
|
3812
3812
|
entities: {
|
|
3813
|
-
type: string;
|
|
3814
3813
|
key: string;
|
|
3814
|
+
type: string;
|
|
3815
3815
|
displayName: string | null;
|
|
3816
3816
|
canonicalKey: string;
|
|
3817
3817
|
attributes: Record<string, unknown>;
|
|
@@ -3830,18 +3830,18 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3830
3830
|
}>, "many">;
|
|
3831
3831
|
}, "strict", z.ZodTypeAny, {
|
|
3832
3832
|
records: {
|
|
3833
|
+
language: string;
|
|
3834
|
+
title: string;
|
|
3833
3835
|
content: string;
|
|
3834
3836
|
qualityContractVersion: 1;
|
|
3835
3837
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3836
3838
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3837
3839
|
validFrom: string | null;
|
|
3838
3840
|
validTo: string | null;
|
|
3839
|
-
title: string;
|
|
3840
3841
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3841
3842
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3842
3843
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3843
3844
|
topicTags: string[];
|
|
3844
|
-
language: string;
|
|
3845
3845
|
evidence: {
|
|
3846
3846
|
sourceObjectId: string;
|
|
3847
3847
|
segmentId: string;
|
|
@@ -3850,8 +3850,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3850
3850
|
quotedText: string;
|
|
3851
3851
|
}[];
|
|
3852
3852
|
attributes: Record<string, unknown>;
|
|
3853
|
-
salience: "
|
|
3854
|
-
evidenceConfidence: "
|
|
3853
|
+
salience: "medium" | "low" | "high";
|
|
3854
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3855
3855
|
subjectEntityKey: string | null;
|
|
3856
3856
|
candidateId: string;
|
|
3857
3857
|
recordKind: "fact" | "episode";
|
|
@@ -3860,8 +3860,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3860
3860
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3861
3861
|
contextEligible: boolean;
|
|
3862
3862
|
entities: {
|
|
3863
|
-
type: string;
|
|
3864
3863
|
key: string;
|
|
3864
|
+
type: string;
|
|
3865
3865
|
displayName: string | null;
|
|
3866
3866
|
canonicalKey: string;
|
|
3867
3867
|
attributes: Record<string, unknown>;
|
|
@@ -3878,16 +3878,16 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3878
3878
|
}[];
|
|
3879
3879
|
}, {
|
|
3880
3880
|
records: {
|
|
3881
|
+
language: string;
|
|
3882
|
+
title: string;
|
|
3881
3883
|
content: string;
|
|
3882
3884
|
qualityContractVersion: 1;
|
|
3883
3885
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3884
3886
|
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3885
|
-
title: string;
|
|
3886
3887
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3887
3888
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3888
3889
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3889
3890
|
topicTags: string[];
|
|
3890
|
-
language: string;
|
|
3891
3891
|
evidence: {
|
|
3892
3892
|
sourceObjectId: string;
|
|
3893
3893
|
segmentId: string;
|
|
@@ -3896,8 +3896,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3896
3896
|
quotedText: string;
|
|
3897
3897
|
}[];
|
|
3898
3898
|
attributes: Record<string, unknown>;
|
|
3899
|
-
salience: "
|
|
3900
|
-
evidenceConfidence: "
|
|
3899
|
+
salience: "medium" | "low" | "high";
|
|
3900
|
+
evidenceConfidence: "medium" | "low" | "high";
|
|
3901
3901
|
subjectEntityKey: string | null;
|
|
3902
3902
|
candidateId: string;
|
|
3903
3903
|
recordKind: "fact" | "episode";
|
|
@@ -3906,8 +3906,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3906
3906
|
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3907
3907
|
contextEligible: boolean;
|
|
3908
3908
|
entities: {
|
|
3909
|
-
type: string;
|
|
3910
3909
|
key: string;
|
|
3910
|
+
type: string;
|
|
3911
3911
|
displayName: string | null;
|
|
3912
3912
|
canonicalKey: string;
|
|
3913
3913
|
attributes: Record<string, unknown>;
|
|
@@ -3939,7 +3939,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3939
3939
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3940
3940
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3941
3941
|
candidateId: string;
|
|
3942
|
-
retentionStatus: "memory" | "
|
|
3942
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
3943
3943
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3944
3944
|
}, {
|
|
3945
3945
|
status: "uncertain" | "classified";
|
|
@@ -3947,7 +3947,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3947
3947
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3948
3948
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3949
3949
|
candidateId: string;
|
|
3950
|
-
retentionStatus: "memory" | "
|
|
3950
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
3951
3951
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3952
3952
|
}>, {
|
|
3953
3953
|
status: "uncertain" | "classified";
|
|
@@ -3955,7 +3955,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3955
3955
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3956
3956
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3957
3957
|
candidateId: string;
|
|
3958
|
-
retentionStatus: "memory" | "
|
|
3958
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
3959
3959
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3960
3960
|
}, {
|
|
3961
3961
|
status: "uncertain" | "classified";
|
|
@@ -3963,7 +3963,7 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3963
3963
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3964
3964
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3965
3965
|
candidateId: string;
|
|
3966
|
-
retentionStatus: "memory" | "
|
|
3966
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
3967
3967
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3968
3968
|
}>;
|
|
3969
3969
|
export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
@@ -3981,7 +3981,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
3981
3981
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3982
3982
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3983
3983
|
candidateId: string;
|
|
3984
|
-
retentionStatus: "memory" | "
|
|
3984
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
3985
3985
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3986
3986
|
}, {
|
|
3987
3987
|
status: "uncertain" | "classified";
|
|
@@ -3989,7 +3989,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
3989
3989
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3990
3990
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3991
3991
|
candidateId: string;
|
|
3992
|
-
retentionStatus: "memory" | "
|
|
3992
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
3993
3993
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3994
3994
|
}>, {
|
|
3995
3995
|
status: "uncertain" | "classified";
|
|
@@ -3997,7 +3997,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
3997
3997
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3998
3998
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3999
3999
|
candidateId: string;
|
|
4000
|
-
retentionStatus: "memory" | "
|
|
4000
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4001
4001
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4002
4002
|
}, {
|
|
4003
4003
|
status: "uncertain" | "classified";
|
|
@@ -4005,7 +4005,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
4005
4005
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4006
4006
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4007
4007
|
candidateId: string;
|
|
4008
|
-
retentionStatus: "memory" | "
|
|
4008
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4009
4009
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4010
4010
|
}>, "many">;
|
|
4011
4011
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -4015,7 +4015,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
4015
4015
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4016
4016
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4017
4017
|
candidateId: string;
|
|
4018
|
-
retentionStatus: "memory" | "
|
|
4018
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4019
4019
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4020
4020
|
}[];
|
|
4021
4021
|
}, {
|
|
@@ -4025,7 +4025,7 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
4025
4025
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4026
4026
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4027
4027
|
candidateId: string;
|
|
4028
|
-
retentionStatus: "memory" | "
|
|
4028
|
+
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4029
4029
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4030
4030
|
}[];
|
|
4031
4031
|
}>;
|