@stacklink/sdk 0.6.3 → 0.6.5
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 +16 -0
- package/compatibility.json +1 -1
- package/dist/src/domain/billing-plans.d.ts +139 -10
- package/dist/src/domain/billing-plans.d.ts.map +1 -1
- package/dist/src/domain/billing-plans.js +64 -10
- package/dist/src/domain/billing-plans.js.map +1 -1
- package/dist/src/domain/bot-contract.d.ts +1330 -761
- package/dist/src/domain/bot-contract.d.ts.map +1 -1
- package/dist/src/domain/bot-contract.js +41 -2
- package/dist/src/domain/bot-contract.js.map +1 -1
- package/dist/src/domain/bot-library.d.ts +192 -0
- package/dist/src/domain/bot-library.d.ts.map +1 -0
- package/dist/src/domain/bot-library.js +180 -0
- package/dist/src/domain/bot-library.js.map +1 -0
- package/dist/src/domain/memory-contract.d.ts +1121 -624
- package/dist/src/domain/memory-contract.d.ts.map +1 -1
- package/dist/src/domain/memory-contract.js +128 -24
- package/dist/src/domain/memory-contract.js.map +1 -1
- package/dist/src/domain/platform-approval-contract.d.ts +24 -24
- package/dist/src/domain/stacklink-meta-tools.d.ts +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +2 -2
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +14371 -7817
- package/dist/src/domain/workflow-contract.d.ts.map +1 -1
- package/dist/src/domain/workflow-contract.js +23 -2
- package/dist/src/domain/workflow-contract.js.map +1 -1
- package/dist/src/sdk/index.d.ts +59 -11
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +15 -3
- package/dist/src/sdk/index.js.map +1 -1
- package/dist/src/sdk/memory-lifecycle.d.ts +1 -4
- package/dist/src/sdk/memory-lifecycle.d.ts.map +1 -1
- package/dist/src/sdk/memory-lifecycle.js +2 -7
- package/dist/src/sdk/memory-lifecycle.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const memorySubjectTypes: readonly ["user", "agent", "tenant", "run", "application", "custom"];
|
|
3
|
+
export declare const completedConversationContentSchema: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<"stacklink.conversation.turn.v1">;
|
|
5
|
+
user: z.ZodObject<{
|
|
6
|
+
role: z.ZodLiteral<"user">;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
content: string;
|
|
10
|
+
role: "user";
|
|
11
|
+
}, {
|
|
12
|
+
content: string;
|
|
13
|
+
role: "user";
|
|
14
|
+
}>;
|
|
15
|
+
assistant: z.ZodObject<{
|
|
16
|
+
role: z.ZodLiteral<"assistant">;
|
|
17
|
+
content: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
content: string;
|
|
20
|
+
role: "assistant";
|
|
21
|
+
}, {
|
|
22
|
+
content: string;
|
|
23
|
+
role: "assistant";
|
|
24
|
+
}>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
user: {
|
|
27
|
+
content: string;
|
|
28
|
+
role: "user";
|
|
29
|
+
};
|
|
30
|
+
schemaVersion: "stacklink.conversation.turn.v1";
|
|
31
|
+
assistant: {
|
|
32
|
+
content: string;
|
|
33
|
+
role: "assistant";
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
user: {
|
|
37
|
+
content: string;
|
|
38
|
+
role: "user";
|
|
39
|
+
};
|
|
40
|
+
schemaVersion: "stacklink.conversation.turn.v1";
|
|
41
|
+
assistant: {
|
|
42
|
+
content: string;
|
|
43
|
+
role: "assistant";
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
export declare function serializeCompletedConversationTurn(input: {
|
|
47
|
+
userText: string;
|
|
48
|
+
assistantText: string;
|
|
49
|
+
}): string;
|
|
3
50
|
export declare const memoryRecordKinds: readonly ["fact", "episode", "profile_item", "block"];
|
|
4
51
|
export declare const memoryAutomaticRecordKinds: readonly ["fact", "episode"];
|
|
5
52
|
export declare const memoryTypes: readonly ["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"];
|
|
@@ -7,35 +54,186 @@ export type MemoryType = typeof memoryTypes[number];
|
|
|
7
54
|
export declare const memorySensitivityClasses: readonly ["standard", "personal", "restricted", "secret"];
|
|
8
55
|
export declare const memorySourceClasses: readonly ["human_communication", "structured_temporal", "structured_profile", "authored_document", "operational_event", "external_feed"];
|
|
9
56
|
export declare const memoryAuthorshipClasses: readonly ["connected_user", "other_human", "bot", "application", "system", "unknown"];
|
|
10
|
-
export declare const memoryAdmissionBases: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"];
|
|
57
|
+
export declare const memoryAdmissionBases: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"];
|
|
58
|
+
export declare const memoryWriteAuthoritySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"caller_assertion">;
|
|
60
|
+
actorId: z.ZodString;
|
|
61
|
+
}, "strict", z.ZodTypeAny, {
|
|
62
|
+
kind: "caller_assertion";
|
|
63
|
+
actorId: string;
|
|
64
|
+
}, {
|
|
65
|
+
kind: "caller_assertion";
|
|
66
|
+
actorId: string;
|
|
67
|
+
}>, z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"dashboard_user">;
|
|
69
|
+
actorId: z.ZodString;
|
|
70
|
+
action: z.ZodEnum<["save", "confirm", "correct", "review"]>;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
kind: "dashboard_user";
|
|
73
|
+
action: "save" | "confirm" | "correct" | "review";
|
|
74
|
+
actorId: string;
|
|
75
|
+
}, {
|
|
76
|
+
kind: "dashboard_user";
|
|
77
|
+
action: "save" | "confirm" | "correct" | "review";
|
|
78
|
+
actorId: string;
|
|
79
|
+
}>, z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"provider_projection">;
|
|
81
|
+
sourceEventId: z.ZodString;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
kind: "provider_projection";
|
|
84
|
+
sourceEventId: string;
|
|
85
|
+
}, {
|
|
86
|
+
kind: "provider_projection";
|
|
87
|
+
sourceEventId: string;
|
|
88
|
+
}>, z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"model_extraction">;
|
|
90
|
+
processingRunId: z.ZodString;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
kind: "model_extraction";
|
|
93
|
+
processingRunId: string;
|
|
94
|
+
}, {
|
|
95
|
+
kind: "model_extraction";
|
|
96
|
+
processingRunId: string;
|
|
97
|
+
}>, z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"system_repair">;
|
|
99
|
+
manifestId: z.ZodString;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
kind: "system_repair";
|
|
102
|
+
manifestId: string;
|
|
103
|
+
}, {
|
|
104
|
+
kind: "system_repair";
|
|
105
|
+
manifestId: string;
|
|
106
|
+
}>]>;
|
|
107
|
+
export type MemoryWriteAuthority = z.infer<typeof memoryWriteAuthoritySchema>;
|
|
108
|
+
/** Private operational input; no HTTP, SDK or MCP writer accepts this contract. */
|
|
109
|
+
export declare const memoryIntegrityCorrectionSchema: z.ZodObject<{
|
|
110
|
+
expectedSourceEventIds: z.ZodArray<z.ZodString, "many">;
|
|
111
|
+
evidence: z.ZodEnum<["preserve", "correction"]>;
|
|
112
|
+
quality: z.ZodObject<{
|
|
113
|
+
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
114
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
|
|
115
|
+
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
116
|
+
destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
117
|
+
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
118
|
+
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
119
|
+
contextEligible: z.ZodBoolean;
|
|
120
|
+
}, "strict", z.ZodTypeAny, {
|
|
121
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
122
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
123
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
124
|
+
durability: "durable" | "episodic" | "transient";
|
|
125
|
+
salience: "low" | "medium" | "high";
|
|
126
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
127
|
+
contextEligible: boolean;
|
|
128
|
+
}, {
|
|
129
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
130
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
131
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
132
|
+
durability: "durable" | "episodic" | "transient";
|
|
133
|
+
salience: "low" | "medium" | "high";
|
|
134
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
135
|
+
contextEligible: boolean;
|
|
136
|
+
}>;
|
|
137
|
+
}, "strict", z.ZodTypeAny, {
|
|
138
|
+
expectedSourceEventIds: string[];
|
|
139
|
+
evidence: "preserve" | "correction";
|
|
140
|
+
quality: {
|
|
141
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
142
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
143
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
144
|
+
durability: "durable" | "episodic" | "transient";
|
|
145
|
+
salience: "low" | "medium" | "high";
|
|
146
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
147
|
+
contextEligible: boolean;
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
expectedSourceEventIds: string[];
|
|
151
|
+
evidence: "preserve" | "correction";
|
|
152
|
+
quality: {
|
|
153
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
154
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
155
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
156
|
+
durability: "durable" | "episodic" | "transient";
|
|
157
|
+
salience: "low" | "medium" | "high";
|
|
158
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
159
|
+
contextEligible: boolean;
|
|
160
|
+
};
|
|
161
|
+
}>;
|
|
162
|
+
export type MemoryIntegrityCorrection = z.infer<typeof memoryIntegrityCorrectionSchema>;
|
|
163
|
+
/** Private, reviewed source replay; public legacy reprocessing remains limited to legacy records. */
|
|
164
|
+
export declare const memoryIntegritySourceReviewSchema: z.ZodObject<{
|
|
165
|
+
manifestId: z.ZodString;
|
|
166
|
+
sourceHash: z.ZodString;
|
|
167
|
+
policyKey: z.ZodString;
|
|
168
|
+
policyVersion: z.ZodNumber;
|
|
169
|
+
records: z.ZodArray<z.ZodObject<{
|
|
170
|
+
recordId: z.ZodString;
|
|
171
|
+
versionId: z.ZodString;
|
|
172
|
+
}, "strict", z.ZodTypeAny, {
|
|
173
|
+
recordId: string;
|
|
174
|
+
versionId: string;
|
|
175
|
+
}, {
|
|
176
|
+
recordId: string;
|
|
177
|
+
versionId: string;
|
|
178
|
+
}>, "many">;
|
|
179
|
+
}, "strict", z.ZodTypeAny, {
|
|
180
|
+
manifestId: string;
|
|
181
|
+
sourceHash: string;
|
|
182
|
+
policyKey: string;
|
|
183
|
+
policyVersion: number;
|
|
184
|
+
records: {
|
|
185
|
+
recordId: string;
|
|
186
|
+
versionId: string;
|
|
187
|
+
}[];
|
|
188
|
+
}, {
|
|
189
|
+
manifestId: string;
|
|
190
|
+
sourceHash: string;
|
|
191
|
+
policyKey: string;
|
|
192
|
+
policyVersion: number;
|
|
193
|
+
records: {
|
|
194
|
+
recordId: string;
|
|
195
|
+
versionId: string;
|
|
196
|
+
}[];
|
|
197
|
+
}>;
|
|
198
|
+
export type MemoryIntegritySourceReview = z.infer<typeof memoryIntegritySourceReviewSchema>;
|
|
11
199
|
export declare const memoryDurabilities: readonly ["durable", "episodic", "transient"];
|
|
12
200
|
export declare const memoryQualityRatingClasses: readonly ["low", "medium", "high"];
|
|
13
201
|
export declare const memoryDestinations: readonly ["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"];
|
|
14
202
|
export declare const memoryRetentionAdmissionStatuses: readonly ["memory", "source_only", "reject_noise", "uncertain"];
|
|
15
203
|
export declare const memoryQualityContractVersion: 1;
|
|
16
204
|
export declare const memoryProviderQualityContextSchema: z.ZodObject<{
|
|
205
|
+
conversationRoles: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
userCanonicalKey: z.ZodString;
|
|
207
|
+
assistantCanonicalKey: z.ZodString;
|
|
208
|
+
}, "strict", z.ZodTypeAny, {
|
|
209
|
+
userCanonicalKey: string;
|
|
210
|
+
assistantCanonicalKey: string;
|
|
211
|
+
}, {
|
|
212
|
+
userCanonicalKey: string;
|
|
213
|
+
assistantCanonicalKey: string;
|
|
214
|
+
}>>;
|
|
17
215
|
authorshipBoundary: z.ZodOptional<z.ZodEnum<["exact_source_unit", "message_may_include_quotes"]>>;
|
|
18
216
|
contract: z.ZodLiteral<"stacklink.memory.source-quality.v1">;
|
|
19
217
|
qualityContractVersion: z.ZodLiteral<1>;
|
|
20
218
|
sourceClass: z.ZodEnum<["human_communication", "structured_temporal", "structured_profile", "authored_document", "operational_event", "external_feed"]>;
|
|
21
219
|
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
22
|
-
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
220
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
|
|
23
221
|
actorCanonicalKey: z.ZodNullable<z.ZodString>;
|
|
24
222
|
actors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
25
223
|
canonicalKey: z.ZodString;
|
|
26
224
|
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
27
|
-
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
225
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
|
|
28
226
|
defaultDestination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
29
227
|
allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
|
|
30
228
|
}, "strict", z.ZodTypeAny, {
|
|
31
229
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
32
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
230
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
33
231
|
canonicalKey: string;
|
|
34
232
|
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
35
233
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
36
234
|
}, {
|
|
37
235
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
38
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
236
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
39
237
|
canonicalKey: string;
|
|
40
238
|
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
41
239
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
@@ -50,17 +248,17 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
|
|
|
50
248
|
validFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
51
249
|
validTo: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
52
250
|
}, "strict", z.ZodTypeAny, {
|
|
251
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
252
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
53
253
|
contract: "stacklink.memory.source-quality.v1";
|
|
54
254
|
qualityContractVersion: 1;
|
|
55
255
|
sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
|
|
56
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
57
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
58
256
|
actorCanonicalKey: string | null;
|
|
59
257
|
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
60
258
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
61
259
|
actors: {
|
|
62
260
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
63
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
261
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
64
262
|
canonicalKey: string;
|
|
65
263
|
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
66
264
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
@@ -72,13 +270,17 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
|
|
|
72
270
|
hardExclusionSignals: string[];
|
|
73
271
|
validFrom: string | null;
|
|
74
272
|
validTo: string | null;
|
|
273
|
+
conversationRoles?: {
|
|
274
|
+
userCanonicalKey: string;
|
|
275
|
+
assistantCanonicalKey: string;
|
|
276
|
+
} | undefined;
|
|
75
277
|
authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
|
|
76
278
|
}, {
|
|
279
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
280
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
77
281
|
contract: "stacklink.memory.source-quality.v1";
|
|
78
282
|
qualityContractVersion: 1;
|
|
79
283
|
sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
|
|
80
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
81
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
82
284
|
actorCanonicalKey: string | null;
|
|
83
285
|
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
84
286
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
@@ -87,10 +289,14 @@ export declare const memoryProviderQualityContextSchema: z.ZodObject<{
|
|
|
87
289
|
defaultDurability: "durable" | "episodic" | "transient";
|
|
88
290
|
attachmentsIncluded: boolean;
|
|
89
291
|
hardExclusionSignals: string[];
|
|
292
|
+
conversationRoles?: {
|
|
293
|
+
userCanonicalKey: string;
|
|
294
|
+
assistantCanonicalKey: string;
|
|
295
|
+
} | undefined;
|
|
90
296
|
authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
|
|
91
297
|
actors?: {
|
|
92
298
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
93
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
299
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
94
300
|
canonicalKey: string;
|
|
95
301
|
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
96
302
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
@@ -108,10 +314,10 @@ export declare const memorySubjectRefSchema: z.ZodObject<{
|
|
|
108
314
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
109
315
|
externalId: z.ZodString;
|
|
110
316
|
}, "strict", z.ZodTypeAny, {
|
|
111
|
-
type: "custom" | "
|
|
317
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
112
318
|
externalId: string;
|
|
113
319
|
}, {
|
|
114
|
-
type: "custom" | "
|
|
320
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
115
321
|
externalId: string;
|
|
116
322
|
}>;
|
|
117
323
|
export type MemorySubjectRef = z.infer<typeof memorySubjectRefSchema>;
|
|
@@ -132,6 +338,27 @@ export declare const memoryConsentProofSchema: z.ZodObject<{
|
|
|
132
338
|
reference?: string | undefined;
|
|
133
339
|
}>;
|
|
134
340
|
export type MemoryConsentProof = z.infer<typeof memoryConsentProofSchema>;
|
|
341
|
+
export declare const memoryRecordWriteOptionsShape: {
|
|
342
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
status: z.ZodLiteral<"granted">;
|
|
344
|
+
basis: z.ZodEnum<["user_consent", "contract", "legitimate_interest", "project_policy"]>;
|
|
345
|
+
recordedAt: z.ZodString;
|
|
346
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, "strict", z.ZodTypeAny, {
|
|
348
|
+
status: "granted";
|
|
349
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
350
|
+
recordedAt: string;
|
|
351
|
+
reference?: string | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
status: "granted";
|
|
354
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
355
|
+
recordedAt: string;
|
|
356
|
+
reference?: string | undefined;
|
|
357
|
+
}>>;
|
|
358
|
+
expectedVersionId: z.ZodOptional<z.ZodString>;
|
|
359
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
360
|
+
};
|
|
361
|
+
export type MemoryRecordWriteOptions = z.infer<z.ZodObject<typeof memoryRecordWriteOptionsShape>>;
|
|
135
362
|
export declare const memoryConsentPolicySchema: z.ZodObject<{
|
|
136
363
|
mode: z.ZodDefault<z.ZodEnum<["project_policy", "required"]>>;
|
|
137
364
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -184,28 +411,37 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
|
|
|
184
411
|
id: z.ZodString;
|
|
185
412
|
observed: z.ZodOptional<z.ZodString>;
|
|
186
413
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
id: string;
|
|
188
414
|
kind: string;
|
|
415
|
+
id: string;
|
|
189
416
|
name: string;
|
|
190
417
|
observed?: string | undefined;
|
|
191
418
|
}, {
|
|
192
|
-
id: string;
|
|
193
419
|
kind: string;
|
|
420
|
+
id: string;
|
|
194
421
|
name: string;
|
|
195
422
|
observed?: string | undefined;
|
|
196
423
|
}>>;
|
|
197
424
|
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
425
|
label: z.ZodString;
|
|
199
|
-
before: z.ZodOptional<z.
|
|
200
|
-
after: z.ZodString
|
|
426
|
+
before: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
427
|
+
after: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
428
|
+
beforeDisplay: z.ZodOptional<z.ZodString>;
|
|
429
|
+
afterDisplay: z.ZodOptional<z.ZodString>;
|
|
430
|
+
format: z.ZodOptional<z.ZodEnum<["text", "json", "timestamp"]>>;
|
|
201
431
|
}, "strip", z.ZodTypeAny, {
|
|
202
432
|
label: string;
|
|
203
|
-
after: string;
|
|
204
|
-
before?: string | null | undefined;
|
|
433
|
+
after: string | number | boolean | null;
|
|
434
|
+
before?: string | number | boolean | null | undefined;
|
|
435
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
436
|
+
beforeDisplay?: string | undefined;
|
|
437
|
+
afterDisplay?: string | undefined;
|
|
205
438
|
}, {
|
|
206
439
|
label: string;
|
|
207
|
-
after: string;
|
|
208
|
-
before?: string | null | undefined;
|
|
440
|
+
after: string | number | boolean | null;
|
|
441
|
+
before?: string | number | boolean | null | undefined;
|
|
442
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
443
|
+
beforeDisplay?: string | undefined;
|
|
444
|
+
afterDisplay?: string | undefined;
|
|
209
445
|
}>, "many">>;
|
|
210
446
|
conversation: z.ZodOptional<z.ZodObject<{
|
|
211
447
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -213,15 +449,15 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
|
|
|
213
449
|
speaker: z.ZodOptional<z.ZodString>;
|
|
214
450
|
assistant: z.ZodOptional<z.ZodBoolean>;
|
|
215
451
|
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
sessionId?: string | undefined;
|
|
217
452
|
speaker?: string | undefined;
|
|
218
|
-
|
|
453
|
+
sessionId?: string | undefined;
|
|
219
454
|
assistant?: boolean | undefined;
|
|
455
|
+
turn?: string | undefined;
|
|
220
456
|
}, {
|
|
221
|
-
sessionId?: string | undefined;
|
|
222
457
|
speaker?: string | undefined;
|
|
223
|
-
|
|
458
|
+
sessionId?: string | undefined;
|
|
224
459
|
assistant?: boolean | undefined;
|
|
460
|
+
turn?: string | undefined;
|
|
225
461
|
}>>;
|
|
226
462
|
file: z.ZodOptional<z.ZodObject<{
|
|
227
463
|
title: z.ZodString;
|
|
@@ -239,59 +475,57 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
|
|
|
239
475
|
by: z.ZodOptional<z.ZodString>;
|
|
240
476
|
requestId: z.ZodOptional<z.ZodString>;
|
|
241
477
|
}, "strict", z.ZodTypeAny, {
|
|
242
|
-
kind: "object" | "
|
|
478
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
243
479
|
contract: "stacklink.memory.evidence.v1";
|
|
244
480
|
availability: "unknown" | "available" | "deleted";
|
|
245
481
|
object?: {
|
|
246
|
-
id: string;
|
|
247
482
|
kind: string;
|
|
483
|
+
id: string;
|
|
248
484
|
name: string;
|
|
249
485
|
observed?: string | undefined;
|
|
250
486
|
} | undefined;
|
|
251
|
-
channel?: string | undefined;
|
|
252
|
-
fields?: {
|
|
253
|
-
label: string;
|
|
254
|
-
after: string;
|
|
255
|
-
before?: string | null | undefined;
|
|
256
|
-
}[] | undefined;
|
|
257
487
|
file?: {
|
|
258
488
|
title: string;
|
|
259
489
|
section?: string | undefined;
|
|
260
490
|
edited?: string | undefined;
|
|
261
491
|
} | undefined;
|
|
492
|
+
channel?: string | undefined;
|
|
262
493
|
from?: {
|
|
263
494
|
name: string;
|
|
264
495
|
address?: string | undefined;
|
|
265
496
|
} | undefined;
|
|
266
497
|
requestId?: string | undefined;
|
|
267
498
|
conversation?: {
|
|
268
|
-
sessionId?: string | undefined;
|
|
269
499
|
speaker?: string | undefined;
|
|
270
|
-
|
|
500
|
+
sessionId?: string | undefined;
|
|
271
501
|
assistant?: boolean | undefined;
|
|
502
|
+
turn?: string | undefined;
|
|
272
503
|
} | undefined;
|
|
273
504
|
href?: string | undefined;
|
|
274
505
|
subject?: string | undefined;
|
|
506
|
+
fields?: {
|
|
507
|
+
label: string;
|
|
508
|
+
after: string | number | boolean | null;
|
|
509
|
+
before?: string | number | boolean | null | undefined;
|
|
510
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
511
|
+
beforeDisplay?: string | undefined;
|
|
512
|
+
afterDisplay?: string | undefined;
|
|
513
|
+
}[] | undefined;
|
|
275
514
|
by?: string | undefined;
|
|
276
515
|
}, {
|
|
277
|
-
kind: "object" | "
|
|
516
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
278
517
|
object?: {
|
|
279
|
-
id: string;
|
|
280
518
|
kind: string;
|
|
519
|
+
id: string;
|
|
281
520
|
name: string;
|
|
282
521
|
observed?: string | undefined;
|
|
283
522
|
} | undefined;
|
|
284
|
-
channel?: string | undefined;
|
|
285
|
-
fields?: {
|
|
286
|
-
label: string;
|
|
287
|
-
after: string;
|
|
288
|
-
before?: string | null | undefined;
|
|
289
|
-
}[] | undefined;
|
|
290
523
|
file?: {
|
|
291
524
|
title: string;
|
|
292
525
|
section?: string | undefined;
|
|
293
526
|
edited?: string | undefined;
|
|
294
527
|
} | undefined;
|
|
528
|
+
channel?: string | undefined;
|
|
295
529
|
from?: {
|
|
296
530
|
name: string;
|
|
297
531
|
address?: string | undefined;
|
|
@@ -299,14 +533,22 @@ export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
|
|
|
299
533
|
requestId?: string | undefined;
|
|
300
534
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
301
535
|
conversation?: {
|
|
302
|
-
sessionId?: string | undefined;
|
|
303
536
|
speaker?: string | undefined;
|
|
304
|
-
|
|
537
|
+
sessionId?: string | undefined;
|
|
305
538
|
assistant?: boolean | undefined;
|
|
539
|
+
turn?: string | undefined;
|
|
306
540
|
} | undefined;
|
|
307
541
|
href?: string | undefined;
|
|
308
542
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
309
543
|
subject?: string | undefined;
|
|
544
|
+
fields?: {
|
|
545
|
+
label: string;
|
|
546
|
+
after: string | number | boolean | null;
|
|
547
|
+
before?: string | number | boolean | null | undefined;
|
|
548
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
549
|
+
beforeDisplay?: string | undefined;
|
|
550
|
+
afterDisplay?: string | undefined;
|
|
551
|
+
}[] | undefined;
|
|
310
552
|
by?: string | undefined;
|
|
311
553
|
}>;
|
|
312
554
|
export type MemoryEvidenceReference = z.input<typeof memoryEvidenceReferenceSchema>;
|
|
@@ -321,10 +563,10 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
321
563
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
322
564
|
externalId: z.ZodString;
|
|
323
565
|
}, "strict", z.ZodTypeAny, {
|
|
324
|
-
type: "custom" | "
|
|
566
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
325
567
|
externalId: string;
|
|
326
568
|
}, {
|
|
327
|
-
type: "custom" | "
|
|
569
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
328
570
|
externalId: string;
|
|
329
571
|
}>, "many">>;
|
|
330
572
|
mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
|
|
@@ -368,28 +610,37 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
368
610
|
id: z.ZodString;
|
|
369
611
|
observed: z.ZodOptional<z.ZodString>;
|
|
370
612
|
}, "strip", z.ZodTypeAny, {
|
|
371
|
-
id: string;
|
|
372
613
|
kind: string;
|
|
614
|
+
id: string;
|
|
373
615
|
name: string;
|
|
374
616
|
observed?: string | undefined;
|
|
375
617
|
}, {
|
|
376
|
-
id: string;
|
|
377
618
|
kind: string;
|
|
619
|
+
id: string;
|
|
378
620
|
name: string;
|
|
379
621
|
observed?: string | undefined;
|
|
380
622
|
}>>;
|
|
381
623
|
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
624
|
label: z.ZodString;
|
|
383
|
-
before: z.ZodOptional<z.
|
|
384
|
-
after: z.ZodString
|
|
625
|
+
before: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
626
|
+
after: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
627
|
+
beforeDisplay: z.ZodOptional<z.ZodString>;
|
|
628
|
+
afterDisplay: z.ZodOptional<z.ZodString>;
|
|
629
|
+
format: z.ZodOptional<z.ZodEnum<["text", "json", "timestamp"]>>;
|
|
385
630
|
}, "strip", z.ZodTypeAny, {
|
|
386
631
|
label: string;
|
|
387
|
-
after: string;
|
|
388
|
-
before?: string | null | undefined;
|
|
632
|
+
after: string | number | boolean | null;
|
|
633
|
+
before?: string | number | boolean | null | undefined;
|
|
634
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
635
|
+
beforeDisplay?: string | undefined;
|
|
636
|
+
afterDisplay?: string | undefined;
|
|
389
637
|
}, {
|
|
390
638
|
label: string;
|
|
391
|
-
after: string;
|
|
392
|
-
before?: string | null | undefined;
|
|
639
|
+
after: string | number | boolean | null;
|
|
640
|
+
before?: string | number | boolean | null | undefined;
|
|
641
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
642
|
+
beforeDisplay?: string | undefined;
|
|
643
|
+
afterDisplay?: string | undefined;
|
|
393
644
|
}>, "many">>;
|
|
394
645
|
conversation: z.ZodOptional<z.ZodObject<{
|
|
395
646
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -397,15 +648,15 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
397
648
|
speaker: z.ZodOptional<z.ZodString>;
|
|
398
649
|
assistant: z.ZodOptional<z.ZodBoolean>;
|
|
399
650
|
}, "strip", z.ZodTypeAny, {
|
|
400
|
-
sessionId?: string | undefined;
|
|
401
651
|
speaker?: string | undefined;
|
|
402
|
-
|
|
652
|
+
sessionId?: string | undefined;
|
|
403
653
|
assistant?: boolean | undefined;
|
|
654
|
+
turn?: string | undefined;
|
|
404
655
|
}, {
|
|
405
|
-
sessionId?: string | undefined;
|
|
406
656
|
speaker?: string | undefined;
|
|
407
|
-
|
|
657
|
+
sessionId?: string | undefined;
|
|
408
658
|
assistant?: boolean | undefined;
|
|
659
|
+
turn?: string | undefined;
|
|
409
660
|
}>>;
|
|
410
661
|
file: z.ZodOptional<z.ZodObject<{
|
|
411
662
|
title: z.ZodString;
|
|
@@ -423,59 +674,57 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
423
674
|
by: z.ZodOptional<z.ZodString>;
|
|
424
675
|
requestId: z.ZodOptional<z.ZodString>;
|
|
425
676
|
}, "strict", z.ZodTypeAny, {
|
|
426
|
-
kind: "object" | "
|
|
677
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
427
678
|
contract: "stacklink.memory.evidence.v1";
|
|
428
679
|
availability: "unknown" | "available" | "deleted";
|
|
429
680
|
object?: {
|
|
430
|
-
id: string;
|
|
431
681
|
kind: string;
|
|
682
|
+
id: string;
|
|
432
683
|
name: string;
|
|
433
684
|
observed?: string | undefined;
|
|
434
685
|
} | undefined;
|
|
435
|
-
channel?: string | undefined;
|
|
436
|
-
fields?: {
|
|
437
|
-
label: string;
|
|
438
|
-
after: string;
|
|
439
|
-
before?: string | null | undefined;
|
|
440
|
-
}[] | undefined;
|
|
441
686
|
file?: {
|
|
442
687
|
title: string;
|
|
443
688
|
section?: string | undefined;
|
|
444
689
|
edited?: string | undefined;
|
|
445
690
|
} | undefined;
|
|
691
|
+
channel?: string | undefined;
|
|
446
692
|
from?: {
|
|
447
693
|
name: string;
|
|
448
694
|
address?: string | undefined;
|
|
449
695
|
} | undefined;
|
|
450
696
|
requestId?: string | undefined;
|
|
451
697
|
conversation?: {
|
|
452
|
-
sessionId?: string | undefined;
|
|
453
698
|
speaker?: string | undefined;
|
|
454
|
-
|
|
699
|
+
sessionId?: string | undefined;
|
|
455
700
|
assistant?: boolean | undefined;
|
|
701
|
+
turn?: string | undefined;
|
|
456
702
|
} | undefined;
|
|
457
703
|
href?: string | undefined;
|
|
458
704
|
subject?: string | undefined;
|
|
705
|
+
fields?: {
|
|
706
|
+
label: string;
|
|
707
|
+
after: string | number | boolean | null;
|
|
708
|
+
before?: string | number | boolean | null | undefined;
|
|
709
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
710
|
+
beforeDisplay?: string | undefined;
|
|
711
|
+
afterDisplay?: string | undefined;
|
|
712
|
+
}[] | undefined;
|
|
459
713
|
by?: string | undefined;
|
|
460
714
|
}, {
|
|
461
|
-
kind: "object" | "
|
|
715
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
462
716
|
object?: {
|
|
463
|
-
id: string;
|
|
464
717
|
kind: string;
|
|
718
|
+
id: string;
|
|
465
719
|
name: string;
|
|
466
720
|
observed?: string | undefined;
|
|
467
721
|
} | undefined;
|
|
468
|
-
channel?: string | undefined;
|
|
469
|
-
fields?: {
|
|
470
|
-
label: string;
|
|
471
|
-
after: string;
|
|
472
|
-
before?: string | null | undefined;
|
|
473
|
-
}[] | undefined;
|
|
474
722
|
file?: {
|
|
475
723
|
title: string;
|
|
476
724
|
section?: string | undefined;
|
|
477
725
|
edited?: string | undefined;
|
|
478
726
|
} | undefined;
|
|
727
|
+
channel?: string | undefined;
|
|
479
728
|
from?: {
|
|
480
729
|
name: string;
|
|
481
730
|
address?: string | undefined;
|
|
@@ -483,89 +732,92 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
483
732
|
requestId?: string | undefined;
|
|
484
733
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
485
734
|
conversation?: {
|
|
486
|
-
sessionId?: string | undefined;
|
|
487
735
|
speaker?: string | undefined;
|
|
488
|
-
|
|
736
|
+
sessionId?: string | undefined;
|
|
489
737
|
assistant?: boolean | undefined;
|
|
738
|
+
turn?: string | undefined;
|
|
490
739
|
} | undefined;
|
|
491
740
|
href?: string | undefined;
|
|
492
741
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
493
742
|
subject?: string | undefined;
|
|
743
|
+
fields?: {
|
|
744
|
+
label: string;
|
|
745
|
+
after: string | number | boolean | null;
|
|
746
|
+
before?: string | number | boolean | null | undefined;
|
|
747
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
748
|
+
beforeDisplay?: string | undefined;
|
|
749
|
+
afterDisplay?: string | undefined;
|
|
750
|
+
}[] | undefined;
|
|
494
751
|
by?: string | undefined;
|
|
495
752
|
}>>;
|
|
496
753
|
}, "strict", z.ZodTypeAny, {
|
|
497
|
-
kind: "provider" | "
|
|
754
|
+
kind: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact";
|
|
498
755
|
externalId?: string | undefined;
|
|
499
|
-
providerKey?: string | undefined;
|
|
500
756
|
connectedAccountId?: string | undefined;
|
|
757
|
+
providerKey?: string | undefined;
|
|
501
758
|
resourceId?: string | undefined;
|
|
502
|
-
resourceType?: string | undefined;
|
|
503
|
-
toolExecutionId?: string | undefined;
|
|
504
|
-
applicationKey?: string | undefined;
|
|
505
759
|
evidence?: {
|
|
506
|
-
kind: "object" | "
|
|
760
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
507
761
|
contract: "stacklink.memory.evidence.v1";
|
|
508
762
|
availability: "unknown" | "available" | "deleted";
|
|
509
763
|
object?: {
|
|
510
|
-
id: string;
|
|
511
764
|
kind: string;
|
|
765
|
+
id: string;
|
|
512
766
|
name: string;
|
|
513
767
|
observed?: string | undefined;
|
|
514
768
|
} | undefined;
|
|
515
|
-
channel?: string | undefined;
|
|
516
|
-
fields?: {
|
|
517
|
-
label: string;
|
|
518
|
-
after: string;
|
|
519
|
-
before?: string | null | undefined;
|
|
520
|
-
}[] | undefined;
|
|
521
769
|
file?: {
|
|
522
770
|
title: string;
|
|
523
771
|
section?: string | undefined;
|
|
524
772
|
edited?: string | undefined;
|
|
525
773
|
} | undefined;
|
|
774
|
+
channel?: string | undefined;
|
|
526
775
|
from?: {
|
|
527
776
|
name: string;
|
|
528
777
|
address?: string | undefined;
|
|
529
778
|
} | undefined;
|
|
530
779
|
requestId?: string | undefined;
|
|
531
780
|
conversation?: {
|
|
532
|
-
sessionId?: string | undefined;
|
|
533
781
|
speaker?: string | undefined;
|
|
534
|
-
|
|
782
|
+
sessionId?: string | undefined;
|
|
535
783
|
assistant?: boolean | undefined;
|
|
784
|
+
turn?: string | undefined;
|
|
536
785
|
} | undefined;
|
|
537
786
|
href?: string | undefined;
|
|
538
787
|
subject?: string | undefined;
|
|
788
|
+
fields?: {
|
|
789
|
+
label: string;
|
|
790
|
+
after: string | number | boolean | null;
|
|
791
|
+
before?: string | number | boolean | null | undefined;
|
|
792
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
793
|
+
beforeDisplay?: string | undefined;
|
|
794
|
+
afterDisplay?: string | undefined;
|
|
795
|
+
}[] | undefined;
|
|
539
796
|
by?: string | undefined;
|
|
540
797
|
} | undefined;
|
|
798
|
+
resourceType?: string | undefined;
|
|
799
|
+
toolExecutionId?: string | undefined;
|
|
800
|
+
applicationKey?: string | undefined;
|
|
541
801
|
}, {
|
|
542
|
-
kind?: "provider" | "
|
|
802
|
+
kind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
543
803
|
externalId?: string | undefined;
|
|
544
|
-
providerKey?: string | undefined;
|
|
545
804
|
connectedAccountId?: string | undefined;
|
|
805
|
+
providerKey?: string | undefined;
|
|
546
806
|
resourceId?: string | undefined;
|
|
547
|
-
resourceType?: string | undefined;
|
|
548
|
-
toolExecutionId?: string | undefined;
|
|
549
|
-
applicationKey?: string | undefined;
|
|
550
807
|
evidence?: {
|
|
551
|
-
kind: "object" | "
|
|
808
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
552
809
|
object?: {
|
|
553
|
-
id: string;
|
|
554
810
|
kind: string;
|
|
811
|
+
id: string;
|
|
555
812
|
name: string;
|
|
556
813
|
observed?: string | undefined;
|
|
557
814
|
} | undefined;
|
|
558
|
-
channel?: string | undefined;
|
|
559
|
-
fields?: {
|
|
560
|
-
label: string;
|
|
561
|
-
after: string;
|
|
562
|
-
before?: string | null | undefined;
|
|
563
|
-
}[] | undefined;
|
|
564
815
|
file?: {
|
|
565
816
|
title: string;
|
|
566
817
|
section?: string | undefined;
|
|
567
818
|
edited?: string | undefined;
|
|
568
819
|
} | undefined;
|
|
820
|
+
channel?: string | undefined;
|
|
569
821
|
from?: {
|
|
570
822
|
name: string;
|
|
571
823
|
address?: string | undefined;
|
|
@@ -573,16 +825,27 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
573
825
|
requestId?: string | undefined;
|
|
574
826
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
575
827
|
conversation?: {
|
|
576
|
-
sessionId?: string | undefined;
|
|
577
828
|
speaker?: string | undefined;
|
|
578
|
-
|
|
829
|
+
sessionId?: string | undefined;
|
|
579
830
|
assistant?: boolean | undefined;
|
|
831
|
+
turn?: string | undefined;
|
|
580
832
|
} | undefined;
|
|
581
833
|
href?: string | undefined;
|
|
582
834
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
583
835
|
subject?: string | undefined;
|
|
836
|
+
fields?: {
|
|
837
|
+
label: string;
|
|
838
|
+
after: string | number | boolean | null;
|
|
839
|
+
before?: string | number | boolean | null | undefined;
|
|
840
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
841
|
+
beforeDisplay?: string | undefined;
|
|
842
|
+
afterDisplay?: string | undefined;
|
|
843
|
+
}[] | undefined;
|
|
584
844
|
by?: string | undefined;
|
|
585
845
|
} | undefined;
|
|
846
|
+
resourceType?: string | undefined;
|
|
847
|
+
toolExecutionId?: string | undefined;
|
|
848
|
+
applicationKey?: string | undefined;
|
|
586
849
|
}>>;
|
|
587
850
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
588
851
|
policyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -604,110 +867,107 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
604
867
|
}>>;
|
|
605
868
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
606
869
|
}, "strip", z.ZodTypeAny, {
|
|
870
|
+
kind: "block" | "fact" | "episode" | "profile_item";
|
|
607
871
|
source: {
|
|
608
|
-
kind: "provider" | "
|
|
872
|
+
kind: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact";
|
|
609
873
|
externalId?: string | undefined;
|
|
610
|
-
providerKey?: string | undefined;
|
|
611
874
|
connectedAccountId?: string | undefined;
|
|
875
|
+
providerKey?: string | undefined;
|
|
612
876
|
resourceId?: string | undefined;
|
|
613
|
-
resourceType?: string | undefined;
|
|
614
|
-
toolExecutionId?: string | undefined;
|
|
615
|
-
applicationKey?: string | undefined;
|
|
616
877
|
evidence?: {
|
|
617
|
-
kind: "object" | "
|
|
878
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
618
879
|
contract: "stacklink.memory.evidence.v1";
|
|
619
880
|
availability: "unknown" | "available" | "deleted";
|
|
620
881
|
object?: {
|
|
621
|
-
id: string;
|
|
622
882
|
kind: string;
|
|
883
|
+
id: string;
|
|
623
884
|
name: string;
|
|
624
885
|
observed?: string | undefined;
|
|
625
886
|
} | undefined;
|
|
626
|
-
channel?: string | undefined;
|
|
627
|
-
fields?: {
|
|
628
|
-
label: string;
|
|
629
|
-
after: string;
|
|
630
|
-
before?: string | null | undefined;
|
|
631
|
-
}[] | undefined;
|
|
632
887
|
file?: {
|
|
633
888
|
title: string;
|
|
634
889
|
section?: string | undefined;
|
|
635
890
|
edited?: string | undefined;
|
|
636
891
|
} | undefined;
|
|
892
|
+
channel?: string | undefined;
|
|
637
893
|
from?: {
|
|
638
894
|
name: string;
|
|
639
895
|
address?: string | undefined;
|
|
640
896
|
} | undefined;
|
|
641
897
|
requestId?: string | undefined;
|
|
642
898
|
conversation?: {
|
|
643
|
-
sessionId?: string | undefined;
|
|
644
899
|
speaker?: string | undefined;
|
|
645
|
-
|
|
900
|
+
sessionId?: string | undefined;
|
|
646
901
|
assistant?: boolean | undefined;
|
|
902
|
+
turn?: string | undefined;
|
|
647
903
|
} | undefined;
|
|
648
904
|
href?: string | undefined;
|
|
649
905
|
subject?: string | undefined;
|
|
906
|
+
fields?: {
|
|
907
|
+
label: string;
|
|
908
|
+
after: string | number | boolean | null;
|
|
909
|
+
before?: string | number | boolean | null | undefined;
|
|
910
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
911
|
+
beforeDisplay?: string | undefined;
|
|
912
|
+
afterDisplay?: string | undefined;
|
|
913
|
+
}[] | undefined;
|
|
650
914
|
by?: string | undefined;
|
|
651
915
|
} | undefined;
|
|
916
|
+
resourceType?: string | undefined;
|
|
917
|
+
toolExecutionId?: string | undefined;
|
|
918
|
+
applicationKey?: string | undefined;
|
|
652
919
|
};
|
|
653
|
-
kind: "block" | "fact" | "episode" | "profile_item";
|
|
654
|
-
mode: "exact" | "extract";
|
|
655
920
|
metadata: Record<string, unknown>;
|
|
656
921
|
content: string;
|
|
922
|
+
mode: "exact" | "extract";
|
|
657
923
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
658
924
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
659
925
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
660
926
|
topicTags: string[];
|
|
661
927
|
tenantId?: string | undefined;
|
|
662
928
|
sessionId?: string | undefined;
|
|
663
|
-
|
|
664
|
-
title?: string | undefined;
|
|
665
|
-
idempotencyKey?: string | undefined;
|
|
929
|
+
policyKey?: string | undefined;
|
|
666
930
|
validFrom?: string | undefined;
|
|
667
931
|
validTo?: string | undefined;
|
|
668
|
-
externalTenantId?: string | undefined;
|
|
669
|
-
subjects?: {
|
|
670
|
-
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
671
|
-
externalId: string;
|
|
672
|
-
}[] | undefined;
|
|
673
|
-
policyKey?: string | undefined;
|
|
674
932
|
consent?: {
|
|
675
933
|
status: "granted";
|
|
676
934
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
677
935
|
recordedAt: string;
|
|
678
936
|
reference?: string | undefined;
|
|
679
937
|
} | undefined;
|
|
938
|
+
idempotencyKey?: string | undefined;
|
|
939
|
+
externalTenantId?: string | undefined;
|
|
940
|
+
title?: string | undefined;
|
|
941
|
+
subjects?: {
|
|
942
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
943
|
+
externalId: string;
|
|
944
|
+
}[] | undefined;
|
|
945
|
+
language?: string | undefined;
|
|
680
946
|
occurredAt?: string | undefined;
|
|
681
947
|
}, {
|
|
682
948
|
content: string;
|
|
949
|
+
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
950
|
+
tenantId?: string | undefined;
|
|
683
951
|
source?: {
|
|
684
|
-
kind?: "provider" | "
|
|
952
|
+
kind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
685
953
|
externalId?: string | undefined;
|
|
686
|
-
providerKey?: string | undefined;
|
|
687
954
|
connectedAccountId?: string | undefined;
|
|
955
|
+
providerKey?: string | undefined;
|
|
688
956
|
resourceId?: string | undefined;
|
|
689
|
-
resourceType?: string | undefined;
|
|
690
|
-
toolExecutionId?: string | undefined;
|
|
691
|
-
applicationKey?: string | undefined;
|
|
692
957
|
evidence?: {
|
|
693
|
-
kind: "object" | "
|
|
958
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
694
959
|
object?: {
|
|
695
|
-
id: string;
|
|
696
960
|
kind: string;
|
|
961
|
+
id: string;
|
|
697
962
|
name: string;
|
|
698
963
|
observed?: string | undefined;
|
|
699
964
|
} | undefined;
|
|
700
|
-
channel?: string | undefined;
|
|
701
|
-
fields?: {
|
|
702
|
-
label: string;
|
|
703
|
-
after: string;
|
|
704
|
-
before?: string | null | undefined;
|
|
705
|
-
}[] | undefined;
|
|
706
965
|
file?: {
|
|
707
966
|
title: string;
|
|
708
967
|
section?: string | undefined;
|
|
709
968
|
edited?: string | undefined;
|
|
710
969
|
} | undefined;
|
|
970
|
+
channel?: string | undefined;
|
|
711
971
|
from?: {
|
|
712
972
|
name: string;
|
|
713
973
|
address?: string | undefined;
|
|
@@ -715,149 +975,155 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
715
975
|
requestId?: string | undefined;
|
|
716
976
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
717
977
|
conversation?: {
|
|
718
|
-
sessionId?: string | undefined;
|
|
719
978
|
speaker?: string | undefined;
|
|
720
|
-
|
|
979
|
+
sessionId?: string | undefined;
|
|
721
980
|
assistant?: boolean | undefined;
|
|
981
|
+
turn?: string | undefined;
|
|
722
982
|
} | undefined;
|
|
723
983
|
href?: string | undefined;
|
|
724
984
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
725
985
|
subject?: string | undefined;
|
|
986
|
+
fields?: {
|
|
987
|
+
label: string;
|
|
988
|
+
after: string | number | boolean | null;
|
|
989
|
+
before?: string | number | boolean | null | undefined;
|
|
990
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
991
|
+
beforeDisplay?: string | undefined;
|
|
992
|
+
afterDisplay?: string | undefined;
|
|
993
|
+
}[] | undefined;
|
|
726
994
|
by?: string | undefined;
|
|
727
995
|
} | undefined;
|
|
996
|
+
resourceType?: string | undefined;
|
|
997
|
+
toolExecutionId?: string | undefined;
|
|
998
|
+
applicationKey?: string | undefined;
|
|
728
999
|
} | undefined;
|
|
729
|
-
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
730
|
-
tenantId?: string | undefined;
|
|
731
1000
|
sessionId?: string | undefined;
|
|
732
|
-
language?: string | undefined;
|
|
733
|
-
mode?: "exact" | "extract" | undefined;
|
|
734
|
-
title?: string | undefined;
|
|
735
1001
|
metadata?: Record<string, unknown> | undefined;
|
|
736
|
-
|
|
1002
|
+
policyKey?: string | undefined;
|
|
737
1003
|
validFrom?: string | undefined;
|
|
738
1004
|
validTo?: string | undefined;
|
|
1005
|
+
consent?: {
|
|
1006
|
+
status: "granted";
|
|
1007
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1008
|
+
recordedAt: string;
|
|
1009
|
+
reference?: string | undefined;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
idempotencyKey?: string | undefined;
|
|
1012
|
+
mode?: "exact" | "extract" | undefined;
|
|
739
1013
|
externalTenantId?: string | undefined;
|
|
1014
|
+
title?: string | undefined;
|
|
740
1015
|
subjects?: {
|
|
741
|
-
type: "custom" | "
|
|
1016
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
742
1017
|
externalId: string;
|
|
743
1018
|
}[] | undefined;
|
|
744
1019
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
745
1020
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
746
1021
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
747
1022
|
topicTags?: string[] | undefined;
|
|
748
|
-
|
|
749
|
-
consent?: {
|
|
750
|
-
status: "granted";
|
|
751
|
-
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
752
|
-
recordedAt: string;
|
|
753
|
-
reference?: string | undefined;
|
|
754
|
-
} | undefined;
|
|
1023
|
+
language?: string | undefined;
|
|
755
1024
|
occurredAt?: string | undefined;
|
|
756
1025
|
}>, {
|
|
1026
|
+
kind: "block" | "fact" | "episode" | "profile_item";
|
|
757
1027
|
source: {
|
|
758
|
-
kind: "provider" | "
|
|
1028
|
+
kind: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact";
|
|
759
1029
|
externalId?: string | undefined;
|
|
760
|
-
providerKey?: string | undefined;
|
|
761
1030
|
connectedAccountId?: string | undefined;
|
|
1031
|
+
providerKey?: string | undefined;
|
|
762
1032
|
resourceId?: string | undefined;
|
|
763
|
-
resourceType?: string | undefined;
|
|
764
|
-
toolExecutionId?: string | undefined;
|
|
765
|
-
applicationKey?: string | undefined;
|
|
766
1033
|
evidence?: {
|
|
767
|
-
kind: "object" | "
|
|
1034
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
768
1035
|
contract: "stacklink.memory.evidence.v1";
|
|
769
1036
|
availability: "unknown" | "available" | "deleted";
|
|
770
1037
|
object?: {
|
|
771
|
-
id: string;
|
|
772
1038
|
kind: string;
|
|
1039
|
+
id: string;
|
|
773
1040
|
name: string;
|
|
774
1041
|
observed?: string | undefined;
|
|
775
1042
|
} | undefined;
|
|
776
|
-
channel?: string | undefined;
|
|
777
|
-
fields?: {
|
|
778
|
-
label: string;
|
|
779
|
-
after: string;
|
|
780
|
-
before?: string | null | undefined;
|
|
781
|
-
}[] | undefined;
|
|
782
1043
|
file?: {
|
|
783
1044
|
title: string;
|
|
784
1045
|
section?: string | undefined;
|
|
785
1046
|
edited?: string | undefined;
|
|
786
1047
|
} | undefined;
|
|
1048
|
+
channel?: string | undefined;
|
|
787
1049
|
from?: {
|
|
788
1050
|
name: string;
|
|
789
1051
|
address?: string | undefined;
|
|
790
1052
|
} | undefined;
|
|
791
1053
|
requestId?: string | undefined;
|
|
792
1054
|
conversation?: {
|
|
793
|
-
sessionId?: string | undefined;
|
|
794
1055
|
speaker?: string | undefined;
|
|
795
|
-
|
|
1056
|
+
sessionId?: string | undefined;
|
|
796
1057
|
assistant?: boolean | undefined;
|
|
1058
|
+
turn?: string | undefined;
|
|
797
1059
|
} | undefined;
|
|
798
1060
|
href?: string | undefined;
|
|
799
1061
|
subject?: string | undefined;
|
|
1062
|
+
fields?: {
|
|
1063
|
+
label: string;
|
|
1064
|
+
after: string | number | boolean | null;
|
|
1065
|
+
before?: string | number | boolean | null | undefined;
|
|
1066
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
1067
|
+
beforeDisplay?: string | undefined;
|
|
1068
|
+
afterDisplay?: string | undefined;
|
|
1069
|
+
}[] | undefined;
|
|
800
1070
|
by?: string | undefined;
|
|
801
1071
|
} | undefined;
|
|
1072
|
+
resourceType?: string | undefined;
|
|
1073
|
+
toolExecutionId?: string | undefined;
|
|
1074
|
+
applicationKey?: string | undefined;
|
|
802
1075
|
};
|
|
803
|
-
kind: "block" | "fact" | "episode" | "profile_item";
|
|
804
|
-
mode: "exact" | "extract";
|
|
805
1076
|
metadata: Record<string, unknown>;
|
|
806
1077
|
content: string;
|
|
1078
|
+
mode: "exact" | "extract";
|
|
807
1079
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
808
1080
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
809
1081
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
810
1082
|
topicTags: string[];
|
|
811
1083
|
tenantId?: string | undefined;
|
|
812
1084
|
sessionId?: string | undefined;
|
|
813
|
-
|
|
814
|
-
title?: string | undefined;
|
|
815
|
-
idempotencyKey?: string | undefined;
|
|
1085
|
+
policyKey?: string | undefined;
|
|
816
1086
|
validFrom?: string | undefined;
|
|
817
1087
|
validTo?: string | undefined;
|
|
818
|
-
externalTenantId?: string | undefined;
|
|
819
|
-
subjects?: {
|
|
820
|
-
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
821
|
-
externalId: string;
|
|
822
|
-
}[] | undefined;
|
|
823
|
-
policyKey?: string | undefined;
|
|
824
1088
|
consent?: {
|
|
825
1089
|
status: "granted";
|
|
826
1090
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
827
1091
|
recordedAt: string;
|
|
828
1092
|
reference?: string | undefined;
|
|
829
1093
|
} | undefined;
|
|
1094
|
+
idempotencyKey?: string | undefined;
|
|
1095
|
+
externalTenantId?: string | undefined;
|
|
1096
|
+
title?: string | undefined;
|
|
1097
|
+
subjects?: {
|
|
1098
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1099
|
+
externalId: string;
|
|
1100
|
+
}[] | undefined;
|
|
1101
|
+
language?: string | undefined;
|
|
830
1102
|
occurredAt?: string | undefined;
|
|
831
1103
|
}, {
|
|
832
1104
|
content: string;
|
|
1105
|
+
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1106
|
+
tenantId?: string | undefined;
|
|
833
1107
|
source?: {
|
|
834
|
-
kind?: "provider" | "
|
|
1108
|
+
kind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
835
1109
|
externalId?: string | undefined;
|
|
836
|
-
providerKey?: string | undefined;
|
|
837
1110
|
connectedAccountId?: string | undefined;
|
|
1111
|
+
providerKey?: string | undefined;
|
|
838
1112
|
resourceId?: string | undefined;
|
|
839
|
-
resourceType?: string | undefined;
|
|
840
|
-
toolExecutionId?: string | undefined;
|
|
841
|
-
applicationKey?: string | undefined;
|
|
842
1113
|
evidence?: {
|
|
843
|
-
kind: "object" | "
|
|
1114
|
+
kind: "object" | "file" | "message" | "unknown" | "email" | "manual" | "api" | "conversation";
|
|
844
1115
|
object?: {
|
|
845
|
-
id: string;
|
|
846
1116
|
kind: string;
|
|
1117
|
+
id: string;
|
|
847
1118
|
name: string;
|
|
848
1119
|
observed?: string | undefined;
|
|
849
1120
|
} | undefined;
|
|
850
|
-
channel?: string | undefined;
|
|
851
|
-
fields?: {
|
|
852
|
-
label: string;
|
|
853
|
-
after: string;
|
|
854
|
-
before?: string | null | undefined;
|
|
855
|
-
}[] | undefined;
|
|
856
1121
|
file?: {
|
|
857
1122
|
title: string;
|
|
858
1123
|
section?: string | undefined;
|
|
859
1124
|
edited?: string | undefined;
|
|
860
1125
|
} | undefined;
|
|
1126
|
+
channel?: string | undefined;
|
|
861
1127
|
from?: {
|
|
862
1128
|
name: string;
|
|
863
1129
|
address?: string | undefined;
|
|
@@ -865,43 +1131,52 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
865
1131
|
requestId?: string | undefined;
|
|
866
1132
|
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
867
1133
|
conversation?: {
|
|
868
|
-
sessionId?: string | undefined;
|
|
869
1134
|
speaker?: string | undefined;
|
|
870
|
-
|
|
1135
|
+
sessionId?: string | undefined;
|
|
871
1136
|
assistant?: boolean | undefined;
|
|
1137
|
+
turn?: string | undefined;
|
|
872
1138
|
} | undefined;
|
|
873
1139
|
href?: string | undefined;
|
|
874
1140
|
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
875
1141
|
subject?: string | undefined;
|
|
1142
|
+
fields?: {
|
|
1143
|
+
label: string;
|
|
1144
|
+
after: string | number | boolean | null;
|
|
1145
|
+
before?: string | number | boolean | null | undefined;
|
|
1146
|
+
format?: "json" | "text" | "timestamp" | undefined;
|
|
1147
|
+
beforeDisplay?: string | undefined;
|
|
1148
|
+
afterDisplay?: string | undefined;
|
|
1149
|
+
}[] | undefined;
|
|
876
1150
|
by?: string | undefined;
|
|
877
1151
|
} | undefined;
|
|
1152
|
+
resourceType?: string | undefined;
|
|
1153
|
+
toolExecutionId?: string | undefined;
|
|
1154
|
+
applicationKey?: string | undefined;
|
|
878
1155
|
} | undefined;
|
|
879
|
-
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
880
|
-
tenantId?: string | undefined;
|
|
881
1156
|
sessionId?: string | undefined;
|
|
882
|
-
language?: string | undefined;
|
|
883
|
-
mode?: "exact" | "extract" | undefined;
|
|
884
|
-
title?: string | undefined;
|
|
885
1157
|
metadata?: Record<string, unknown> | undefined;
|
|
886
|
-
|
|
1158
|
+
policyKey?: string | undefined;
|
|
887
1159
|
validFrom?: string | undefined;
|
|
888
1160
|
validTo?: string | undefined;
|
|
1161
|
+
consent?: {
|
|
1162
|
+
status: "granted";
|
|
1163
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1164
|
+
recordedAt: string;
|
|
1165
|
+
reference?: string | undefined;
|
|
1166
|
+
} | undefined;
|
|
1167
|
+
idempotencyKey?: string | undefined;
|
|
1168
|
+
mode?: "exact" | "extract" | undefined;
|
|
889
1169
|
externalTenantId?: string | undefined;
|
|
1170
|
+
title?: string | undefined;
|
|
890
1171
|
subjects?: {
|
|
891
|
-
type: "custom" | "
|
|
1172
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
892
1173
|
externalId: string;
|
|
893
1174
|
}[] | undefined;
|
|
894
1175
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
895
1176
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
896
1177
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
897
1178
|
topicTags?: string[] | undefined;
|
|
898
|
-
|
|
899
|
-
consent?: {
|
|
900
|
-
status: "granted";
|
|
901
|
-
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
902
|
-
recordedAt: string;
|
|
903
|
-
reference?: string | undefined;
|
|
904
|
-
} | undefined;
|
|
1179
|
+
language?: string | undefined;
|
|
905
1180
|
occurredAt?: string | undefined;
|
|
906
1181
|
}>;
|
|
907
1182
|
export type MemoryIngestInput = z.input<typeof memoryIngestInputSchema>;
|
|
@@ -917,10 +1192,10 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
917
1192
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
918
1193
|
externalId: z.ZodString;
|
|
919
1194
|
}, "strict", z.ZodTypeAny, {
|
|
920
|
-
type: "custom" | "
|
|
1195
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
921
1196
|
externalId: string;
|
|
922
1197
|
}, {
|
|
923
|
-
type: "custom" | "
|
|
1198
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
924
1199
|
externalId: string;
|
|
925
1200
|
}>, "many">>;
|
|
926
1201
|
mode: z.ZodDefault<z.ZodEnum<["exact", "extract"]>>;
|
|
@@ -977,6 +1252,7 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
977
1252
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
978
1253
|
}, "strip", z.ZodTypeAny, {
|
|
979
1254
|
kind: "block" | "fact" | "episode" | "profile_item";
|
|
1255
|
+
metadata: Record<string, unknown>;
|
|
980
1256
|
input: {
|
|
981
1257
|
type: "file";
|
|
982
1258
|
mediaType: string;
|
|
@@ -987,30 +1263,29 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
987
1263
|
url: string;
|
|
988
1264
|
};
|
|
989
1265
|
mode: "exact" | "extract";
|
|
990
|
-
metadata: Record<string, unknown>;
|
|
991
1266
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
992
1267
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
993
1268
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
994
1269
|
topicTags: string[];
|
|
995
1270
|
tenantId?: string | undefined;
|
|
996
1271
|
sessionId?: string | undefined;
|
|
997
|
-
|
|
998
|
-
title?: string | undefined;
|
|
999
|
-
idempotencyKey?: string | undefined;
|
|
1272
|
+
policyKey?: string | undefined;
|
|
1000
1273
|
validFrom?: string | undefined;
|
|
1001
1274
|
validTo?: string | undefined;
|
|
1002
|
-
externalTenantId?: string | undefined;
|
|
1003
|
-
subjects?: {
|
|
1004
|
-
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
1005
|
-
externalId: string;
|
|
1006
|
-
}[] | undefined;
|
|
1007
|
-
policyKey?: string | undefined;
|
|
1008
1275
|
consent?: {
|
|
1009
1276
|
status: "granted";
|
|
1010
1277
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1011
1278
|
recordedAt: string;
|
|
1012
1279
|
reference?: string | undefined;
|
|
1013
1280
|
} | undefined;
|
|
1281
|
+
idempotencyKey?: string | undefined;
|
|
1282
|
+
externalTenantId?: string | undefined;
|
|
1283
|
+
title?: string | undefined;
|
|
1284
|
+
subjects?: {
|
|
1285
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1286
|
+
externalId: string;
|
|
1287
|
+
}[] | undefined;
|
|
1288
|
+
language?: string | undefined;
|
|
1014
1289
|
occurredAt?: string | undefined;
|
|
1015
1290
|
}, {
|
|
1016
1291
|
input: {
|
|
@@ -1025,32 +1300,33 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1025
1300
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1026
1301
|
tenantId?: string | undefined;
|
|
1027
1302
|
sessionId?: string | undefined;
|
|
1028
|
-
language?: string | undefined;
|
|
1029
|
-
mode?: "exact" | "extract" | undefined;
|
|
1030
|
-
title?: string | undefined;
|
|
1031
1303
|
metadata?: Record<string, unknown> | undefined;
|
|
1032
|
-
|
|
1304
|
+
policyKey?: string | undefined;
|
|
1033
1305
|
validFrom?: string | undefined;
|
|
1034
1306
|
validTo?: string | undefined;
|
|
1307
|
+
consent?: {
|
|
1308
|
+
status: "granted";
|
|
1309
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1310
|
+
recordedAt: string;
|
|
1311
|
+
reference?: string | undefined;
|
|
1312
|
+
} | undefined;
|
|
1313
|
+
idempotencyKey?: string | undefined;
|
|
1314
|
+
mode?: "exact" | "extract" | undefined;
|
|
1035
1315
|
externalTenantId?: string | undefined;
|
|
1316
|
+
title?: string | undefined;
|
|
1036
1317
|
subjects?: {
|
|
1037
|
-
type: "custom" | "
|
|
1318
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1038
1319
|
externalId: string;
|
|
1039
1320
|
}[] | undefined;
|
|
1040
1321
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1041
1322
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1042
1323
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1043
1324
|
topicTags?: string[] | undefined;
|
|
1044
|
-
|
|
1045
|
-
consent?: {
|
|
1046
|
-
status: "granted";
|
|
1047
|
-
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1048
|
-
recordedAt: string;
|
|
1049
|
-
reference?: string | undefined;
|
|
1050
|
-
} | undefined;
|
|
1325
|
+
language?: string | undefined;
|
|
1051
1326
|
occurredAt?: string | undefined;
|
|
1052
1327
|
}>, {
|
|
1053
1328
|
kind: "block" | "fact" | "episode" | "profile_item";
|
|
1329
|
+
metadata: Record<string, unknown>;
|
|
1054
1330
|
input: {
|
|
1055
1331
|
type: "file";
|
|
1056
1332
|
mediaType: string;
|
|
@@ -1061,30 +1337,29 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1061
1337
|
url: string;
|
|
1062
1338
|
};
|
|
1063
1339
|
mode: "exact" | "extract";
|
|
1064
|
-
metadata: Record<string, unknown>;
|
|
1065
1340
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1066
1341
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1067
1342
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1068
1343
|
topicTags: string[];
|
|
1069
1344
|
tenantId?: string | undefined;
|
|
1070
1345
|
sessionId?: string | undefined;
|
|
1071
|
-
|
|
1072
|
-
title?: string | undefined;
|
|
1073
|
-
idempotencyKey?: string | undefined;
|
|
1346
|
+
policyKey?: string | undefined;
|
|
1074
1347
|
validFrom?: string | undefined;
|
|
1075
1348
|
validTo?: string | undefined;
|
|
1076
|
-
externalTenantId?: string | undefined;
|
|
1077
|
-
subjects?: {
|
|
1078
|
-
type: "custom" | "run" | "user" | "agent" | "tenant" | "application";
|
|
1079
|
-
externalId: string;
|
|
1080
|
-
}[] | undefined;
|
|
1081
|
-
policyKey?: string | undefined;
|
|
1082
1349
|
consent?: {
|
|
1083
1350
|
status: "granted";
|
|
1084
1351
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1085
1352
|
recordedAt: string;
|
|
1086
1353
|
reference?: string | undefined;
|
|
1087
1354
|
} | undefined;
|
|
1355
|
+
idempotencyKey?: string | undefined;
|
|
1356
|
+
externalTenantId?: string | undefined;
|
|
1357
|
+
title?: string | undefined;
|
|
1358
|
+
subjects?: {
|
|
1359
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1360
|
+
externalId: string;
|
|
1361
|
+
}[] | undefined;
|
|
1362
|
+
language?: string | undefined;
|
|
1088
1363
|
occurredAt?: string | undefined;
|
|
1089
1364
|
}, {
|
|
1090
1365
|
input: {
|
|
@@ -1099,29 +1374,29 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1099
1374
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1100
1375
|
tenantId?: string | undefined;
|
|
1101
1376
|
sessionId?: string | undefined;
|
|
1102
|
-
language?: string | undefined;
|
|
1103
|
-
mode?: "exact" | "extract" | undefined;
|
|
1104
|
-
title?: string | undefined;
|
|
1105
1377
|
metadata?: Record<string, unknown> | undefined;
|
|
1106
|
-
|
|
1378
|
+
policyKey?: string | undefined;
|
|
1107
1379
|
validFrom?: string | undefined;
|
|
1108
1380
|
validTo?: string | undefined;
|
|
1381
|
+
consent?: {
|
|
1382
|
+
status: "granted";
|
|
1383
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1384
|
+
recordedAt: string;
|
|
1385
|
+
reference?: string | undefined;
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
idempotencyKey?: string | undefined;
|
|
1388
|
+
mode?: "exact" | "extract" | undefined;
|
|
1109
1389
|
externalTenantId?: string | undefined;
|
|
1390
|
+
title?: string | undefined;
|
|
1110
1391
|
subjects?: {
|
|
1111
|
-
type: "custom" | "
|
|
1392
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1112
1393
|
externalId: string;
|
|
1113
1394
|
}[] | undefined;
|
|
1114
1395
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1115
1396
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1116
1397
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1117
1398
|
topicTags?: string[] | undefined;
|
|
1118
|
-
|
|
1119
|
-
consent?: {
|
|
1120
|
-
status: "granted";
|
|
1121
|
-
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1122
|
-
recordedAt: string;
|
|
1123
|
-
reference?: string | undefined;
|
|
1124
|
-
} | undefined;
|
|
1399
|
+
language?: string | undefined;
|
|
1125
1400
|
occurredAt?: string | undefined;
|
|
1126
1401
|
}>;
|
|
1127
1402
|
export type MemoryRichIngestInput = z.input<typeof memoryRichIngestInputSchema>;
|
|
@@ -1139,10 +1414,10 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1139
1414
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
1140
1415
|
externalId: z.ZodString;
|
|
1141
1416
|
}, "strict", z.ZodTypeAny, {
|
|
1142
|
-
type: "custom" | "
|
|
1417
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1143
1418
|
externalId: string;
|
|
1144
1419
|
}, {
|
|
1145
|
-
type: "custom" | "
|
|
1420
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1146
1421
|
externalId: string;
|
|
1147
1422
|
}>, "many">>;
|
|
1148
1423
|
query: z.ZodString;
|
|
@@ -1172,7 +1447,7 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1172
1447
|
recordedAt?: string | undefined;
|
|
1173
1448
|
externalTenantId?: string | undefined;
|
|
1174
1449
|
subjects?: {
|
|
1175
|
-
type: "custom" | "
|
|
1450
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1176
1451
|
externalId: string;
|
|
1177
1452
|
}[] | undefined;
|
|
1178
1453
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1192,7 +1467,7 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1192
1467
|
recordedAt?: string | undefined;
|
|
1193
1468
|
externalTenantId?: string | undefined;
|
|
1194
1469
|
subjects?: {
|
|
1195
|
-
type: "custom" | "
|
|
1470
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1196
1471
|
externalId: string;
|
|
1197
1472
|
}[] | undefined;
|
|
1198
1473
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1218,7 +1493,7 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1218
1493
|
recordedAt?: string | undefined;
|
|
1219
1494
|
externalTenantId?: string | undefined;
|
|
1220
1495
|
subjects?: {
|
|
1221
|
-
type: "custom" | "
|
|
1496
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1222
1497
|
externalId: string;
|
|
1223
1498
|
}[] | undefined;
|
|
1224
1499
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1238,7 +1513,7 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1238
1513
|
recordedAt?: string | undefined;
|
|
1239
1514
|
externalTenantId?: string | undefined;
|
|
1240
1515
|
subjects?: {
|
|
1241
|
-
type: "custom" | "
|
|
1516
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1242
1517
|
externalId: string;
|
|
1243
1518
|
}[] | undefined;
|
|
1244
1519
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1263,10 +1538,10 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1263
1538
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
1264
1539
|
externalId: z.ZodString;
|
|
1265
1540
|
}, "strict", z.ZodTypeAny, {
|
|
1266
|
-
type: "custom" | "
|
|
1541
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1267
1542
|
externalId: string;
|
|
1268
1543
|
}, {
|
|
1269
|
-
type: "custom" | "
|
|
1544
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1270
1545
|
externalId: string;
|
|
1271
1546
|
}>, "many">>;
|
|
1272
1547
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
|
|
@@ -1297,14 +1572,14 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1297
1572
|
includeGraph: boolean;
|
|
1298
1573
|
includeSourceRefs: boolean;
|
|
1299
1574
|
includeRecentEpisodes: boolean;
|
|
1300
|
-
promptFormat: "
|
|
1575
|
+
promptFormat: "markdown" | "text";
|
|
1301
1576
|
tenantId?: string | undefined;
|
|
1302
1577
|
sessionId?: string | undefined;
|
|
1303
1578
|
kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
|
|
1304
1579
|
recordedAt?: string | undefined;
|
|
1305
1580
|
externalTenantId?: string | undefined;
|
|
1306
1581
|
subjects?: {
|
|
1307
|
-
type: "custom" | "
|
|
1582
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1308
1583
|
externalId: string;
|
|
1309
1584
|
}[] | undefined;
|
|
1310
1585
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1327,7 +1602,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1327
1602
|
recordedAt?: string | undefined;
|
|
1328
1603
|
externalTenantId?: string | undefined;
|
|
1329
1604
|
subjects?: {
|
|
1330
|
-
type: "custom" | "
|
|
1605
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1331
1606
|
externalId: string;
|
|
1332
1607
|
}[] | undefined;
|
|
1333
1608
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1345,7 +1620,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1345
1620
|
includeProfile?: boolean | undefined;
|
|
1346
1621
|
includeBlocks?: boolean | undefined;
|
|
1347
1622
|
includeRecentEpisodes?: boolean | undefined;
|
|
1348
|
-
promptFormat?: "
|
|
1623
|
+
promptFormat?: "markdown" | "text" | undefined;
|
|
1349
1624
|
}>, {
|
|
1350
1625
|
limit: number;
|
|
1351
1626
|
query: string;
|
|
@@ -1353,14 +1628,14 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1353
1628
|
includeGraph: boolean;
|
|
1354
1629
|
includeSourceRefs: boolean;
|
|
1355
1630
|
includeRecentEpisodes: boolean;
|
|
1356
|
-
promptFormat: "
|
|
1631
|
+
promptFormat: "markdown" | "text";
|
|
1357
1632
|
tenantId?: string | undefined;
|
|
1358
1633
|
sessionId?: string | undefined;
|
|
1359
1634
|
kinds?: ("block" | "fact" | "episode" | "profile_item")[] | undefined;
|
|
1360
1635
|
recordedAt?: string | undefined;
|
|
1361
1636
|
externalTenantId?: string | undefined;
|
|
1362
1637
|
subjects?: {
|
|
1363
|
-
type: "custom" | "
|
|
1638
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1364
1639
|
externalId: string;
|
|
1365
1640
|
}[] | undefined;
|
|
1366
1641
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1383,7 +1658,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1383
1658
|
recordedAt?: string | undefined;
|
|
1384
1659
|
externalTenantId?: string | undefined;
|
|
1385
1660
|
subjects?: {
|
|
1386
|
-
type: "custom" | "
|
|
1661
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1387
1662
|
externalId: string;
|
|
1388
1663
|
}[] | undefined;
|
|
1389
1664
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -1401,7 +1676,7 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1401
1676
|
includeProfile?: boolean | undefined;
|
|
1402
1677
|
includeBlocks?: boolean | undefined;
|
|
1403
1678
|
includeRecentEpisodes?: boolean | undefined;
|
|
1404
|
-
promptFormat?: "
|
|
1679
|
+
promptFormat?: "markdown" | "text" | undefined;
|
|
1405
1680
|
}>;
|
|
1406
1681
|
export type MemoryContextInput = z.input<typeof memoryContextInputSchema>;
|
|
1407
1682
|
export type ParsedMemoryContextInput = z.output<typeof memoryContextInputSchema>;
|
|
@@ -1424,9 +1699,9 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1424
1699
|
cursor?: string | undefined;
|
|
1425
1700
|
state?: "current" | "conflicted" | undefined;
|
|
1426
1701
|
externalTenantId?: string | undefined;
|
|
1427
|
-
subjectType?: "custom" | "
|
|
1702
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1428
1703
|
externalSubjectId?: string | undefined;
|
|
1429
|
-
sourceKind?: "provider" | "
|
|
1704
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1430
1705
|
}, {
|
|
1431
1706
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1432
1707
|
tenantId?: string | undefined;
|
|
@@ -1435,9 +1710,9 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1435
1710
|
limit?: number | undefined;
|
|
1436
1711
|
state?: "current" | "conflicted" | undefined;
|
|
1437
1712
|
externalTenantId?: string | undefined;
|
|
1438
|
-
subjectType?: "custom" | "
|
|
1713
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1439
1714
|
externalSubjectId?: string | undefined;
|
|
1440
|
-
sourceKind?: "provider" | "
|
|
1715
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1441
1716
|
}>, {
|
|
1442
1717
|
limit: number;
|
|
1443
1718
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
@@ -1446,9 +1721,9 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1446
1721
|
cursor?: string | undefined;
|
|
1447
1722
|
state?: "current" | "conflicted" | undefined;
|
|
1448
1723
|
externalTenantId?: string | undefined;
|
|
1449
|
-
subjectType?: "custom" | "
|
|
1724
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1450
1725
|
externalSubjectId?: string | undefined;
|
|
1451
|
-
sourceKind?: "provider" | "
|
|
1726
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1452
1727
|
}, {
|
|
1453
1728
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1454
1729
|
tenantId?: string | undefined;
|
|
@@ -1457,9 +1732,9 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1457
1732
|
limit?: number | undefined;
|
|
1458
1733
|
state?: "current" | "conflicted" | undefined;
|
|
1459
1734
|
externalTenantId?: string | undefined;
|
|
1460
|
-
subjectType?: "custom" | "
|
|
1735
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1461
1736
|
externalSubjectId?: string | undefined;
|
|
1462
|
-
sourceKind?: "provider" | "
|
|
1737
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1463
1738
|
}>;
|
|
1464
1739
|
export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
1465
1740
|
readonly tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -1478,9 +1753,9 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
|
|
|
1478
1753
|
sessionId?: string | undefined;
|
|
1479
1754
|
cursor?: string | undefined;
|
|
1480
1755
|
externalTenantId?: string | undefined;
|
|
1481
|
-
subjectType?: "custom" | "
|
|
1756
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1482
1757
|
externalSubjectId?: string | undefined;
|
|
1483
|
-
sourceKind?: "provider" | "
|
|
1758
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1484
1759
|
}, {
|
|
1485
1760
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1486
1761
|
tenantId?: string | undefined;
|
|
@@ -1488,9 +1763,9 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
|
|
|
1488
1763
|
cursor?: string | undefined;
|
|
1489
1764
|
limit?: number | undefined;
|
|
1490
1765
|
externalTenantId?: string | undefined;
|
|
1491
|
-
subjectType?: "custom" | "
|
|
1766
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1492
1767
|
externalSubjectId?: string | undefined;
|
|
1493
|
-
sourceKind?: "provider" | "
|
|
1768
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1494
1769
|
}>, {
|
|
1495
1770
|
limit: number;
|
|
1496
1771
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
@@ -1498,9 +1773,9 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
|
|
|
1498
1773
|
sessionId?: string | undefined;
|
|
1499
1774
|
cursor?: string | undefined;
|
|
1500
1775
|
externalTenantId?: string | undefined;
|
|
1501
|
-
subjectType?: "custom" | "
|
|
1776
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1502
1777
|
externalSubjectId?: string | undefined;
|
|
1503
|
-
sourceKind?: "provider" | "
|
|
1778
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1504
1779
|
}, {
|
|
1505
1780
|
kind?: "block" | "fact" | "episode" | "profile_item" | undefined;
|
|
1506
1781
|
tenantId?: string | undefined;
|
|
@@ -1508,9 +1783,9 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
|
|
|
1508
1783
|
cursor?: string | undefined;
|
|
1509
1784
|
limit?: number | undefined;
|
|
1510
1785
|
externalTenantId?: string | undefined;
|
|
1511
|
-
subjectType?: "custom" | "
|
|
1786
|
+
subjectType?: "custom" | "user" | "agent" | "tenant" | "run" | "application" | undefined;
|
|
1512
1787
|
externalSubjectId?: string | undefined;
|
|
1513
|
-
sourceKind?: "provider" | "
|
|
1788
|
+
sourceKind?: "provider" | "tool_execution" | "direct" | "conversation" | "document" | "artifact" | undefined;
|
|
1514
1789
|
}>;
|
|
1515
1790
|
export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1516
1791
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -1527,56 +1802,56 @@ export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1527
1802
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1528
1803
|
}, "strip", z.ZodTypeAny, {
|
|
1529
1804
|
reason?: string | undefined;
|
|
1530
|
-
language?: string | null | undefined;
|
|
1531
|
-
title?: string | null | undefined;
|
|
1532
1805
|
metadata?: Record<string, unknown> | undefined;
|
|
1533
1806
|
content?: string | undefined;
|
|
1534
1807
|
state?: "current" | "conflicted" | undefined;
|
|
1535
1808
|
validFrom?: string | null | undefined;
|
|
1536
1809
|
validTo?: string | null | undefined;
|
|
1810
|
+
title?: string | null | undefined;
|
|
1537
1811
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1538
1812
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1539
1813
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1540
1814
|
topicTags?: string[] | undefined;
|
|
1815
|
+
language?: string | null | undefined;
|
|
1541
1816
|
}, {
|
|
1542
1817
|
reason?: string | undefined;
|
|
1543
|
-
language?: string | null | undefined;
|
|
1544
|
-
title?: string | null | undefined;
|
|
1545
1818
|
metadata?: Record<string, unknown> | undefined;
|
|
1546
1819
|
content?: string | undefined;
|
|
1547
1820
|
state?: "current" | "conflicted" | undefined;
|
|
1548
1821
|
validFrom?: string | null | undefined;
|
|
1549
1822
|
validTo?: string | null | undefined;
|
|
1823
|
+
title?: string | null | undefined;
|
|
1550
1824
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1551
1825
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1552
1826
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1553
1827
|
topicTags?: string[] | undefined;
|
|
1828
|
+
language?: string | null | undefined;
|
|
1554
1829
|
}>, {
|
|
1555
1830
|
reason?: string | undefined;
|
|
1556
|
-
language?: string | null | undefined;
|
|
1557
|
-
title?: string | null | undefined;
|
|
1558
1831
|
metadata?: Record<string, unknown> | undefined;
|
|
1559
1832
|
content?: string | undefined;
|
|
1560
1833
|
state?: "current" | "conflicted" | undefined;
|
|
1561
1834
|
validFrom?: string | null | undefined;
|
|
1562
1835
|
validTo?: string | null | undefined;
|
|
1836
|
+
title?: string | null | undefined;
|
|
1563
1837
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1564
1838
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1565
1839
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1566
1840
|
topicTags?: string[] | undefined;
|
|
1841
|
+
language?: string | null | undefined;
|
|
1567
1842
|
}, {
|
|
1568
1843
|
reason?: string | undefined;
|
|
1569
|
-
language?: string | null | undefined;
|
|
1570
|
-
title?: string | null | undefined;
|
|
1571
1844
|
metadata?: Record<string, unknown> | undefined;
|
|
1572
1845
|
content?: string | undefined;
|
|
1573
1846
|
state?: "current" | "conflicted" | undefined;
|
|
1574
1847
|
validFrom?: string | null | undefined;
|
|
1575
1848
|
validTo?: string | null | undefined;
|
|
1849
|
+
title?: string | null | undefined;
|
|
1576
1850
|
memoryType?: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
1577
1851
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
1578
1852
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1579
1853
|
topicTags?: string[] | undefined;
|
|
1854
|
+
language?: string | null | undefined;
|
|
1580
1855
|
}>;
|
|
1581
1856
|
export type MemoryRecordUpdateInput = z.infer<typeof memoryRecordUpdateInputSchema>;
|
|
1582
1857
|
export declare const memoryQualityReviewDispositions: readonly ["keep", "correct", "convert_to_episode", "restrict"];
|
|
@@ -1646,12 +1921,12 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1646
1921
|
}, "strict", z.ZodTypeAny, {
|
|
1647
1922
|
reason: string;
|
|
1648
1923
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
1924
|
+
salience: "low" | "medium" | "high";
|
|
1925
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1649
1926
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1650
1927
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1651
1928
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1652
|
-
disposition: "
|
|
1653
|
-
salience: "medium" | "low" | "high";
|
|
1654
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
1929
|
+
disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
|
|
1655
1930
|
actorEntity: {
|
|
1656
1931
|
canonicalKey: string;
|
|
1657
1932
|
entityType: string;
|
|
@@ -1664,20 +1939,20 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1664
1939
|
attributes: Record<string, unknown>;
|
|
1665
1940
|
displayName?: string | null | undefined;
|
|
1666
1941
|
};
|
|
1667
|
-
language?: string | null | undefined;
|
|
1668
|
-
title?: string | null | undefined;
|
|
1669
1942
|
content?: string | undefined;
|
|
1670
1943
|
validFrom?: string | null | undefined;
|
|
1671
1944
|
validTo?: string | null | undefined;
|
|
1945
|
+
title?: string | null | undefined;
|
|
1672
1946
|
topicTags?: string[] | undefined;
|
|
1947
|
+
language?: string | null | undefined;
|
|
1673
1948
|
}, {
|
|
1674
1949
|
reason: string;
|
|
1675
1950
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
1951
|
+
salience: "low" | "medium" | "high";
|
|
1952
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1676
1953
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1677
1954
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1678
|
-
disposition: "
|
|
1679
|
-
salience: "medium" | "low" | "high";
|
|
1680
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
1955
|
+
disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
|
|
1681
1956
|
actorEntity: {
|
|
1682
1957
|
canonicalKey: string;
|
|
1683
1958
|
entityType: string;
|
|
@@ -1690,22 +1965,22 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1690
1965
|
displayName?: string | null | undefined;
|
|
1691
1966
|
attributes?: Record<string, unknown> | undefined;
|
|
1692
1967
|
};
|
|
1693
|
-
language?: string | null | undefined;
|
|
1694
|
-
title?: string | null | undefined;
|
|
1695
1968
|
content?: string | undefined;
|
|
1696
1969
|
validFrom?: string | null | undefined;
|
|
1697
1970
|
validTo?: string | null | undefined;
|
|
1971
|
+
title?: string | null | undefined;
|
|
1698
1972
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1699
1973
|
topicTags?: string[] | undefined;
|
|
1974
|
+
language?: string | null | undefined;
|
|
1700
1975
|
}>, {
|
|
1701
1976
|
reason: string;
|
|
1702
1977
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
1978
|
+
salience: "low" | "medium" | "high";
|
|
1979
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1703
1980
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1704
1981
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1705
1982
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1706
|
-
disposition: "
|
|
1707
|
-
salience: "medium" | "low" | "high";
|
|
1708
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
1983
|
+
disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
|
|
1709
1984
|
actorEntity: {
|
|
1710
1985
|
canonicalKey: string;
|
|
1711
1986
|
entityType: string;
|
|
@@ -1718,20 +1993,20 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1718
1993
|
attributes: Record<string, unknown>;
|
|
1719
1994
|
displayName?: string | null | undefined;
|
|
1720
1995
|
};
|
|
1721
|
-
language?: string | null | undefined;
|
|
1722
|
-
title?: string | null | undefined;
|
|
1723
1996
|
content?: string | undefined;
|
|
1724
1997
|
validFrom?: string | null | undefined;
|
|
1725
1998
|
validTo?: string | null | undefined;
|
|
1999
|
+
title?: string | null | undefined;
|
|
1726
2000
|
topicTags?: string[] | undefined;
|
|
2001
|
+
language?: string | null | undefined;
|
|
1727
2002
|
}, {
|
|
1728
2003
|
reason: string;
|
|
1729
2004
|
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
2005
|
+
salience: "low" | "medium" | "high";
|
|
2006
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1730
2007
|
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1731
2008
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1732
|
-
disposition: "
|
|
1733
|
-
salience: "medium" | "low" | "high";
|
|
1734
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
2009
|
+
disposition: "correct" | "keep" | "convert_to_episode" | "restrict";
|
|
1735
2010
|
actorEntity: {
|
|
1736
2011
|
canonicalKey: string;
|
|
1737
2012
|
entityType: string;
|
|
@@ -1744,13 +2019,13 @@ export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1744
2019
|
displayName?: string | null | undefined;
|
|
1745
2020
|
attributes?: Record<string, unknown> | undefined;
|
|
1746
2021
|
};
|
|
1747
|
-
language?: string | null | undefined;
|
|
1748
|
-
title?: string | null | undefined;
|
|
1749
2022
|
content?: string | undefined;
|
|
1750
2023
|
validFrom?: string | null | undefined;
|
|
1751
2024
|
validTo?: string | null | undefined;
|
|
2025
|
+
title?: string | null | undefined;
|
|
1752
2026
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1753
2027
|
topicTags?: string[] | undefined;
|
|
2028
|
+
language?: string | null | undefined;
|
|
1754
2029
|
}>;
|
|
1755
2030
|
export type MemoryRecordQualityReviewInput = z.infer<typeof memoryRecordQualityReviewInputSchema>;
|
|
1756
2031
|
export declare const memoryForgetInputSchema: z.ZodObject<{
|
|
@@ -1768,10 +2043,10 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1768
2043
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
1769
2044
|
externalId: z.ZodString;
|
|
1770
2045
|
}, "strict", z.ZodTypeAny, {
|
|
1771
|
-
type: "custom" | "
|
|
2046
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1772
2047
|
externalId: string;
|
|
1773
2048
|
}, {
|
|
1774
|
-
type: "custom" | "
|
|
2049
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1775
2050
|
externalId: string;
|
|
1776
2051
|
}>, "many">>;
|
|
1777
2052
|
title: z.ZodString;
|
|
@@ -1782,21 +2057,21 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1782
2057
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1783
2058
|
}, "strip", z.ZodTypeAny, {
|
|
1784
2059
|
required: boolean;
|
|
1785
|
-
title: string;
|
|
1786
2060
|
metadata: Record<string, unknown>;
|
|
1787
2061
|
content: string;
|
|
1788
2062
|
access: "read_only" | "editable";
|
|
2063
|
+
title: string;
|
|
1789
2064
|
priority: number;
|
|
1790
2065
|
tenantId?: string | undefined;
|
|
1791
2066
|
sessionId?: string | undefined;
|
|
1792
2067
|
externalTenantId?: string | undefined;
|
|
1793
2068
|
subjects?: {
|
|
1794
|
-
type: "custom" | "
|
|
2069
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1795
2070
|
externalId: string;
|
|
1796
2071
|
}[] | undefined;
|
|
1797
2072
|
}, {
|
|
1798
|
-
title: string;
|
|
1799
2073
|
content: string;
|
|
2074
|
+
title: string;
|
|
1800
2075
|
tenantId?: string | undefined;
|
|
1801
2076
|
required?: boolean | undefined;
|
|
1802
2077
|
sessionId?: string | undefined;
|
|
@@ -1804,27 +2079,27 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1804
2079
|
access?: "read_only" | "editable" | undefined;
|
|
1805
2080
|
externalTenantId?: string | undefined;
|
|
1806
2081
|
subjects?: {
|
|
1807
|
-
type: "custom" | "
|
|
2082
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1808
2083
|
externalId: string;
|
|
1809
2084
|
}[] | undefined;
|
|
1810
2085
|
priority?: number | undefined;
|
|
1811
2086
|
}>, {
|
|
1812
2087
|
required: boolean;
|
|
1813
|
-
title: string;
|
|
1814
2088
|
metadata: Record<string, unknown>;
|
|
1815
2089
|
content: string;
|
|
1816
2090
|
access: "read_only" | "editable";
|
|
2091
|
+
title: string;
|
|
1817
2092
|
priority: number;
|
|
1818
2093
|
tenantId?: string | undefined;
|
|
1819
2094
|
sessionId?: string | undefined;
|
|
1820
2095
|
externalTenantId?: string | undefined;
|
|
1821
2096
|
subjects?: {
|
|
1822
|
-
type: "custom" | "
|
|
2097
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1823
2098
|
externalId: string;
|
|
1824
2099
|
}[] | undefined;
|
|
1825
2100
|
}, {
|
|
1826
|
-
title: string;
|
|
1827
2101
|
content: string;
|
|
2102
|
+
title: string;
|
|
1828
2103
|
tenantId?: string | undefined;
|
|
1829
2104
|
required?: boolean | undefined;
|
|
1830
2105
|
sessionId?: string | undefined;
|
|
@@ -1832,7 +2107,7 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1832
2107
|
access?: "read_only" | "editable" | undefined;
|
|
1833
2108
|
externalTenantId?: string | undefined;
|
|
1834
2109
|
subjects?: {
|
|
1835
|
-
type: "custom" | "
|
|
2110
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1836
2111
|
externalId: string;
|
|
1837
2112
|
}[] | undefined;
|
|
1838
2113
|
priority?: number | undefined;
|
|
@@ -1863,10 +2138,10 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1863
2138
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
1864
2139
|
externalId: z.ZodString;
|
|
1865
2140
|
}, "strict", z.ZodTypeAny, {
|
|
1866
|
-
type: "custom" | "
|
|
2141
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1867
2142
|
externalId: string;
|
|
1868
2143
|
}, {
|
|
1869
|
-
type: "custom" | "
|
|
2144
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1870
2145
|
externalId: string;
|
|
1871
2146
|
}>, "many">;
|
|
1872
2147
|
policyKey: z.ZodDefault<z.ZodString>;
|
|
@@ -1898,17 +2173,17 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1898
2173
|
metadata: Record<string, unknown>;
|
|
1899
2174
|
policyKey: string;
|
|
1900
2175
|
targets: {
|
|
1901
|
-
type: "custom" | "
|
|
2176
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1902
2177
|
externalId: string;
|
|
1903
2178
|
}[];
|
|
1904
2179
|
tenantId?: string | undefined;
|
|
1905
|
-
externalTenantId?: string | undefined;
|
|
1906
2180
|
consent?: {
|
|
1907
2181
|
status: "granted";
|
|
1908
2182
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1909
2183
|
recordedAt: string;
|
|
1910
2184
|
reference?: string | undefined;
|
|
1911
2185
|
} | undefined;
|
|
2186
|
+
externalTenantId?: string | undefined;
|
|
1912
2187
|
}, {
|
|
1913
2188
|
source: {
|
|
1914
2189
|
kind: "conversation";
|
|
@@ -1918,12 +2193,11 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1918
2193
|
artifactIds?: string[] | undefined;
|
|
1919
2194
|
};
|
|
1920
2195
|
targets: {
|
|
1921
|
-
type: "custom" | "
|
|
2196
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1922
2197
|
externalId: string;
|
|
1923
2198
|
}[];
|
|
1924
2199
|
tenantId?: string | undefined;
|
|
1925
2200
|
metadata?: Record<string, unknown> | undefined;
|
|
1926
|
-
externalTenantId?: string | undefined;
|
|
1927
2201
|
policyKey?: string | undefined;
|
|
1928
2202
|
consent?: {
|
|
1929
2203
|
status: "granted";
|
|
@@ -1931,6 +2205,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1931
2205
|
recordedAt: string;
|
|
1932
2206
|
reference?: string | undefined;
|
|
1933
2207
|
} | undefined;
|
|
2208
|
+
externalTenantId?: string | undefined;
|
|
1934
2209
|
}>, {
|
|
1935
2210
|
source: {
|
|
1936
2211
|
kind: "conversation";
|
|
@@ -1942,17 +2217,17 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1942
2217
|
metadata: Record<string, unknown>;
|
|
1943
2218
|
policyKey: string;
|
|
1944
2219
|
targets: {
|
|
1945
|
-
type: "custom" | "
|
|
2220
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1946
2221
|
externalId: string;
|
|
1947
2222
|
}[];
|
|
1948
2223
|
tenantId?: string | undefined;
|
|
1949
|
-
externalTenantId?: string | undefined;
|
|
1950
2224
|
consent?: {
|
|
1951
2225
|
status: "granted";
|
|
1952
2226
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1953
2227
|
recordedAt: string;
|
|
1954
2228
|
reference?: string | undefined;
|
|
1955
2229
|
} | undefined;
|
|
2230
|
+
externalTenantId?: string | undefined;
|
|
1956
2231
|
}, {
|
|
1957
2232
|
source: {
|
|
1958
2233
|
kind: "conversation";
|
|
@@ -1962,12 +2237,11 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1962
2237
|
artifactIds?: string[] | undefined;
|
|
1963
2238
|
};
|
|
1964
2239
|
targets: {
|
|
1965
|
-
type: "custom" | "
|
|
2240
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1966
2241
|
externalId: string;
|
|
1967
2242
|
}[];
|
|
1968
2243
|
tenantId?: string | undefined;
|
|
1969
2244
|
metadata?: Record<string, unknown> | undefined;
|
|
1970
|
-
externalTenantId?: string | undefined;
|
|
1971
2245
|
policyKey?: string | undefined;
|
|
1972
2246
|
consent?: {
|
|
1973
2247
|
status: "granted";
|
|
@@ -1975,6 +2249,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1975
2249
|
recordedAt: string;
|
|
1976
2250
|
reference?: string | undefined;
|
|
1977
2251
|
} | undefined;
|
|
2252
|
+
externalTenantId?: string | undefined;
|
|
1978
2253
|
}>;
|
|
1979
2254
|
export type MemorySourceBindingInput = z.input<typeof memorySourceBindingInputSchema>;
|
|
1980
2255
|
export declare const memoryConnectedSourceBackfillRangeSchema: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
|
|
@@ -1991,10 +2266,10 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
1991
2266
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
1992
2267
|
externalId: z.ZodString;
|
|
1993
2268
|
}, "strict", z.ZodTypeAny, {
|
|
1994
|
-
type: "custom" | "
|
|
2269
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1995
2270
|
externalId: string;
|
|
1996
2271
|
}, {
|
|
1997
|
-
type: "custom" | "
|
|
2272
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
1998
2273
|
externalId: string;
|
|
1999
2274
|
}>, "many">;
|
|
2000
2275
|
existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
|
|
@@ -2037,12 +2312,12 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2037
2312
|
}, "strict", z.ZodTypeAny, {
|
|
2038
2313
|
connectedAccountId: string;
|
|
2039
2314
|
metadata: Record<string, unknown>;
|
|
2040
|
-
idempotencyKey: string;
|
|
2041
2315
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2316
|
+
idempotencyKey: string;
|
|
2042
2317
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2043
2318
|
resourceIds: string[];
|
|
2044
2319
|
targets: {
|
|
2045
|
-
type: "custom" | "
|
|
2320
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2046
2321
|
externalId: string;
|
|
2047
2322
|
}[];
|
|
2048
2323
|
approvedOperationalActorCanonicalKeys: string[];
|
|
@@ -2051,7 +2326,7 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2051
2326
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
2052
2327
|
maxBackfillItems: number | null;
|
|
2053
2328
|
deliveryMode: "auto" | "webhook" | "polling";
|
|
2054
|
-
authorizationPerspective: "bot" | "
|
|
2329
|
+
authorizationPerspective: "bot" | "provider_default" | "user";
|
|
2055
2330
|
includeAttachments: boolean;
|
|
2056
2331
|
includeFileContent: boolean;
|
|
2057
2332
|
includeEmailBodies: boolean;
|
|
@@ -2066,19 +2341,19 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2066
2341
|
sourceRetentionDays: number | null;
|
|
2067
2342
|
tenantId?: string | undefined;
|
|
2068
2343
|
sessionId?: string | undefined;
|
|
2069
|
-
externalTenantId?: string | undefined;
|
|
2070
2344
|
consent?: {
|
|
2071
2345
|
status: "granted";
|
|
2072
2346
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
2073
2347
|
recordedAt: string;
|
|
2074
2348
|
reference?: string | undefined;
|
|
2075
2349
|
} | undefined;
|
|
2350
|
+
externalTenantId?: string | undefined;
|
|
2076
2351
|
learnedRetentionDays?: number | null | undefined;
|
|
2077
2352
|
}, {
|
|
2078
2353
|
connectedAccountId: string;
|
|
2079
2354
|
idempotencyKey: string;
|
|
2080
2355
|
targets: {
|
|
2081
|
-
type: "custom" | "
|
|
2356
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2082
2357
|
externalId: string;
|
|
2083
2358
|
}[];
|
|
2084
2359
|
sourceFamilyKey: string;
|
|
@@ -2086,21 +2361,21 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2086
2361
|
sessionId?: string | undefined;
|
|
2087
2362
|
metadata?: Record<string, unknown> | undefined;
|
|
2088
2363
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2089
|
-
externalTenantId?: string | undefined;
|
|
2090
|
-
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2091
2364
|
consent?: {
|
|
2092
2365
|
status: "granted";
|
|
2093
2366
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
2094
2367
|
recordedAt: string;
|
|
2095
2368
|
reference?: string | undefined;
|
|
2096
2369
|
} | undefined;
|
|
2370
|
+
externalTenantId?: string | undefined;
|
|
2371
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2097
2372
|
resourceIds?: string[] | undefined;
|
|
2098
2373
|
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2099
2374
|
selectionMode?: "selected_resources" | "recipe_default" | undefined;
|
|
2100
2375
|
existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
|
|
2101
2376
|
maxBackfillItems?: number | null | undefined;
|
|
2102
2377
|
deliveryMode?: "auto" | "webhook" | "polling" | undefined;
|
|
2103
|
-
authorizationPerspective?: "bot" | "
|
|
2378
|
+
authorizationPerspective?: "bot" | "provider_default" | "user" | undefined;
|
|
2104
2379
|
includeAttachments?: boolean | undefined;
|
|
2105
2380
|
includeFileContent?: boolean | undefined;
|
|
2106
2381
|
includeEmailBodies?: boolean | undefined;
|
|
@@ -2117,12 +2392,12 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2117
2392
|
}>, {
|
|
2118
2393
|
connectedAccountId: string;
|
|
2119
2394
|
metadata: Record<string, unknown>;
|
|
2120
|
-
idempotencyKey: string;
|
|
2121
2395
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2396
|
+
idempotencyKey: string;
|
|
2122
2397
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2123
2398
|
resourceIds: string[];
|
|
2124
2399
|
targets: {
|
|
2125
|
-
type: "custom" | "
|
|
2400
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2126
2401
|
externalId: string;
|
|
2127
2402
|
}[];
|
|
2128
2403
|
approvedOperationalActorCanonicalKeys: string[];
|
|
@@ -2131,7 +2406,7 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2131
2406
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
2132
2407
|
maxBackfillItems: number | null;
|
|
2133
2408
|
deliveryMode: "auto" | "webhook" | "polling";
|
|
2134
|
-
authorizationPerspective: "bot" | "
|
|
2409
|
+
authorizationPerspective: "bot" | "provider_default" | "user";
|
|
2135
2410
|
includeAttachments: boolean;
|
|
2136
2411
|
includeFileContent: boolean;
|
|
2137
2412
|
includeEmailBodies: boolean;
|
|
@@ -2146,19 +2421,19 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2146
2421
|
sourceRetentionDays: number | null;
|
|
2147
2422
|
tenantId?: string | undefined;
|
|
2148
2423
|
sessionId?: string | undefined;
|
|
2149
|
-
externalTenantId?: string | undefined;
|
|
2150
2424
|
consent?: {
|
|
2151
2425
|
status: "granted";
|
|
2152
2426
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
2153
2427
|
recordedAt: string;
|
|
2154
2428
|
reference?: string | undefined;
|
|
2155
2429
|
} | undefined;
|
|
2430
|
+
externalTenantId?: string | undefined;
|
|
2156
2431
|
learnedRetentionDays?: number | null | undefined;
|
|
2157
2432
|
}, {
|
|
2158
2433
|
connectedAccountId: string;
|
|
2159
2434
|
idempotencyKey: string;
|
|
2160
2435
|
targets: {
|
|
2161
|
-
type: "custom" | "
|
|
2436
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2162
2437
|
externalId: string;
|
|
2163
2438
|
}[];
|
|
2164
2439
|
sourceFamilyKey: string;
|
|
@@ -2166,21 +2441,21 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
2166
2441
|
sessionId?: string | undefined;
|
|
2167
2442
|
metadata?: Record<string, unknown> | undefined;
|
|
2168
2443
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2169
|
-
externalTenantId?: string | undefined;
|
|
2170
|
-
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2171
2444
|
consent?: {
|
|
2172
2445
|
status: "granted";
|
|
2173
2446
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
2174
2447
|
recordedAt: string;
|
|
2175
2448
|
reference?: string | undefined;
|
|
2176
2449
|
} | undefined;
|
|
2450
|
+
externalTenantId?: string | undefined;
|
|
2451
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2177
2452
|
resourceIds?: string[] | undefined;
|
|
2178
2453
|
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2179
2454
|
selectionMode?: "selected_resources" | "recipe_default" | undefined;
|
|
2180
2455
|
existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
|
|
2181
2456
|
maxBackfillItems?: number | null | undefined;
|
|
2182
2457
|
deliveryMode?: "auto" | "webhook" | "polling" | undefined;
|
|
2183
|
-
authorizationPerspective?: "bot" | "
|
|
2458
|
+
authorizationPerspective?: "bot" | "provider_default" | "user" | undefined;
|
|
2184
2459
|
includeAttachments?: boolean | undefined;
|
|
2185
2460
|
includeFileContent?: boolean | undefined;
|
|
2186
2461
|
includeEmailBodies?: boolean | undefined;
|
|
@@ -2220,7 +2495,7 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
|
|
|
2220
2495
|
approvedOperationalActorCanonicalKeys: string[];
|
|
2221
2496
|
sourceFamilyKey: string;
|
|
2222
2497
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
2223
|
-
authorizationPerspective: "bot" | "
|
|
2498
|
+
authorizationPerspective: "bot" | "provider_default" | "user";
|
|
2224
2499
|
includeAttachments: boolean;
|
|
2225
2500
|
includeFileContent: boolean;
|
|
2226
2501
|
includeEmailBodies: boolean;
|
|
@@ -2242,7 +2517,7 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
|
|
|
2242
2517
|
resourceIds?: string[] | undefined;
|
|
2243
2518
|
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2244
2519
|
existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
|
|
2245
|
-
authorizationPerspective?: "bot" | "
|
|
2520
|
+
authorizationPerspective?: "bot" | "provider_default" | "user" | undefined;
|
|
2246
2521
|
includeAttachments?: boolean | undefined;
|
|
2247
2522
|
includeFileContent?: boolean | undefined;
|
|
2248
2523
|
includeEmailBodies?: boolean | undefined;
|
|
@@ -2258,7 +2533,7 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
|
|
|
2258
2533
|
approvedOperationalActorCanonicalKeys: string[];
|
|
2259
2534
|
sourceFamilyKey: string;
|
|
2260
2535
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
2261
|
-
authorizationPerspective: "bot" | "
|
|
2536
|
+
authorizationPerspective: "bot" | "provider_default" | "user";
|
|
2262
2537
|
includeAttachments: boolean;
|
|
2263
2538
|
includeFileContent: boolean;
|
|
2264
2539
|
includeEmailBodies: boolean;
|
|
@@ -2280,7 +2555,7 @@ export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.Zod
|
|
|
2280
2555
|
resourceIds?: string[] | undefined;
|
|
2281
2556
|
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2282
2557
|
existingContent?: "all" | "future_only" | "last_30_days" | "last_90_days" | undefined;
|
|
2283
|
-
authorizationPerspective?: "bot" | "
|
|
2558
|
+
authorizationPerspective?: "bot" | "provider_default" | "user" | undefined;
|
|
2284
2559
|
includeAttachments?: boolean | undefined;
|
|
2285
2560
|
includeFileContent?: boolean | undefined;
|
|
2286
2561
|
includeEmailBodies?: boolean | undefined;
|
|
@@ -2297,10 +2572,10 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
|
|
|
2297
2572
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
2298
2573
|
externalId: z.ZodString;
|
|
2299
2574
|
}, "strict", z.ZodTypeAny, {
|
|
2300
|
-
type: "custom" | "
|
|
2575
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2301
2576
|
externalId: string;
|
|
2302
2577
|
}, {
|
|
2303
|
-
type: "custom" | "
|
|
2578
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2304
2579
|
externalId: string;
|
|
2305
2580
|
}>, "many">;
|
|
2306
2581
|
existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
|
|
@@ -2323,7 +2598,7 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
|
|
|
2323
2598
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2324
2599
|
resourceIds: string[];
|
|
2325
2600
|
targets: {
|
|
2326
|
-
type: "custom" | "
|
|
2601
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2327
2602
|
externalId: string;
|
|
2328
2603
|
}[];
|
|
2329
2604
|
approvedOperationalActorCanonicalKeys: string[];
|
|
@@ -2345,7 +2620,7 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
|
|
|
2345
2620
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2346
2621
|
resourceIds: string[];
|
|
2347
2622
|
targets: {
|
|
2348
|
-
type: "custom" | "
|
|
2623
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2349
2624
|
externalId: string;
|
|
2350
2625
|
}[];
|
|
2351
2626
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
@@ -2372,10 +2647,10 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2372
2647
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
2373
2648
|
externalId: z.ZodString;
|
|
2374
2649
|
}, "strict", z.ZodTypeAny, {
|
|
2375
|
-
type: "custom" | "
|
|
2650
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2376
2651
|
externalId: string;
|
|
2377
2652
|
}, {
|
|
2378
|
-
type: "custom" | "
|
|
2653
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2379
2654
|
externalId: string;
|
|
2380
2655
|
}>, "many">;
|
|
2381
2656
|
existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
|
|
@@ -2398,7 +2673,7 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2398
2673
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2399
2674
|
resourceIds: string[];
|
|
2400
2675
|
targets: {
|
|
2401
|
-
type: "custom" | "
|
|
2676
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2402
2677
|
externalId: string;
|
|
2403
2678
|
}[];
|
|
2404
2679
|
approvedOperationalActorCanonicalKeys: string[];
|
|
@@ -2420,7 +2695,7 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2420
2695
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2421
2696
|
resourceIds: string[];
|
|
2422
2697
|
targets: {
|
|
2423
|
-
type: "custom" | "
|
|
2698
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2424
2699
|
externalId: string;
|
|
2425
2700
|
}[];
|
|
2426
2701
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
@@ -2445,7 +2720,7 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2445
2720
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2446
2721
|
resourceIds: string[];
|
|
2447
2722
|
targets: {
|
|
2448
|
-
type: "custom" | "
|
|
2723
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2449
2724
|
externalId: string;
|
|
2450
2725
|
}[];
|
|
2451
2726
|
approvedOperationalActorCanonicalKeys: string[];
|
|
@@ -2470,7 +2745,7 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2470
2745
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2471
2746
|
resourceIds: string[];
|
|
2472
2747
|
targets: {
|
|
2473
|
-
type: "custom" | "
|
|
2748
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2474
2749
|
externalId: string;
|
|
2475
2750
|
}[];
|
|
2476
2751
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
@@ -2495,7 +2770,7 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2495
2770
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2496
2771
|
resourceIds: string[];
|
|
2497
2772
|
targets: {
|
|
2498
|
-
type: "custom" | "
|
|
2773
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2499
2774
|
externalId: string;
|
|
2500
2775
|
}[];
|
|
2501
2776
|
approvedOperationalActorCanonicalKeys: string[];
|
|
@@ -2520,7 +2795,7 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
2520
2795
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2521
2796
|
resourceIds: string[];
|
|
2522
2797
|
targets: {
|
|
2523
|
-
type: "custom" | "
|
|
2798
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2524
2799
|
externalId: string;
|
|
2525
2800
|
}[];
|
|
2526
2801
|
existingContent: "all" | "future_only" | "last_30_days" | "last_90_days";
|
|
@@ -2589,20 +2864,19 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
|
|
|
2589
2864
|
content: string;
|
|
2590
2865
|
applicationKey: string;
|
|
2591
2866
|
turnId: string;
|
|
2592
|
-
title?: string | undefined;
|
|
2593
2867
|
consent?: {
|
|
2594
2868
|
status: "granted";
|
|
2595
2869
|
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
2596
2870
|
recordedAt: string;
|
|
2597
2871
|
reference?: string | undefined;
|
|
2598
2872
|
} | undefined;
|
|
2873
|
+
title?: string | undefined;
|
|
2599
2874
|
occurredAt?: string | undefined;
|
|
2600
2875
|
}, {
|
|
2601
2876
|
sessionId: string;
|
|
2602
2877
|
content: string;
|
|
2603
2878
|
applicationKey: string;
|
|
2604
2879
|
turnId: string;
|
|
2605
|
-
title?: string | undefined;
|
|
2606
2880
|
metadata?: Record<string, unknown> | undefined;
|
|
2607
2881
|
consent?: {
|
|
2608
2882
|
status: "granted";
|
|
@@ -2610,6 +2884,7 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
|
|
|
2610
2884
|
recordedAt: string;
|
|
2611
2885
|
reference?: string | undefined;
|
|
2612
2886
|
} | undefined;
|
|
2887
|
+
title?: string | undefined;
|
|
2613
2888
|
occurredAt?: string | undefined;
|
|
2614
2889
|
}>;
|
|
2615
2890
|
export type MemoryConversationTurnInput = z.input<typeof memoryConversationTurnInputSchema>;
|
|
@@ -2621,10 +2896,10 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2621
2896
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
2622
2897
|
externalId: z.ZodString;
|
|
2623
2898
|
}, "strict", z.ZodTypeAny, {
|
|
2624
|
-
type: "custom" | "
|
|
2899
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2625
2900
|
externalId: string;
|
|
2626
2901
|
}, {
|
|
2627
|
-
type: "custom" | "
|
|
2902
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2628
2903
|
externalId: string;
|
|
2629
2904
|
}>, "many">>;
|
|
2630
2905
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["fact", "episode", "profile_item", "block"]>, "many">>;
|
|
@@ -2662,7 +2937,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2662
2937
|
recordedAt?: string | undefined;
|
|
2663
2938
|
externalTenantId?: string | undefined;
|
|
2664
2939
|
subjects?: {
|
|
2665
|
-
type: "custom" | "
|
|
2940
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2666
2941
|
externalId: string;
|
|
2667
2942
|
}[] | undefined;
|
|
2668
2943
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -2683,7 +2958,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2683
2958
|
recordedAt?: string | undefined;
|
|
2684
2959
|
externalTenantId?: string | undefined;
|
|
2685
2960
|
subjects?: {
|
|
2686
|
-
type: "custom" | "
|
|
2961
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2687
2962
|
externalId: string;
|
|
2688
2963
|
}[] | undefined;
|
|
2689
2964
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -2716,7 +2991,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2716
2991
|
recordedAt?: string | undefined;
|
|
2717
2992
|
externalTenantId?: string | undefined;
|
|
2718
2993
|
subjects?: {
|
|
2719
|
-
type: "custom" | "
|
|
2994
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2720
2995
|
externalId: string;
|
|
2721
2996
|
}[] | undefined;
|
|
2722
2997
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -2737,7 +3012,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2737
3012
|
recordedAt?: string | undefined;
|
|
2738
3013
|
externalTenantId?: string | undefined;
|
|
2739
3014
|
subjects?: {
|
|
2740
|
-
type: "custom" | "
|
|
3015
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2741
3016
|
externalId: string;
|
|
2742
3017
|
}[] | undefined;
|
|
2743
3018
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -2770,7 +3045,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2770
3045
|
recordedAt?: string | undefined;
|
|
2771
3046
|
externalTenantId?: string | undefined;
|
|
2772
3047
|
subjects?: {
|
|
2773
|
-
type: "custom" | "
|
|
3048
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2774
3049
|
externalId: string;
|
|
2775
3050
|
}[] | undefined;
|
|
2776
3051
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -2791,7 +3066,7 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
2791
3066
|
recordedAt?: string | undefined;
|
|
2792
3067
|
externalTenantId?: string | undefined;
|
|
2793
3068
|
subjects?: {
|
|
2794
|
-
type: "custom" | "
|
|
3069
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2795
3070
|
externalId: string;
|
|
2796
3071
|
}[] | undefined;
|
|
2797
3072
|
memoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
@@ -2818,10 +3093,10 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2818
3093
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
2819
3094
|
externalId: z.ZodString;
|
|
2820
3095
|
}, "strict", z.ZodTypeAny, {
|
|
2821
|
-
type: "custom" | "
|
|
3096
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2822
3097
|
externalId: string;
|
|
2823
3098
|
}, {
|
|
2824
|
-
type: "custom" | "
|
|
3099
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2825
3100
|
externalId: string;
|
|
2826
3101
|
}>>;
|
|
2827
3102
|
format: z.ZodDefault<z.ZodEnum<["json", "jsonl"]>>;
|
|
@@ -2830,7 +3105,7 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2830
3105
|
tenantId?: string | undefined;
|
|
2831
3106
|
externalTenantId?: string | undefined;
|
|
2832
3107
|
subject?: {
|
|
2833
|
-
type: "custom" | "
|
|
3108
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2834
3109
|
externalId: string;
|
|
2835
3110
|
} | undefined;
|
|
2836
3111
|
}, {
|
|
@@ -2838,7 +3113,7 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2838
3113
|
format?: "json" | "jsonl" | undefined;
|
|
2839
3114
|
externalTenantId?: string | undefined;
|
|
2840
3115
|
subject?: {
|
|
2841
|
-
type: "custom" | "
|
|
3116
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2842
3117
|
externalId: string;
|
|
2843
3118
|
} | undefined;
|
|
2844
3119
|
}>, {
|
|
@@ -2846,7 +3121,7 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2846
3121
|
tenantId?: string | undefined;
|
|
2847
3122
|
externalTenantId?: string | undefined;
|
|
2848
3123
|
subject?: {
|
|
2849
|
-
type: "custom" | "
|
|
3124
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2850
3125
|
externalId: string;
|
|
2851
3126
|
} | undefined;
|
|
2852
3127
|
}, {
|
|
@@ -2854,7 +3129,7 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2854
3129
|
format?: "json" | "jsonl" | undefined;
|
|
2855
3130
|
externalTenantId?: string | undefined;
|
|
2856
3131
|
subject?: {
|
|
2857
|
-
type: "custom" | "
|
|
3132
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2858
3133
|
externalId: string;
|
|
2859
3134
|
} | undefined;
|
|
2860
3135
|
}>;
|
|
@@ -2866,10 +3141,10 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2866
3141
|
type: z.ZodEnum<["user", "agent", "tenant", "run", "application", "custom"]>;
|
|
2867
3142
|
externalId: z.ZodString;
|
|
2868
3143
|
}, "strict", z.ZodTypeAny, {
|
|
2869
|
-
type: "custom" | "
|
|
3144
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2870
3145
|
externalId: string;
|
|
2871
3146
|
}, {
|
|
2872
|
-
type: "custom" | "
|
|
3147
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2873
3148
|
externalId: string;
|
|
2874
3149
|
}>>;
|
|
2875
3150
|
reason: z.ZodString;
|
|
@@ -2878,7 +3153,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2878
3153
|
tenantId?: string | undefined;
|
|
2879
3154
|
externalTenantId?: string | undefined;
|
|
2880
3155
|
subject?: {
|
|
2881
|
-
type: "custom" | "
|
|
3156
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2882
3157
|
externalId: string;
|
|
2883
3158
|
} | undefined;
|
|
2884
3159
|
}, {
|
|
@@ -2886,7 +3161,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2886
3161
|
tenantId?: string | undefined;
|
|
2887
3162
|
externalTenantId?: string | undefined;
|
|
2888
3163
|
subject?: {
|
|
2889
|
-
type: "custom" | "
|
|
3164
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2890
3165
|
externalId: string;
|
|
2891
3166
|
} | undefined;
|
|
2892
3167
|
}>, {
|
|
@@ -2894,7 +3169,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2894
3169
|
tenantId?: string | undefined;
|
|
2895
3170
|
externalTenantId?: string | undefined;
|
|
2896
3171
|
subject?: {
|
|
2897
|
-
type: "custom" | "
|
|
3172
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2898
3173
|
externalId: string;
|
|
2899
3174
|
} | undefined;
|
|
2900
3175
|
}, {
|
|
@@ -2902,7 +3177,7 @@ export declare const memoryLegalHoldInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2902
3177
|
tenantId?: string | undefined;
|
|
2903
3178
|
externalTenantId?: string | undefined;
|
|
2904
3179
|
subject?: {
|
|
2905
|
-
type: "custom" | "
|
|
3180
|
+
type: "custom" | "user" | "agent" | "tenant" | "run" | "application";
|
|
2906
3181
|
externalId: string;
|
|
2907
3182
|
} | undefined;
|
|
2908
3183
|
}>;
|
|
@@ -2923,31 +3198,31 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
|
|
|
2923
3198
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2924
3199
|
}, "strip", z.ZodTypeAny, {
|
|
2925
3200
|
key: string;
|
|
2926
|
-
retentionDays: number | null;
|
|
2927
3201
|
context: Record<string, unknown>;
|
|
2928
3202
|
metadata: Record<string, unknown>;
|
|
2929
3203
|
languages: string[];
|
|
2930
3204
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2931
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2932
3205
|
consent: Record<string, unknown>;
|
|
3206
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2933
3207
|
sourceRetentionDays: number | null;
|
|
2934
3208
|
captureMode: "explicit" | "bound_sources";
|
|
2935
3209
|
extractionEnabled: boolean;
|
|
2936
3210
|
profileEnabled: boolean;
|
|
3211
|
+
retentionDays: number | null;
|
|
2937
3212
|
extraction: Record<string, unknown>;
|
|
2938
3213
|
}, {
|
|
2939
3214
|
key?: string | undefined;
|
|
2940
|
-
retentionDays?: number | null | undefined;
|
|
2941
3215
|
context?: Record<string, unknown> | undefined;
|
|
2942
3216
|
metadata?: Record<string, unknown> | undefined;
|
|
2943
3217
|
languages?: string[] | undefined;
|
|
2944
3218
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2945
|
-
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2946
3219
|
consent?: Record<string, unknown> | undefined;
|
|
3220
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2947
3221
|
sourceRetentionDays?: number | null | undefined;
|
|
2948
3222
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
2949
3223
|
extractionEnabled?: boolean | undefined;
|
|
2950
3224
|
profileEnabled?: boolean | undefined;
|
|
3225
|
+
retentionDays?: number | null | undefined;
|
|
2951
3226
|
extraction?: Record<string, unknown> | undefined;
|
|
2952
3227
|
}>;
|
|
2953
3228
|
export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
@@ -2967,32 +3242,32 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
|
2967
3242
|
}, "key"> & {
|
|
2968
3243
|
expectedVersion: z.ZodNumber;
|
|
2969
3244
|
}, "strict", z.ZodTypeAny, {
|
|
2970
|
-
retentionDays: number | null;
|
|
2971
3245
|
context: Record<string, unknown>;
|
|
2972
3246
|
metadata: Record<string, unknown>;
|
|
2973
3247
|
languages: string[];
|
|
2974
3248
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2975
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2976
3249
|
consent: Record<string, unknown>;
|
|
3250
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2977
3251
|
sourceRetentionDays: number | null;
|
|
2978
3252
|
captureMode: "explicit" | "bound_sources";
|
|
2979
3253
|
extractionEnabled: boolean;
|
|
2980
3254
|
profileEnabled: boolean;
|
|
3255
|
+
retentionDays: number | null;
|
|
2981
3256
|
extraction: Record<string, unknown>;
|
|
2982
3257
|
expectedVersion: number;
|
|
2983
3258
|
}, {
|
|
2984
3259
|
expectedVersion: number;
|
|
2985
|
-
retentionDays?: number | null | undefined;
|
|
2986
3260
|
context?: Record<string, unknown> | undefined;
|
|
2987
3261
|
metadata?: Record<string, unknown> | undefined;
|
|
2988
3262
|
languages?: string[] | undefined;
|
|
2989
3263
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2990
|
-
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2991
3264
|
consent?: Record<string, unknown> | undefined;
|
|
3265
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2992
3266
|
sourceRetentionDays?: number | null | undefined;
|
|
2993
3267
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
2994
3268
|
extractionEnabled?: boolean | undefined;
|
|
2995
3269
|
profileEnabled?: boolean | undefined;
|
|
3270
|
+
retentionDays?: number | null | undefined;
|
|
2996
3271
|
extraction?: Record<string, unknown> | undefined;
|
|
2997
3272
|
}>;
|
|
2998
3273
|
export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
@@ -3016,71 +3291,71 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
3016
3291
|
context: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3017
3292
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3018
3293
|
}, "key">, "strip", z.ZodTypeAny, {
|
|
3019
|
-
retentionDays: number | null;
|
|
3020
3294
|
context: Record<string, unknown>;
|
|
3021
3295
|
metadata: Record<string, unknown>;
|
|
3022
3296
|
languages: string[];
|
|
3023
3297
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
3024
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3025
3298
|
consent: Record<string, unknown>;
|
|
3299
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3026
3300
|
sourceRetentionDays: number | null;
|
|
3027
3301
|
captureMode: "explicit" | "bound_sources";
|
|
3028
3302
|
extractionEnabled: boolean;
|
|
3029
3303
|
profileEnabled: boolean;
|
|
3304
|
+
retentionDays: number | null;
|
|
3030
3305
|
extraction: Record<string, unknown>;
|
|
3031
3306
|
}, {
|
|
3032
|
-
retentionDays?: number | null | undefined;
|
|
3033
3307
|
context?: Record<string, unknown> | undefined;
|
|
3034
3308
|
metadata?: Record<string, unknown> | undefined;
|
|
3035
3309
|
languages?: string[] | undefined;
|
|
3036
3310
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
3037
|
-
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
3038
3311
|
consent?: Record<string, unknown> | undefined;
|
|
3312
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
3039
3313
|
sourceRetentionDays?: number | null | undefined;
|
|
3040
3314
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
3041
3315
|
extractionEnabled?: boolean | undefined;
|
|
3042
3316
|
profileEnabled?: boolean | undefined;
|
|
3317
|
+
retentionDays?: number | null | undefined;
|
|
3043
3318
|
extraction?: Record<string, unknown> | undefined;
|
|
3044
3319
|
}>>;
|
|
3045
3320
|
}, "strict", z.ZodTypeAny, {
|
|
3046
3321
|
policy: {
|
|
3047
|
-
retentionDays: number | null;
|
|
3048
3322
|
context: Record<string, unknown>;
|
|
3049
3323
|
metadata: Record<string, unknown>;
|
|
3050
3324
|
languages: string[];
|
|
3051
3325
|
allowedMemoryTypes: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
3052
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3053
3326
|
consent: Record<string, unknown>;
|
|
3327
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3054
3328
|
sourceRetentionDays: number | null;
|
|
3055
3329
|
captureMode: "explicit" | "bound_sources";
|
|
3056
3330
|
extractionEnabled: boolean;
|
|
3057
3331
|
profileEnabled: boolean;
|
|
3332
|
+
retentionDays: number | null;
|
|
3058
3333
|
extraction: Record<string, unknown>;
|
|
3059
3334
|
};
|
|
3060
3335
|
content: string;
|
|
3061
3336
|
idempotencyKey: string;
|
|
3062
|
-
language?: string | undefined;
|
|
3063
3337
|
title?: string | undefined;
|
|
3338
|
+
language?: string | undefined;
|
|
3064
3339
|
sourceCategory?: string | undefined;
|
|
3065
3340
|
}, {
|
|
3066
3341
|
content: string;
|
|
3067
3342
|
idempotencyKey: string;
|
|
3068
3343
|
policy?: {
|
|
3069
|
-
retentionDays?: number | null | undefined;
|
|
3070
3344
|
context?: Record<string, unknown> | undefined;
|
|
3071
3345
|
metadata?: Record<string, unknown> | undefined;
|
|
3072
3346
|
languages?: string[] | undefined;
|
|
3073
3347
|
allowedMemoryTypes?: ("decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
3074
|
-
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
3075
3348
|
consent?: Record<string, unknown> | undefined;
|
|
3349
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
3076
3350
|
sourceRetentionDays?: number | null | undefined;
|
|
3077
3351
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
3078
3352
|
extractionEnabled?: boolean | undefined;
|
|
3079
3353
|
profileEnabled?: boolean | undefined;
|
|
3354
|
+
retentionDays?: number | null | undefined;
|
|
3080
3355
|
extraction?: Record<string, unknown> | undefined;
|
|
3081
3356
|
} | undefined;
|
|
3082
|
-
language?: string | undefined;
|
|
3083
3357
|
title?: string | undefined;
|
|
3358
|
+
language?: string | undefined;
|
|
3084
3359
|
sourceCategory?: string | undefined;
|
|
3085
3360
|
}>;
|
|
3086
3361
|
export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
|
|
@@ -3145,16 +3420,16 @@ export declare const memoryExtractedEntitySchema: z.ZodObject<{
|
|
|
3145
3420
|
displayName: z.ZodNullable<z.ZodString>;
|
|
3146
3421
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3147
3422
|
}, "strict", z.ZodTypeAny, {
|
|
3148
|
-
key: string;
|
|
3149
3423
|
type: string;
|
|
3150
|
-
|
|
3424
|
+
key: string;
|
|
3151
3425
|
canonicalKey: string;
|
|
3426
|
+
displayName: string | null;
|
|
3152
3427
|
attributes: Record<string, unknown>;
|
|
3153
3428
|
}, {
|
|
3154
|
-
key: string;
|
|
3155
3429
|
type: string;
|
|
3156
|
-
|
|
3430
|
+
key: string;
|
|
3157
3431
|
canonicalKey: string;
|
|
3432
|
+
displayName: string | null;
|
|
3158
3433
|
attributes: Record<string, unknown>;
|
|
3159
3434
|
}>;
|
|
3160
3435
|
export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -3242,7 +3517,7 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3242
3517
|
actorEntityKey: z.ZodNullable<z.ZodString>;
|
|
3243
3518
|
subjectEntityKey: z.ZodNullable<z.ZodString>;
|
|
3244
3519
|
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
3245
|
-
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
3520
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
|
|
3246
3521
|
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
3247
3522
|
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
3248
3523
|
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -3289,16 +3564,16 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3289
3564
|
displayName: z.ZodNullable<z.ZodString>;
|
|
3290
3565
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3291
3566
|
}, "strict", z.ZodTypeAny, {
|
|
3292
|
-
key: string;
|
|
3293
3567
|
type: string;
|
|
3294
|
-
|
|
3568
|
+
key: string;
|
|
3295
3569
|
canonicalKey: string;
|
|
3570
|
+
displayName: string | null;
|
|
3296
3571
|
attributes: Record<string, unknown>;
|
|
3297
3572
|
}, {
|
|
3298
|
-
key: string;
|
|
3299
3573
|
type: string;
|
|
3300
|
-
|
|
3574
|
+
key: string;
|
|
3301
3575
|
canonicalKey: string;
|
|
3576
|
+
displayName: string | null;
|
|
3302
3577
|
attributes: Record<string, unknown>;
|
|
3303
3578
|
}>, "many">;
|
|
3304
3579
|
claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
@@ -3344,18 +3619,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3344
3619
|
}>, "many">;
|
|
3345
3620
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3346
3621
|
}, "strict", z.ZodTypeAny, {
|
|
3347
|
-
language: string;
|
|
3348
|
-
title: string;
|
|
3349
3622
|
content: string;
|
|
3350
|
-
|
|
3351
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3352
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3353
|
-
validFrom: string | null;
|
|
3354
|
-
validTo: string | null;
|
|
3355
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3356
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3357
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3358
|
-
topicTags: string[];
|
|
3623
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3359
3624
|
evidence: {
|
|
3360
3625
|
sourceObjectId: string;
|
|
3361
3626
|
segmentId: string;
|
|
@@ -3363,21 +3628,31 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3363
3628
|
endOffset: number;
|
|
3364
3629
|
quotedText: string;
|
|
3365
3630
|
}[];
|
|
3631
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3632
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
3633
|
+
durability: "durable" | "episodic" | "transient";
|
|
3634
|
+
salience: "low" | "medium" | "high";
|
|
3635
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3636
|
+
contextEligible: boolean;
|
|
3637
|
+
qualityContractVersion: 1;
|
|
3638
|
+
validFrom: string | null;
|
|
3639
|
+
validTo: string | null;
|
|
3640
|
+
title: string;
|
|
3641
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3642
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3643
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3644
|
+
topicTags: string[];
|
|
3645
|
+
language: string;
|
|
3366
3646
|
attributes: Record<string, unknown>;
|
|
3367
|
-
salience: "medium" | "low" | "high";
|
|
3368
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3369
3647
|
subjectEntityKey: string | null;
|
|
3370
3648
|
candidateId: string;
|
|
3371
3649
|
recordKind: "fact" | "episode";
|
|
3372
3650
|
actorEntityKey: string | null;
|
|
3373
|
-
durability: "durable" | "episodic" | "transient";
|
|
3374
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3375
|
-
contextEligible: boolean;
|
|
3376
3651
|
entities: {
|
|
3377
|
-
key: string;
|
|
3378
3652
|
type: string;
|
|
3379
|
-
|
|
3653
|
+
key: string;
|
|
3380
3654
|
canonicalKey: string;
|
|
3655
|
+
displayName: string | null;
|
|
3381
3656
|
attributes: Record<string, unknown>;
|
|
3382
3657
|
}[];
|
|
3383
3658
|
claims: {
|
|
@@ -3390,16 +3665,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3390
3665
|
literalValue?: unknown;
|
|
3391
3666
|
}[];
|
|
3392
3667
|
}, {
|
|
3393
|
-
language: string;
|
|
3394
|
-
title: string;
|
|
3395
3668
|
content: string;
|
|
3396
|
-
|
|
3397
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3398
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3399
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3400
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3401
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3402
|
-
topicTags: string[];
|
|
3669
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3403
3670
|
evidence: {
|
|
3404
3671
|
sourceObjectId: string;
|
|
3405
3672
|
segmentId: string;
|
|
@@ -3407,21 +3674,29 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3407
3674
|
endOffset: number;
|
|
3408
3675
|
quotedText: string;
|
|
3409
3676
|
}[];
|
|
3677
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3678
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
3679
|
+
durability: "durable" | "episodic" | "transient";
|
|
3680
|
+
salience: "low" | "medium" | "high";
|
|
3681
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3682
|
+
contextEligible: boolean;
|
|
3683
|
+
qualityContractVersion: 1;
|
|
3684
|
+
title: string;
|
|
3685
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3686
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3687
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3688
|
+
topicTags: string[];
|
|
3689
|
+
language: string;
|
|
3410
3690
|
attributes: Record<string, unknown>;
|
|
3411
|
-
salience: "medium" | "low" | "high";
|
|
3412
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3413
3691
|
subjectEntityKey: string | null;
|
|
3414
3692
|
candidateId: string;
|
|
3415
3693
|
recordKind: "fact" | "episode";
|
|
3416
3694
|
actorEntityKey: string | null;
|
|
3417
|
-
durability: "durable" | "episodic" | "transient";
|
|
3418
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3419
|
-
contextEligible: boolean;
|
|
3420
3695
|
entities: {
|
|
3421
|
-
key: string;
|
|
3422
3696
|
type: string;
|
|
3423
|
-
|
|
3697
|
+
key: string;
|
|
3424
3698
|
canonicalKey: string;
|
|
3699
|
+
displayName: string | null;
|
|
3425
3700
|
attributes: Record<string, unknown>;
|
|
3426
3701
|
}[];
|
|
3427
3702
|
claims: {
|
|
@@ -3436,18 +3711,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3436
3711
|
validFrom?: unknown;
|
|
3437
3712
|
validTo?: unknown;
|
|
3438
3713
|
}>, {
|
|
3439
|
-
language: string;
|
|
3440
|
-
title: string;
|
|
3441
3714
|
content: string;
|
|
3442
|
-
|
|
3443
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3444
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3445
|
-
validFrom: string | null;
|
|
3446
|
-
validTo: string | null;
|
|
3447
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3448
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3449
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3450
|
-
topicTags: string[];
|
|
3715
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3451
3716
|
evidence: {
|
|
3452
3717
|
sourceObjectId: string;
|
|
3453
3718
|
segmentId: string;
|
|
@@ -3455,21 +3720,31 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3455
3720
|
endOffset: number;
|
|
3456
3721
|
quotedText: string;
|
|
3457
3722
|
}[];
|
|
3723
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3724
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
3725
|
+
durability: "durable" | "episodic" | "transient";
|
|
3726
|
+
salience: "low" | "medium" | "high";
|
|
3727
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3728
|
+
contextEligible: boolean;
|
|
3729
|
+
qualityContractVersion: 1;
|
|
3730
|
+
validFrom: string | null;
|
|
3731
|
+
validTo: string | null;
|
|
3732
|
+
title: string;
|
|
3733
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3734
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3735
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3736
|
+
topicTags: string[];
|
|
3737
|
+
language: string;
|
|
3458
3738
|
attributes: Record<string, unknown>;
|
|
3459
|
-
salience: "medium" | "low" | "high";
|
|
3460
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3461
3739
|
subjectEntityKey: string | null;
|
|
3462
3740
|
candidateId: string;
|
|
3463
3741
|
recordKind: "fact" | "episode";
|
|
3464
3742
|
actorEntityKey: string | null;
|
|
3465
|
-
durability: "durable" | "episodic" | "transient";
|
|
3466
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3467
|
-
contextEligible: boolean;
|
|
3468
3743
|
entities: {
|
|
3469
|
-
key: string;
|
|
3470
3744
|
type: string;
|
|
3471
|
-
|
|
3745
|
+
key: string;
|
|
3472
3746
|
canonicalKey: string;
|
|
3747
|
+
displayName: string | null;
|
|
3473
3748
|
attributes: Record<string, unknown>;
|
|
3474
3749
|
}[];
|
|
3475
3750
|
claims: {
|
|
@@ -3482,16 +3757,8 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3482
3757
|
literalValue?: unknown;
|
|
3483
3758
|
}[];
|
|
3484
3759
|
}, {
|
|
3485
|
-
language: string;
|
|
3486
|
-
title: string;
|
|
3487
3760
|
content: string;
|
|
3488
|
-
|
|
3489
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3490
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3491
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3492
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3493
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3494
|
-
topicTags: string[];
|
|
3761
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3495
3762
|
evidence: {
|
|
3496
3763
|
sourceObjectId: string;
|
|
3497
3764
|
segmentId: string;
|
|
@@ -3499,21 +3766,29 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3499
3766
|
endOffset: number;
|
|
3500
3767
|
quotedText: string;
|
|
3501
3768
|
}[];
|
|
3769
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3770
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
3771
|
+
durability: "durable" | "episodic" | "transient";
|
|
3772
|
+
salience: "low" | "medium" | "high";
|
|
3773
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3774
|
+
contextEligible: boolean;
|
|
3775
|
+
qualityContractVersion: 1;
|
|
3776
|
+
title: string;
|
|
3777
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3778
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3779
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3780
|
+
topicTags: string[];
|
|
3781
|
+
language: string;
|
|
3502
3782
|
attributes: Record<string, unknown>;
|
|
3503
|
-
salience: "medium" | "low" | "high";
|
|
3504
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3505
3783
|
subjectEntityKey: string | null;
|
|
3506
3784
|
candidateId: string;
|
|
3507
|
-
recordKind: "fact" | "episode";
|
|
3508
|
-
actorEntityKey: string | null;
|
|
3509
|
-
durability: "durable" | "episodic" | "transient";
|
|
3510
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3511
|
-
contextEligible: boolean;
|
|
3785
|
+
recordKind: "fact" | "episode";
|
|
3786
|
+
actorEntityKey: string | null;
|
|
3512
3787
|
entities: {
|
|
3513
|
-
key: string;
|
|
3514
3788
|
type: string;
|
|
3515
|
-
|
|
3789
|
+
key: string;
|
|
3516
3790
|
canonicalKey: string;
|
|
3791
|
+
displayName: string | null;
|
|
3517
3792
|
attributes: Record<string, unknown>;
|
|
3518
3793
|
}[];
|
|
3519
3794
|
claims: {
|
|
@@ -3542,7 +3817,7 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3542
3817
|
actorEntityKey: z.ZodNullable<z.ZodString>;
|
|
3543
3818
|
subjectEntityKey: z.ZodNullable<z.ZodString>;
|
|
3544
3819
|
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
3545
|
-
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
3820
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"]>;
|
|
3546
3821
|
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
3547
3822
|
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
3548
3823
|
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -3589,16 +3864,16 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3589
3864
|
displayName: z.ZodNullable<z.ZodString>;
|
|
3590
3865
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3591
3866
|
}, "strict", z.ZodTypeAny, {
|
|
3592
|
-
key: string;
|
|
3593
3867
|
type: string;
|
|
3594
|
-
|
|
3868
|
+
key: string;
|
|
3595
3869
|
canonicalKey: string;
|
|
3870
|
+
displayName: string | null;
|
|
3596
3871
|
attributes: Record<string, unknown>;
|
|
3597
3872
|
}, {
|
|
3598
|
-
key: string;
|
|
3599
3873
|
type: string;
|
|
3600
|
-
|
|
3874
|
+
key: string;
|
|
3601
3875
|
canonicalKey: string;
|
|
3876
|
+
displayName: string | null;
|
|
3602
3877
|
attributes: Record<string, unknown>;
|
|
3603
3878
|
}>, "many">;
|
|
3604
3879
|
claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
@@ -3644,18 +3919,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3644
3919
|
}>, "many">;
|
|
3645
3920
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3646
3921
|
}, "strict", z.ZodTypeAny, {
|
|
3647
|
-
language: string;
|
|
3648
|
-
title: string;
|
|
3649
3922
|
content: string;
|
|
3650
|
-
|
|
3651
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3652
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3653
|
-
validFrom: string | null;
|
|
3654
|
-
validTo: string | null;
|
|
3655
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3656
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3657
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3658
|
-
topicTags: string[];
|
|
3923
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3659
3924
|
evidence: {
|
|
3660
3925
|
sourceObjectId: string;
|
|
3661
3926
|
segmentId: string;
|
|
@@ -3663,21 +3928,31 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3663
3928
|
endOffset: number;
|
|
3664
3929
|
quotedText: string;
|
|
3665
3930
|
}[];
|
|
3931
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3932
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
3933
|
+
durability: "durable" | "episodic" | "transient";
|
|
3934
|
+
salience: "low" | "medium" | "high";
|
|
3935
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3936
|
+
contextEligible: boolean;
|
|
3937
|
+
qualityContractVersion: 1;
|
|
3938
|
+
validFrom: string | null;
|
|
3939
|
+
validTo: string | null;
|
|
3940
|
+
title: string;
|
|
3941
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3942
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3943
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3944
|
+
topicTags: string[];
|
|
3945
|
+
language: string;
|
|
3666
3946
|
attributes: Record<string, unknown>;
|
|
3667
|
-
salience: "medium" | "low" | "high";
|
|
3668
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3669
3947
|
subjectEntityKey: string | null;
|
|
3670
3948
|
candidateId: string;
|
|
3671
3949
|
recordKind: "fact" | "episode";
|
|
3672
3950
|
actorEntityKey: string | null;
|
|
3673
|
-
durability: "durable" | "episodic" | "transient";
|
|
3674
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3675
|
-
contextEligible: boolean;
|
|
3676
3951
|
entities: {
|
|
3677
|
-
key: string;
|
|
3678
3952
|
type: string;
|
|
3679
|
-
|
|
3953
|
+
key: string;
|
|
3680
3954
|
canonicalKey: string;
|
|
3955
|
+
displayName: string | null;
|
|
3681
3956
|
attributes: Record<string, unknown>;
|
|
3682
3957
|
}[];
|
|
3683
3958
|
claims: {
|
|
@@ -3690,16 +3965,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3690
3965
|
literalValue?: unknown;
|
|
3691
3966
|
}[];
|
|
3692
3967
|
}, {
|
|
3693
|
-
language: string;
|
|
3694
|
-
title: string;
|
|
3695
3968
|
content: string;
|
|
3696
|
-
|
|
3697
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3698
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3699
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3700
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3701
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3702
|
-
topicTags: string[];
|
|
3969
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3703
3970
|
evidence: {
|
|
3704
3971
|
sourceObjectId: string;
|
|
3705
3972
|
segmentId: string;
|
|
@@ -3707,21 +3974,29 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3707
3974
|
endOffset: number;
|
|
3708
3975
|
quotedText: string;
|
|
3709
3976
|
}[];
|
|
3977
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3978
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
3979
|
+
durability: "durable" | "episodic" | "transient";
|
|
3980
|
+
salience: "low" | "medium" | "high";
|
|
3981
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3982
|
+
contextEligible: boolean;
|
|
3983
|
+
qualityContractVersion: 1;
|
|
3984
|
+
title: string;
|
|
3985
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3986
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3987
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3988
|
+
topicTags: string[];
|
|
3989
|
+
language: string;
|
|
3710
3990
|
attributes: Record<string, unknown>;
|
|
3711
|
-
salience: "medium" | "low" | "high";
|
|
3712
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3713
3991
|
subjectEntityKey: string | null;
|
|
3714
3992
|
candidateId: string;
|
|
3715
3993
|
recordKind: "fact" | "episode";
|
|
3716
3994
|
actorEntityKey: string | null;
|
|
3717
|
-
durability: "durable" | "episodic" | "transient";
|
|
3718
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3719
|
-
contextEligible: boolean;
|
|
3720
3995
|
entities: {
|
|
3721
|
-
key: string;
|
|
3722
3996
|
type: string;
|
|
3723
|
-
|
|
3997
|
+
key: string;
|
|
3724
3998
|
canonicalKey: string;
|
|
3999
|
+
displayName: string | null;
|
|
3725
4000
|
attributes: Record<string, unknown>;
|
|
3726
4001
|
}[];
|
|
3727
4002
|
claims: {
|
|
@@ -3736,18 +4011,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3736
4011
|
validFrom?: unknown;
|
|
3737
4012
|
validTo?: unknown;
|
|
3738
4013
|
}>, {
|
|
3739
|
-
language: string;
|
|
3740
|
-
title: string;
|
|
3741
4014
|
content: string;
|
|
3742
|
-
|
|
3743
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3744
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3745
|
-
validFrom: string | null;
|
|
3746
|
-
validTo: string | null;
|
|
3747
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3748
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3749
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3750
|
-
topicTags: string[];
|
|
4015
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3751
4016
|
evidence: {
|
|
3752
4017
|
sourceObjectId: string;
|
|
3753
4018
|
segmentId: string;
|
|
@@ -3755,21 +4020,31 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3755
4020
|
endOffset: number;
|
|
3756
4021
|
quotedText: string;
|
|
3757
4022
|
}[];
|
|
4023
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
4024
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
4025
|
+
durability: "durable" | "episodic" | "transient";
|
|
4026
|
+
salience: "low" | "medium" | "high";
|
|
4027
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4028
|
+
contextEligible: boolean;
|
|
4029
|
+
qualityContractVersion: 1;
|
|
4030
|
+
validFrom: string | null;
|
|
4031
|
+
validTo: string | null;
|
|
4032
|
+
title: string;
|
|
4033
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
4034
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4035
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4036
|
+
topicTags: string[];
|
|
4037
|
+
language: string;
|
|
3758
4038
|
attributes: Record<string, unknown>;
|
|
3759
|
-
salience: "medium" | "low" | "high";
|
|
3760
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3761
4039
|
subjectEntityKey: string | null;
|
|
3762
4040
|
candidateId: string;
|
|
3763
4041
|
recordKind: "fact" | "episode";
|
|
3764
4042
|
actorEntityKey: string | null;
|
|
3765
|
-
durability: "durable" | "episodic" | "transient";
|
|
3766
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3767
|
-
contextEligible: boolean;
|
|
3768
4043
|
entities: {
|
|
3769
|
-
key: string;
|
|
3770
4044
|
type: string;
|
|
3771
|
-
|
|
4045
|
+
key: string;
|
|
3772
4046
|
canonicalKey: string;
|
|
4047
|
+
displayName: string | null;
|
|
3773
4048
|
attributes: Record<string, unknown>;
|
|
3774
4049
|
}[];
|
|
3775
4050
|
claims: {
|
|
@@ -3782,16 +4057,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3782
4057
|
literalValue?: unknown;
|
|
3783
4058
|
}[];
|
|
3784
4059
|
}, {
|
|
3785
|
-
language: string;
|
|
3786
|
-
title: string;
|
|
3787
4060
|
content: string;
|
|
3788
|
-
|
|
3789
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3790
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3791
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3792
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3793
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3794
|
-
topicTags: string[];
|
|
4061
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3795
4062
|
evidence: {
|
|
3796
4063
|
sourceObjectId: string;
|
|
3797
4064
|
segmentId: string;
|
|
@@ -3799,21 +4066,29 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3799
4066
|
endOffset: number;
|
|
3800
4067
|
quotedText: string;
|
|
3801
4068
|
}[];
|
|
4069
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
4070
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
4071
|
+
durability: "durable" | "episodic" | "transient";
|
|
4072
|
+
salience: "low" | "medium" | "high";
|
|
4073
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4074
|
+
contextEligible: boolean;
|
|
4075
|
+
qualityContractVersion: 1;
|
|
4076
|
+
title: string;
|
|
4077
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
4078
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4079
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4080
|
+
topicTags: string[];
|
|
4081
|
+
language: string;
|
|
3802
4082
|
attributes: Record<string, unknown>;
|
|
3803
|
-
salience: "medium" | "low" | "high";
|
|
3804
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3805
4083
|
subjectEntityKey: string | null;
|
|
3806
4084
|
candidateId: string;
|
|
3807
4085
|
recordKind: "fact" | "episode";
|
|
3808
4086
|
actorEntityKey: string | null;
|
|
3809
|
-
durability: "durable" | "episodic" | "transient";
|
|
3810
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3811
|
-
contextEligible: boolean;
|
|
3812
4087
|
entities: {
|
|
3813
|
-
key: string;
|
|
3814
4088
|
type: string;
|
|
3815
|
-
|
|
4089
|
+
key: string;
|
|
3816
4090
|
canonicalKey: string;
|
|
4091
|
+
displayName: string | null;
|
|
3817
4092
|
attributes: Record<string, unknown>;
|
|
3818
4093
|
}[];
|
|
3819
4094
|
claims: {
|
|
@@ -3830,18 +4105,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3830
4105
|
}>, "many">;
|
|
3831
4106
|
}, "strict", z.ZodTypeAny, {
|
|
3832
4107
|
records: {
|
|
3833
|
-
language: string;
|
|
3834
|
-
title: string;
|
|
3835
4108
|
content: string;
|
|
3836
|
-
|
|
3837
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3838
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3839
|
-
validFrom: string | null;
|
|
3840
|
-
validTo: string | null;
|
|
3841
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3842
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3843
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3844
|
-
topicTags: string[];
|
|
4109
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3845
4110
|
evidence: {
|
|
3846
4111
|
sourceObjectId: string;
|
|
3847
4112
|
segmentId: string;
|
|
@@ -3849,21 +4114,31 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3849
4114
|
endOffset: number;
|
|
3850
4115
|
quotedText: string;
|
|
3851
4116
|
}[];
|
|
4117
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
4118
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
4119
|
+
durability: "durable" | "episodic" | "transient";
|
|
4120
|
+
salience: "low" | "medium" | "high";
|
|
4121
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4122
|
+
contextEligible: boolean;
|
|
4123
|
+
qualityContractVersion: 1;
|
|
4124
|
+
validFrom: string | null;
|
|
4125
|
+
validTo: string | null;
|
|
4126
|
+
title: string;
|
|
4127
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
4128
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4129
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4130
|
+
topicTags: string[];
|
|
4131
|
+
language: string;
|
|
3852
4132
|
attributes: Record<string, unknown>;
|
|
3853
|
-
salience: "medium" | "low" | "high";
|
|
3854
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3855
4133
|
subjectEntityKey: string | null;
|
|
3856
4134
|
candidateId: string;
|
|
3857
4135
|
recordKind: "fact" | "episode";
|
|
3858
4136
|
actorEntityKey: string | null;
|
|
3859
|
-
durability: "durable" | "episodic" | "transient";
|
|
3860
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3861
|
-
contextEligible: boolean;
|
|
3862
4137
|
entities: {
|
|
3863
|
-
key: string;
|
|
3864
4138
|
type: string;
|
|
3865
|
-
|
|
4139
|
+
key: string;
|
|
3866
4140
|
canonicalKey: string;
|
|
4141
|
+
displayName: string | null;
|
|
3867
4142
|
attributes: Record<string, unknown>;
|
|
3868
4143
|
}[];
|
|
3869
4144
|
claims: {
|
|
@@ -3878,16 +4153,8 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3878
4153
|
}[];
|
|
3879
4154
|
}, {
|
|
3880
4155
|
records: {
|
|
3881
|
-
language: string;
|
|
3882
|
-
title: string;
|
|
3883
4156
|
content: string;
|
|
3884
|
-
|
|
3885
|
-
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
3886
|
-
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3887
|
-
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
3888
|
-
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
3889
|
-
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3890
|
-
topicTags: string[];
|
|
4157
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3891
4158
|
evidence: {
|
|
3892
4159
|
sourceObjectId: string;
|
|
3893
4160
|
segmentId: string;
|
|
@@ -3895,21 +4162,29 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3895
4162
|
endOffset: number;
|
|
3896
4163
|
quotedText: string;
|
|
3897
4164
|
}[];
|
|
4165
|
+
authorshipClass: "unknown" | "bot" | "application" | "connected_user" | "other_human" | "system";
|
|
4166
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed" | "caller_asserted";
|
|
4167
|
+
durability: "durable" | "episodic" | "transient";
|
|
4168
|
+
salience: "low" | "medium" | "high";
|
|
4169
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4170
|
+
contextEligible: boolean;
|
|
4171
|
+
qualityContractVersion: 1;
|
|
4172
|
+
title: string;
|
|
4173
|
+
memoryType: "decision" | "preference" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
4174
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
4175
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4176
|
+
topicTags: string[];
|
|
4177
|
+
language: string;
|
|
3898
4178
|
attributes: Record<string, unknown>;
|
|
3899
|
-
salience: "medium" | "low" | "high";
|
|
3900
|
-
evidenceConfidence: "medium" | "low" | "high";
|
|
3901
4179
|
subjectEntityKey: string | null;
|
|
3902
4180
|
candidateId: string;
|
|
3903
4181
|
recordKind: "fact" | "episode";
|
|
3904
4182
|
actorEntityKey: string | null;
|
|
3905
|
-
durability: "durable" | "episodic" | "transient";
|
|
3906
|
-
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3907
|
-
contextEligible: boolean;
|
|
3908
4183
|
entities: {
|
|
3909
|
-
key: string;
|
|
3910
4184
|
type: string;
|
|
3911
|
-
|
|
4185
|
+
key: string;
|
|
3912
4186
|
canonicalKey: string;
|
|
4187
|
+
displayName: string | null;
|
|
3913
4188
|
attributes: Record<string, unknown>;
|
|
3914
4189
|
}[];
|
|
3915
4190
|
claims: {
|
|
@@ -3926,6 +4201,22 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
3926
4201
|
}[];
|
|
3927
4202
|
}>;
|
|
3928
4203
|
export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
4204
|
+
quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4205
|
+
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
4206
|
+
destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
4207
|
+
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
4208
|
+
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
4209
|
+
}, "strict", z.ZodTypeAny, {
|
|
4210
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4211
|
+
durability: "durable" | "episodic" | "transient";
|
|
4212
|
+
salience: "low" | "medium" | "high";
|
|
4213
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4214
|
+
}, {
|
|
4215
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4216
|
+
durability: "durable" | "episodic" | "transient";
|
|
4217
|
+
salience: "low" | "medium" | "high";
|
|
4218
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4219
|
+
}>>>;
|
|
3929
4220
|
authorshipStatus: z.ZodOptional<z.ZodEnum<["verified_sender_text", "quoted_or_forwarded", "uncertain"]>>;
|
|
3930
4221
|
candidateId: z.ZodString;
|
|
3931
4222
|
status: z.ZodEnum<["classified", "uncertain"]>;
|
|
@@ -3940,6 +4231,12 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3940
4231
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3941
4232
|
candidateId: string;
|
|
3942
4233
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4234
|
+
quality?: {
|
|
4235
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4236
|
+
durability: "durable" | "episodic" | "transient";
|
|
4237
|
+
salience: "low" | "medium" | "high";
|
|
4238
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4239
|
+
} | null | undefined;
|
|
3943
4240
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3944
4241
|
}, {
|
|
3945
4242
|
status: "uncertain" | "classified";
|
|
@@ -3948,6 +4245,12 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3948
4245
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3949
4246
|
candidateId: string;
|
|
3950
4247
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4248
|
+
quality?: {
|
|
4249
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4250
|
+
durability: "durable" | "episodic" | "transient";
|
|
4251
|
+
salience: "low" | "medium" | "high";
|
|
4252
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4253
|
+
} | null | undefined;
|
|
3951
4254
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3952
4255
|
}>, {
|
|
3953
4256
|
status: "uncertain" | "classified";
|
|
@@ -3956,6 +4259,12 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3956
4259
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3957
4260
|
candidateId: string;
|
|
3958
4261
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4262
|
+
quality?: {
|
|
4263
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4264
|
+
durability: "durable" | "episodic" | "transient";
|
|
4265
|
+
salience: "low" | "medium" | "high";
|
|
4266
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4267
|
+
} | null | undefined;
|
|
3959
4268
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3960
4269
|
}, {
|
|
3961
4270
|
status: "uncertain" | "classified";
|
|
@@ -3964,10 +4273,32 @@ export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3964
4273
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3965
4274
|
candidateId: string;
|
|
3966
4275
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4276
|
+
quality?: {
|
|
4277
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4278
|
+
durability: "durable" | "episodic" | "transient";
|
|
4279
|
+
salience: "low" | "medium" | "high";
|
|
4280
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4281
|
+
} | null | undefined;
|
|
3967
4282
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3968
4283
|
}>;
|
|
3969
4284
|
export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
3970
4285
|
decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
4286
|
+
quality: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4287
|
+
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
4288
|
+
destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
4289
|
+
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
4290
|
+
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
4291
|
+
}, "strict", z.ZodTypeAny, {
|
|
4292
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4293
|
+
durability: "durable" | "episodic" | "transient";
|
|
4294
|
+
salience: "low" | "medium" | "high";
|
|
4295
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4296
|
+
}, {
|
|
4297
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4298
|
+
durability: "durable" | "episodic" | "transient";
|
|
4299
|
+
salience: "low" | "medium" | "high";
|
|
4300
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4301
|
+
}>>>;
|
|
3971
4302
|
authorshipStatus: z.ZodOptional<z.ZodEnum<["verified_sender_text", "quoted_or_forwarded", "uncertain"]>>;
|
|
3972
4303
|
candidateId: z.ZodString;
|
|
3973
4304
|
status: z.ZodEnum<["classified", "uncertain"]>;
|
|
@@ -3982,6 +4313,12 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
3982
4313
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3983
4314
|
candidateId: string;
|
|
3984
4315
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4316
|
+
quality?: {
|
|
4317
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4318
|
+
durability: "durable" | "episodic" | "transient";
|
|
4319
|
+
salience: "low" | "medium" | "high";
|
|
4320
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4321
|
+
} | null | undefined;
|
|
3985
4322
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3986
4323
|
}, {
|
|
3987
4324
|
status: "uncertain" | "classified";
|
|
@@ -3990,6 +4327,12 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
3990
4327
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3991
4328
|
candidateId: string;
|
|
3992
4329
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4330
|
+
quality?: {
|
|
4331
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4332
|
+
durability: "durable" | "episodic" | "transient";
|
|
4333
|
+
salience: "low" | "medium" | "high";
|
|
4334
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4335
|
+
} | null | undefined;
|
|
3993
4336
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
3994
4337
|
}>, {
|
|
3995
4338
|
status: "uncertain" | "classified";
|
|
@@ -3998,6 +4341,12 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
3998
4341
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
3999
4342
|
candidateId: string;
|
|
4000
4343
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4344
|
+
quality?: {
|
|
4345
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4346
|
+
durability: "durable" | "episodic" | "transient";
|
|
4347
|
+
salience: "low" | "medium" | "high";
|
|
4348
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4349
|
+
} | null | undefined;
|
|
4001
4350
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4002
4351
|
}, {
|
|
4003
4352
|
status: "uncertain" | "classified";
|
|
@@ -4006,6 +4355,12 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
4006
4355
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4007
4356
|
candidateId: string;
|
|
4008
4357
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4358
|
+
quality?: {
|
|
4359
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4360
|
+
durability: "durable" | "episodic" | "transient";
|
|
4361
|
+
salience: "low" | "medium" | "high";
|
|
4362
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4363
|
+
} | null | undefined;
|
|
4009
4364
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4010
4365
|
}>, "many">;
|
|
4011
4366
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -4016,6 +4371,12 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
4016
4371
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4017
4372
|
candidateId: string;
|
|
4018
4373
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4374
|
+
quality?: {
|
|
4375
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4376
|
+
durability: "durable" | "episodic" | "transient";
|
|
4377
|
+
salience: "low" | "medium" | "high";
|
|
4378
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4379
|
+
} | null | undefined;
|
|
4019
4380
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4020
4381
|
}[];
|
|
4021
4382
|
}, {
|
|
@@ -4026,6 +4387,12 @@ export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
|
4026
4387
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
4027
4388
|
candidateId: string;
|
|
4028
4389
|
retentionStatus: "memory" | "uncertain" | "source_only" | "reject_noise";
|
|
4390
|
+
quality?: {
|
|
4391
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
4392
|
+
durability: "durable" | "episodic" | "transient";
|
|
4393
|
+
salience: "low" | "medium" | "high";
|
|
4394
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
4395
|
+
} | null | undefined;
|
|
4029
4396
|
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
4030
4397
|
}[];
|
|
4031
4398
|
}>;
|
|
@@ -4034,27 +4401,32 @@ export declare const memoryConsolidationResultSchema: z.ZodObject<{
|
|
|
4034
4401
|
candidateId: z.ZodString;
|
|
4035
4402
|
action: z.ZodEnum<["add", "supersede", "contradict", "support", "no_change"]>;
|
|
4036
4403
|
targetRecordId: z.ZodNullable<z.ZodString>;
|
|
4404
|
+
targetCandidateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4037
4405
|
reason: z.ZodString;
|
|
4038
4406
|
}, "strict", z.ZodTypeAny, {
|
|
4039
4407
|
reason: string;
|
|
4040
4408
|
action: "add" | "supersede" | "contradict" | "support" | "no_change";
|
|
4041
4409
|
candidateId: string;
|
|
4042
4410
|
targetRecordId: string | null;
|
|
4411
|
+
targetCandidateId?: string | null | undefined;
|
|
4043
4412
|
}, {
|
|
4044
4413
|
reason: string;
|
|
4045
4414
|
action: "add" | "supersede" | "contradict" | "support" | "no_change";
|
|
4046
4415
|
candidateId: string;
|
|
4047
4416
|
targetRecordId: string | null;
|
|
4417
|
+
targetCandidateId?: string | null | undefined;
|
|
4048
4418
|
}>, {
|
|
4049
4419
|
reason: string;
|
|
4050
4420
|
action: "add" | "supersede" | "contradict" | "support" | "no_change";
|
|
4051
4421
|
candidateId: string;
|
|
4052
4422
|
targetRecordId: string | null;
|
|
4423
|
+
targetCandidateId?: string | null | undefined;
|
|
4053
4424
|
}, {
|
|
4054
4425
|
reason: string;
|
|
4055
4426
|
action: "add" | "supersede" | "contradict" | "support" | "no_change";
|
|
4056
4427
|
candidateId: string;
|
|
4057
4428
|
targetRecordId: string | null;
|
|
4429
|
+
targetCandidateId?: string | null | undefined;
|
|
4058
4430
|
}>, "many">;
|
|
4059
4431
|
}, "strict", z.ZodTypeAny, {
|
|
4060
4432
|
decisions: {
|
|
@@ -4062,6 +4434,7 @@ export declare const memoryConsolidationResultSchema: z.ZodObject<{
|
|
|
4062
4434
|
action: "add" | "supersede" | "contradict" | "support" | "no_change";
|
|
4063
4435
|
candidateId: string;
|
|
4064
4436
|
targetRecordId: string | null;
|
|
4437
|
+
targetCandidateId?: string | null | undefined;
|
|
4065
4438
|
}[];
|
|
4066
4439
|
}, {
|
|
4067
4440
|
decisions: {
|
|
@@ -4069,6 +4442,7 @@ export declare const memoryConsolidationResultSchema: z.ZodObject<{
|
|
|
4069
4442
|
action: "add" | "supersede" | "contradict" | "support" | "no_change";
|
|
4070
4443
|
candidateId: string;
|
|
4071
4444
|
targetRecordId: string | null;
|
|
4445
|
+
targetCandidateId?: string | null | undefined;
|
|
4072
4446
|
}[];
|
|
4073
4447
|
}>;
|
|
4074
4448
|
export type MemoryExtractedRecord = z.infer<typeof memoryExtractedRecordSchema>;
|
|
@@ -4235,7 +4609,7 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
4235
4609
|
};
|
|
4236
4610
|
readonly admissionBasis: {
|
|
4237
4611
|
readonly type: "string";
|
|
4238
|
-
readonly enum: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"];
|
|
4612
|
+
readonly enum: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed", "caller_asserted"];
|
|
4239
4613
|
};
|
|
4240
4614
|
readonly durability: {
|
|
4241
4615
|
readonly type: "string";
|
|
@@ -4418,7 +4792,7 @@ export declare const memorySafetyJsonSchema: {
|
|
|
4418
4792
|
readonly items: {
|
|
4419
4793
|
readonly type: "object";
|
|
4420
4794
|
readonly additionalProperties: false;
|
|
4421
|
-
readonly required: readonly ["candidateId", "status", "retentionStatus", "sensitivityClass", "restrictedDataClasses", "reason"];
|
|
4795
|
+
readonly required: readonly ["candidateId", "status", "retentionStatus", "sensitivityClass", "restrictedDataClasses", "reason", "quality"];
|
|
4422
4796
|
readonly properties: {
|
|
4423
4797
|
readonly candidateId: {
|
|
4424
4798
|
readonly type: "string";
|
|
@@ -4431,6 +4805,33 @@ export declare const memorySafetyJsonSchema: {
|
|
|
4431
4805
|
readonly type: "string";
|
|
4432
4806
|
readonly enum: readonly ["memory", "source_only", "reject_noise", "uncertain"];
|
|
4433
4807
|
};
|
|
4808
|
+
readonly quality: {
|
|
4809
|
+
readonly anyOf: readonly [{
|
|
4810
|
+
readonly type: "null";
|
|
4811
|
+
}, {
|
|
4812
|
+
readonly type: "object";
|
|
4813
|
+
readonly additionalProperties: false;
|
|
4814
|
+
readonly required: readonly ["durability", "destination", "salience", "evidenceConfidence"];
|
|
4815
|
+
readonly properties: {
|
|
4816
|
+
readonly durability: {
|
|
4817
|
+
readonly type: "string";
|
|
4818
|
+
readonly enum: readonly ["durable", "episodic", "transient"];
|
|
4819
|
+
};
|
|
4820
|
+
readonly destination: {
|
|
4821
|
+
readonly type: "string";
|
|
4822
|
+
readonly enum: readonly ["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"];
|
|
4823
|
+
};
|
|
4824
|
+
readonly salience: {
|
|
4825
|
+
readonly type: "string";
|
|
4826
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
4827
|
+
};
|
|
4828
|
+
readonly evidenceConfidence: {
|
|
4829
|
+
readonly type: "string";
|
|
4830
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
4831
|
+
};
|
|
4832
|
+
};
|
|
4833
|
+
}];
|
|
4834
|
+
};
|
|
4434
4835
|
readonly sensitivityClass: {
|
|
4435
4836
|
readonly type: "string";
|
|
4436
4837
|
readonly enum: readonly ["standard", "personal", "restricted", "secret"];
|
|
@@ -4462,7 +4863,7 @@ export declare const memoryConsolidationJsonSchema: {
|
|
|
4462
4863
|
readonly items: {
|
|
4463
4864
|
readonly type: "object";
|
|
4464
4865
|
readonly additionalProperties: false;
|
|
4465
|
-
readonly required: readonly ["candidateId", "action", "targetRecordId", "reason"];
|
|
4866
|
+
readonly required: readonly ["candidateId", "action", "targetRecordId", "targetCandidateId", "reason"];
|
|
4466
4867
|
readonly properties: {
|
|
4467
4868
|
readonly candidateId: {
|
|
4468
4869
|
readonly type: "string";
|
|
@@ -4475,6 +4876,9 @@ export declare const memoryConsolidationJsonSchema: {
|
|
|
4475
4876
|
readonly type: readonly ["string", "null"];
|
|
4476
4877
|
readonly format: "uuid";
|
|
4477
4878
|
};
|
|
4879
|
+
readonly targetCandidateId: {
|
|
4880
|
+
readonly type: readonly ["string", "null"];
|
|
4881
|
+
};
|
|
4478
4882
|
readonly reason: {
|
|
4479
4883
|
readonly type: "string";
|
|
4480
4884
|
};
|
|
@@ -4483,10 +4887,18 @@ export declare const memoryConsolidationJsonSchema: {
|
|
|
4483
4887
|
};
|
|
4484
4888
|
};
|
|
4485
4889
|
};
|
|
4486
|
-
|
|
4890
|
+
type MemoryProfileEvidenceIds = {
|
|
4891
|
+
allowedRecordVersionIds: readonly string[];
|
|
4892
|
+
durableRecordVersionIds: readonly string[];
|
|
4893
|
+
};
|
|
4894
|
+
export declare function memoryProfileJsonSchema(allowedBucketKeys: readonly string[], evidence: MemoryProfileEvidenceIds): {
|
|
4487
4895
|
readonly type: "object";
|
|
4488
4896
|
readonly additionalProperties: false;
|
|
4489
4897
|
readonly required: readonly ["buckets"];
|
|
4898
|
+
readonly $defs: Record<string, {
|
|
4899
|
+
type: "string";
|
|
4900
|
+
enum: string[];
|
|
4901
|
+
}>;
|
|
4490
4902
|
readonly properties: {
|
|
4491
4903
|
readonly buckets: {
|
|
4492
4904
|
readonly type: "array";
|
|
@@ -4510,20 +4922,66 @@ export declare function memoryProfileJsonSchema(allowedBucketKeys: readonly stri
|
|
|
4510
4922
|
readonly minItems: 1;
|
|
4511
4923
|
readonly maxItems: 500;
|
|
4512
4924
|
readonly items: {
|
|
4513
|
-
|
|
4514
|
-
|
|
4925
|
+
anyOf: {
|
|
4926
|
+
$ref: string;
|
|
4927
|
+
}[];
|
|
4928
|
+
type?: never;
|
|
4929
|
+
format?: never;
|
|
4930
|
+
} | {
|
|
4931
|
+
type: string;
|
|
4932
|
+
format: string;
|
|
4933
|
+
anyOf?: never;
|
|
4515
4934
|
};
|
|
4516
4935
|
};
|
|
4517
4936
|
};
|
|
4937
|
+
} | {
|
|
4938
|
+
anyOf: {
|
|
4939
|
+
readonly type: "object";
|
|
4940
|
+
readonly additionalProperties: false;
|
|
4941
|
+
readonly required: readonly ["key", "content", "includedRecordVersionIds"];
|
|
4942
|
+
readonly properties: {
|
|
4943
|
+
readonly key: {
|
|
4944
|
+
readonly type: "string";
|
|
4945
|
+
readonly enum: readonly string[];
|
|
4946
|
+
};
|
|
4947
|
+
readonly content: {
|
|
4948
|
+
readonly type: "string";
|
|
4949
|
+
readonly minLength: 1;
|
|
4950
|
+
readonly maxLength: 100000;
|
|
4951
|
+
};
|
|
4952
|
+
readonly includedRecordVersionIds: {
|
|
4953
|
+
readonly type: "array";
|
|
4954
|
+
readonly minItems: 1;
|
|
4955
|
+
readonly maxItems: 500;
|
|
4956
|
+
readonly items: {
|
|
4957
|
+
anyOf: {
|
|
4958
|
+
$ref: string;
|
|
4959
|
+
}[];
|
|
4960
|
+
type?: never;
|
|
4961
|
+
format?: never;
|
|
4962
|
+
} | {
|
|
4963
|
+
type: string;
|
|
4964
|
+
format: string;
|
|
4965
|
+
anyOf?: never;
|
|
4966
|
+
};
|
|
4967
|
+
};
|
|
4968
|
+
};
|
|
4969
|
+
}[];
|
|
4518
4970
|
};
|
|
4519
4971
|
};
|
|
4520
4972
|
};
|
|
4521
4973
|
};
|
|
4522
|
-
export declare function memoryProfileDeltaJsonSchema(allowedBucketKeys: readonly string[]): {
|
|
4523
|
-
readonly type: "object";
|
|
4524
|
-
readonly additionalProperties: false;
|
|
4974
|
+
export declare function memoryProfileDeltaJsonSchema(allowedBucketKeys: readonly string[], evidence: MemoryProfileEvidenceIds): {
|
|
4525
4975
|
readonly required: readonly ["buckets", "removeBucketKeys"];
|
|
4526
4976
|
readonly properties: {
|
|
4977
|
+
readonly removeBucketKeys: {
|
|
4978
|
+
readonly type: "array";
|
|
4979
|
+
readonly maxItems: number;
|
|
4980
|
+
readonly items: {
|
|
4981
|
+
readonly type: "string";
|
|
4982
|
+
readonly enum: readonly string[];
|
|
4983
|
+
};
|
|
4984
|
+
};
|
|
4527
4985
|
readonly buckets: {
|
|
4528
4986
|
readonly type: "array";
|
|
4529
4987
|
readonly maxItems: number;
|
|
@@ -4546,21 +5004,60 @@ export declare function memoryProfileDeltaJsonSchema(allowedBucketKeys: readonly
|
|
|
4546
5004
|
readonly minItems: 1;
|
|
4547
5005
|
readonly maxItems: 500;
|
|
4548
5006
|
readonly items: {
|
|
4549
|
-
|
|
4550
|
-
|
|
5007
|
+
anyOf: {
|
|
5008
|
+
$ref: string;
|
|
5009
|
+
}[];
|
|
5010
|
+
type?: never;
|
|
5011
|
+
format?: never;
|
|
5012
|
+
} | {
|
|
5013
|
+
type: string;
|
|
5014
|
+
format: string;
|
|
5015
|
+
anyOf?: never;
|
|
4551
5016
|
};
|
|
4552
5017
|
};
|
|
4553
5018
|
};
|
|
4554
|
-
}
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
5019
|
+
} | {
|
|
5020
|
+
anyOf: {
|
|
5021
|
+
readonly type: "object";
|
|
5022
|
+
readonly additionalProperties: false;
|
|
5023
|
+
readonly required: readonly ["key", "content", "includedRecordVersionIds"];
|
|
5024
|
+
readonly properties: {
|
|
5025
|
+
readonly key: {
|
|
5026
|
+
readonly type: "string";
|
|
5027
|
+
readonly enum: readonly string[];
|
|
5028
|
+
};
|
|
5029
|
+
readonly content: {
|
|
5030
|
+
readonly type: "string";
|
|
5031
|
+
readonly minLength: 1;
|
|
5032
|
+
readonly maxLength: 100000;
|
|
5033
|
+
};
|
|
5034
|
+
readonly includedRecordVersionIds: {
|
|
5035
|
+
readonly type: "array";
|
|
5036
|
+
readonly minItems: 1;
|
|
5037
|
+
readonly maxItems: 500;
|
|
5038
|
+
readonly items: {
|
|
5039
|
+
anyOf: {
|
|
5040
|
+
$ref: string;
|
|
5041
|
+
}[];
|
|
5042
|
+
type?: never;
|
|
5043
|
+
format?: never;
|
|
5044
|
+
} | {
|
|
5045
|
+
type: string;
|
|
5046
|
+
format: string;
|
|
5047
|
+
anyOf?: never;
|
|
5048
|
+
};
|
|
5049
|
+
};
|
|
5050
|
+
};
|
|
5051
|
+
}[];
|
|
4562
5052
|
};
|
|
4563
5053
|
};
|
|
4564
5054
|
};
|
|
5055
|
+
readonly type: "object";
|
|
5056
|
+
readonly additionalProperties: false;
|
|
5057
|
+
readonly $defs: Record<string, {
|
|
5058
|
+
type: "string";
|
|
5059
|
+
enum: string[];
|
|
5060
|
+
}>;
|
|
4565
5061
|
};
|
|
5062
|
+
export {};
|
|
4566
5063
|
//# sourceMappingURL=memory-contract.d.ts.map
|