@agent-receipts/schema 0.2.11 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +209 -19
- package/dist/index.d.ts +209 -19
- package/dist/index.js +116 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/receipt.schema.json +2 -1
- package/LICENSE +0 -21
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const ReceiptStatus: z.ZodEnum<["pending", "completed", "failed", "timeout"]>;
|
|
4
4
|
type ReceiptStatus = z.infer<typeof ReceiptStatus>;
|
|
5
|
-
declare const ReceiptType: z.ZodEnum<["action", "verification", "judgment", "arbitration"]>;
|
|
5
|
+
declare const ReceiptType: z.ZodEnum<["action", "verification", "judgment", "arbitration", "memory"]>;
|
|
6
6
|
type ReceiptType = z.infer<typeof ReceiptType>;
|
|
7
7
|
declare const Environment: z.ZodEnum<["development", "production", "staging", "test"]>;
|
|
8
8
|
type Environment = z.infer<typeof Environment>;
|
|
@@ -17,7 +17,7 @@ type ErrorCode = z.infer<typeof ErrorCode>;
|
|
|
17
17
|
declare const SignablePayload: z.ZodObject<{
|
|
18
18
|
receipt_id: z.ZodString;
|
|
19
19
|
chain_id: z.ZodString;
|
|
20
|
-
receipt_type: z.ZodEnum<["action", "verification", "judgment", "arbitration"]>;
|
|
20
|
+
receipt_type: z.ZodEnum<["action", "verification", "judgment", "arbitration", "memory"]>;
|
|
21
21
|
agent_id: z.ZodString;
|
|
22
22
|
org_id: z.ZodString;
|
|
23
23
|
action: z.ZodString;
|
|
@@ -32,7 +32,7 @@ declare const SignablePayload: z.ZodObject<{
|
|
|
32
32
|
action: string;
|
|
33
33
|
receipt_id: string;
|
|
34
34
|
chain_id: string;
|
|
35
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
35
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
36
36
|
agent_id: string;
|
|
37
37
|
org_id: string;
|
|
38
38
|
input_hash: string;
|
|
@@ -45,7 +45,7 @@ declare const SignablePayload: z.ZodObject<{
|
|
|
45
45
|
action: string;
|
|
46
46
|
receipt_id: string;
|
|
47
47
|
chain_id: string;
|
|
48
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
48
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
49
49
|
agent_id: string;
|
|
50
50
|
org_id: string;
|
|
51
51
|
input_hash: string;
|
|
@@ -62,7 +62,7 @@ declare const ActionReceipt: z.ZodObject<{
|
|
|
62
62
|
receipt_id: z.ZodString;
|
|
63
63
|
parent_receipt_id: z.ZodNullable<z.ZodString>;
|
|
64
64
|
chain_id: z.ZodString;
|
|
65
|
-
receipt_type: z.ZodEnum<["action", "verification", "judgment", "arbitration"]>;
|
|
65
|
+
receipt_type: z.ZodEnum<["action", "verification", "judgment", "arbitration", "memory"]>;
|
|
66
66
|
agent_id: z.ZodString;
|
|
67
67
|
org_id: z.ZodString;
|
|
68
68
|
action: z.ZodString;
|
|
@@ -93,7 +93,7 @@ declare const ActionReceipt: z.ZodObject<{
|
|
|
93
93
|
action: string;
|
|
94
94
|
receipt_id: string;
|
|
95
95
|
chain_id: string;
|
|
96
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
96
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
97
97
|
agent_id: string;
|
|
98
98
|
org_id: string;
|
|
99
99
|
input_hash: string;
|
|
@@ -123,7 +123,7 @@ declare const ActionReceipt: z.ZodObject<{
|
|
|
123
123
|
action: string;
|
|
124
124
|
receipt_id: string;
|
|
125
125
|
chain_id: string;
|
|
126
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
126
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
127
127
|
agent_id: string;
|
|
128
128
|
org_id: string;
|
|
129
129
|
input_hash: string;
|
|
@@ -429,7 +429,7 @@ declare const CreateReceiptInput: z.ZodObject<{
|
|
|
429
429
|
agent_id: z.ZodString;
|
|
430
430
|
action: z.ZodString;
|
|
431
431
|
input_hash: z.ZodString;
|
|
432
|
-
receipt_type: z.ZodDefault<z.ZodEnum<["action", "verification", "judgment", "arbitration"]>>;
|
|
432
|
+
receipt_type: z.ZodDefault<z.ZodEnum<["action", "verification", "judgment", "arbitration", "memory"]>>;
|
|
433
433
|
status: z.ZodDefault<z.ZodEnum<["pending", "completed", "failed", "timeout"]>>;
|
|
434
434
|
environment: z.ZodDefault<z.ZodEnum<["development", "production", "staging", "test"]>>;
|
|
435
435
|
parent_receipt_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -448,7 +448,7 @@ declare const CreateReceiptInput: z.ZodObject<{
|
|
|
448
448
|
}, "strip", z.ZodTypeAny, {
|
|
449
449
|
status: "pending" | "completed" | "failed" | "timeout";
|
|
450
450
|
action: string;
|
|
451
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
451
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
452
452
|
agent_id: string;
|
|
453
453
|
input_hash: string;
|
|
454
454
|
environment: "development" | "production" | "staging" | "test";
|
|
@@ -470,7 +470,7 @@ declare const CreateReceiptInput: z.ZodObject<{
|
|
|
470
470
|
agent_id: string;
|
|
471
471
|
input_hash: string;
|
|
472
472
|
status?: "pending" | "completed" | "failed" | "timeout" | undefined;
|
|
473
|
-
receipt_type?: "action" | "verification" | "judgment" | "arbitration" | undefined;
|
|
473
|
+
receipt_type?: "action" | "verification" | "judgment" | "arbitration" | "memory" | undefined;
|
|
474
474
|
output_hash?: string | null | undefined;
|
|
475
475
|
environment?: "development" | "production" | "staging" | "test" | undefined;
|
|
476
476
|
parent_receipt_id?: string | null | undefined;
|
|
@@ -540,7 +540,7 @@ declare const VerifyResponse: z.ZodObject<{
|
|
|
540
540
|
receipt: z.ZodObject<{
|
|
541
541
|
receipt_id: z.ZodString;
|
|
542
542
|
chain_id: z.ZodString;
|
|
543
|
-
receipt_type: z.ZodEnum<["action", "verification", "judgment", "arbitration"]>;
|
|
543
|
+
receipt_type: z.ZodEnum<["action", "verification", "judgment", "arbitration", "memory"]>;
|
|
544
544
|
agent_id: z.ZodString;
|
|
545
545
|
action: z.ZodString;
|
|
546
546
|
status: z.ZodEnum<["pending", "completed", "failed", "timeout"]>;
|
|
@@ -556,7 +556,7 @@ declare const VerifyResponse: z.ZodObject<{
|
|
|
556
556
|
action: string;
|
|
557
557
|
receipt_id: string;
|
|
558
558
|
chain_id: string;
|
|
559
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
559
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
560
560
|
agent_id: string;
|
|
561
561
|
input_hash: string;
|
|
562
562
|
output_hash: string | null;
|
|
@@ -570,7 +570,7 @@ declare const VerifyResponse: z.ZodObject<{
|
|
|
570
570
|
action: string;
|
|
571
571
|
receipt_id: string;
|
|
572
572
|
chain_id: string;
|
|
573
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
573
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
574
574
|
agent_id: string;
|
|
575
575
|
input_hash: string;
|
|
576
576
|
output_hash: string | null;
|
|
@@ -590,7 +590,7 @@ declare const VerifyResponse: z.ZodObject<{
|
|
|
590
590
|
action: string;
|
|
591
591
|
receipt_id: string;
|
|
592
592
|
chain_id: string;
|
|
593
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
593
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
594
594
|
agent_id: string;
|
|
595
595
|
input_hash: string;
|
|
596
596
|
output_hash: string | null;
|
|
@@ -610,7 +610,7 @@ declare const VerifyResponse: z.ZodObject<{
|
|
|
610
610
|
action: string;
|
|
611
611
|
receipt_id: string;
|
|
612
612
|
chain_id: string;
|
|
613
|
-
receipt_type: "action" | "verification" | "judgment" | "arbitration";
|
|
613
|
+
receipt_type: "action" | "verification" | "judgment" | "arbitration" | "memory";
|
|
614
614
|
agent_id: string;
|
|
615
615
|
input_hash: string;
|
|
616
616
|
output_hash: string | null;
|
|
@@ -635,7 +635,7 @@ declare const ListReceiptsQuery: z.ZodObject<{
|
|
|
635
635
|
action: z.ZodOptional<z.ZodString>;
|
|
636
636
|
status: z.ZodOptional<z.ZodEnum<["pending", "completed", "failed", "timeout"]>>;
|
|
637
637
|
environment: z.ZodOptional<z.ZodEnum<["development", "production", "staging", "test"]>>;
|
|
638
|
-
receipt_type: z.ZodOptional<z.ZodEnum<["action", "verification", "judgment", "arbitration"]>>;
|
|
638
|
+
receipt_type: z.ZodOptional<z.ZodEnum<["action", "verification", "judgment", "arbitration", "memory"]>>;
|
|
639
639
|
chain_id: z.ZodOptional<z.ZodString>;
|
|
640
640
|
tag: z.ZodOptional<z.ZodString>;
|
|
641
641
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -648,7 +648,7 @@ declare const ListReceiptsQuery: z.ZodObject<{
|
|
|
648
648
|
status?: "pending" | "completed" | "failed" | "timeout" | undefined;
|
|
649
649
|
action?: string | undefined;
|
|
650
650
|
chain_id?: string | undefined;
|
|
651
|
-
receipt_type?: "action" | "verification" | "judgment" | "arbitration" | undefined;
|
|
651
|
+
receipt_type?: "action" | "verification" | "judgment" | "arbitration" | "memory" | undefined;
|
|
652
652
|
agent_id?: string | undefined;
|
|
653
653
|
environment?: "development" | "production" | "staging" | "test" | undefined;
|
|
654
654
|
tag?: string | undefined;
|
|
@@ -659,7 +659,7 @@ declare const ListReceiptsQuery: z.ZodObject<{
|
|
|
659
659
|
status?: "pending" | "completed" | "failed" | "timeout" | undefined;
|
|
660
660
|
action?: string | undefined;
|
|
661
661
|
chain_id?: string | undefined;
|
|
662
|
-
receipt_type?: "action" | "verification" | "judgment" | "arbitration" | undefined;
|
|
662
|
+
receipt_type?: "action" | "verification" | "judgment" | "arbitration" | "memory" | undefined;
|
|
663
663
|
agent_id?: string | undefined;
|
|
664
664
|
environment?: "development" | "production" | "staging" | "test" | undefined;
|
|
665
665
|
page?: number | undefined;
|
|
@@ -727,6 +727,196 @@ declare const ErrorResponse: z.ZodObject<{
|
|
|
727
727
|
}>;
|
|
728
728
|
type ErrorResponse = z.infer<typeof ErrorResponse>;
|
|
729
729
|
|
|
730
|
+
declare const EntityType: z.ZodEnum<["person", "project", "organization", "preference", "fact", "context", "tool", "custom"]>;
|
|
731
|
+
type EntityType = z.infer<typeof EntityType>;
|
|
732
|
+
declare const MemoryOperation: z.ZodEnum<["observe", "create", "merge", "forget", "forget_entity", "recall", "update"]>;
|
|
733
|
+
type MemoryOperation = z.infer<typeof MemoryOperation>;
|
|
734
|
+
declare const MemoryScope: z.ZodEnum<["agent", "user", "team", "global"]>;
|
|
735
|
+
type MemoryScope = z.infer<typeof MemoryScope>;
|
|
736
|
+
declare const ConfidenceLevel: z.ZodEnum<["certain", "high", "medium", "low", "deprecated"]>;
|
|
737
|
+
type ConfidenceLevel = z.infer<typeof ConfidenceLevel>;
|
|
738
|
+
declare const Observation: z.ZodObject<{
|
|
739
|
+
observation_id: z.ZodString;
|
|
740
|
+
entity_id: z.ZodString;
|
|
741
|
+
content: z.ZodString;
|
|
742
|
+
confidence: z.ZodDefault<z.ZodEnum<["certain", "high", "medium", "low", "deprecated"]>>;
|
|
743
|
+
source_receipt_id: z.ZodString;
|
|
744
|
+
source_agent_id: z.ZodString;
|
|
745
|
+
source_context: z.ZodNullable<z.ZodString>;
|
|
746
|
+
observed_at: z.ZodString;
|
|
747
|
+
forgotten_at: z.ZodNullable<z.ZodString>;
|
|
748
|
+
forgotten_by: z.ZodNullable<z.ZodString>;
|
|
749
|
+
superseded_by: z.ZodNullable<z.ZodString>;
|
|
750
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
751
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
|
+
tags: string[];
|
|
754
|
+
confidence: "certain" | "high" | "medium" | "low" | "deprecated";
|
|
755
|
+
metadata: Record<string, unknown>;
|
|
756
|
+
observation_id: string;
|
|
757
|
+
entity_id: string;
|
|
758
|
+
content: string;
|
|
759
|
+
source_receipt_id: string;
|
|
760
|
+
source_agent_id: string;
|
|
761
|
+
source_context: string | null;
|
|
762
|
+
observed_at: string;
|
|
763
|
+
forgotten_at: string | null;
|
|
764
|
+
forgotten_by: string | null;
|
|
765
|
+
superseded_by: string | null;
|
|
766
|
+
}, {
|
|
767
|
+
observation_id: string;
|
|
768
|
+
entity_id: string;
|
|
769
|
+
content: string;
|
|
770
|
+
source_receipt_id: string;
|
|
771
|
+
source_agent_id: string;
|
|
772
|
+
source_context: string | null;
|
|
773
|
+
observed_at: string;
|
|
774
|
+
forgotten_at: string | null;
|
|
775
|
+
forgotten_by: string | null;
|
|
776
|
+
superseded_by: string | null;
|
|
777
|
+
tags?: string[] | undefined;
|
|
778
|
+
confidence?: "certain" | "high" | "medium" | "low" | "deprecated" | undefined;
|
|
779
|
+
metadata?: Record<string, unknown> | undefined;
|
|
780
|
+
}>;
|
|
781
|
+
type Observation = z.infer<typeof Observation>;
|
|
782
|
+
declare const Relationship: z.ZodObject<{
|
|
783
|
+
relationship_id: z.ZodString;
|
|
784
|
+
from_entity_id: z.ZodString;
|
|
785
|
+
to_entity_id: z.ZodString;
|
|
786
|
+
relationship_type: z.ZodString;
|
|
787
|
+
strength: z.ZodDefault<z.ZodEnum<["certain", "high", "medium", "low", "deprecated"]>>;
|
|
788
|
+
source_receipt_id: z.ZodString;
|
|
789
|
+
created_at: z.ZodString;
|
|
790
|
+
forgotten_at: z.ZodNullable<z.ZodString>;
|
|
791
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
metadata: Record<string, unknown>;
|
|
794
|
+
source_receipt_id: string;
|
|
795
|
+
forgotten_at: string | null;
|
|
796
|
+
relationship_id: string;
|
|
797
|
+
from_entity_id: string;
|
|
798
|
+
to_entity_id: string;
|
|
799
|
+
relationship_type: string;
|
|
800
|
+
strength: "certain" | "high" | "medium" | "low" | "deprecated";
|
|
801
|
+
created_at: string;
|
|
802
|
+
}, {
|
|
803
|
+
source_receipt_id: string;
|
|
804
|
+
forgotten_at: string | null;
|
|
805
|
+
relationship_id: string;
|
|
806
|
+
from_entity_id: string;
|
|
807
|
+
to_entity_id: string;
|
|
808
|
+
relationship_type: string;
|
|
809
|
+
created_at: string;
|
|
810
|
+
metadata?: Record<string, unknown> | undefined;
|
|
811
|
+
strength?: "certain" | "high" | "medium" | "low" | "deprecated" | undefined;
|
|
812
|
+
}>;
|
|
813
|
+
type Relationship = z.infer<typeof Relationship>;
|
|
814
|
+
declare const Entity: z.ZodObject<{
|
|
815
|
+
entity_id: z.ZodString;
|
|
816
|
+
entity_type: z.ZodEnum<["person", "project", "organization", "preference", "fact", "context", "tool", "custom"]>;
|
|
817
|
+
name: z.ZodString;
|
|
818
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
819
|
+
scope: z.ZodDefault<z.ZodEnum<["agent", "user", "team", "global"]>>;
|
|
820
|
+
created_at: z.ZodString;
|
|
821
|
+
created_by_agent: z.ZodString;
|
|
822
|
+
created_by_receipt: z.ZodString;
|
|
823
|
+
forgotten_at: z.ZodNullable<z.ZodString>;
|
|
824
|
+
merged_into: z.ZodNullable<z.ZodString>;
|
|
825
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
826
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
827
|
+
}, "strip", z.ZodTypeAny, {
|
|
828
|
+
metadata: Record<string, unknown>;
|
|
829
|
+
name: string;
|
|
830
|
+
entity_id: string;
|
|
831
|
+
forgotten_at: string | null;
|
|
832
|
+
created_at: string;
|
|
833
|
+
entity_type: "custom" | "person" | "project" | "organization" | "preference" | "fact" | "context" | "tool";
|
|
834
|
+
aliases: string[];
|
|
835
|
+
scope: "agent" | "user" | "team" | "global";
|
|
836
|
+
created_by_agent: string;
|
|
837
|
+
created_by_receipt: string;
|
|
838
|
+
merged_into: string | null;
|
|
839
|
+
attributes: Record<string, unknown>;
|
|
840
|
+
}, {
|
|
841
|
+
name: string;
|
|
842
|
+
entity_id: string;
|
|
843
|
+
forgotten_at: string | null;
|
|
844
|
+
created_at: string;
|
|
845
|
+
entity_type: "custom" | "person" | "project" | "organization" | "preference" | "fact" | "context" | "tool";
|
|
846
|
+
created_by_agent: string;
|
|
847
|
+
created_by_receipt: string;
|
|
848
|
+
merged_into: string | null;
|
|
849
|
+
metadata?: Record<string, unknown> | undefined;
|
|
850
|
+
aliases?: string[] | undefined;
|
|
851
|
+
scope?: "agent" | "user" | "team" | "global" | undefined;
|
|
852
|
+
attributes?: Record<string, unknown> | undefined;
|
|
853
|
+
}>;
|
|
854
|
+
type Entity = z.infer<typeof Entity>;
|
|
855
|
+
declare const MemoryReceiptPayload: z.ZodObject<{
|
|
856
|
+
memory_operation: z.ZodEnum<["observe", "create", "merge", "forget", "forget_entity", "recall", "update"]>;
|
|
857
|
+
entity_id: z.ZodNullable<z.ZodString>;
|
|
858
|
+
observation_id: z.ZodNullable<z.ZodString>;
|
|
859
|
+
relationship_id: z.ZodNullable<z.ZodString>;
|
|
860
|
+
scope: z.ZodEnum<["agent", "user", "team", "global"]>;
|
|
861
|
+
query: z.ZodNullable<z.ZodString>;
|
|
862
|
+
results_count: z.ZodNullable<z.ZodNumber>;
|
|
863
|
+
confidence: z.ZodNullable<z.ZodEnum<["certain", "high", "medium", "low", "deprecated"]>>;
|
|
864
|
+
}, "strip", z.ZodTypeAny, {
|
|
865
|
+
confidence: "certain" | "high" | "medium" | "low" | "deprecated" | null;
|
|
866
|
+
observation_id: string | null;
|
|
867
|
+
entity_id: string | null;
|
|
868
|
+
relationship_id: string | null;
|
|
869
|
+
scope: "agent" | "user" | "team" | "global";
|
|
870
|
+
memory_operation: "create" | "observe" | "merge" | "forget" | "forget_entity" | "recall" | "update";
|
|
871
|
+
query: string | null;
|
|
872
|
+
results_count: number | null;
|
|
873
|
+
}, {
|
|
874
|
+
confidence: "certain" | "high" | "medium" | "low" | "deprecated" | null;
|
|
875
|
+
observation_id: string | null;
|
|
876
|
+
entity_id: string | null;
|
|
877
|
+
relationship_id: string | null;
|
|
878
|
+
scope: "agent" | "user" | "team" | "global";
|
|
879
|
+
memory_operation: "create" | "observe" | "merge" | "forget" | "forget_entity" | "recall" | "update";
|
|
880
|
+
query: string | null;
|
|
881
|
+
results_count: number | null;
|
|
882
|
+
}>;
|
|
883
|
+
type MemoryReceiptPayload = z.infer<typeof MemoryReceiptPayload>;
|
|
884
|
+
declare const MemoryQuery: z.ZodObject<{
|
|
885
|
+
query: z.ZodOptional<z.ZodString>;
|
|
886
|
+
entity_type: z.ZodOptional<z.ZodEnum<["person", "project", "organization", "preference", "fact", "context", "tool", "custom"]>>;
|
|
887
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
888
|
+
scope: z.ZodOptional<z.ZodEnum<["agent", "user", "team", "global"]>>;
|
|
889
|
+
agent_id: z.ZodOptional<z.ZodString>;
|
|
890
|
+
confidence_min: z.ZodOptional<z.ZodEnum<["certain", "high", "medium", "low", "deprecated"]>>;
|
|
891
|
+
include_forgotten: z.ZodDefault<z.ZodBoolean>;
|
|
892
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
893
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
894
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
895
|
+
}, "strip", z.ZodTypeAny, {
|
|
896
|
+
page: number;
|
|
897
|
+
limit: number;
|
|
898
|
+
include_forgotten: boolean;
|
|
899
|
+
agent_id?: string | undefined;
|
|
900
|
+
tags?: string[] | undefined;
|
|
901
|
+
entity_id?: string | undefined;
|
|
902
|
+
entity_type?: "custom" | "person" | "project" | "organization" | "preference" | "fact" | "context" | "tool" | undefined;
|
|
903
|
+
scope?: "agent" | "user" | "team" | "global" | undefined;
|
|
904
|
+
query?: string | undefined;
|
|
905
|
+
confidence_min?: "certain" | "high" | "medium" | "low" | "deprecated" | undefined;
|
|
906
|
+
}, {
|
|
907
|
+
agent_id?: string | undefined;
|
|
908
|
+
tags?: string[] | undefined;
|
|
909
|
+
page?: number | undefined;
|
|
910
|
+
limit?: number | undefined;
|
|
911
|
+
entity_id?: string | undefined;
|
|
912
|
+
entity_type?: "custom" | "person" | "project" | "organization" | "preference" | "fact" | "context" | "tool" | undefined;
|
|
913
|
+
scope?: "agent" | "user" | "team" | "global" | undefined;
|
|
914
|
+
query?: string | undefined;
|
|
915
|
+
confidence_min?: "certain" | "high" | "medium" | "low" | "deprecated" | undefined;
|
|
916
|
+
include_forgotten?: boolean | undefined;
|
|
917
|
+
}>;
|
|
918
|
+
type MemoryQuery = z.infer<typeof MemoryQuery>;
|
|
919
|
+
|
|
730
920
|
/**
|
|
731
921
|
* Validate data against a Zod schema.
|
|
732
922
|
* Returns { success: true, data } or { success: false, error: ErrorResponse }
|
|
@@ -747,4 +937,4 @@ declare function formatZodError(error: z.ZodError): string;
|
|
|
747
937
|
*/
|
|
748
938
|
declare function createErrorResponse(code: string, message: string, status: number): ErrorResponse;
|
|
749
939
|
|
|
750
|
-
export { ActionReceipt, CompleteReceiptInput, ConstraintDefinition, ConstraintDefinitions, ConstraintResult, CreateReceiptInput, CriterionResult, Environment, Environment as EnvironmentType, ErrorCode, ErrorCode as ErrorCodeType, ErrorResponse, JudgmentResult, ListReceiptsQuery, PaginationMeta, ReceiptStatus, ReceiptStatus as ReceiptStatusType, ReceiptType, ReceiptType as ReceiptTypeType, Rubric, RubricCriterion, SignablePayload, SingleConstraintResult, VerifyResponse, createErrorResponse, formatZodError, validate };
|
|
940
|
+
export { ActionReceipt, CompleteReceiptInput, ConfidenceLevel, ConstraintDefinition, ConstraintDefinitions, ConstraintResult, CreateReceiptInput, CriterionResult, Entity, EntityType, Environment, Environment as EnvironmentType, ErrorCode, ErrorCode as ErrorCodeType, ErrorResponse, JudgmentResult, ListReceiptsQuery, MemoryOperation, MemoryQuery, MemoryReceiptPayload, MemoryScope, Observation, PaginationMeta, ReceiptStatus, ReceiptStatus as ReceiptStatusType, ReceiptType, ReceiptType as ReceiptTypeType, Relationship, Rubric, RubricCriterion, SignablePayload, SingleConstraintResult, VerifyResponse, createErrorResponse, formatZodError, validate };
|