@lore-co/core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1498 @@
1
+ import { z } from "zod";
2
+ export declare const WorkspaceStatusSchema: z.ZodEnum<{
3
+ active: "active";
4
+ disabled: "disabled";
5
+ }>;
6
+ export type WorkspaceStatus = z.infer<typeof WorkspaceStatusSchema>;
7
+ export declare const WorkspaceSchema: z.ZodObject<{
8
+ id: z.ZodUUID;
9
+ slug: z.ZodString;
10
+ organization: z.ZodString;
11
+ name: z.ZodString;
12
+ status: z.ZodEnum<{
13
+ active: "active";
14
+ disabled: "disabled";
15
+ }>;
16
+ createdAt: z.ZodISODateTime;
17
+ updatedAt: z.ZodISODateTime;
18
+ }, z.core.$strict>;
19
+ export type Workspace = z.infer<typeof WorkspaceSchema>;
20
+ export declare const StoredWorkspaceTokenSchema: z.ZodObject<{
21
+ id: z.ZodUUID;
22
+ workspaceId: z.ZodUUID;
23
+ name: z.ZodString;
24
+ prefix: z.ZodString;
25
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
26
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
27
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
28
+ createdAt: z.ZodISODateTime;
29
+ }, z.core.$strict>;
30
+ export type StoredWorkspaceToken = z.infer<typeof StoredWorkspaceTokenSchema>;
31
+ export declare const AuthenticatedWorkspaceSchema: z.ZodObject<{
32
+ workspaceId: z.ZodUUID;
33
+ organization: z.ZodString;
34
+ tokenId: z.ZodUUID;
35
+ }, z.core.$strict>;
36
+ export type AuthenticatedWorkspace = z.infer<typeof AuthenticatedWorkspaceSchema>;
37
+ export declare const ConfirmationLevelSchema: z.ZodEnum<{
38
+ unconfirmed: "unconfirmed";
39
+ implicit: "implicit";
40
+ explicit: "explicit";
41
+ }>;
42
+ export type ConfirmationLevel = z.infer<typeof ConfirmationLevelSchema>;
43
+ export declare const TurnScopeSchema: z.ZodObject<{
44
+ project: z.ZodOptional<z.ZodString>;
45
+ repo: z.ZodOptional<z.ZodString>;
46
+ path: z.ZodOptional<z.ZodString>;
47
+ component: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>;
49
+ export type TurnScope = z.infer<typeof TurnScopeSchema>;
50
+ export declare const ConnectorNameSchema: z.ZodString;
51
+ export declare const PairedTurnMessageSchema: z.ZodObject<{
52
+ id: z.ZodOptional<z.ZodString>;
53
+ content: z.ZodString;
54
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
55
+ }, z.core.$strict>;
56
+ export type PairedTurnMessage = z.infer<typeof PairedTurnMessageSchema>;
57
+ export declare const PairedTurnRequestSchema: z.ZodPipe<z.ZodObject<{
58
+ connector: z.ZodString;
59
+ eventId: z.ZodOptional<z.ZodString>;
60
+ externalEventId: z.ZodOptional<z.ZodString>;
61
+ agent: z.ZodString;
62
+ sessionId: z.ZodString;
63
+ conversationId: z.ZodOptional<z.ZodString>;
64
+ previousAssistant: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
65
+ id: z.ZodOptional<z.ZodString>;
66
+ content: z.ZodString;
67
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
68
+ }, z.core.$strict>]>, z.ZodTransform<{
69
+ content: string;
70
+ id?: string | undefined;
71
+ timestamp?: string | undefined;
72
+ }, string | {
73
+ content: string;
74
+ id?: string | undefined;
75
+ timestamp?: string | undefined;
76
+ }>>;
77
+ currentUser: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
78
+ id: z.ZodOptional<z.ZodString>;
79
+ content: z.ZodString;
80
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
81
+ }, z.core.$strict>]>, z.ZodTransform<{
82
+ content: string;
83
+ id?: string | undefined;
84
+ timestamp?: string | undefined;
85
+ }, string | {
86
+ content: string;
87
+ id?: string | undefined;
88
+ timestamp?: string | undefined;
89
+ }>>>;
90
+ currentUserPrompt: z.ZodOptional<z.ZodString>;
91
+ scope: z.ZodOptional<z.ZodObject<{
92
+ project: z.ZodOptional<z.ZodString>;
93
+ repo: z.ZodOptional<z.ZodString>;
94
+ path: z.ZodOptional<z.ZodString>;
95
+ component: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>>;
97
+ learningScope: z.ZodOptional<z.ZodObject<{
98
+ project: z.ZodOptional<z.ZodString>;
99
+ repo: z.ZodOptional<z.ZodString>;
100
+ path: z.ZodOptional<z.ZodString>;
101
+ component: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strict>>;
103
+ project: z.ZodOptional<z.ZodString>;
104
+ repo: z.ZodOptional<z.ZodString>;
105
+ path: z.ZodOptional<z.ZodString>;
106
+ component: z.ZodOptional<z.ZodString>;
107
+ task: z.ZodOptional<z.ZodString>;
108
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ components: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ occurredAt: z.ZodOptional<z.ZodISODateTime>;
112
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
113
+ }, z.core.$strict>, z.ZodTransform<{
114
+ metadata?: Record<string, unknown>;
115
+ occurredAt?: string;
116
+ symbols?: string[];
117
+ components?: string[];
118
+ files?: string[];
119
+ task?: string;
120
+ learningScope?: {
121
+ project?: string | undefined;
122
+ repo?: string | undefined;
123
+ path?: string | undefined;
124
+ component?: string | undefined;
125
+ };
126
+ previousAssistant: {
127
+ content: string;
128
+ id?: string | undefined;
129
+ timestamp?: string | undefined;
130
+ };
131
+ currentUser: {
132
+ content: string;
133
+ id?: string | undefined;
134
+ timestamp?: string | undefined;
135
+ };
136
+ scope: {
137
+ component?: string | undefined;
138
+ path?: string | undefined;
139
+ repo?: string | undefined;
140
+ project?: string | undefined;
141
+ };
142
+ conversationId?: string;
143
+ connector: string;
144
+ eventId: string;
145
+ agent: string;
146
+ sessionId: string;
147
+ }, {
148
+ connector: string;
149
+ agent: string;
150
+ sessionId: string;
151
+ previousAssistant: {
152
+ content: string;
153
+ id?: string | undefined;
154
+ timestamp?: string | undefined;
155
+ };
156
+ eventId?: string | undefined;
157
+ externalEventId?: string | undefined;
158
+ conversationId?: string | undefined;
159
+ currentUser?: {
160
+ content: string;
161
+ id?: string | undefined;
162
+ timestamp?: string | undefined;
163
+ } | undefined;
164
+ currentUserPrompt?: string | undefined;
165
+ scope?: {
166
+ project?: string | undefined;
167
+ repo?: string | undefined;
168
+ path?: string | undefined;
169
+ component?: string | undefined;
170
+ } | undefined;
171
+ learningScope?: {
172
+ project?: string | undefined;
173
+ repo?: string | undefined;
174
+ path?: string | undefined;
175
+ component?: string | undefined;
176
+ } | undefined;
177
+ project?: string | undefined;
178
+ repo?: string | undefined;
179
+ path?: string | undefined;
180
+ component?: string | undefined;
181
+ task?: string | undefined;
182
+ files?: string[] | undefined;
183
+ components?: string[] | undefined;
184
+ symbols?: string[] | undefined;
185
+ occurredAt?: string | undefined;
186
+ metadata?: Record<string, unknown> | undefined;
187
+ }>>;
188
+ export type PairedTurnRequest = z.infer<typeof PairedTurnRequestSchema>;
189
+ export declare const PairedTurnSchema: z.ZodPipe<z.ZodObject<{
190
+ connector: z.ZodString;
191
+ eventId: z.ZodOptional<z.ZodString>;
192
+ externalEventId: z.ZodOptional<z.ZodString>;
193
+ agent: z.ZodString;
194
+ sessionId: z.ZodString;
195
+ conversationId: z.ZodOptional<z.ZodString>;
196
+ previousAssistant: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
197
+ id: z.ZodOptional<z.ZodString>;
198
+ content: z.ZodString;
199
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
200
+ }, z.core.$strict>]>, z.ZodTransform<{
201
+ content: string;
202
+ id?: string | undefined;
203
+ timestamp?: string | undefined;
204
+ }, string | {
205
+ content: string;
206
+ id?: string | undefined;
207
+ timestamp?: string | undefined;
208
+ }>>;
209
+ currentUser: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
210
+ id: z.ZodOptional<z.ZodString>;
211
+ content: z.ZodString;
212
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
213
+ }, z.core.$strict>]>, z.ZodTransform<{
214
+ content: string;
215
+ id?: string | undefined;
216
+ timestamp?: string | undefined;
217
+ }, string | {
218
+ content: string;
219
+ id?: string | undefined;
220
+ timestamp?: string | undefined;
221
+ }>>>;
222
+ currentUserPrompt: z.ZodOptional<z.ZodString>;
223
+ scope: z.ZodOptional<z.ZodObject<{
224
+ project: z.ZodOptional<z.ZodString>;
225
+ repo: z.ZodOptional<z.ZodString>;
226
+ path: z.ZodOptional<z.ZodString>;
227
+ component: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strict>>;
229
+ learningScope: z.ZodOptional<z.ZodObject<{
230
+ project: z.ZodOptional<z.ZodString>;
231
+ repo: z.ZodOptional<z.ZodString>;
232
+ path: z.ZodOptional<z.ZodString>;
233
+ component: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strict>>;
235
+ project: z.ZodOptional<z.ZodString>;
236
+ repo: z.ZodOptional<z.ZodString>;
237
+ path: z.ZodOptional<z.ZodString>;
238
+ component: z.ZodOptional<z.ZodString>;
239
+ task: z.ZodOptional<z.ZodString>;
240
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
+ components: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
+ occurredAt: z.ZodOptional<z.ZodISODateTime>;
244
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
245
+ }, z.core.$strict>, z.ZodTransform<{
246
+ metadata?: Record<string, unknown>;
247
+ occurredAt?: string;
248
+ symbols?: string[];
249
+ components?: string[];
250
+ files?: string[];
251
+ task?: string;
252
+ learningScope?: {
253
+ project?: string | undefined;
254
+ repo?: string | undefined;
255
+ path?: string | undefined;
256
+ component?: string | undefined;
257
+ };
258
+ previousAssistant: {
259
+ content: string;
260
+ id?: string | undefined;
261
+ timestamp?: string | undefined;
262
+ };
263
+ currentUser: {
264
+ content: string;
265
+ id?: string | undefined;
266
+ timestamp?: string | undefined;
267
+ };
268
+ scope: {
269
+ component?: string | undefined;
270
+ path?: string | undefined;
271
+ repo?: string | undefined;
272
+ project?: string | undefined;
273
+ };
274
+ conversationId?: string;
275
+ connector: string;
276
+ eventId: string;
277
+ agent: string;
278
+ sessionId: string;
279
+ }, {
280
+ connector: string;
281
+ agent: string;
282
+ sessionId: string;
283
+ previousAssistant: {
284
+ content: string;
285
+ id?: string | undefined;
286
+ timestamp?: string | undefined;
287
+ };
288
+ eventId?: string | undefined;
289
+ externalEventId?: string | undefined;
290
+ conversationId?: string | undefined;
291
+ currentUser?: {
292
+ content: string;
293
+ id?: string | undefined;
294
+ timestamp?: string | undefined;
295
+ } | undefined;
296
+ currentUserPrompt?: string | undefined;
297
+ scope?: {
298
+ project?: string | undefined;
299
+ repo?: string | undefined;
300
+ path?: string | undefined;
301
+ component?: string | undefined;
302
+ } | undefined;
303
+ learningScope?: {
304
+ project?: string | undefined;
305
+ repo?: string | undefined;
306
+ path?: string | undefined;
307
+ component?: string | undefined;
308
+ } | undefined;
309
+ project?: string | undefined;
310
+ repo?: string | undefined;
311
+ path?: string | undefined;
312
+ component?: string | undefined;
313
+ task?: string | undefined;
314
+ files?: string[] | undefined;
315
+ components?: string[] | undefined;
316
+ symbols?: string[] | undefined;
317
+ occurredAt?: string | undefined;
318
+ metadata?: Record<string, unknown> | undefined;
319
+ }>>;
320
+ export type PairedTurn = PairedTurnRequest;
321
+ export declare const ObservationRequestSchema: z.ZodPipe<z.ZodObject<{
322
+ connector: z.ZodString;
323
+ eventId: z.ZodOptional<z.ZodString>;
324
+ externalEventId: z.ZodOptional<z.ZodString>;
325
+ agent: z.ZodString;
326
+ sessionId: z.ZodString;
327
+ conversationId: z.ZodOptional<z.ZodString>;
328
+ scope: z.ZodOptional<z.ZodObject<{
329
+ project: z.ZodOptional<z.ZodString>;
330
+ repo: z.ZodOptional<z.ZodString>;
331
+ path: z.ZodOptional<z.ZodString>;
332
+ component: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strict>>;
334
+ learningScope: z.ZodOptional<z.ZodObject<{
335
+ project: z.ZodOptional<z.ZodString>;
336
+ repo: z.ZodOptional<z.ZodString>;
337
+ path: z.ZodOptional<z.ZodString>;
338
+ component: z.ZodOptional<z.ZodString>;
339
+ }, z.core.$strict>>;
340
+ task: z.ZodOptional<z.ZodString>;
341
+ messages: z.ZodArray<z.ZodObject<{
342
+ role: z.ZodEnum<{
343
+ system: "system";
344
+ user: "user";
345
+ assistant: "assistant";
346
+ tool: "tool";
347
+ }>;
348
+ content: z.ZodString;
349
+ id: z.ZodOptional<z.ZodString>;
350
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
351
+ }, z.core.$strict>>;
352
+ occurredAt: z.ZodISODateTime;
353
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
354
+ }, z.core.$strict>, z.ZodTransform<{
355
+ eventId: string;
356
+ learningScope: {
357
+ project?: string | undefined;
358
+ repo?: string | undefined;
359
+ path?: string | undefined;
360
+ component?: string | undefined;
361
+ };
362
+ connector: string;
363
+ agent: string;
364
+ sessionId: string;
365
+ messages: {
366
+ role: "system" | "user" | "assistant" | "tool";
367
+ content: string;
368
+ id?: string | undefined;
369
+ timestamp?: string | undefined;
370
+ }[];
371
+ occurredAt: string;
372
+ conversationId?: string | undefined;
373
+ scope?: {
374
+ project?: string | undefined;
375
+ repo?: string | undefined;
376
+ path?: string | undefined;
377
+ component?: string | undefined;
378
+ } | undefined;
379
+ task?: string | undefined;
380
+ metadata?: Record<string, unknown> | undefined;
381
+ }, {
382
+ connector: string;
383
+ agent: string;
384
+ sessionId: string;
385
+ messages: {
386
+ role: "system" | "user" | "assistant" | "tool";
387
+ content: string;
388
+ id?: string | undefined;
389
+ timestamp?: string | undefined;
390
+ }[];
391
+ occurredAt: string;
392
+ eventId?: string | undefined;
393
+ externalEventId?: string | undefined;
394
+ conversationId?: string | undefined;
395
+ scope?: {
396
+ project?: string | undefined;
397
+ repo?: string | undefined;
398
+ path?: string | undefined;
399
+ component?: string | undefined;
400
+ } | undefined;
401
+ learningScope?: {
402
+ project?: string | undefined;
403
+ repo?: string | undefined;
404
+ path?: string | undefined;
405
+ component?: string | undefined;
406
+ } | undefined;
407
+ task?: string | undefined;
408
+ metadata?: Record<string, unknown> | undefined;
409
+ }>>;
410
+ export type ObservationRequestInput = z.input<typeof ObservationRequestSchema>;
411
+ export type ObservationRequest = z.output<typeof ObservationRequestSchema>;
412
+ export declare const DevinSessionRegistrationSchema: z.ZodObject<{
413
+ organizationId: z.ZodString;
414
+ sessionId: z.ZodString;
415
+ project: z.ZodOptional<z.ZodString>;
416
+ repo: z.ZodString;
417
+ }, z.core.$strict>;
418
+ export type DevinSessionRegistration = z.infer<typeof DevinSessionRegistrationSchema>;
419
+ export declare const DevinSessionRegistrationResponseSchema: z.ZodObject<{
420
+ registered: z.ZodLiteral<true>;
421
+ sessionId: z.ZodString;
422
+ status: z.ZodEnum<{
423
+ active: "active";
424
+ error: "error";
425
+ paused: "paused";
426
+ }>;
427
+ }, z.core.$strict>;
428
+ export type DevinSessionRegistrationResponse = z.infer<typeof DevinSessionRegistrationResponseSchema>;
429
+ export declare const ContextDeliveryRequestSchema: z.ZodObject<{
430
+ connector: z.ZodString;
431
+ eventId: z.ZodString;
432
+ sessionId: z.ZodString;
433
+ task: z.ZodObject<{
434
+ agent: z.ZodString;
435
+ scope: z.ZodOptional<z.ZodObject<{
436
+ organization: z.ZodOptional<z.ZodString>;
437
+ project: z.ZodOptional<z.ZodString>;
438
+ repo: z.ZodOptional<z.ZodString>;
439
+ path: z.ZodOptional<z.ZodString>;
440
+ component: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strict>>;
442
+ organization: z.ZodOptional<z.ZodString>;
443
+ project: z.ZodOptional<z.ZodString>;
444
+ repo: z.ZodOptional<z.ZodString>;
445
+ path: z.ZodOptional<z.ZodString>;
446
+ component: z.ZodOptional<z.ZodString>;
447
+ task: z.ZodString;
448
+ diff: z.ZodOptional<z.ZodString>;
449
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
450
+ components: z.ZodOptional<z.ZodArray<z.ZodString>>;
451
+ symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
+ limit: z.ZodOptional<z.ZodNumber>;
453
+ }, z.core.$strict>;
454
+ }, z.core.$strict>;
455
+ export type ContextDeliveryRequest = z.infer<typeof ContextDeliveryRequestSchema>;
456
+ export declare const ConnectorEventTypeSchema: z.ZodEnum<{
457
+ observation: "observation";
458
+ paired_turn: "paired_turn";
459
+ context_delivery: "context_delivery";
460
+ }>;
461
+ export type ConnectorEventType = z.infer<typeof ConnectorEventTypeSchema>;
462
+ export declare const ConnectorEventSchema: z.ZodObject<{
463
+ id: z.ZodUUID;
464
+ workspaceId: z.ZodUUID;
465
+ connector: z.ZodString;
466
+ externalEventId: z.ZodString;
467
+ type: z.ZodEnum<{
468
+ observation: "observation";
469
+ paired_turn: "paired_turn";
470
+ context_delivery: "context_delivery";
471
+ }>;
472
+ agent: z.ZodString;
473
+ sessionId: z.ZodString;
474
+ conversationId: z.ZodNullable<z.ZodString>;
475
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
476
+ redacted: z.ZodBoolean;
477
+ requestId: z.ZodString;
478
+ occurredAt: z.ZodISODateTime;
479
+ receivedAt: z.ZodISODateTime;
480
+ }, z.core.$strict>;
481
+ export type ConnectorEvent = z.infer<typeof ConnectorEventSchema>;
482
+ export declare const MemoryProvenanceSchema: z.ZodObject<{
483
+ id: z.ZodUUID;
484
+ workspaceId: z.ZodUUID;
485
+ memoryId: z.ZodUUID;
486
+ eventId: z.ZodUUID;
487
+ messageRole: z.ZodEnum<{
488
+ user: "user";
489
+ assistant: "assistant";
490
+ }>;
491
+ sourceMessageId: z.ZodNullable<z.ZodString>;
492
+ excerpt: z.ZodString;
493
+ redacted: z.ZodBoolean;
494
+ confidence: z.ZodNumber;
495
+ confirmation: z.ZodEnum<{
496
+ unconfirmed: "unconfirmed";
497
+ implicit: "implicit";
498
+ explicit: "explicit";
499
+ }>;
500
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
501
+ createdAt: z.ZodISODateTime;
502
+ }, z.core.$strict>;
503
+ export type MemoryProvenance = z.infer<typeof MemoryProvenanceSchema>;
504
+ export declare const LearningInspectionProvenanceSchema: z.ZodObject<{
505
+ record: z.ZodObject<{
506
+ id: z.ZodUUID;
507
+ workspaceId: z.ZodUUID;
508
+ memoryId: z.ZodUUID;
509
+ eventId: z.ZodUUID;
510
+ messageRole: z.ZodEnum<{
511
+ user: "user";
512
+ assistant: "assistant";
513
+ }>;
514
+ sourceMessageId: z.ZodNullable<z.ZodString>;
515
+ excerpt: z.ZodString;
516
+ redacted: z.ZodBoolean;
517
+ confidence: z.ZodNumber;
518
+ confirmation: z.ZodEnum<{
519
+ unconfirmed: "unconfirmed";
520
+ implicit: "implicit";
521
+ explicit: "explicit";
522
+ }>;
523
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
524
+ createdAt: z.ZodISODateTime;
525
+ }, z.core.$strict>;
526
+ event: z.ZodObject<{
527
+ id: z.ZodUUID;
528
+ workspaceId: z.ZodUUID;
529
+ connector: z.ZodString;
530
+ externalEventId: z.ZodString;
531
+ type: z.ZodEnum<{
532
+ observation: "observation";
533
+ paired_turn: "paired_turn";
534
+ context_delivery: "context_delivery";
535
+ }>;
536
+ agent: z.ZodString;
537
+ sessionId: z.ZodString;
538
+ conversationId: z.ZodNullable<z.ZodString>;
539
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
540
+ redacted: z.ZodBoolean;
541
+ requestId: z.ZodString;
542
+ occurredAt: z.ZodISODateTime;
543
+ receivedAt: z.ZodISODateTime;
544
+ }, z.core.$strict>;
545
+ }, z.core.$strict>;
546
+ export type LearningInspectionProvenance = z.infer<typeof LearningInspectionProvenanceSchema>;
547
+ export declare const LearningInspectionResponseSchema: z.ZodObject<{
548
+ learning: z.ZodObject<{
549
+ id: z.ZodUUID;
550
+ workspaceId: z.ZodOptional<z.ZodUUID>;
551
+ content: z.ZodString;
552
+ scope: z.ZodObject<{
553
+ organization: z.ZodOptional<z.ZodString>;
554
+ project: z.ZodOptional<z.ZodString>;
555
+ repo: z.ZodOptional<z.ZodString>;
556
+ path: z.ZodOptional<z.ZodString>;
557
+ component: z.ZodOptional<z.ZodString>;
558
+ }, z.core.$strict>;
559
+ category: z.ZodEnum<{
560
+ architecture: "architecture";
561
+ convention: "convention";
562
+ correction: "correction";
563
+ gotcha: "gotcha";
564
+ known_gotcha: "known_gotcha";
565
+ deprecated: "deprecated";
566
+ behavior: "behavior";
567
+ review_feedback: "review_feedback";
568
+ other: "other";
569
+ }>;
570
+ status: z.ZodEnum<{
571
+ active: "active";
572
+ superseded: "superseded";
573
+ deleted: "deleted";
574
+ }>;
575
+ source: z.ZodObject<{
576
+ agent: z.ZodString;
577
+ sessionId: z.ZodOptional<z.ZodString>;
578
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
+ workspaceId: z.ZodOptional<z.ZodUUID>;
581
+ eventId: z.ZodOptional<z.ZodUUID>;
582
+ redacted: z.ZodOptional<z.ZodBoolean>;
583
+ }, z.core.$strict>;
584
+ confidence: z.ZodOptional<z.ZodNumber>;
585
+ confirmation: z.ZodOptional<z.ZodEnum<{
586
+ unconfirmed: "unconfirmed";
587
+ implicit: "implicit";
588
+ explicit: "explicit";
589
+ }>>;
590
+ reconciliationKey: z.ZodOptional<z.ZodString>;
591
+ fingerprint: z.ZodString;
592
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
593
+ createdAt: z.ZodISODateTime;
594
+ updatedAt: z.ZodISODateTime;
595
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
596
+ }, z.core.$strict>;
597
+ sourceEvent: z.ZodNullable<z.ZodObject<{
598
+ id: z.ZodUUID;
599
+ workspaceId: z.ZodUUID;
600
+ connector: z.ZodString;
601
+ externalEventId: z.ZodString;
602
+ type: z.ZodEnum<{
603
+ observation: "observation";
604
+ paired_turn: "paired_turn";
605
+ context_delivery: "context_delivery";
606
+ }>;
607
+ agent: z.ZodString;
608
+ sessionId: z.ZodString;
609
+ conversationId: z.ZodNullable<z.ZodString>;
610
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
611
+ redacted: z.ZodBoolean;
612
+ requestId: z.ZodString;
613
+ occurredAt: z.ZodISODateTime;
614
+ receivedAt: z.ZodISODateTime;
615
+ }, z.core.$strict>>;
616
+ provenance: z.ZodArray<z.ZodObject<{
617
+ record: z.ZodObject<{
618
+ id: z.ZodUUID;
619
+ workspaceId: z.ZodUUID;
620
+ memoryId: z.ZodUUID;
621
+ eventId: z.ZodUUID;
622
+ messageRole: z.ZodEnum<{
623
+ user: "user";
624
+ assistant: "assistant";
625
+ }>;
626
+ sourceMessageId: z.ZodNullable<z.ZodString>;
627
+ excerpt: z.ZodString;
628
+ redacted: z.ZodBoolean;
629
+ confidence: z.ZodNumber;
630
+ confirmation: z.ZodEnum<{
631
+ unconfirmed: "unconfirmed";
632
+ implicit: "implicit";
633
+ explicit: "explicit";
634
+ }>;
635
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
636
+ createdAt: z.ZodISODateTime;
637
+ }, z.core.$strict>;
638
+ event: z.ZodObject<{
639
+ id: z.ZodUUID;
640
+ workspaceId: z.ZodUUID;
641
+ connector: z.ZodString;
642
+ externalEventId: z.ZodString;
643
+ type: z.ZodEnum<{
644
+ observation: "observation";
645
+ paired_turn: "paired_turn";
646
+ context_delivery: "context_delivery";
647
+ }>;
648
+ agent: z.ZodString;
649
+ sessionId: z.ZodString;
650
+ conversationId: z.ZodNullable<z.ZodString>;
651
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
652
+ redacted: z.ZodBoolean;
653
+ requestId: z.ZodString;
654
+ occurredAt: z.ZodISODateTime;
655
+ receivedAt: z.ZodISODateTime;
656
+ }, z.core.$strict>;
657
+ }, z.core.$strict>>;
658
+ predecessor: z.ZodNullable<z.ZodObject<{
659
+ id: z.ZodUUID;
660
+ workspaceId: z.ZodOptional<z.ZodUUID>;
661
+ content: z.ZodString;
662
+ scope: z.ZodObject<{
663
+ organization: z.ZodOptional<z.ZodString>;
664
+ project: z.ZodOptional<z.ZodString>;
665
+ repo: z.ZodOptional<z.ZodString>;
666
+ path: z.ZodOptional<z.ZodString>;
667
+ component: z.ZodOptional<z.ZodString>;
668
+ }, z.core.$strict>;
669
+ category: z.ZodEnum<{
670
+ architecture: "architecture";
671
+ convention: "convention";
672
+ correction: "correction";
673
+ gotcha: "gotcha";
674
+ known_gotcha: "known_gotcha";
675
+ deprecated: "deprecated";
676
+ behavior: "behavior";
677
+ review_feedback: "review_feedback";
678
+ other: "other";
679
+ }>;
680
+ status: z.ZodEnum<{
681
+ active: "active";
682
+ superseded: "superseded";
683
+ deleted: "deleted";
684
+ }>;
685
+ source: z.ZodObject<{
686
+ agent: z.ZodString;
687
+ sessionId: z.ZodOptional<z.ZodString>;
688
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ workspaceId: z.ZodOptional<z.ZodUUID>;
691
+ eventId: z.ZodOptional<z.ZodUUID>;
692
+ redacted: z.ZodOptional<z.ZodBoolean>;
693
+ }, z.core.$strict>;
694
+ confidence: z.ZodOptional<z.ZodNumber>;
695
+ confirmation: z.ZodOptional<z.ZodEnum<{
696
+ unconfirmed: "unconfirmed";
697
+ implicit: "implicit";
698
+ explicit: "explicit";
699
+ }>>;
700
+ reconciliationKey: z.ZodOptional<z.ZodString>;
701
+ fingerprint: z.ZodString;
702
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
703
+ createdAt: z.ZodISODateTime;
704
+ updatedAt: z.ZodISODateTime;
705
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
706
+ }, z.core.$strict>>;
707
+ successor: z.ZodNullable<z.ZodObject<{
708
+ id: z.ZodUUID;
709
+ workspaceId: z.ZodOptional<z.ZodUUID>;
710
+ content: z.ZodString;
711
+ scope: z.ZodObject<{
712
+ organization: z.ZodOptional<z.ZodString>;
713
+ project: z.ZodOptional<z.ZodString>;
714
+ repo: z.ZodOptional<z.ZodString>;
715
+ path: z.ZodOptional<z.ZodString>;
716
+ component: z.ZodOptional<z.ZodString>;
717
+ }, z.core.$strict>;
718
+ category: z.ZodEnum<{
719
+ architecture: "architecture";
720
+ convention: "convention";
721
+ correction: "correction";
722
+ gotcha: "gotcha";
723
+ known_gotcha: "known_gotcha";
724
+ deprecated: "deprecated";
725
+ behavior: "behavior";
726
+ review_feedback: "review_feedback";
727
+ other: "other";
728
+ }>;
729
+ status: z.ZodEnum<{
730
+ active: "active";
731
+ superseded: "superseded";
732
+ deleted: "deleted";
733
+ }>;
734
+ source: z.ZodObject<{
735
+ agent: z.ZodString;
736
+ sessionId: z.ZodOptional<z.ZodString>;
737
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
738
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ workspaceId: z.ZodOptional<z.ZodUUID>;
740
+ eventId: z.ZodOptional<z.ZodUUID>;
741
+ redacted: z.ZodOptional<z.ZodBoolean>;
742
+ }, z.core.$strict>;
743
+ confidence: z.ZodOptional<z.ZodNumber>;
744
+ confirmation: z.ZodOptional<z.ZodEnum<{
745
+ unconfirmed: "unconfirmed";
746
+ implicit: "implicit";
747
+ explicit: "explicit";
748
+ }>>;
749
+ reconciliationKey: z.ZodOptional<z.ZodString>;
750
+ fingerprint: z.ZodString;
751
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
752
+ createdAt: z.ZodISODateTime;
753
+ updatedAt: z.ZodISODateTime;
754
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
755
+ }, z.core.$strict>>;
756
+ }, z.core.$strict>;
757
+ export type LearningInspectionResponse = z.infer<typeof LearningInspectionResponseSchema>;
758
+ export declare const DeliveryReceiptSchema: z.ZodObject<{
759
+ id: z.ZodUUID;
760
+ workspaceId: z.ZodUUID;
761
+ eventId: z.ZodUUID;
762
+ requestId: z.ZodString;
763
+ memoryIds: z.ZodArray<z.ZodUUID>;
764
+ packing: z.ZodNullable<z.ZodObject<{
765
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
766
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
767
+ limits: z.ZodObject<{
768
+ requestedItems: z.ZodNullable<z.ZodNumber>;
769
+ effectiveItems: z.ZodNumber;
770
+ maxCharacters: z.ZodNumber;
771
+ maxEstimatedTokens: z.ZodNumber;
772
+ }, z.core.$strict>;
773
+ usage: z.ZodObject<{
774
+ retrievedItems: z.ZodNumber;
775
+ includedItems: z.ZodNumber;
776
+ omittedItems: z.ZodNumber;
777
+ characters: z.ZodNumber;
778
+ utf8Bytes: z.ZodNumber;
779
+ estimatedTokens: z.ZodNumber;
780
+ }, z.core.$strict>;
781
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
782
+ omitted: z.ZodArray<z.ZodObject<{
783
+ memoryId: z.ZodUUID;
784
+ reason: z.ZodEnum<{
785
+ characters: "characters";
786
+ items: "items";
787
+ estimated_tokens: "estimated_tokens";
788
+ }>;
789
+ }, z.core.$strict>>;
790
+ contextSha256: z.ZodString;
791
+ }, z.core.$strict>>;
792
+ deliveredAt: z.ZodISODateTime;
793
+ }, z.core.$strict>;
794
+ export type DeliveryReceipt = z.infer<typeof DeliveryReceiptSchema>;
795
+ export declare const ContextDeliveryResponseSchema: z.ZodObject<{
796
+ event: z.ZodObject<{
797
+ id: z.ZodUUID;
798
+ workspaceId: z.ZodUUID;
799
+ connector: z.ZodString;
800
+ externalEventId: z.ZodString;
801
+ type: z.ZodEnum<{
802
+ observation: "observation";
803
+ paired_turn: "paired_turn";
804
+ context_delivery: "context_delivery";
805
+ }>;
806
+ agent: z.ZodString;
807
+ sessionId: z.ZodString;
808
+ conversationId: z.ZodNullable<z.ZodString>;
809
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
810
+ redacted: z.ZodBoolean;
811
+ requestId: z.ZodString;
812
+ occurredAt: z.ZodISODateTime;
813
+ receivedAt: z.ZodISODateTime;
814
+ }, z.core.$strict>;
815
+ receipt: z.ZodObject<{
816
+ id: z.ZodUUID;
817
+ workspaceId: z.ZodUUID;
818
+ eventId: z.ZodUUID;
819
+ requestId: z.ZodString;
820
+ memoryIds: z.ZodArray<z.ZodUUID>;
821
+ packing: z.ZodNullable<z.ZodObject<{
822
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
823
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
824
+ limits: z.ZodObject<{
825
+ requestedItems: z.ZodNullable<z.ZodNumber>;
826
+ effectiveItems: z.ZodNumber;
827
+ maxCharacters: z.ZodNumber;
828
+ maxEstimatedTokens: z.ZodNumber;
829
+ }, z.core.$strict>;
830
+ usage: z.ZodObject<{
831
+ retrievedItems: z.ZodNumber;
832
+ includedItems: z.ZodNumber;
833
+ omittedItems: z.ZodNumber;
834
+ characters: z.ZodNumber;
835
+ utf8Bytes: z.ZodNumber;
836
+ estimatedTokens: z.ZodNumber;
837
+ }, z.core.$strict>;
838
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
839
+ omitted: z.ZodArray<z.ZodObject<{
840
+ memoryId: z.ZodUUID;
841
+ reason: z.ZodEnum<{
842
+ characters: "characters";
843
+ items: "items";
844
+ estimated_tokens: "estimated_tokens";
845
+ }>;
846
+ }, z.core.$strict>>;
847
+ contextSha256: z.ZodString;
848
+ }, z.core.$strict>>;
849
+ deliveredAt: z.ZodISODateTime;
850
+ }, z.core.$strict>;
851
+ replayed: z.ZodBoolean;
852
+ memories: z.ZodArray<z.ZodObject<{
853
+ id: z.ZodUUID;
854
+ workspaceId: z.ZodOptional<z.ZodUUID>;
855
+ content: z.ZodString;
856
+ scope: z.ZodObject<{
857
+ organization: z.ZodOptional<z.ZodString>;
858
+ project: z.ZodOptional<z.ZodString>;
859
+ repo: z.ZodOptional<z.ZodString>;
860
+ path: z.ZodOptional<z.ZodString>;
861
+ component: z.ZodOptional<z.ZodString>;
862
+ }, z.core.$strict>;
863
+ category: z.ZodEnum<{
864
+ architecture: "architecture";
865
+ convention: "convention";
866
+ correction: "correction";
867
+ gotcha: "gotcha";
868
+ known_gotcha: "known_gotcha";
869
+ deprecated: "deprecated";
870
+ behavior: "behavior";
871
+ review_feedback: "review_feedback";
872
+ other: "other";
873
+ }>;
874
+ status: z.ZodEnum<{
875
+ active: "active";
876
+ superseded: "superseded";
877
+ deleted: "deleted";
878
+ }>;
879
+ source: z.ZodObject<{
880
+ agent: z.ZodString;
881
+ sessionId: z.ZodOptional<z.ZodString>;
882
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
884
+ workspaceId: z.ZodOptional<z.ZodUUID>;
885
+ eventId: z.ZodOptional<z.ZodUUID>;
886
+ redacted: z.ZodOptional<z.ZodBoolean>;
887
+ }, z.core.$strict>;
888
+ confidence: z.ZodOptional<z.ZodNumber>;
889
+ confirmation: z.ZodOptional<z.ZodEnum<{
890
+ unconfirmed: "unconfirmed";
891
+ implicit: "implicit";
892
+ explicit: "explicit";
893
+ }>>;
894
+ reconciliationKey: z.ZodOptional<z.ZodString>;
895
+ fingerprint: z.ZodString;
896
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
897
+ createdAt: z.ZodISODateTime;
898
+ updatedAt: z.ZodISODateTime;
899
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
900
+ }, z.core.$strict>>;
901
+ context: z.ZodString;
902
+ packing: z.ZodObject<{
903
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
904
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
905
+ limits: z.ZodObject<{
906
+ requestedItems: z.ZodNullable<z.ZodNumber>;
907
+ effectiveItems: z.ZodNumber;
908
+ maxCharacters: z.ZodNumber;
909
+ maxEstimatedTokens: z.ZodNumber;
910
+ }, z.core.$strict>;
911
+ usage: z.ZodObject<{
912
+ retrievedItems: z.ZodNumber;
913
+ includedItems: z.ZodNumber;
914
+ omittedItems: z.ZodNumber;
915
+ characters: z.ZodNumber;
916
+ utf8Bytes: z.ZodNumber;
917
+ estimatedTokens: z.ZodNumber;
918
+ }, z.core.$strict>;
919
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
920
+ omitted: z.ZodArray<z.ZodObject<{
921
+ memoryId: z.ZodUUID;
922
+ reason: z.ZodEnum<{
923
+ characters: "characters";
924
+ items: "items";
925
+ estimated_tokens: "estimated_tokens";
926
+ }>;
927
+ }, z.core.$strict>>;
928
+ contextSha256: z.ZodString;
929
+ }, z.core.$strict>;
930
+ }, z.core.$strict>;
931
+ export type ContextDeliveryResponse = z.infer<typeof ContextDeliveryResponseSchema>;
932
+ export declare const ActivityMemorySchema: z.ZodObject<{
933
+ content: z.ZodString;
934
+ id: z.ZodUUID;
935
+ category: z.ZodEnum<{
936
+ architecture: "architecture";
937
+ convention: "convention";
938
+ correction: "correction";
939
+ gotcha: "gotcha";
940
+ known_gotcha: "known_gotcha";
941
+ deprecated: "deprecated";
942
+ behavior: "behavior";
943
+ review_feedback: "review_feedback";
944
+ other: "other";
945
+ }>;
946
+ status: z.ZodEnum<{
947
+ active: "active";
948
+ superseded: "superseded";
949
+ deleted: "deleted";
950
+ }>;
951
+ }, z.core.$strict>;
952
+ export type ActivityMemory = z.infer<typeof ActivityMemorySchema>;
953
+ export declare const ActivityItemSchema: z.ZodObject<{
954
+ event: z.ZodObject<{
955
+ id: z.ZodUUID;
956
+ workspaceId: z.ZodUUID;
957
+ connector: z.ZodString;
958
+ externalEventId: z.ZodString;
959
+ type: z.ZodEnum<{
960
+ observation: "observation";
961
+ paired_turn: "paired_turn";
962
+ context_delivery: "context_delivery";
963
+ }>;
964
+ agent: z.ZodString;
965
+ sessionId: z.ZodString;
966
+ conversationId: z.ZodNullable<z.ZodString>;
967
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
968
+ redacted: z.ZodBoolean;
969
+ requestId: z.ZodString;
970
+ occurredAt: z.ZodISODateTime;
971
+ receivedAt: z.ZodISODateTime;
972
+ }, z.core.$strict>;
973
+ correction: z.ZodString;
974
+ learnedMemories: z.ZodArray<z.ZodObject<{
975
+ content: z.ZodString;
976
+ id: z.ZodUUID;
977
+ category: z.ZodEnum<{
978
+ architecture: "architecture";
979
+ convention: "convention";
980
+ correction: "correction";
981
+ gotcha: "gotcha";
982
+ known_gotcha: "known_gotcha";
983
+ deprecated: "deprecated";
984
+ behavior: "behavior";
985
+ review_feedback: "review_feedback";
986
+ other: "other";
987
+ }>;
988
+ status: z.ZodEnum<{
989
+ active: "active";
990
+ superseded: "superseded";
991
+ deleted: "deleted";
992
+ }>;
993
+ }, z.core.$strict>>;
994
+ deliveredMemories: z.ZodArray<z.ZodObject<{
995
+ content: z.ZodString;
996
+ id: z.ZodUUID;
997
+ category: z.ZodEnum<{
998
+ architecture: "architecture";
999
+ convention: "convention";
1000
+ correction: "correction";
1001
+ gotcha: "gotcha";
1002
+ known_gotcha: "known_gotcha";
1003
+ deprecated: "deprecated";
1004
+ behavior: "behavior";
1005
+ review_feedback: "review_feedback";
1006
+ other: "other";
1007
+ }>;
1008
+ status: z.ZodEnum<{
1009
+ active: "active";
1010
+ superseded: "superseded";
1011
+ deleted: "deleted";
1012
+ }>;
1013
+ }, z.core.$strict>>;
1014
+ receipt: z.ZodNullable<z.ZodObject<{
1015
+ id: z.ZodUUID;
1016
+ workspaceId: z.ZodUUID;
1017
+ eventId: z.ZodUUID;
1018
+ requestId: z.ZodString;
1019
+ memoryIds: z.ZodArray<z.ZodUUID>;
1020
+ packing: z.ZodNullable<z.ZodObject<{
1021
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
1022
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
1023
+ limits: z.ZodObject<{
1024
+ requestedItems: z.ZodNullable<z.ZodNumber>;
1025
+ effectiveItems: z.ZodNumber;
1026
+ maxCharacters: z.ZodNumber;
1027
+ maxEstimatedTokens: z.ZodNumber;
1028
+ }, z.core.$strict>;
1029
+ usage: z.ZodObject<{
1030
+ retrievedItems: z.ZodNumber;
1031
+ includedItems: z.ZodNumber;
1032
+ omittedItems: z.ZodNumber;
1033
+ characters: z.ZodNumber;
1034
+ utf8Bytes: z.ZodNumber;
1035
+ estimatedTokens: z.ZodNumber;
1036
+ }, z.core.$strict>;
1037
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
1038
+ omitted: z.ZodArray<z.ZodObject<{
1039
+ memoryId: z.ZodUUID;
1040
+ reason: z.ZodEnum<{
1041
+ characters: "characters";
1042
+ items: "items";
1043
+ estimated_tokens: "estimated_tokens";
1044
+ }>;
1045
+ }, z.core.$strict>>;
1046
+ contextSha256: z.ZodString;
1047
+ }, z.core.$strict>>;
1048
+ deliveredAt: z.ZodISODateTime;
1049
+ }, z.core.$strict>>;
1050
+ }, z.core.$strict>;
1051
+ export type ActivityItem = z.infer<typeof ActivityItemSchema>;
1052
+ export declare const ActivityQuerySchema: z.ZodObject<{
1053
+ type: z.ZodOptional<z.ZodEnum<{
1054
+ observation: "observation";
1055
+ paired_turn: "paired_turn";
1056
+ context_delivery: "context_delivery";
1057
+ }>>;
1058
+ agent: z.ZodOptional<z.ZodString>;
1059
+ connector: z.ZodOptional<z.ZodString>;
1060
+ from: z.ZodOptional<z.ZodISODateTime>;
1061
+ to: z.ZodOptional<z.ZodISODateTime>;
1062
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1063
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1064
+ }, z.core.$strict>;
1065
+ export type ActivityQuery = z.infer<typeof ActivityQuerySchema>;
1066
+ export declare const ActivityListResponseSchema: z.ZodObject<{
1067
+ activities: z.ZodArray<z.ZodObject<{
1068
+ event: z.ZodObject<{
1069
+ id: z.ZodUUID;
1070
+ workspaceId: z.ZodUUID;
1071
+ connector: z.ZodString;
1072
+ externalEventId: z.ZodString;
1073
+ type: z.ZodEnum<{
1074
+ observation: "observation";
1075
+ paired_turn: "paired_turn";
1076
+ context_delivery: "context_delivery";
1077
+ }>;
1078
+ agent: z.ZodString;
1079
+ sessionId: z.ZodString;
1080
+ conversationId: z.ZodNullable<z.ZodString>;
1081
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1082
+ redacted: z.ZodBoolean;
1083
+ requestId: z.ZodString;
1084
+ occurredAt: z.ZodISODateTime;
1085
+ receivedAt: z.ZodISODateTime;
1086
+ }, z.core.$strict>;
1087
+ correction: z.ZodString;
1088
+ learnedMemories: z.ZodArray<z.ZodObject<{
1089
+ content: z.ZodString;
1090
+ id: z.ZodUUID;
1091
+ category: z.ZodEnum<{
1092
+ architecture: "architecture";
1093
+ convention: "convention";
1094
+ correction: "correction";
1095
+ gotcha: "gotcha";
1096
+ known_gotcha: "known_gotcha";
1097
+ deprecated: "deprecated";
1098
+ behavior: "behavior";
1099
+ review_feedback: "review_feedback";
1100
+ other: "other";
1101
+ }>;
1102
+ status: z.ZodEnum<{
1103
+ active: "active";
1104
+ superseded: "superseded";
1105
+ deleted: "deleted";
1106
+ }>;
1107
+ }, z.core.$strict>>;
1108
+ deliveredMemories: z.ZodArray<z.ZodObject<{
1109
+ content: z.ZodString;
1110
+ id: z.ZodUUID;
1111
+ category: z.ZodEnum<{
1112
+ architecture: "architecture";
1113
+ convention: "convention";
1114
+ correction: "correction";
1115
+ gotcha: "gotcha";
1116
+ known_gotcha: "known_gotcha";
1117
+ deprecated: "deprecated";
1118
+ behavior: "behavior";
1119
+ review_feedback: "review_feedback";
1120
+ other: "other";
1121
+ }>;
1122
+ status: z.ZodEnum<{
1123
+ active: "active";
1124
+ superseded: "superseded";
1125
+ deleted: "deleted";
1126
+ }>;
1127
+ }, z.core.$strict>>;
1128
+ receipt: z.ZodNullable<z.ZodObject<{
1129
+ id: z.ZodUUID;
1130
+ workspaceId: z.ZodUUID;
1131
+ eventId: z.ZodUUID;
1132
+ requestId: z.ZodString;
1133
+ memoryIds: z.ZodArray<z.ZodUUID>;
1134
+ packing: z.ZodNullable<z.ZodObject<{
1135
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
1136
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
1137
+ limits: z.ZodObject<{
1138
+ requestedItems: z.ZodNullable<z.ZodNumber>;
1139
+ effectiveItems: z.ZodNumber;
1140
+ maxCharacters: z.ZodNumber;
1141
+ maxEstimatedTokens: z.ZodNumber;
1142
+ }, z.core.$strict>;
1143
+ usage: z.ZodObject<{
1144
+ retrievedItems: z.ZodNumber;
1145
+ includedItems: z.ZodNumber;
1146
+ omittedItems: z.ZodNumber;
1147
+ characters: z.ZodNumber;
1148
+ utf8Bytes: z.ZodNumber;
1149
+ estimatedTokens: z.ZodNumber;
1150
+ }, z.core.$strict>;
1151
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
1152
+ omitted: z.ZodArray<z.ZodObject<{
1153
+ memoryId: z.ZodUUID;
1154
+ reason: z.ZodEnum<{
1155
+ characters: "characters";
1156
+ items: "items";
1157
+ estimated_tokens: "estimated_tokens";
1158
+ }>;
1159
+ }, z.core.$strict>>;
1160
+ contextSha256: z.ZodString;
1161
+ }, z.core.$strict>>;
1162
+ deliveredAt: z.ZodISODateTime;
1163
+ }, z.core.$strict>>;
1164
+ }, z.core.$strict>>;
1165
+ total: z.ZodNumber;
1166
+ limit: z.ZodNumber;
1167
+ offset: z.ZodNumber;
1168
+ hasMore: z.ZodBoolean;
1169
+ }, z.core.$strict>;
1170
+ export type ActivityListResponse = z.infer<typeof ActivityListResponseSchema>;
1171
+ export declare const TurnObservationSchema: z.ZodObject<{
1172
+ memories: z.ZodArray<z.ZodObject<{
1173
+ id: z.ZodUUID;
1174
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1175
+ content: z.ZodString;
1176
+ scope: z.ZodObject<{
1177
+ organization: z.ZodOptional<z.ZodString>;
1178
+ project: z.ZodOptional<z.ZodString>;
1179
+ repo: z.ZodOptional<z.ZodString>;
1180
+ path: z.ZodOptional<z.ZodString>;
1181
+ component: z.ZodOptional<z.ZodString>;
1182
+ }, z.core.$strict>;
1183
+ category: z.ZodEnum<{
1184
+ architecture: "architecture";
1185
+ convention: "convention";
1186
+ correction: "correction";
1187
+ gotcha: "gotcha";
1188
+ known_gotcha: "known_gotcha";
1189
+ deprecated: "deprecated";
1190
+ behavior: "behavior";
1191
+ review_feedback: "review_feedback";
1192
+ other: "other";
1193
+ }>;
1194
+ status: z.ZodEnum<{
1195
+ active: "active";
1196
+ superseded: "superseded";
1197
+ deleted: "deleted";
1198
+ }>;
1199
+ source: z.ZodObject<{
1200
+ agent: z.ZodString;
1201
+ sessionId: z.ZodOptional<z.ZodString>;
1202
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1204
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1205
+ eventId: z.ZodOptional<z.ZodUUID>;
1206
+ redacted: z.ZodOptional<z.ZodBoolean>;
1207
+ }, z.core.$strict>;
1208
+ confidence: z.ZodOptional<z.ZodNumber>;
1209
+ confirmation: z.ZodOptional<z.ZodEnum<{
1210
+ unconfirmed: "unconfirmed";
1211
+ implicit: "implicit";
1212
+ explicit: "explicit";
1213
+ }>>;
1214
+ reconciliationKey: z.ZodOptional<z.ZodString>;
1215
+ fingerprint: z.ZodString;
1216
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
1217
+ createdAt: z.ZodISODateTime;
1218
+ updatedAt: z.ZodISODateTime;
1219
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
1220
+ }, z.core.$strict>>;
1221
+ created: z.ZodNumber;
1222
+ duplicates: z.ZodNumber;
1223
+ reconciled: z.ZodNumber;
1224
+ superseded: z.ZodNumber;
1225
+ }, z.core.$strict>;
1226
+ export type TurnObservation = z.infer<typeof TurnObservationSchema>;
1227
+ export declare const ObservationResponseSchema: z.ZodObject<{
1228
+ memories: z.ZodArray<z.ZodObject<{
1229
+ id: z.ZodUUID;
1230
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1231
+ content: z.ZodString;
1232
+ scope: z.ZodObject<{
1233
+ organization: z.ZodOptional<z.ZodString>;
1234
+ project: z.ZodOptional<z.ZodString>;
1235
+ repo: z.ZodOptional<z.ZodString>;
1236
+ path: z.ZodOptional<z.ZodString>;
1237
+ component: z.ZodOptional<z.ZodString>;
1238
+ }, z.core.$strict>;
1239
+ category: z.ZodEnum<{
1240
+ architecture: "architecture";
1241
+ convention: "convention";
1242
+ correction: "correction";
1243
+ gotcha: "gotcha";
1244
+ known_gotcha: "known_gotcha";
1245
+ deprecated: "deprecated";
1246
+ behavior: "behavior";
1247
+ review_feedback: "review_feedback";
1248
+ other: "other";
1249
+ }>;
1250
+ status: z.ZodEnum<{
1251
+ active: "active";
1252
+ superseded: "superseded";
1253
+ deleted: "deleted";
1254
+ }>;
1255
+ source: z.ZodObject<{
1256
+ agent: z.ZodString;
1257
+ sessionId: z.ZodOptional<z.ZodString>;
1258
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1259
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1260
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1261
+ eventId: z.ZodOptional<z.ZodUUID>;
1262
+ redacted: z.ZodOptional<z.ZodBoolean>;
1263
+ }, z.core.$strict>;
1264
+ confidence: z.ZodOptional<z.ZodNumber>;
1265
+ confirmation: z.ZodOptional<z.ZodEnum<{
1266
+ unconfirmed: "unconfirmed";
1267
+ implicit: "implicit";
1268
+ explicit: "explicit";
1269
+ }>>;
1270
+ reconciliationKey: z.ZodOptional<z.ZodString>;
1271
+ fingerprint: z.ZodString;
1272
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
1273
+ createdAt: z.ZodISODateTime;
1274
+ updatedAt: z.ZodISODateTime;
1275
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
1276
+ }, z.core.$strict>>;
1277
+ created: z.ZodNumber;
1278
+ duplicates: z.ZodNumber;
1279
+ reconciled: z.ZodNumber;
1280
+ superseded: z.ZodNumber;
1281
+ event: z.ZodObject<{
1282
+ id: z.ZodUUID;
1283
+ workspaceId: z.ZodUUID;
1284
+ connector: z.ZodString;
1285
+ externalEventId: z.ZodString;
1286
+ type: z.ZodEnum<{
1287
+ observation: "observation";
1288
+ paired_turn: "paired_turn";
1289
+ context_delivery: "context_delivery";
1290
+ }>;
1291
+ agent: z.ZodString;
1292
+ sessionId: z.ZodString;
1293
+ conversationId: z.ZodNullable<z.ZodString>;
1294
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1295
+ redacted: z.ZodBoolean;
1296
+ requestId: z.ZodString;
1297
+ occurredAt: z.ZodISODateTime;
1298
+ receivedAt: z.ZodISODateTime;
1299
+ }, z.core.$strict>;
1300
+ replayed: z.ZodBoolean;
1301
+ }, z.core.$strict>;
1302
+ export type ObservationResponse = z.infer<typeof ObservationResponseSchema>;
1303
+ export declare const PairedTurnResponseSchema: z.ZodObject<{
1304
+ requestId: z.ZodString;
1305
+ event: z.ZodObject<{
1306
+ id: z.ZodUUID;
1307
+ workspaceId: z.ZodUUID;
1308
+ connector: z.ZodString;
1309
+ externalEventId: z.ZodString;
1310
+ type: z.ZodEnum<{
1311
+ observation: "observation";
1312
+ paired_turn: "paired_turn";
1313
+ context_delivery: "context_delivery";
1314
+ }>;
1315
+ agent: z.ZodString;
1316
+ sessionId: z.ZodString;
1317
+ conversationId: z.ZodNullable<z.ZodString>;
1318
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1319
+ redacted: z.ZodBoolean;
1320
+ requestId: z.ZodString;
1321
+ occurredAt: z.ZodISODateTime;
1322
+ receivedAt: z.ZodISODateTime;
1323
+ }, z.core.$strict>;
1324
+ replayed: z.ZodBoolean;
1325
+ observation: z.ZodObject<{
1326
+ memories: z.ZodArray<z.ZodObject<{
1327
+ id: z.ZodUUID;
1328
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1329
+ content: z.ZodString;
1330
+ scope: z.ZodObject<{
1331
+ organization: z.ZodOptional<z.ZodString>;
1332
+ project: z.ZodOptional<z.ZodString>;
1333
+ repo: z.ZodOptional<z.ZodString>;
1334
+ path: z.ZodOptional<z.ZodString>;
1335
+ component: z.ZodOptional<z.ZodString>;
1336
+ }, z.core.$strict>;
1337
+ category: z.ZodEnum<{
1338
+ architecture: "architecture";
1339
+ convention: "convention";
1340
+ correction: "correction";
1341
+ gotcha: "gotcha";
1342
+ known_gotcha: "known_gotcha";
1343
+ deprecated: "deprecated";
1344
+ behavior: "behavior";
1345
+ review_feedback: "review_feedback";
1346
+ other: "other";
1347
+ }>;
1348
+ status: z.ZodEnum<{
1349
+ active: "active";
1350
+ superseded: "superseded";
1351
+ deleted: "deleted";
1352
+ }>;
1353
+ source: z.ZodObject<{
1354
+ agent: z.ZodString;
1355
+ sessionId: z.ZodOptional<z.ZodString>;
1356
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1357
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1359
+ eventId: z.ZodOptional<z.ZodUUID>;
1360
+ redacted: z.ZodOptional<z.ZodBoolean>;
1361
+ }, z.core.$strict>;
1362
+ confidence: z.ZodOptional<z.ZodNumber>;
1363
+ confirmation: z.ZodOptional<z.ZodEnum<{
1364
+ unconfirmed: "unconfirmed";
1365
+ implicit: "implicit";
1366
+ explicit: "explicit";
1367
+ }>>;
1368
+ reconciliationKey: z.ZodOptional<z.ZodString>;
1369
+ fingerprint: z.ZodString;
1370
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
1371
+ createdAt: z.ZodISODateTime;
1372
+ updatedAt: z.ZodISODateTime;
1373
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
1374
+ }, z.core.$strict>>;
1375
+ created: z.ZodNumber;
1376
+ duplicates: z.ZodNumber;
1377
+ reconciled: z.ZodNumber;
1378
+ superseded: z.ZodNumber;
1379
+ }, z.core.$strict>;
1380
+ context: z.ZodObject<{
1381
+ memories: z.ZodArray<z.ZodObject<{
1382
+ id: z.ZodUUID;
1383
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1384
+ content: z.ZodString;
1385
+ scope: z.ZodObject<{
1386
+ organization: z.ZodOptional<z.ZodString>;
1387
+ project: z.ZodOptional<z.ZodString>;
1388
+ repo: z.ZodOptional<z.ZodString>;
1389
+ path: z.ZodOptional<z.ZodString>;
1390
+ component: z.ZodOptional<z.ZodString>;
1391
+ }, z.core.$strict>;
1392
+ category: z.ZodEnum<{
1393
+ architecture: "architecture";
1394
+ convention: "convention";
1395
+ correction: "correction";
1396
+ gotcha: "gotcha";
1397
+ known_gotcha: "known_gotcha";
1398
+ deprecated: "deprecated";
1399
+ behavior: "behavior";
1400
+ review_feedback: "review_feedback";
1401
+ other: "other";
1402
+ }>;
1403
+ status: z.ZodEnum<{
1404
+ active: "active";
1405
+ superseded: "superseded";
1406
+ deleted: "deleted";
1407
+ }>;
1408
+ source: z.ZodObject<{
1409
+ agent: z.ZodString;
1410
+ sessionId: z.ZodOptional<z.ZodString>;
1411
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1412
+ rawText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1413
+ workspaceId: z.ZodOptional<z.ZodUUID>;
1414
+ eventId: z.ZodOptional<z.ZodUUID>;
1415
+ redacted: z.ZodOptional<z.ZodBoolean>;
1416
+ }, z.core.$strict>;
1417
+ confidence: z.ZodOptional<z.ZodNumber>;
1418
+ confirmation: z.ZodOptional<z.ZodEnum<{
1419
+ unconfirmed: "unconfirmed";
1420
+ implicit: "implicit";
1421
+ explicit: "explicit";
1422
+ }>>;
1423
+ reconciliationKey: z.ZodOptional<z.ZodString>;
1424
+ fingerprint: z.ZodString;
1425
+ supersedesMemoryId: z.ZodNullable<z.ZodUUID>;
1426
+ createdAt: z.ZodISODateTime;
1427
+ updatedAt: z.ZodISODateTime;
1428
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
1429
+ }, z.core.$strict>>;
1430
+ text: z.ZodString;
1431
+ packing: z.ZodOptional<z.ZodObject<{
1432
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
1433
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
1434
+ limits: z.ZodObject<{
1435
+ requestedItems: z.ZodNullable<z.ZodNumber>;
1436
+ effectiveItems: z.ZodNumber;
1437
+ maxCharacters: z.ZodNumber;
1438
+ maxEstimatedTokens: z.ZodNumber;
1439
+ }, z.core.$strict>;
1440
+ usage: z.ZodObject<{
1441
+ retrievedItems: z.ZodNumber;
1442
+ includedItems: z.ZodNumber;
1443
+ omittedItems: z.ZodNumber;
1444
+ characters: z.ZodNumber;
1445
+ utf8Bytes: z.ZodNumber;
1446
+ estimatedTokens: z.ZodNumber;
1447
+ }, z.core.$strict>;
1448
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
1449
+ omitted: z.ZodArray<z.ZodObject<{
1450
+ memoryId: z.ZodUUID;
1451
+ reason: z.ZodEnum<{
1452
+ characters: "characters";
1453
+ items: "items";
1454
+ estimated_tokens: "estimated_tokens";
1455
+ }>;
1456
+ }, z.core.$strict>>;
1457
+ contextSha256: z.ZodString;
1458
+ }, z.core.$strict>>;
1459
+ }, z.core.$strict>;
1460
+ receipt: z.ZodObject<{
1461
+ id: z.ZodUUID;
1462
+ workspaceId: z.ZodUUID;
1463
+ eventId: z.ZodUUID;
1464
+ requestId: z.ZodString;
1465
+ memoryIds: z.ZodArray<z.ZodUUID>;
1466
+ packing: z.ZodNullable<z.ZodObject<{
1467
+ policyVersion: z.ZodLiteral<"context-pack-v1">;
1468
+ estimator: z.ZodLiteral<"utf8-bytes-div-3-v1">;
1469
+ limits: z.ZodObject<{
1470
+ requestedItems: z.ZodNullable<z.ZodNumber>;
1471
+ effectiveItems: z.ZodNumber;
1472
+ maxCharacters: z.ZodNumber;
1473
+ maxEstimatedTokens: z.ZodNumber;
1474
+ }, z.core.$strict>;
1475
+ usage: z.ZodObject<{
1476
+ retrievedItems: z.ZodNumber;
1477
+ includedItems: z.ZodNumber;
1478
+ omittedItems: z.ZodNumber;
1479
+ characters: z.ZodNumber;
1480
+ utf8Bytes: z.ZodNumber;
1481
+ estimatedTokens: z.ZodNumber;
1482
+ }, z.core.$strict>;
1483
+ includedMemoryIds: z.ZodArray<z.ZodUUID>;
1484
+ omitted: z.ZodArray<z.ZodObject<{
1485
+ memoryId: z.ZodUUID;
1486
+ reason: z.ZodEnum<{
1487
+ characters: "characters";
1488
+ items: "items";
1489
+ estimated_tokens: "estimated_tokens";
1490
+ }>;
1491
+ }, z.core.$strict>>;
1492
+ contextSha256: z.ZodString;
1493
+ }, z.core.$strict>>;
1494
+ deliveredAt: z.ZodISODateTime;
1495
+ }, z.core.$strict>;
1496
+ }, z.core.$strict>;
1497
+ export type PairedTurnResponse = z.infer<typeof PairedTurnResponseSchema>;
1498
+ //# sourceMappingURL=pilot-schemas.d.ts.map