@lore-co/core 0.1.17 → 0.1.19

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.
Files changed (60) hide show
  1. package/dist/auth-schemas.d.ts +92 -4
  2. package/dist/auth-schemas.d.ts.map +1 -1
  3. package/dist/auth-schemas.js +77 -0
  4. package/dist/auth-schemas.js.map +1 -1
  5. package/dist/canonical-json.d.ts +19 -0
  6. package/dist/canonical-json.d.ts.map +1 -0
  7. package/dist/canonical-json.js +228 -0
  8. package/dist/canonical-json.js.map +1 -0
  9. package/dist/conflict-detector.d.ts.map +1 -1
  10. package/dist/conflict-detector.js +30 -14
  11. package/dist/conflict-detector.js.map +1 -1
  12. package/dist/engine.d.ts +38 -6
  13. package/dist/engine.d.ts.map +1 -1
  14. package/dist/engine.js +118 -25
  15. package/dist/engine.js.map +1 -1
  16. package/dist/guard-schemas.d.ts +217 -1
  17. package/dist/guard-schemas.d.ts.map +1 -1
  18. package/dist/guard-schemas.js +92 -11
  19. package/dist/guard-schemas.js.map +1 -1
  20. package/dist/index.d.ts +5 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +5 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/integration-contract.d.ts +612 -0
  25. package/dist/integration-contract.d.ts.map +1 -0
  26. package/dist/integration-contract.js +679 -0
  27. package/dist/integration-contract.js.map +1 -0
  28. package/dist/native-coding-agents.d.ts +1 -1
  29. package/dist/native-coding-agents.d.ts.map +1 -1
  30. package/dist/native-coding-agents.js +2 -0
  31. package/dist/native-coding-agents.js.map +1 -1
  32. package/dist/operational-metrics.d.ts +165 -0
  33. package/dist/operational-metrics.d.ts.map +1 -0
  34. package/dist/operational-metrics.js +216 -0
  35. package/dist/operational-metrics.js.map +1 -0
  36. package/dist/pilot-schemas.d.ts +80 -0
  37. package/dist/pilot-schemas.d.ts.map +1 -1
  38. package/dist/platform-admin-schemas.d.ts +171 -8
  39. package/dist/platform-admin-schemas.d.ts.map +1 -1
  40. package/dist/platform-admin-schemas.js +89 -1
  41. package/dist/platform-admin-schemas.js.map +1 -1
  42. package/dist/ports.d.ts +85 -8
  43. package/dist/ports.d.ts.map +1 -1
  44. package/dist/ports.js +231 -1
  45. package/dist/ports.js.map +1 -1
  46. package/dist/reliability-schemas.d.ts +723 -0
  47. package/dist/reliability-schemas.d.ts.map +1 -0
  48. package/dist/reliability-schemas.js +750 -0
  49. package/dist/reliability-schemas.js.map +1 -0
  50. package/dist/schemas.d.ts +205 -0
  51. package/dist/schemas.d.ts.map +1 -1
  52. package/dist/schemas.js +166 -1
  53. package/dist/schemas.js.map +1 -1
  54. package/dist/session-schemas.d.ts +80 -0
  55. package/dist/session-schemas.d.ts.map +1 -1
  56. package/dist/snapshot-schemas.d.ts +3503 -0
  57. package/dist/snapshot-schemas.d.ts.map +1 -0
  58. package/dist/snapshot-schemas.js +507 -0
  59. package/dist/snapshot-schemas.js.map +1 -0
  60. package/package.json +21 -1
@@ -0,0 +1,723 @@
1
+ import { z } from "zod";
2
+ export declare const RELIABILITY_CONTRACT_VERSION: "reliability-v1";
3
+ export declare const RELIABILITY_V1_MEDIA_TYPE: "application/vnd.lore.reliability-v1+json";
4
+ export declare const CAPTURE_EXTRACT_JOB_VERSION: "capture-extract-v1";
5
+ export declare const MEMORY_EMBED_JOB_VERSION: "memory-embed-v1";
6
+ export declare const ReliabilityContractVersionSchema: z.ZodLiteral<"reliability-v1">;
7
+ export type ReliabilityContractVersion = z.infer<typeof ReliabilityContractVersionSchema>;
8
+ export declare const ReliabilityOperationSchema: z.ZodEnum<{
9
+ capture: "capture";
10
+ retrieval: "retrieval";
11
+ guard: "guard";
12
+ }>;
13
+ export type ReliabilityOperation = z.infer<typeof ReliabilityOperationSchema>;
14
+ export declare const ReliabilityStatusSchema: z.ZodEnum<{
15
+ ok: "ok";
16
+ degraded: "degraded";
17
+ blocked: "blocked";
18
+ overridden: "overridden";
19
+ failed: "failed";
20
+ }>;
21
+ export type ReliabilityStatus = z.infer<typeof ReliabilityStatusSchema>;
22
+ export declare const ReliabilitySourceSchema: z.ZodEnum<{
23
+ live: "live";
24
+ cache: "cache";
25
+ local_queue: "local_queue";
26
+ none: "none";
27
+ }>;
28
+ export type ReliabilitySource = z.infer<typeof ReliabilitySourceSchema>;
29
+ export declare const ReliabilityFallbackModeSchema: z.ZodEnum<{
30
+ local_queue: "local_queue";
31
+ none: "none";
32
+ live_lexical: "live_lexical";
33
+ cached_context: "cached_context";
34
+ cached_policy: "cached_policy";
35
+ break_glass: "break_glass";
36
+ }>;
37
+ export type ReliabilityFallbackMode = z.infer<typeof ReliabilityFallbackModeSchema>;
38
+ export declare const ReliabilityReasonCodeSchema: z.ZodEnum<{
39
+ semantic_unavailable: "semantic_unavailable";
40
+ cached_context: "cached_context";
41
+ cached_policy: "cached_policy";
42
+ live_success: "live_success";
43
+ idempotent_replay: "idempotent_replay";
44
+ lexical_fallback: "lexical_fallback";
45
+ live_unavailable: "live_unavailable";
46
+ no_usable_cache: "no_usable_cache";
47
+ capture_queued: "capture_queued";
48
+ local_persistence_failed: "local_persistence_failed";
49
+ governed_rule: "governed_rule";
50
+ policy_unavailable: "policy_unavailable";
51
+ policy_expired: "policy_expired";
52
+ user_override: "user_override";
53
+ invalid_response: "invalid_response";
54
+ integration_unsupported: "integration_unsupported";
55
+ }>;
56
+ export type ReliabilityReasonCode = z.infer<typeof ReliabilityReasonCodeSchema>;
57
+ export declare const ReliabilityFreshnessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ asOf: z.ZodISODateTime;
59
+ ageMs: z.ZodNumber;
60
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
61
+ state: z.ZodLiteral<"fresh">;
62
+ }, z.core.$strict>, z.ZodObject<{
63
+ asOf: z.ZodISODateTime;
64
+ ageMs: z.ZodNumber;
65
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
66
+ state: z.ZodLiteral<"stale">;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ state: z.ZodLiteral<"unknown">;
69
+ asOf: z.ZodNull;
70
+ ageMs: z.ZodNull;
71
+ validUntil: z.ZodNull;
72
+ }, z.core.$strict>], "state">;
73
+ export type ReliabilityFreshness = z.infer<typeof ReliabilityFreshnessSchema>;
74
+ export declare const ReliabilityPolicyReferenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
+ source: z.ZodLiteral<"live">;
76
+ version: z.ZodString;
77
+ loadedAt: z.ZodISODateTime;
78
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ source: z.ZodLiteral<"cache">;
81
+ version: z.ZodString;
82
+ loadedAt: z.ZodISODateTime;
83
+ validUntil: z.ZodISODateTime;
84
+ }, z.core.$strict>, z.ZodObject<{
85
+ source: z.ZodLiteral<"none">;
86
+ version: z.ZodNull;
87
+ loadedAt: z.ZodNull;
88
+ validUntil: z.ZodNull;
89
+ }, z.core.$strict>], "source">;
90
+ export type ReliabilityPolicyReference = z.infer<typeof ReliabilityPolicyReferenceSchema>;
91
+ export declare const ReliabilityMetadataSchema: z.ZodObject<{
92
+ contractVersion: z.ZodLiteral<"reliability-v1">;
93
+ operation: z.ZodEnum<{
94
+ capture: "capture";
95
+ retrieval: "retrieval";
96
+ guard: "guard";
97
+ }>;
98
+ status: z.ZodEnum<{
99
+ ok: "ok";
100
+ degraded: "degraded";
101
+ blocked: "blocked";
102
+ overridden: "overridden";
103
+ failed: "failed";
104
+ }>;
105
+ source: z.ZodEnum<{
106
+ live: "live";
107
+ cache: "cache";
108
+ local_queue: "local_queue";
109
+ none: "none";
110
+ }>;
111
+ freshness: z.ZodDiscriminatedUnion<[z.ZodObject<{
112
+ asOf: z.ZodISODateTime;
113
+ ageMs: z.ZodNumber;
114
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
115
+ state: z.ZodLiteral<"fresh">;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ asOf: z.ZodISODateTime;
118
+ ageMs: z.ZodNumber;
119
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
120
+ state: z.ZodLiteral<"stale">;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ state: z.ZodLiteral<"unknown">;
123
+ asOf: z.ZodNull;
124
+ ageMs: z.ZodNull;
125
+ validUntil: z.ZodNull;
126
+ }, z.core.$strict>], "state">;
127
+ fallback: z.ZodEnum<{
128
+ local_queue: "local_queue";
129
+ none: "none";
130
+ live_lexical: "live_lexical";
131
+ cached_context: "cached_context";
132
+ cached_policy: "cached_policy";
133
+ break_glass: "break_glass";
134
+ }>;
135
+ policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ source: z.ZodLiteral<"live">;
137
+ version: z.ZodString;
138
+ loadedAt: z.ZodISODateTime;
139
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
140
+ }, z.core.$strict>, z.ZodObject<{
141
+ source: z.ZodLiteral<"cache">;
142
+ version: z.ZodString;
143
+ loadedAt: z.ZodISODateTime;
144
+ validUntil: z.ZodISODateTime;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ source: z.ZodLiteral<"none">;
147
+ version: z.ZodNull;
148
+ loadedAt: z.ZodNull;
149
+ validUntil: z.ZodNull;
150
+ }, z.core.$strict>], "source">;
151
+ reasons: z.ZodArray<z.ZodEnum<{
152
+ semantic_unavailable: "semantic_unavailable";
153
+ cached_context: "cached_context";
154
+ cached_policy: "cached_policy";
155
+ live_success: "live_success";
156
+ idempotent_replay: "idempotent_replay";
157
+ lexical_fallback: "lexical_fallback";
158
+ live_unavailable: "live_unavailable";
159
+ no_usable_cache: "no_usable_cache";
160
+ capture_queued: "capture_queued";
161
+ local_persistence_failed: "local_persistence_failed";
162
+ governed_rule: "governed_rule";
163
+ policy_unavailable: "policy_unavailable";
164
+ policy_expired: "policy_expired";
165
+ user_override: "user_override";
166
+ invalid_response: "invalid_response";
167
+ integration_unsupported: "integration_unsupported";
168
+ }>>;
169
+ requestId: z.ZodNullable<z.ZodString>;
170
+ }, z.core.$strict>;
171
+ export type ReliabilityMetadata = z.infer<typeof ReliabilityMetadataSchema>;
172
+ export declare const CaptureAcknowledgementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ state: z.ZodLiteral<"queued_local">;
174
+ durability: z.ZodLiteral<"local_machine">;
175
+ replayPending: z.ZodLiteral<true>;
176
+ replayed: z.ZodLiteral<false>;
177
+ processing: z.ZodLiteral<"pending_upload">;
178
+ contractVersion: z.ZodLiteral<"reliability-v1">;
179
+ captureId: z.ZodUUID;
180
+ idempotencyKey: z.ZodString;
181
+ acknowledgedAt: z.ZodISODateTime;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ state: z.ZodLiteral<"committed_server">;
184
+ durability: z.ZodLiteral<"workspace_database">;
185
+ replayPending: z.ZodLiteral<false>;
186
+ replayed: z.ZodBoolean;
187
+ processing: z.ZodEnum<{
188
+ pending_extraction: "pending_extraction";
189
+ completed: "completed";
190
+ }>;
191
+ eventId: z.ZodUUID;
192
+ memoryIds: z.ZodArray<z.ZodUUID>;
193
+ contractVersion: z.ZodLiteral<"reliability-v1">;
194
+ captureId: z.ZodUUID;
195
+ idempotencyKey: z.ZodString;
196
+ acknowledgedAt: z.ZodISODateTime;
197
+ }, z.core.$strict>], "state">;
198
+ export type CaptureAcknowledgement = z.infer<typeof CaptureAcknowledgementSchema>;
199
+ export declare const CaptureProcessingResultSchema: z.ZodObject<{
200
+ created: z.ZodNumber;
201
+ duplicates: z.ZodNumber;
202
+ reconciled: z.ZodNumber;
203
+ superseded: z.ZodNumber;
204
+ }, z.core.$strict>;
205
+ export type CaptureProcessingResult = z.infer<typeof CaptureProcessingResultSchema>;
206
+ export declare const CaptureExtractJobPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
207
+ jobVersion: z.ZodLiteral<"capture-extract-v1">;
208
+ kind: z.ZodLiteral<"observation">;
209
+ captureId: z.ZodUUID;
210
+ eventId: z.ZodUUID;
211
+ idempotencyKey: z.ZodString;
212
+ requestHash: z.ZodString;
213
+ interaction: z.ZodObject<{
214
+ agent: z.ZodString;
215
+ workspaceId: z.ZodUUID;
216
+ eventId: z.ZodUUID;
217
+ userId: z.ZodOptional<z.ZodUUID>;
218
+ scope: z.ZodObject<{
219
+ organization: z.ZodString;
220
+ project: z.ZodOptional<z.ZodString>;
221
+ repo: z.ZodOptional<z.ZodString>;
222
+ path: z.ZodOptional<z.ZodString>;
223
+ component: z.ZodOptional<z.ZodString>;
224
+ }, z.core.$strict>;
225
+ sessionId: z.ZodString;
226
+ messages: z.ZodArray<z.ZodObject<{
227
+ role: z.ZodEnum<{
228
+ system: "system";
229
+ user: "user";
230
+ assistant: "assistant";
231
+ tool: "tool";
232
+ }>;
233
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
234
+ content: z.ZodString;
235
+ id: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strict>>;
237
+ }, z.core.$strict>;
238
+ provenance: z.ZodObject<{
239
+ task: z.ZodNullable<z.ZodString>;
240
+ connector: z.ZodString;
241
+ externalEventId: z.ZodString;
242
+ redacted: z.ZodBoolean;
243
+ redactionFindings: z.ZodArray<z.ZodObject<{
244
+ kind: z.ZodEnum<{
245
+ jwt: "jwt";
246
+ circular: "circular";
247
+ pre_redacted: "pre_redacted";
248
+ private_key: "private_key";
249
+ authorization: "authorization";
250
+ connection_url: "connection_url";
251
+ provider_token: "provider_token";
252
+ credential: "credential";
253
+ }>;
254
+ count: z.ZodNumber;
255
+ }, z.core.$strict>>;
256
+ }, z.core.$strict>;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ jobVersion: z.ZodLiteral<"capture-extract-v1">;
259
+ kind: z.ZodLiteral<"paired_turn">;
260
+ captureId: z.ZodUUID;
261
+ eventId: z.ZodUUID;
262
+ idempotencyKey: z.ZodString;
263
+ requestHash: z.ZodString;
264
+ interaction: z.ZodObject<{
265
+ agent: z.ZodString;
266
+ workspaceId: z.ZodUUID;
267
+ eventId: z.ZodUUID;
268
+ userId: z.ZodOptional<z.ZodUUID>;
269
+ scope: z.ZodObject<{
270
+ organization: z.ZodString;
271
+ project: z.ZodOptional<z.ZodString>;
272
+ repo: z.ZodOptional<z.ZodString>;
273
+ path: z.ZodOptional<z.ZodString>;
274
+ component: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strict>;
276
+ sessionId: z.ZodString;
277
+ messages: z.ZodArray<z.ZodObject<{
278
+ role: z.ZodEnum<{
279
+ system: "system";
280
+ user: "user";
281
+ assistant: "assistant";
282
+ tool: "tool";
283
+ }>;
284
+ timestamp: z.ZodOptional<z.ZodISODateTime>;
285
+ content: z.ZodString;
286
+ id: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strict>>;
288
+ }, z.core.$strict>;
289
+ provenance: z.ZodObject<{
290
+ previousAssistantMessageId: z.ZodNullable<z.ZodString>;
291
+ connector: z.ZodString;
292
+ externalEventId: z.ZodString;
293
+ redacted: z.ZodBoolean;
294
+ redactionFindings: z.ZodArray<z.ZodObject<{
295
+ kind: z.ZodEnum<{
296
+ jwt: "jwt";
297
+ circular: "circular";
298
+ pre_redacted: "pre_redacted";
299
+ private_key: "private_key";
300
+ authorization: "authorization";
301
+ connection_url: "connection_url";
302
+ provider_token: "provider_token";
303
+ credential: "credential";
304
+ }>;
305
+ count: z.ZodNumber;
306
+ }, z.core.$strict>>;
307
+ }, z.core.$strict>;
308
+ }, z.core.$strict>], "kind">;
309
+ export type CaptureExtractJobPayload = z.infer<typeof CaptureExtractJobPayloadSchema>;
310
+ export declare const CaptureExtractJobResultSchema: z.ZodObject<{
311
+ memoryIds: z.ZodArray<z.ZodUUID>;
312
+ result: z.ZodObject<{
313
+ created: z.ZodNumber;
314
+ duplicates: z.ZodNumber;
315
+ reconciled: z.ZodNumber;
316
+ superseded: z.ZodNumber;
317
+ }, z.core.$strict>;
318
+ jobVersion: z.ZodLiteral<"capture-extract-v1">;
319
+ captureId: z.ZodUUID;
320
+ eventId: z.ZodUUID;
321
+ }, z.core.$strict>;
322
+ export type CaptureExtractJobResult = z.infer<typeof CaptureExtractJobResultSchema>;
323
+ export declare const MemoryEmbedJobPayloadV1Schema: z.ZodObject<{
324
+ jobVersion: z.ZodLiteral<"memory-embed-v1">;
325
+ workspaceId: z.ZodUUID;
326
+ memoryId: z.ZodUUID;
327
+ updatedAt: z.ZodISODateTime;
328
+ fingerprint: z.ZodString;
329
+ contentSha256: z.ZodString;
330
+ provider: z.ZodString;
331
+ model: z.ZodString;
332
+ embeddingSpaceId: z.ZodString;
333
+ dimensions: z.ZodNumber;
334
+ }, z.core.$strict>;
335
+ export type MemoryEmbedJobPayloadV1 = z.infer<typeof MemoryEmbedJobPayloadV1Schema>;
336
+ export declare const MemoryEmbedJobResultV1Schema: z.ZodObject<{
337
+ jobVersion: z.ZodLiteral<"memory-embed-v1">;
338
+ memoryId: z.ZodUUID;
339
+ embeddingSpaceId: z.ZodString;
340
+ outcome: z.ZodEnum<{
341
+ stale: "stale";
342
+ stored: "stored";
343
+ }>;
344
+ }, z.core.$strict>;
345
+ export type MemoryEmbedJobResultV1 = z.infer<typeof MemoryEmbedJobResultV1Schema>;
346
+ export declare const CaptureStatusResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
347
+ processing: z.ZodLiteral<"pending_extraction">;
348
+ attempts: z.ZodNumber;
349
+ contractVersion: z.ZodLiteral<"reliability-v1">;
350
+ captureId: z.ZodUUID;
351
+ eventId: z.ZodUUID;
352
+ createdAt: z.ZodISODateTime;
353
+ updatedAt: z.ZodISODateTime;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ memoryIds: z.ZodArray<z.ZodUUID>;
356
+ result: z.ZodObject<{
357
+ created: z.ZodNumber;
358
+ duplicates: z.ZodNumber;
359
+ reconciled: z.ZodNumber;
360
+ superseded: z.ZodNumber;
361
+ }, z.core.$strict>;
362
+ processing: z.ZodLiteral<"completed">;
363
+ attempts: z.ZodNumber;
364
+ completedAt: z.ZodISODateTime;
365
+ contractVersion: z.ZodLiteral<"reliability-v1">;
366
+ captureId: z.ZodUUID;
367
+ eventId: z.ZodUUID;
368
+ createdAt: z.ZodISODateTime;
369
+ updatedAt: z.ZodISODateTime;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ processing: z.ZodLiteral<"dead">;
372
+ attempts: z.ZodNumber;
373
+ deadAt: z.ZodISODateTime;
374
+ failure: z.ZodObject<{
375
+ code: z.ZodString;
376
+ message: z.ZodString;
377
+ }, z.core.$strict>;
378
+ contractVersion: z.ZodLiteral<"reliability-v1">;
379
+ captureId: z.ZodUUID;
380
+ eventId: z.ZodUUID;
381
+ createdAt: z.ZodISODateTime;
382
+ updatedAt: z.ZodISODateTime;
383
+ }, z.core.$strict>], "processing">;
384
+ export type CaptureStatusResponse = z.infer<typeof CaptureStatusResponseSchema>;
385
+ export declare const CaptureStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
386
+ processing: z.ZodLiteral<"pending_extraction">;
387
+ attempts: z.ZodNumber;
388
+ contractVersion: z.ZodLiteral<"reliability-v1">;
389
+ captureId: z.ZodUUID;
390
+ eventId: z.ZodUUID;
391
+ createdAt: z.ZodISODateTime;
392
+ updatedAt: z.ZodISODateTime;
393
+ }, z.core.$strict>, z.ZodObject<{
394
+ memoryIds: z.ZodArray<z.ZodUUID>;
395
+ result: z.ZodObject<{
396
+ created: z.ZodNumber;
397
+ duplicates: z.ZodNumber;
398
+ reconciled: z.ZodNumber;
399
+ superseded: z.ZodNumber;
400
+ }, z.core.$strict>;
401
+ processing: z.ZodLiteral<"completed">;
402
+ attempts: z.ZodNumber;
403
+ completedAt: z.ZodISODateTime;
404
+ contractVersion: z.ZodLiteral<"reliability-v1">;
405
+ captureId: z.ZodUUID;
406
+ eventId: z.ZodUUID;
407
+ createdAt: z.ZodISODateTime;
408
+ updatedAt: z.ZodISODateTime;
409
+ }, z.core.$strict>, z.ZodObject<{
410
+ processing: z.ZodLiteral<"dead">;
411
+ attempts: z.ZodNumber;
412
+ deadAt: z.ZodISODateTime;
413
+ failure: z.ZodObject<{
414
+ code: z.ZodString;
415
+ message: z.ZodString;
416
+ }, z.core.$strict>;
417
+ contractVersion: z.ZodLiteral<"reliability-v1">;
418
+ captureId: z.ZodUUID;
419
+ eventId: z.ZodUUID;
420
+ createdAt: z.ZodISODateTime;
421
+ updatedAt: z.ZodISODateTime;
422
+ }, z.core.$strict>], "processing">;
423
+ export type CaptureStatus = CaptureStatusResponse;
424
+ export declare const CaptureReliabilityResultSchema: z.ZodObject<{
425
+ reliability: z.ZodObject<{
426
+ contractVersion: z.ZodLiteral<"reliability-v1">;
427
+ operation: z.ZodEnum<{
428
+ capture: "capture";
429
+ retrieval: "retrieval";
430
+ guard: "guard";
431
+ }>;
432
+ status: z.ZodEnum<{
433
+ ok: "ok";
434
+ degraded: "degraded";
435
+ blocked: "blocked";
436
+ overridden: "overridden";
437
+ failed: "failed";
438
+ }>;
439
+ source: z.ZodEnum<{
440
+ live: "live";
441
+ cache: "cache";
442
+ local_queue: "local_queue";
443
+ none: "none";
444
+ }>;
445
+ freshness: z.ZodDiscriminatedUnion<[z.ZodObject<{
446
+ asOf: z.ZodISODateTime;
447
+ ageMs: z.ZodNumber;
448
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
449
+ state: z.ZodLiteral<"fresh">;
450
+ }, z.core.$strict>, z.ZodObject<{
451
+ asOf: z.ZodISODateTime;
452
+ ageMs: z.ZodNumber;
453
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
454
+ state: z.ZodLiteral<"stale">;
455
+ }, z.core.$strict>, z.ZodObject<{
456
+ state: z.ZodLiteral<"unknown">;
457
+ asOf: z.ZodNull;
458
+ ageMs: z.ZodNull;
459
+ validUntil: z.ZodNull;
460
+ }, z.core.$strict>], "state">;
461
+ fallback: z.ZodEnum<{
462
+ local_queue: "local_queue";
463
+ none: "none";
464
+ live_lexical: "live_lexical";
465
+ cached_context: "cached_context";
466
+ cached_policy: "cached_policy";
467
+ break_glass: "break_glass";
468
+ }>;
469
+ policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
+ source: z.ZodLiteral<"live">;
471
+ version: z.ZodString;
472
+ loadedAt: z.ZodISODateTime;
473
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
474
+ }, z.core.$strict>, z.ZodObject<{
475
+ source: z.ZodLiteral<"cache">;
476
+ version: z.ZodString;
477
+ loadedAt: z.ZodISODateTime;
478
+ validUntil: z.ZodISODateTime;
479
+ }, z.core.$strict>, z.ZodObject<{
480
+ source: z.ZodLiteral<"none">;
481
+ version: z.ZodNull;
482
+ loadedAt: z.ZodNull;
483
+ validUntil: z.ZodNull;
484
+ }, z.core.$strict>], "source">;
485
+ reasons: z.ZodArray<z.ZodEnum<{
486
+ semantic_unavailable: "semantic_unavailable";
487
+ cached_context: "cached_context";
488
+ cached_policy: "cached_policy";
489
+ live_success: "live_success";
490
+ idempotent_replay: "idempotent_replay";
491
+ lexical_fallback: "lexical_fallback";
492
+ live_unavailable: "live_unavailable";
493
+ no_usable_cache: "no_usable_cache";
494
+ capture_queued: "capture_queued";
495
+ local_persistence_failed: "local_persistence_failed";
496
+ governed_rule: "governed_rule";
497
+ policy_unavailable: "policy_unavailable";
498
+ policy_expired: "policy_expired";
499
+ user_override: "user_override";
500
+ invalid_response: "invalid_response";
501
+ integration_unsupported: "integration_unsupported";
502
+ }>>;
503
+ requestId: z.ZodNullable<z.ZodString>;
504
+ }, z.core.$strict>;
505
+ acknowledgement: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
506
+ state: z.ZodLiteral<"queued_local">;
507
+ durability: z.ZodLiteral<"local_machine">;
508
+ replayPending: z.ZodLiteral<true>;
509
+ replayed: z.ZodLiteral<false>;
510
+ processing: z.ZodLiteral<"pending_upload">;
511
+ contractVersion: z.ZodLiteral<"reliability-v1">;
512
+ captureId: z.ZodUUID;
513
+ idempotencyKey: z.ZodString;
514
+ acknowledgedAt: z.ZodISODateTime;
515
+ }, z.core.$strict>, z.ZodObject<{
516
+ state: z.ZodLiteral<"committed_server">;
517
+ durability: z.ZodLiteral<"workspace_database">;
518
+ replayPending: z.ZodLiteral<false>;
519
+ replayed: z.ZodBoolean;
520
+ processing: z.ZodEnum<{
521
+ pending_extraction: "pending_extraction";
522
+ completed: "completed";
523
+ }>;
524
+ eventId: z.ZodUUID;
525
+ memoryIds: z.ZodArray<z.ZodUUID>;
526
+ contractVersion: z.ZodLiteral<"reliability-v1">;
527
+ captureId: z.ZodUUID;
528
+ idempotencyKey: z.ZodString;
529
+ acknowledgedAt: z.ZodISODateTime;
530
+ }, z.core.$strict>], "state">>;
531
+ }, z.core.$strict>;
532
+ export type CaptureReliabilityResult = z.infer<typeof CaptureReliabilityResultSchema>;
533
+ export declare const ReliableGuardDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
534
+ decision: z.ZodLiteral<"allow">;
535
+ checkId: z.ZodUUID;
536
+ requiresConfirmation: z.ZodLiteral<false>;
537
+ matchedRuleIds: z.ZodArray<z.ZodUUID>;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ decision: z.ZodLiteral<"block">;
540
+ checkId: z.ZodUUID;
541
+ requiresConfirmation: z.ZodLiteral<true>;
542
+ blockingRuleIds: z.ZodArray<z.ZodUUID>;
543
+ confirmation: z.ZodDiscriminatedUnion<[z.ZodObject<{
544
+ kind: z.ZodLiteral<"approval">;
545
+ command: z.ZodString;
546
+ expiresAt: z.ZodISODateTime;
547
+ }, z.core.$strict>, z.ZodObject<{
548
+ kind: z.ZodLiteral<"break_glass">;
549
+ command: z.ZodString;
550
+ expiresAt: z.ZodISODateTime;
551
+ }, z.core.$strict>], "kind">;
552
+ }, z.core.$strict>, z.ZodObject<{
553
+ decision: z.ZodLiteral<"override">;
554
+ checkId: z.ZodUUID;
555
+ requiresConfirmation: z.ZodLiteral<false>;
556
+ overriddenRuleIds: z.ZodArray<z.ZodUUID>;
557
+ override: z.ZodObject<{
558
+ id: z.ZodUUID;
559
+ reason: z.ZodString;
560
+ auditPending: z.ZodBoolean;
561
+ }, z.core.$strict>;
562
+ }, z.core.$strict>], "decision">;
563
+ export type ReliableGuardDecision = z.infer<typeof ReliableGuardDecisionSchema>;
564
+ export declare const GuardReliabilityResultSchema: z.ZodObject<{
565
+ reliability: z.ZodObject<{
566
+ contractVersion: z.ZodLiteral<"reliability-v1">;
567
+ operation: z.ZodEnum<{
568
+ capture: "capture";
569
+ retrieval: "retrieval";
570
+ guard: "guard";
571
+ }>;
572
+ status: z.ZodEnum<{
573
+ ok: "ok";
574
+ degraded: "degraded";
575
+ blocked: "blocked";
576
+ overridden: "overridden";
577
+ failed: "failed";
578
+ }>;
579
+ source: z.ZodEnum<{
580
+ live: "live";
581
+ cache: "cache";
582
+ local_queue: "local_queue";
583
+ none: "none";
584
+ }>;
585
+ freshness: z.ZodDiscriminatedUnion<[z.ZodObject<{
586
+ asOf: z.ZodISODateTime;
587
+ ageMs: z.ZodNumber;
588
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
589
+ state: z.ZodLiteral<"fresh">;
590
+ }, z.core.$strict>, z.ZodObject<{
591
+ asOf: z.ZodISODateTime;
592
+ ageMs: z.ZodNumber;
593
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
594
+ state: z.ZodLiteral<"stale">;
595
+ }, z.core.$strict>, z.ZodObject<{
596
+ state: z.ZodLiteral<"unknown">;
597
+ asOf: z.ZodNull;
598
+ ageMs: z.ZodNull;
599
+ validUntil: z.ZodNull;
600
+ }, z.core.$strict>], "state">;
601
+ fallback: z.ZodEnum<{
602
+ local_queue: "local_queue";
603
+ none: "none";
604
+ live_lexical: "live_lexical";
605
+ cached_context: "cached_context";
606
+ cached_policy: "cached_policy";
607
+ break_glass: "break_glass";
608
+ }>;
609
+ policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
610
+ source: z.ZodLiteral<"live">;
611
+ version: z.ZodString;
612
+ loadedAt: z.ZodISODateTime;
613
+ validUntil: z.ZodNullable<z.ZodISODateTime>;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ source: z.ZodLiteral<"cache">;
616
+ version: z.ZodString;
617
+ loadedAt: z.ZodISODateTime;
618
+ validUntil: z.ZodISODateTime;
619
+ }, z.core.$strict>, z.ZodObject<{
620
+ source: z.ZodLiteral<"none">;
621
+ version: z.ZodNull;
622
+ loadedAt: z.ZodNull;
623
+ validUntil: z.ZodNull;
624
+ }, z.core.$strict>], "source">;
625
+ reasons: z.ZodArray<z.ZodEnum<{
626
+ semantic_unavailable: "semantic_unavailable";
627
+ cached_context: "cached_context";
628
+ cached_policy: "cached_policy";
629
+ live_success: "live_success";
630
+ idempotent_replay: "idempotent_replay";
631
+ lexical_fallback: "lexical_fallback";
632
+ live_unavailable: "live_unavailable";
633
+ no_usable_cache: "no_usable_cache";
634
+ capture_queued: "capture_queued";
635
+ local_persistence_failed: "local_persistence_failed";
636
+ governed_rule: "governed_rule";
637
+ policy_unavailable: "policy_unavailable";
638
+ policy_expired: "policy_expired";
639
+ user_override: "user_override";
640
+ invalid_response: "invalid_response";
641
+ integration_unsupported: "integration_unsupported";
642
+ }>>;
643
+ requestId: z.ZodNullable<z.ZodString>;
644
+ }, z.core.$strict>;
645
+ verdict: z.ZodDiscriminatedUnion<[z.ZodObject<{
646
+ decision: z.ZodLiteral<"allow">;
647
+ checkId: z.ZodUUID;
648
+ requiresConfirmation: z.ZodLiteral<false>;
649
+ matchedRuleIds: z.ZodArray<z.ZodUUID>;
650
+ }, z.core.$strict>, z.ZodObject<{
651
+ decision: z.ZodLiteral<"block">;
652
+ checkId: z.ZodUUID;
653
+ requiresConfirmation: z.ZodLiteral<true>;
654
+ blockingRuleIds: z.ZodArray<z.ZodUUID>;
655
+ confirmation: z.ZodDiscriminatedUnion<[z.ZodObject<{
656
+ kind: z.ZodLiteral<"approval">;
657
+ command: z.ZodString;
658
+ expiresAt: z.ZodISODateTime;
659
+ }, z.core.$strict>, z.ZodObject<{
660
+ kind: z.ZodLiteral<"break_glass">;
661
+ command: z.ZodString;
662
+ expiresAt: z.ZodISODateTime;
663
+ }, z.core.$strict>], "kind">;
664
+ }, z.core.$strict>, z.ZodObject<{
665
+ decision: z.ZodLiteral<"override">;
666
+ checkId: z.ZodUUID;
667
+ requiresConfirmation: z.ZodLiteral<false>;
668
+ overriddenRuleIds: z.ZodArray<z.ZodUUID>;
669
+ override: z.ZodObject<{
670
+ id: z.ZodUUID;
671
+ reason: z.ZodString;
672
+ auditPending: z.ZodBoolean;
673
+ }, z.core.$strict>;
674
+ }, z.core.$strict>], "decision">;
675
+ }, z.core.$strict>;
676
+ export type GuardReliabilityResult = z.infer<typeof GuardReliabilityResultSchema>;
677
+ export declare const AgentReliabilityCapabilitiesSchema: z.ZodObject<{
678
+ contractVersion: z.ZodLiteral<"reliability-v1">;
679
+ agent: z.ZodString;
680
+ contextDelivery: z.ZodEnum<{
681
+ none: "none";
682
+ prompt: "prompt";
683
+ pre_action: "pre_action";
684
+ }>;
685
+ captureDurability: z.ZodEnum<{
686
+ memory: "memory";
687
+ server: "server";
688
+ none: "none";
689
+ local_disk: "local_disk";
690
+ }>;
691
+ guardBoundaryCoverage: z.ZodEnum<{
692
+ none: "none";
693
+ partial: "partial";
694
+ full: "full";
695
+ }>;
696
+ guardedActions: z.ZodArray<z.ZodEnum<{
697
+ other: "other";
698
+ edit: "edit";
699
+ command: "command";
700
+ mcp: "mcp";
701
+ commit: "commit";
702
+ deploy: "deploy";
703
+ plan: "plan";
704
+ }>>;
705
+ enforcement: z.ZodEnum<{
706
+ confirm: "confirm";
707
+ none: "none";
708
+ context_only: "context_only";
709
+ deny: "deny";
710
+ }>;
711
+ stateDurability: z.ZodEnum<{
712
+ memory: "memory";
713
+ server: "server";
714
+ none: "none";
715
+ local_disk: "local_disk";
716
+ }>;
717
+ runtimeCoverage: z.ZodArray<z.ZodEnum<{
718
+ local: "local";
719
+ cloud: "cloud";
720
+ }>>;
721
+ }, z.core.$strict>;
722
+ export type AgentReliabilityCapabilities = z.infer<typeof AgentReliabilityCapabilitiesSchema>;
723
+ //# sourceMappingURL=reliability-schemas.d.ts.map