@cogitator-ai/memory 0.6.8 → 0.6.12

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.
@@ -1,619 +1,437 @@
1
1
  import { z } from 'zod';
2
- export declare const EntityTypeSchema: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
3
- export declare const RelationTypeSchema: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
4
- export declare const NodeSourceSchema: z.ZodEnum<["extracted", "user", "inferred"]>;
2
+ export declare const EntityTypeSchema: z.ZodEnum<{
3
+ object: "object";
4
+ custom: "custom";
5
+ person: "person";
6
+ organization: "organization";
7
+ location: "location";
8
+ concept: "concept";
9
+ event: "event";
10
+ }>;
11
+ export declare const RelationTypeSchema: z.ZodEnum<{
12
+ custom: "custom";
13
+ knows: "knows";
14
+ works_at: "works_at";
15
+ located_in: "located_in";
16
+ part_of: "part_of";
17
+ related_to: "related_to";
18
+ created_by: "created_by";
19
+ belongs_to: "belongs_to";
20
+ associated_with: "associated_with";
21
+ causes: "causes";
22
+ precedes: "precedes";
23
+ }>;
24
+ export declare const NodeSourceSchema: z.ZodEnum<{
25
+ user: "user";
26
+ inferred: "inferred";
27
+ extracted: "extracted";
28
+ }>;
5
29
  export declare const GraphNodeSchema: z.ZodObject<{
6
30
  id: z.ZodString;
7
31
  agentId: z.ZodString;
8
- type: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
32
+ type: z.ZodEnum<{
33
+ object: "object";
34
+ custom: "custom";
35
+ person: "person";
36
+ organization: "organization";
37
+ location: "location";
38
+ concept: "concept";
39
+ event: "event";
40
+ }>;
9
41
  name: z.ZodString;
10
- aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
42
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
11
43
  description: z.ZodOptional<z.ZodString>;
12
44
  properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
- embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
45
+ embedding: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
14
46
  confidence: z.ZodNumber;
15
- source: z.ZodEnum<["extracted", "user", "inferred"]>;
47
+ source: z.ZodEnum<{
48
+ user: "user";
49
+ inferred: "inferred";
50
+ extracted: "extracted";
51
+ }>;
16
52
  createdAt: z.ZodDate;
17
53
  updatedAt: z.ZodDate;
18
54
  lastAccessedAt: z.ZodDate;
19
55
  accessCount: z.ZodNumber;
20
56
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21
- }, "strip", z.ZodTypeAny, {
22
- id: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- agentId: string;
26
- confidence: number;
27
- source: "user" | "inferred" | "extracted";
28
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
29
- lastAccessedAt: Date;
30
- accessCount: number;
31
- name: string;
32
- aliases: string[];
33
- properties: Record<string, unknown>;
34
- metadata?: Record<string, unknown> | undefined;
35
- description?: string | undefined;
36
- embedding?: number[] | undefined;
37
- }, {
38
- id: string;
39
- createdAt: Date;
40
- updatedAt: Date;
41
- agentId: string;
42
- confidence: number;
43
- source: "user" | "inferred" | "extracted";
44
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
45
- lastAccessedAt: Date;
46
- accessCount: number;
47
- name: string;
48
- metadata?: Record<string, unknown> | undefined;
49
- aliases?: string[] | undefined;
50
- description?: string | undefined;
51
- properties?: Record<string, unknown> | undefined;
52
- embedding?: number[] | undefined;
53
- }>;
57
+ }, z.core.$strip>;
54
58
  export declare const GraphEdgeSchema: z.ZodObject<{
55
59
  id: z.ZodString;
56
60
  agentId: z.ZodString;
57
61
  sourceNodeId: z.ZodString;
58
62
  targetNodeId: z.ZodString;
59
- type: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
63
+ type: z.ZodEnum<{
64
+ custom: "custom";
65
+ knows: "knows";
66
+ works_at: "works_at";
67
+ located_in: "located_in";
68
+ part_of: "part_of";
69
+ related_to: "related_to";
70
+ created_by: "created_by";
71
+ belongs_to: "belongs_to";
72
+ associated_with: "associated_with";
73
+ causes: "causes";
74
+ precedes: "precedes";
75
+ }>;
60
76
  label: z.ZodOptional<z.ZodString>;
61
77
  weight: z.ZodDefault<z.ZodNumber>;
62
78
  bidirectional: z.ZodDefault<z.ZodBoolean>;
63
79
  properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
64
80
  confidence: z.ZodNumber;
65
- source: z.ZodEnum<["extracted", "user", "inferred"]>;
81
+ source: z.ZodEnum<{
82
+ user: "user";
83
+ inferred: "inferred";
84
+ extracted: "extracted";
85
+ }>;
66
86
  createdAt: z.ZodDate;
67
87
  updatedAt: z.ZodDate;
68
88
  validFrom: z.ZodOptional<z.ZodDate>;
69
89
  validUntil: z.ZodOptional<z.ZodDate>;
70
90
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
71
- }, "strip", z.ZodTypeAny, {
72
- id: string;
73
- createdAt: Date;
74
- updatedAt: Date;
75
- agentId: string;
76
- confidence: number;
77
- source: "user" | "inferred" | "extracted";
78
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
79
- properties: Record<string, unknown>;
80
- sourceNodeId: string;
81
- targetNodeId: string;
82
- weight: number;
83
- bidirectional: boolean;
84
- metadata?: Record<string, unknown> | undefined;
85
- label?: string | undefined;
86
- validFrom?: Date | undefined;
87
- validUntil?: Date | undefined;
88
- }, {
89
- id: string;
90
- createdAt: Date;
91
- updatedAt: Date;
92
- agentId: string;
93
- confidence: number;
94
- source: "user" | "inferred" | "extracted";
95
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
96
- sourceNodeId: string;
97
- targetNodeId: string;
98
- metadata?: Record<string, unknown> | undefined;
99
- properties?: Record<string, unknown> | undefined;
100
- label?: string | undefined;
101
- weight?: number | undefined;
102
- bidirectional?: boolean | undefined;
103
- validFrom?: Date | undefined;
104
- validUntil?: Date | undefined;
105
- }>;
91
+ }, z.core.$strip>;
106
92
  export declare const ExtractedEntitySchema: z.ZodObject<{
107
93
  name: z.ZodString;
108
- type: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
109
- aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
+ type: z.ZodEnum<{
95
+ object: "object";
96
+ custom: "custom";
97
+ person: "person";
98
+ organization: "organization";
99
+ location: "location";
100
+ concept: "concept";
101
+ event: "event";
102
+ }>;
103
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
104
  description: z.ZodOptional<z.ZodString>;
111
105
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
106
  confidence: z.ZodNumber;
113
- }, "strip", z.ZodTypeAny, {
114
- confidence: number;
115
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
116
- name: string;
117
- aliases?: string[] | undefined;
118
- description?: string | undefined;
119
- properties?: Record<string, unknown> | undefined;
120
- }, {
121
- confidence: number;
122
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
123
- name: string;
124
- aliases?: string[] | undefined;
125
- description?: string | undefined;
126
- properties?: Record<string, unknown> | undefined;
127
- }>;
107
+ }, z.core.$strip>;
128
108
  export declare const ExtractedRelationSchema: z.ZodObject<{
129
109
  sourceEntity: z.ZodString;
130
110
  targetEntity: z.ZodString;
131
- type: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
111
+ type: z.ZodEnum<{
112
+ custom: "custom";
113
+ knows: "knows";
114
+ works_at: "works_at";
115
+ located_in: "located_in";
116
+ part_of: "part_of";
117
+ related_to: "related_to";
118
+ created_by: "created_by";
119
+ belongs_to: "belongs_to";
120
+ associated_with: "associated_with";
121
+ causes: "causes";
122
+ precedes: "precedes";
123
+ }>;
132
124
  label: z.ZodOptional<z.ZodString>;
133
125
  weight: z.ZodOptional<z.ZodNumber>;
134
126
  bidirectional: z.ZodOptional<z.ZodBoolean>;
135
127
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
128
  confidence: z.ZodNumber;
137
- }, "strip", z.ZodTypeAny, {
138
- confidence: number;
139
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
140
- sourceEntity: string;
141
- targetEntity: string;
142
- properties?: Record<string, unknown> | undefined;
143
- label?: string | undefined;
144
- weight?: number | undefined;
145
- bidirectional?: boolean | undefined;
146
- }, {
147
- confidence: number;
148
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
149
- sourceEntity: string;
150
- targetEntity: string;
151
- properties?: Record<string, unknown> | undefined;
152
- label?: string | undefined;
153
- weight?: number | undefined;
154
- bidirectional?: boolean | undefined;
155
- }>;
129
+ }, z.core.$strip>;
156
130
  export declare const ExtractionResultSchema: z.ZodObject<{
157
131
  entities: z.ZodArray<z.ZodObject<{
158
132
  name: z.ZodString;
159
- type: z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>;
160
- aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ type: z.ZodEnum<{
134
+ object: "object";
135
+ custom: "custom";
136
+ person: "person";
137
+ organization: "organization";
138
+ location: "location";
139
+ concept: "concept";
140
+ event: "event";
141
+ }>;
142
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
143
  description: z.ZodOptional<z.ZodString>;
162
144
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
163
145
  confidence: z.ZodNumber;
164
- }, "strip", z.ZodTypeAny, {
165
- confidence: number;
166
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
167
- name: string;
168
- aliases?: string[] | undefined;
169
- description?: string | undefined;
170
- properties?: Record<string, unknown> | undefined;
171
- }, {
172
- confidence: number;
173
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
174
- name: string;
175
- aliases?: string[] | undefined;
176
- description?: string | undefined;
177
- properties?: Record<string, unknown> | undefined;
178
- }>, "many">;
146
+ }, z.core.$strip>>;
179
147
  relations: z.ZodArray<z.ZodObject<{
180
148
  sourceEntity: z.ZodString;
181
149
  targetEntity: z.ZodString;
182
- type: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
150
+ type: z.ZodEnum<{
151
+ custom: "custom";
152
+ knows: "knows";
153
+ works_at: "works_at";
154
+ located_in: "located_in";
155
+ part_of: "part_of";
156
+ related_to: "related_to";
157
+ created_by: "created_by";
158
+ belongs_to: "belongs_to";
159
+ associated_with: "associated_with";
160
+ causes: "causes";
161
+ precedes: "precedes";
162
+ }>;
183
163
  label: z.ZodOptional<z.ZodString>;
184
164
  weight: z.ZodOptional<z.ZodNumber>;
185
165
  bidirectional: z.ZodOptional<z.ZodBoolean>;
186
166
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
167
  confidence: z.ZodNumber;
188
- }, "strip", z.ZodTypeAny, {
189
- confidence: number;
190
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
191
- sourceEntity: string;
192
- targetEntity: string;
193
- properties?: Record<string, unknown> | undefined;
194
- label?: string | undefined;
195
- weight?: number | undefined;
196
- bidirectional?: boolean | undefined;
197
- }, {
198
- confidence: number;
199
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
200
- sourceEntity: string;
201
- targetEntity: string;
202
- properties?: Record<string, unknown> | undefined;
203
- label?: string | undefined;
204
- weight?: number | undefined;
205
- bidirectional?: boolean | undefined;
206
- }>, "many">;
168
+ }, z.core.$strip>>;
207
169
  text: z.ZodString;
208
170
  timestamp: z.ZodDate;
209
- }, "strip", z.ZodTypeAny, {
210
- text: string;
211
- entities: {
212
- confidence: number;
213
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
214
- name: string;
215
- aliases?: string[] | undefined;
216
- description?: string | undefined;
217
- properties?: Record<string, unknown> | undefined;
218
- }[];
219
- relations: {
220
- confidence: number;
221
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
222
- sourceEntity: string;
223
- targetEntity: string;
224
- properties?: Record<string, unknown> | undefined;
225
- label?: string | undefined;
226
- weight?: number | undefined;
227
- bidirectional?: boolean | undefined;
228
- }[];
229
- timestamp: Date;
230
- }, {
231
- text: string;
232
- entities: {
233
- confidence: number;
234
- type: "object" | "custom" | "person" | "organization" | "location" | "concept" | "event";
235
- name: string;
236
- aliases?: string[] | undefined;
237
- description?: string | undefined;
238
- properties?: Record<string, unknown> | undefined;
239
- }[];
240
- relations: {
241
- confidence: number;
242
- type: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
243
- sourceEntity: string;
244
- targetEntity: string;
245
- properties?: Record<string, unknown> | undefined;
246
- label?: string | undefined;
247
- weight?: number | undefined;
248
- bidirectional?: boolean | undefined;
249
- }[];
250
- timestamp: Date;
251
- }>;
171
+ }, z.core.$strip>;
252
172
  export declare const NodeQuerySchema: z.ZodObject<{
253
173
  agentId: z.ZodString;
254
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>;
174
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
175
+ object: "object";
176
+ custom: "custom";
177
+ person: "person";
178
+ organization: "organization";
179
+ location: "location";
180
+ concept: "concept";
181
+ event: "event";
182
+ }>>>;
255
183
  namePattern: z.ZodOptional<z.ZodString>;
256
184
  minConfidence: z.ZodOptional<z.ZodNumber>;
257
185
  limit: z.ZodOptional<z.ZodNumber>;
258
186
  includeEmbedding: z.ZodOptional<z.ZodBoolean>;
259
- }, "strip", z.ZodTypeAny, {
260
- agentId: string;
261
- types?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
262
- namePattern?: string | undefined;
263
- minConfidence?: number | undefined;
264
- limit?: number | undefined;
265
- includeEmbedding?: boolean | undefined;
266
- }, {
267
- agentId: string;
268
- types?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
269
- namePattern?: string | undefined;
270
- minConfidence?: number | undefined;
271
- limit?: number | undefined;
272
- includeEmbedding?: boolean | undefined;
273
- }>;
187
+ }, z.core.$strip>;
274
188
  export declare const EdgeQuerySchema: z.ZodObject<{
275
189
  agentId: z.ZodString;
276
190
  sourceNodeId: z.ZodOptional<z.ZodString>;
277
191
  targetNodeId: z.ZodOptional<z.ZodString>;
278
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">>;
192
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
193
+ custom: "custom";
194
+ knows: "knows";
195
+ works_at: "works_at";
196
+ located_in: "located_in";
197
+ part_of: "part_of";
198
+ related_to: "related_to";
199
+ created_by: "created_by";
200
+ belongs_to: "belongs_to";
201
+ associated_with: "associated_with";
202
+ causes: "causes";
203
+ precedes: "precedes";
204
+ }>>>;
279
205
  minWeight: z.ZodOptional<z.ZodNumber>;
280
206
  minConfidence: z.ZodOptional<z.ZodNumber>;
281
207
  bidirectionalOnly: z.ZodOptional<z.ZodBoolean>;
282
208
  limit: z.ZodOptional<z.ZodNumber>;
283
- }, "strip", z.ZodTypeAny, {
284
- agentId: string;
285
- sourceNodeId?: string | undefined;
286
- targetNodeId?: string | undefined;
287
- types?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
288
- minConfidence?: number | undefined;
289
- limit?: number | undefined;
290
- minWeight?: number | undefined;
291
- bidirectionalOnly?: boolean | undefined;
292
- }, {
293
- agentId: string;
294
- sourceNodeId?: string | undefined;
295
- targetNodeId?: string | undefined;
296
- types?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
297
- minConfidence?: number | undefined;
298
- limit?: number | undefined;
299
- minWeight?: number | undefined;
300
- bidirectionalOnly?: boolean | undefined;
209
+ }, z.core.$strip>;
210
+ export declare const TraversalDirectionSchema: z.ZodEnum<{
211
+ outgoing: "outgoing";
212
+ incoming: "incoming";
213
+ both: "both";
301
214
  }>;
302
- export declare const TraversalDirectionSchema: z.ZodEnum<["outgoing", "incoming", "both"]>;
303
215
  export declare const TraversalOptionsSchema: z.ZodObject<{
304
216
  agentId: z.ZodString;
305
217
  startNodeId: z.ZodString;
306
218
  maxDepth: z.ZodDefault<z.ZodNumber>;
307
- direction: z.ZodDefault<z.ZodEnum<["outgoing", "incoming", "both"]>>;
308
- edgeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">>;
219
+ direction: z.ZodDefault<z.ZodEnum<{
220
+ outgoing: "outgoing";
221
+ incoming: "incoming";
222
+ both: "both";
223
+ }>>;
224
+ edgeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
225
+ custom: "custom";
226
+ knows: "knows";
227
+ works_at: "works_at";
228
+ located_in: "located_in";
229
+ part_of: "part_of";
230
+ related_to: "related_to";
231
+ created_by: "created_by";
232
+ belongs_to: "belongs_to";
233
+ associated_with: "associated_with";
234
+ causes: "causes";
235
+ precedes: "precedes";
236
+ }>>>;
309
237
  minEdgeWeight: z.ZodOptional<z.ZodNumber>;
310
238
  minConfidence: z.ZodOptional<z.ZodNumber>;
311
239
  limit: z.ZodOptional<z.ZodNumber>;
312
- }, "strip", z.ZodTypeAny, {
313
- agentId: string;
314
- startNodeId: string;
315
- maxDepth: number;
316
- direction: "outgoing" | "incoming" | "both";
317
- minConfidence?: number | undefined;
318
- limit?: number | undefined;
319
- edgeTypes?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
320
- minEdgeWeight?: number | undefined;
321
- }, {
322
- agentId: string;
323
- startNodeId: string;
324
- minConfidence?: number | undefined;
325
- limit?: number | undefined;
326
- maxDepth?: number | undefined;
327
- direction?: "outgoing" | "incoming" | "both" | undefined;
328
- edgeTypes?: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[] | undefined;
329
- minEdgeWeight?: number | undefined;
330
- }>;
240
+ }, z.core.$strip>;
331
241
  export declare const GraphSemanticSearchOptionsSchema: z.ZodObject<{
332
242
  agentId: z.ZodString;
333
243
  query: z.ZodOptional<z.ZodString>;
334
- vector: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
244
+ vector: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
335
245
  limit: z.ZodOptional<z.ZodNumber>;
336
246
  threshold: z.ZodOptional<z.ZodNumber>;
337
- entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>;
338
- }, "strip", z.ZodTypeAny, {
339
- agentId: string;
340
- vector?: number[] | undefined;
341
- limit?: number | undefined;
342
- query?: string | undefined;
343
- threshold?: number | undefined;
344
- entityTypes?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
345
- }, {
346
- agentId: string;
347
- vector?: number[] | undefined;
348
- limit?: number | undefined;
349
- query?: string | undefined;
350
- threshold?: number | undefined;
351
- entityTypes?: ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[] | undefined;
352
- }>;
247
+ entityTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
248
+ object: "object";
249
+ custom: "custom";
250
+ person: "person";
251
+ organization: "organization";
252
+ location: "location";
253
+ concept: "concept";
254
+ event: "event";
255
+ }>>>;
256
+ }, z.core.$strip>;
353
257
  export declare const InferencePatternSchema: z.ZodObject<{
354
- edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
258
+ edgeTypes: z.ZodArray<z.ZodEnum<{
259
+ custom: "custom";
260
+ knows: "knows";
261
+ works_at: "works_at";
262
+ located_in: "located_in";
263
+ part_of: "part_of";
264
+ related_to: "related_to";
265
+ created_by: "created_by";
266
+ belongs_to: "belongs_to";
267
+ associated_with: "associated_with";
268
+ causes: "causes";
269
+ precedes: "precedes";
270
+ }>>;
355
271
  minPathLength: z.ZodNumber;
356
272
  maxPathLength: z.ZodNumber;
357
- nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
358
- }, "strip", z.ZodTypeAny, {
359
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
360
- minPathLength: number;
361
- maxPathLength: number;
362
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
363
- }, {
364
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
365
- minPathLength: number;
366
- maxPathLength: number;
367
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
368
- }>;
273
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
274
+ object: "object";
275
+ custom: "custom";
276
+ person: "person";
277
+ organization: "organization";
278
+ location: "location";
279
+ concept: "concept";
280
+ event: "event";
281
+ }>>>>;
282
+ }, z.core.$strip>;
369
283
  export declare const InferenceConclusionSchema: z.ZodObject<{
370
- edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
284
+ edgeType: z.ZodEnum<{
285
+ custom: "custom";
286
+ knows: "knows";
287
+ works_at: "works_at";
288
+ located_in: "located_in";
289
+ part_of: "part_of";
290
+ related_to: "related_to";
291
+ created_by: "created_by";
292
+ belongs_to: "belongs_to";
293
+ associated_with: "associated_with";
294
+ causes: "causes";
295
+ precedes: "precedes";
296
+ }>;
371
297
  label: z.ZodOptional<z.ZodString>;
372
- weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
298
+ weightFormula: z.ZodEnum<{
299
+ min: "min";
300
+ max: "max";
301
+ average: "average";
302
+ product: "product";
303
+ }>;
373
304
  bidirectional: z.ZodBoolean;
374
- }, "strip", z.ZodTypeAny, {
375
- bidirectional: boolean;
376
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
377
- weightFormula: "min" | "max" | "average" | "product";
378
- label?: string | undefined;
379
- }, {
380
- bidirectional: boolean;
381
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
382
- weightFormula: "min" | "max" | "average" | "product";
383
- label?: string | undefined;
384
- }>;
305
+ }, z.core.$strip>;
385
306
  export declare const InferenceRuleSchema: z.ZodObject<{
386
307
  id: z.ZodString;
387
308
  name: z.ZodString;
388
309
  description: z.ZodString;
389
310
  pattern: z.ZodObject<{
390
- edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
311
+ edgeTypes: z.ZodArray<z.ZodEnum<{
312
+ custom: "custom";
313
+ knows: "knows";
314
+ works_at: "works_at";
315
+ located_in: "located_in";
316
+ part_of: "part_of";
317
+ related_to: "related_to";
318
+ created_by: "created_by";
319
+ belongs_to: "belongs_to";
320
+ associated_with: "associated_with";
321
+ causes: "causes";
322
+ precedes: "precedes";
323
+ }>>;
391
324
  minPathLength: z.ZodNumber;
392
325
  maxPathLength: z.ZodNumber;
393
- nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
394
- }, "strip", z.ZodTypeAny, {
395
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
396
- minPathLength: number;
397
- maxPathLength: number;
398
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
399
- }, {
400
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
401
- minPathLength: number;
402
- maxPathLength: number;
403
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
404
- }>;
326
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
327
+ object: "object";
328
+ custom: "custom";
329
+ person: "person";
330
+ organization: "organization";
331
+ location: "location";
332
+ concept: "concept";
333
+ event: "event";
334
+ }>>>>;
335
+ }, z.core.$strip>;
405
336
  conclusion: z.ZodObject<{
406
- edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
337
+ edgeType: z.ZodEnum<{
338
+ custom: "custom";
339
+ knows: "knows";
340
+ works_at: "works_at";
341
+ located_in: "located_in";
342
+ part_of: "part_of";
343
+ related_to: "related_to";
344
+ created_by: "created_by";
345
+ belongs_to: "belongs_to";
346
+ associated_with: "associated_with";
347
+ causes: "causes";
348
+ precedes: "precedes";
349
+ }>;
407
350
  label: z.ZodOptional<z.ZodString>;
408
- weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
351
+ weightFormula: z.ZodEnum<{
352
+ min: "min";
353
+ max: "max";
354
+ average: "average";
355
+ product: "product";
356
+ }>;
409
357
  bidirectional: z.ZodBoolean;
410
- }, "strip", z.ZodTypeAny, {
411
- bidirectional: boolean;
412
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
413
- weightFormula: "min" | "max" | "average" | "product";
414
- label?: string | undefined;
415
- }, {
416
- bidirectional: boolean;
417
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
418
- weightFormula: "min" | "max" | "average" | "product";
419
- label?: string | undefined;
420
- }>;
358
+ }, z.core.$strip>;
421
359
  confidence: z.ZodNumber;
422
360
  enabled: z.ZodBoolean;
423
- }, "strip", z.ZodTypeAny, {
424
- id: string;
425
- confidence: number;
426
- name: string;
427
- description: string;
428
- pattern: {
429
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
430
- minPathLength: number;
431
- maxPathLength: number;
432
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
433
- };
434
- conclusion: {
435
- bidirectional: boolean;
436
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
437
- weightFormula: "min" | "max" | "average" | "product";
438
- label?: string | undefined;
439
- };
440
- enabled: boolean;
441
- }, {
442
- id: string;
443
- confidence: number;
444
- name: string;
445
- description: string;
446
- pattern: {
447
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
448
- minPathLength: number;
449
- maxPathLength: number;
450
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
451
- };
452
- conclusion: {
453
- bidirectional: boolean;
454
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
455
- weightFormula: "min" | "max" | "average" | "product";
456
- label?: string | undefined;
457
- };
458
- enabled: boolean;
459
- }>;
361
+ }, z.core.$strip>;
460
362
  export declare const KnowledgeGraphExtractionConfigSchema: z.ZodObject<{
461
363
  enabled: z.ZodBoolean;
462
364
  extractOnMessage: z.ZodOptional<z.ZodBoolean>;
463
365
  extractOnFact: z.ZodOptional<z.ZodBoolean>;
464
366
  minConfidence: z.ZodOptional<z.ZodNumber>;
465
367
  batchSize: z.ZodOptional<z.ZodNumber>;
466
- }, "strip", z.ZodTypeAny, {
467
- enabled: boolean;
468
- minConfidence?: number | undefined;
469
- extractOnMessage?: boolean | undefined;
470
- extractOnFact?: boolean | undefined;
471
- batchSize?: number | undefined;
472
- }, {
473
- enabled: boolean;
474
- minConfidence?: number | undefined;
475
- extractOnMessage?: boolean | undefined;
476
- extractOnFact?: boolean | undefined;
477
- batchSize?: number | undefined;
478
- }>;
368
+ }, z.core.$strip>;
479
369
  export declare const KnowledgeGraphInferenceConfigSchema: z.ZodObject<{
480
370
  enabled: z.ZodBoolean;
481
371
  autoMaterialize: z.ZodOptional<z.ZodBoolean>;
482
372
  defaultRules: z.ZodOptional<z.ZodBoolean>;
483
- customRules: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
484
- id: z.ZodString;
373
+ customRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
+ confidence: z.ZodNumber;
485
375
  name: z.ZodString;
486
376
  description: z.ZodString;
487
377
  pattern: z.ZodObject<{
488
- edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
378
+ edgeTypes: z.ZodArray<z.ZodEnum<{
379
+ custom: "custom";
380
+ knows: "knows";
381
+ works_at: "works_at";
382
+ located_in: "located_in";
383
+ part_of: "part_of";
384
+ related_to: "related_to";
385
+ created_by: "created_by";
386
+ belongs_to: "belongs_to";
387
+ associated_with: "associated_with";
388
+ causes: "causes";
389
+ precedes: "precedes";
390
+ }>>;
489
391
  minPathLength: z.ZodNumber;
490
392
  maxPathLength: z.ZodNumber;
491
- nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
492
- }, "strip", z.ZodTypeAny, {
493
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
494
- minPathLength: number;
495
- maxPathLength: number;
496
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
497
- }, {
498
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
499
- minPathLength: number;
500
- maxPathLength: number;
501
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
502
- }>;
393
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
394
+ object: "object";
395
+ custom: "custom";
396
+ person: "person";
397
+ organization: "organization";
398
+ location: "location";
399
+ concept: "concept";
400
+ event: "event";
401
+ }>>>>;
402
+ }, z.core.$strip>;
503
403
  conclusion: z.ZodObject<{
504
- edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
404
+ edgeType: z.ZodEnum<{
405
+ custom: "custom";
406
+ knows: "knows";
407
+ works_at: "works_at";
408
+ located_in: "located_in";
409
+ part_of: "part_of";
410
+ related_to: "related_to";
411
+ created_by: "created_by";
412
+ belongs_to: "belongs_to";
413
+ associated_with: "associated_with";
414
+ causes: "causes";
415
+ precedes: "precedes";
416
+ }>;
505
417
  label: z.ZodOptional<z.ZodString>;
506
- weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
418
+ weightFormula: z.ZodEnum<{
419
+ min: "min";
420
+ max: "max";
421
+ average: "average";
422
+ product: "product";
423
+ }>;
507
424
  bidirectional: z.ZodBoolean;
508
- }, "strip", z.ZodTypeAny, {
509
- bidirectional: boolean;
510
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
511
- weightFormula: "min" | "max" | "average" | "product";
512
- label?: string | undefined;
513
- }, {
514
- bidirectional: boolean;
515
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
516
- weightFormula: "min" | "max" | "average" | "product";
517
- label?: string | undefined;
518
- }>;
519
- confidence: z.ZodNumber;
425
+ }, z.core.$strip>;
520
426
  enabled: z.ZodBoolean;
521
- }, "id">, "strip", z.ZodTypeAny, {
522
- confidence: number;
523
- name: string;
524
- description: string;
525
- pattern: {
526
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
527
- minPathLength: number;
528
- maxPathLength: number;
529
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
530
- };
531
- conclusion: {
532
- bidirectional: boolean;
533
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
534
- weightFormula: "min" | "max" | "average" | "product";
535
- label?: string | undefined;
536
- };
537
- enabled: boolean;
538
- }, {
539
- confidence: number;
540
- name: string;
541
- description: string;
542
- pattern: {
543
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
544
- minPathLength: number;
545
- maxPathLength: number;
546
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
547
- };
548
- conclusion: {
549
- bidirectional: boolean;
550
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
551
- weightFormula: "min" | "max" | "average" | "product";
552
- label?: string | undefined;
553
- };
554
- enabled: boolean;
555
- }>, "many">>;
556
- }, "strip", z.ZodTypeAny, {
557
- enabled: boolean;
558
- autoMaterialize?: boolean | undefined;
559
- defaultRules?: boolean | undefined;
560
- customRules?: {
561
- confidence: number;
562
- name: string;
563
- description: string;
564
- pattern: {
565
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
566
- minPathLength: number;
567
- maxPathLength: number;
568
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
569
- };
570
- conclusion: {
571
- bidirectional: boolean;
572
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
573
- weightFormula: "min" | "max" | "average" | "product";
574
- label?: string | undefined;
575
- };
576
- enabled: boolean;
577
- }[] | undefined;
578
- }, {
579
- enabled: boolean;
580
- autoMaterialize?: boolean | undefined;
581
- defaultRules?: boolean | undefined;
582
- customRules?: {
583
- confidence: number;
584
- name: string;
585
- description: string;
586
- pattern: {
587
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
588
- minPathLength: number;
589
- maxPathLength: number;
590
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
591
- };
592
- conclusion: {
593
- bidirectional: boolean;
594
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
595
- weightFormula: "min" | "max" | "average" | "product";
596
- label?: string | undefined;
597
- };
598
- enabled: boolean;
599
- }[] | undefined;
600
- }>;
427
+ }, z.core.$strip>>>;
428
+ }, z.core.$strip>;
601
429
  export declare const KnowledgeGraphContextConfigSchema: z.ZodObject<{
602
430
  maxNodes: z.ZodOptional<z.ZodNumber>;
603
431
  maxEdges: z.ZodOptional<z.ZodNumber>;
604
432
  maxDepth: z.ZodOptional<z.ZodNumber>;
605
433
  includeInferred: z.ZodOptional<z.ZodBoolean>;
606
- }, "strip", z.ZodTypeAny, {
607
- maxDepth?: number | undefined;
608
- maxNodes?: number | undefined;
609
- maxEdges?: number | undefined;
610
- includeInferred?: boolean | undefined;
611
- }, {
612
- maxDepth?: number | undefined;
613
- maxNodes?: number | undefined;
614
- maxEdges?: number | undefined;
615
- includeInferred?: boolean | undefined;
616
- }>;
434
+ }, z.core.$strip>;
617
435
  export declare const KnowledgeGraphConfigSchema: z.ZodObject<{
618
436
  extraction: z.ZodOptional<z.ZodObject<{
619
437
  enabled: z.ZodBoolean;
@@ -621,232 +439,74 @@ export declare const KnowledgeGraphConfigSchema: z.ZodObject<{
621
439
  extractOnFact: z.ZodOptional<z.ZodBoolean>;
622
440
  minConfidence: z.ZodOptional<z.ZodNumber>;
623
441
  batchSize: z.ZodOptional<z.ZodNumber>;
624
- }, "strip", z.ZodTypeAny, {
625
- enabled: boolean;
626
- minConfidence?: number | undefined;
627
- extractOnMessage?: boolean | undefined;
628
- extractOnFact?: boolean | undefined;
629
- batchSize?: number | undefined;
630
- }, {
631
- enabled: boolean;
632
- minConfidence?: number | undefined;
633
- extractOnMessage?: boolean | undefined;
634
- extractOnFact?: boolean | undefined;
635
- batchSize?: number | undefined;
636
- }>>;
442
+ }, z.core.$strip>>;
637
443
  inference: z.ZodOptional<z.ZodObject<{
638
444
  enabled: z.ZodBoolean;
639
445
  autoMaterialize: z.ZodOptional<z.ZodBoolean>;
640
446
  defaultRules: z.ZodOptional<z.ZodBoolean>;
641
- customRules: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
642
- id: z.ZodString;
447
+ customRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
448
+ confidence: z.ZodNumber;
643
449
  name: z.ZodString;
644
450
  description: z.ZodString;
645
451
  pattern: z.ZodObject<{
646
- edgeTypes: z.ZodArray<z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>, "many">;
452
+ edgeTypes: z.ZodArray<z.ZodEnum<{
453
+ custom: "custom";
454
+ knows: "knows";
455
+ works_at: "works_at";
456
+ located_in: "located_in";
457
+ part_of: "part_of";
458
+ related_to: "related_to";
459
+ created_by: "created_by";
460
+ belongs_to: "belongs_to";
461
+ associated_with: "associated_with";
462
+ causes: "causes";
463
+ precedes: "precedes";
464
+ }>>;
647
465
  minPathLength: z.ZodNumber;
648
466
  maxPathLength: z.ZodNumber;
649
- nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["person", "organization", "location", "concept", "event", "object", "custom"]>, "many">>>;
650
- }, "strip", z.ZodTypeAny, {
651
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
652
- minPathLength: number;
653
- maxPathLength: number;
654
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
655
- }, {
656
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
657
- minPathLength: number;
658
- maxPathLength: number;
659
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
660
- }>;
467
+ nodeTypeConstraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<{
468
+ object: "object";
469
+ custom: "custom";
470
+ person: "person";
471
+ organization: "organization";
472
+ location: "location";
473
+ concept: "concept";
474
+ event: "event";
475
+ }>>>>;
476
+ }, z.core.$strip>;
661
477
  conclusion: z.ZodObject<{
662
- edgeType: z.ZodEnum<["knows", "works_at", "located_in", "part_of", "related_to", "created_by", "belongs_to", "associated_with", "causes", "precedes", "custom"]>;
478
+ edgeType: z.ZodEnum<{
479
+ custom: "custom";
480
+ knows: "knows";
481
+ works_at: "works_at";
482
+ located_in: "located_in";
483
+ part_of: "part_of";
484
+ related_to: "related_to";
485
+ created_by: "created_by";
486
+ belongs_to: "belongs_to";
487
+ associated_with: "associated_with";
488
+ causes: "causes";
489
+ precedes: "precedes";
490
+ }>;
663
491
  label: z.ZodOptional<z.ZodString>;
664
- weightFormula: z.ZodEnum<["min", "max", "average", "product"]>;
492
+ weightFormula: z.ZodEnum<{
493
+ min: "min";
494
+ max: "max";
495
+ average: "average";
496
+ product: "product";
497
+ }>;
665
498
  bidirectional: z.ZodBoolean;
666
- }, "strip", z.ZodTypeAny, {
667
- bidirectional: boolean;
668
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
669
- weightFormula: "min" | "max" | "average" | "product";
670
- label?: string | undefined;
671
- }, {
672
- bidirectional: boolean;
673
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
674
- weightFormula: "min" | "max" | "average" | "product";
675
- label?: string | undefined;
676
- }>;
677
- confidence: z.ZodNumber;
499
+ }, z.core.$strip>;
678
500
  enabled: z.ZodBoolean;
679
- }, "id">, "strip", z.ZodTypeAny, {
680
- confidence: number;
681
- name: string;
682
- description: string;
683
- pattern: {
684
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
685
- minPathLength: number;
686
- maxPathLength: number;
687
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
688
- };
689
- conclusion: {
690
- bidirectional: boolean;
691
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
692
- weightFormula: "min" | "max" | "average" | "product";
693
- label?: string | undefined;
694
- };
695
- enabled: boolean;
696
- }, {
697
- confidence: number;
698
- name: string;
699
- description: string;
700
- pattern: {
701
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
702
- minPathLength: number;
703
- maxPathLength: number;
704
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
705
- };
706
- conclusion: {
707
- bidirectional: boolean;
708
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
709
- weightFormula: "min" | "max" | "average" | "product";
710
- label?: string | undefined;
711
- };
712
- enabled: boolean;
713
- }>, "many">>;
714
- }, "strip", z.ZodTypeAny, {
715
- enabled: boolean;
716
- autoMaterialize?: boolean | undefined;
717
- defaultRules?: boolean | undefined;
718
- customRules?: {
719
- confidence: number;
720
- name: string;
721
- description: string;
722
- pattern: {
723
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
724
- minPathLength: number;
725
- maxPathLength: number;
726
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
727
- };
728
- conclusion: {
729
- bidirectional: boolean;
730
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
731
- weightFormula: "min" | "max" | "average" | "product";
732
- label?: string | undefined;
733
- };
734
- enabled: boolean;
735
- }[] | undefined;
736
- }, {
737
- enabled: boolean;
738
- autoMaterialize?: boolean | undefined;
739
- defaultRules?: boolean | undefined;
740
- customRules?: {
741
- confidence: number;
742
- name: string;
743
- description: string;
744
- pattern: {
745
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
746
- minPathLength: number;
747
- maxPathLength: number;
748
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
749
- };
750
- conclusion: {
751
- bidirectional: boolean;
752
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
753
- weightFormula: "min" | "max" | "average" | "product";
754
- label?: string | undefined;
755
- };
756
- enabled: boolean;
757
- }[] | undefined;
758
- }>>;
501
+ }, z.core.$strip>>>;
502
+ }, z.core.$strip>>;
759
503
  context: z.ZodOptional<z.ZodObject<{
760
504
  maxNodes: z.ZodOptional<z.ZodNumber>;
761
505
  maxEdges: z.ZodOptional<z.ZodNumber>;
762
506
  maxDepth: z.ZodOptional<z.ZodNumber>;
763
507
  includeInferred: z.ZodOptional<z.ZodBoolean>;
764
- }, "strip", z.ZodTypeAny, {
765
- maxDepth?: number | undefined;
766
- maxNodes?: number | undefined;
767
- maxEdges?: number | undefined;
768
- includeInferred?: boolean | undefined;
769
- }, {
770
- maxDepth?: number | undefined;
771
- maxNodes?: number | undefined;
772
- maxEdges?: number | undefined;
773
- includeInferred?: boolean | undefined;
774
- }>>;
775
- }, "strip", z.ZodTypeAny, {
776
- extraction?: {
777
- enabled: boolean;
778
- minConfidence?: number | undefined;
779
- extractOnMessage?: boolean | undefined;
780
- extractOnFact?: boolean | undefined;
781
- batchSize?: number | undefined;
782
- } | undefined;
783
- inference?: {
784
- enabled: boolean;
785
- autoMaterialize?: boolean | undefined;
786
- defaultRules?: boolean | undefined;
787
- customRules?: {
788
- confidence: number;
789
- name: string;
790
- description: string;
791
- pattern: {
792
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
793
- minPathLength: number;
794
- maxPathLength: number;
795
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
796
- };
797
- conclusion: {
798
- bidirectional: boolean;
799
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
800
- weightFormula: "min" | "max" | "average" | "product";
801
- label?: string | undefined;
802
- };
803
- enabled: boolean;
804
- }[] | undefined;
805
- } | undefined;
806
- context?: {
807
- maxDepth?: number | undefined;
808
- maxNodes?: number | undefined;
809
- maxEdges?: number | undefined;
810
- includeInferred?: boolean | undefined;
811
- } | undefined;
812
- }, {
813
- extraction?: {
814
- enabled: boolean;
815
- minConfidence?: number | undefined;
816
- extractOnMessage?: boolean | undefined;
817
- extractOnFact?: boolean | undefined;
818
- batchSize?: number | undefined;
819
- } | undefined;
820
- inference?: {
821
- enabled: boolean;
822
- autoMaterialize?: boolean | undefined;
823
- defaultRules?: boolean | undefined;
824
- customRules?: {
825
- confidence: number;
826
- name: string;
827
- description: string;
828
- pattern: {
829
- edgeTypes: ("custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes")[];
830
- minPathLength: number;
831
- maxPathLength: number;
832
- nodeTypeConstraints?: Record<string, ("object" | "custom" | "person" | "organization" | "location" | "concept" | "event")[]> | undefined;
833
- };
834
- conclusion: {
835
- bidirectional: boolean;
836
- edgeType: "custom" | "knows" | "works_at" | "located_in" | "part_of" | "related_to" | "created_by" | "belongs_to" | "associated_with" | "causes" | "precedes";
837
- weightFormula: "min" | "max" | "average" | "product";
838
- label?: string | undefined;
839
- };
840
- enabled: boolean;
841
- }[] | undefined;
842
- } | undefined;
843
- context?: {
844
- maxDepth?: number | undefined;
845
- maxNodes?: number | undefined;
846
- maxEdges?: number | undefined;
847
- includeInferred?: boolean | undefined;
848
- } | undefined;
849
- }>;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$strip>;
850
510
  export type GraphNodeInput = z.input<typeof GraphNodeSchema>;
851
511
  export type GraphEdgeInput = z.input<typeof GraphEdgeSchema>;
852
512
  export type ExtractedEntityInput = z.input<typeof ExtractedEntitySchema>;