@agent-phonon/protocol 0.9.1 → 0.10.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.
Files changed (145) hide show
  1. package/README.md +35 -1
  2. package/dist/index.d.ts +12 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +12 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/native-version.d.ts +6 -0
  7. package/dist/native-version.d.ts.map +1 -0
  8. package/dist/native-version.js +41 -0
  9. package/dist/native-version.js.map +1 -0
  10. package/dist/schemas/capabilities.d.ts +9 -0
  11. package/dist/schemas/capabilities.d.ts.map +1 -1
  12. package/dist/schemas/capabilities.js +3 -0
  13. package/dist/schemas/capabilities.js.map +1 -1
  14. package/dist/schemas/common.d.ts +4 -4
  15. package/dist/schemas/common.d.ts.map +1 -1
  16. package/dist/schemas/common.js +9 -0
  17. package/dist/schemas/common.js.map +1 -1
  18. package/dist/schemas/compression.d.ts +191 -0
  19. package/dist/schemas/compression.d.ts.map +1 -0
  20. package/dist/schemas/compression.js +18 -0
  21. package/dist/schemas/compression.js.map +1 -0
  22. package/dist/schemas/conversation-archive.d.ts +1021 -0
  23. package/dist/schemas/conversation-archive.d.ts.map +1 -0
  24. package/dist/schemas/conversation-archive.js +148 -0
  25. package/dist/schemas/conversation-archive.js.map +1 -0
  26. package/dist/schemas/conversation-board.d.ts +428 -0
  27. package/dist/schemas/conversation-board.d.ts.map +1 -0
  28. package/dist/schemas/conversation-board.js +32 -0
  29. package/dist/schemas/conversation-board.js.map +1 -0
  30. package/dist/schemas/conversation-message.d.ts +658 -0
  31. package/dist/schemas/conversation-message.d.ts.map +1 -0
  32. package/dist/schemas/conversation-message.js +42 -0
  33. package/dist/schemas/conversation-message.js.map +1 -0
  34. package/dist/schemas/conversation-workflow.d.ts +1201 -0
  35. package/dist/schemas/conversation-workflow.d.ts.map +1 -0
  36. package/dist/schemas/conversation-workflow.js +68 -0
  37. package/dist/schemas/conversation-workflow.js.map +1 -0
  38. package/dist/schemas/device.d.ts +198 -2
  39. package/dist/schemas/device.d.ts.map +1 -1
  40. package/dist/schemas/device.js +29 -1
  41. package/dist/schemas/device.js.map +1 -1
  42. package/dist/schemas/discovery.d.ts +107 -0
  43. package/dist/schemas/discovery.d.ts.map +1 -1
  44. package/dist/schemas/discovery.js +2 -0
  45. package/dist/schemas/discovery.js.map +1 -1
  46. package/dist/schemas/document.d.ts +56 -26
  47. package/dist/schemas/document.d.ts.map +1 -1
  48. package/dist/schemas/document.js +11 -0
  49. package/dist/schemas/document.js.map +1 -1
  50. package/dist/schemas/employee.d.ts +139 -0
  51. package/dist/schemas/employee.d.ts.map +1 -0
  52. package/dist/schemas/employee.js +17 -0
  53. package/dist/schemas/employee.js.map +1 -0
  54. package/dist/schemas/env.d.ts +15 -15
  55. package/dist/schemas/env.d.ts.map +1 -1
  56. package/dist/schemas/env.js +1 -1
  57. package/dist/schemas/env.js.map +1 -1
  58. package/dist/schemas/file.d.ts +6 -6
  59. package/dist/schemas/hook.d.ts +4 -4
  60. package/dist/schemas/interaction.d.ts +363 -2
  61. package/dist/schemas/interaction.d.ts.map +1 -1
  62. package/dist/schemas/interaction.js +28 -1
  63. package/dist/schemas/interaction.js.map +1 -1
  64. package/dist/schemas/jsonrpc.d.ts +19 -19
  65. package/dist/schemas/maintenance.d.ts +822 -0
  66. package/dist/schemas/maintenance.d.ts.map +1 -0
  67. package/dist/schemas/maintenance.js +166 -0
  68. package/dist/schemas/maintenance.js.map +1 -0
  69. package/dist/schemas/managed-mcp.d.ts +116 -0
  70. package/dist/schemas/managed-mcp.d.ts.map +1 -0
  71. package/dist/schemas/managed-mcp.js +23 -0
  72. package/dist/schemas/managed-mcp.js.map +1 -0
  73. package/dist/schemas/methods.d.ts +22186 -2362
  74. package/dist/schemas/methods.d.ts.map +1 -1
  75. package/dist/schemas/methods.js +181 -6
  76. package/dist/schemas/methods.js.map +1 -1
  77. package/dist/schemas/native-stop.d.ts +162 -0
  78. package/dist/schemas/native-stop.d.ts.map +1 -0
  79. package/dist/schemas/native-stop.js +14 -0
  80. package/dist/schemas/native-stop.js.map +1 -0
  81. package/dist/schemas/policy.d.ts +42 -2
  82. package/dist/schemas/policy.d.ts.map +1 -1
  83. package/dist/schemas/policy.js +20 -0
  84. package/dist/schemas/policy.js.map +1 -1
  85. package/dist/schemas/project-coordination.d.ts +1956 -0
  86. package/dist/schemas/project-coordination.d.ts.map +1 -0
  87. package/dist/schemas/project-coordination.js +81 -0
  88. package/dist/schemas/project-coordination.js.map +1 -0
  89. package/dist/schemas/project.d.ts +771 -53
  90. package/dist/schemas/project.d.ts.map +1 -1
  91. package/dist/schemas/project.js +60 -5
  92. package/dist/schemas/project.js.map +1 -1
  93. package/dist/schemas/reasoning.d.ts +26 -0
  94. package/dist/schemas/reasoning.d.ts.map +1 -0
  95. package/dist/schemas/reasoning.js +10 -0
  96. package/dist/schemas/reasoning.js.map +1 -0
  97. package/dist/schemas/schedule.d.ts +15148 -5022
  98. package/dist/schemas/schedule.d.ts.map +1 -1
  99. package/dist/schemas/schedule.js +46 -5
  100. package/dist/schemas/schedule.js.map +1 -1
  101. package/dist/schemas/session.d.ts +1558 -49
  102. package/dist/schemas/session.d.ts.map +1 -1
  103. package/dist/schemas/session.js +27 -16
  104. package/dist/schemas/session.js.map +1 -1
  105. package/dist/schemas/skill.d.ts +1009 -8
  106. package/dist/schemas/skill.d.ts.map +1 -1
  107. package/dist/schemas/skill.js +39 -0
  108. package/dist/schemas/skill.js.map +1 -1
  109. package/dist/schemas/stream.d.ts +1060 -67
  110. package/dist/schemas/stream.d.ts.map +1 -1
  111. package/dist/schemas/stream.js +18 -3
  112. package/dist/schemas/stream.js.map +1 -1
  113. package/dist/schemas/workflow.d.ts +2764 -255
  114. package/dist/schemas/workflow.d.ts.map +1 -1
  115. package/dist/schemas/workflow.js +69 -1
  116. package/dist/schemas/workflow.js.map +1 -1
  117. package/package.json +1 -1
  118. package/src/index.ts +12 -0
  119. package/src/native-version.ts +30 -0
  120. package/src/schemas/capabilities.ts +3 -0
  121. package/src/schemas/common.ts +9 -0
  122. package/src/schemas/compression.ts +19 -0
  123. package/src/schemas/conversation-archive.ts +155 -0
  124. package/src/schemas/conversation-board.ts +36 -0
  125. package/src/schemas/conversation-message.ts +46 -0
  126. package/src/schemas/conversation-workflow.ts +62 -0
  127. package/src/schemas/device.ts +32 -1
  128. package/src/schemas/discovery.ts +2 -0
  129. package/src/schemas/document.ts +13 -0
  130. package/src/schemas/employee.ts +19 -0
  131. package/src/schemas/env.ts +1 -1
  132. package/src/schemas/interaction.ts +32 -1
  133. package/src/schemas/maintenance.ts +204 -0
  134. package/src/schemas/managed-mcp.ts +25 -0
  135. package/src/schemas/methods.ts +208 -1
  136. package/src/schemas/native-stop.ts +16 -0
  137. package/src/schemas/policy.ts +20 -0
  138. package/src/schemas/project-coordination.ts +90 -0
  139. package/src/schemas/project.ts +72 -5
  140. package/src/schemas/reasoning.ts +13 -0
  141. package/src/schemas/schedule.ts +54 -5
  142. package/src/schemas/session.ts +30 -18
  143. package/src/schemas/skill.ts +52 -0
  144. package/src/schemas/stream.ts +22 -3
  145. package/src/schemas/workflow.ts +82 -1
@@ -0,0 +1,1021 @@
1
+ import { z } from "zod";
2
+ export declare const CONVERSATION_ARCHIVE_LIMITS: {
3
+ readonly payloadBytes: number;
4
+ readonly wireBytes: number;
5
+ readonly appendRecords: 32;
6
+ readonly readRecords: 100;
7
+ readonly blobBytes: number;
8
+ readonly blobChunkBytes: number;
9
+ };
10
+ export declare const ConversationArchiveScope: z.ZodObject<{
11
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
12
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
13
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ projectId: string | null;
16
+ conversationId: string;
17
+ archiveEpoch: string;
18
+ }, {
19
+ projectId: string | null;
20
+ conversationId: string;
21
+ archiveEpoch: string;
22
+ }>;
23
+ export type ConversationArchiveScope = z.infer<typeof ConversationArchiveScope>;
24
+ export declare const ConversationArchiveEntityIndex: z.ZodEffects<z.ZodObject<{
25
+ collection: z.ZodString;
26
+ key: z.ZodString;
27
+ order: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
28
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
29
+ part: z.ZodNumber;
30
+ parts: z.ZodNumber;
31
+ deleted: z.ZodBoolean;
32
+ }, "strict", z.ZodTypeAny, {
33
+ version: string;
34
+ key: string;
35
+ collection: string;
36
+ order: string | null;
37
+ part: number;
38
+ parts: number;
39
+ deleted: boolean;
40
+ }, {
41
+ version: string;
42
+ key: string;
43
+ collection: string;
44
+ order: string | null;
45
+ part: number;
46
+ parts: number;
47
+ deleted: boolean;
48
+ }>, {
49
+ version: string;
50
+ key: string;
51
+ collection: string;
52
+ order: string | null;
53
+ part: number;
54
+ parts: number;
55
+ deleted: boolean;
56
+ }, {
57
+ version: string;
58
+ key: string;
59
+ collection: string;
60
+ order: string | null;
61
+ part: number;
62
+ parts: number;
63
+ deleted: boolean;
64
+ }>;
65
+ export declare const ConversationArchiveEntry: z.ZodObject<{
66
+ sequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
67
+ recordId: z.ZodEffects<z.ZodString, string, string>;
68
+ kind: z.ZodEnum<["conversation", "message", "board", "run", "runEvent", "request", "workflow", "attachment", "tombstone"]>;
69
+ entityId: z.ZodString;
70
+ revision: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
71
+ payloadJSON: z.ZodEffects<z.ZodString, string, string>;
72
+ catalog: z.ZodOptional<z.ZodEffects<z.ZodObject<{
73
+ collection: z.ZodString;
74
+ key: z.ZodString;
75
+ order: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
76
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
77
+ part: z.ZodNumber;
78
+ parts: z.ZodNumber;
79
+ deleted: z.ZodBoolean;
80
+ }, "strict", z.ZodTypeAny, {
81
+ version: string;
82
+ key: string;
83
+ collection: string;
84
+ order: string | null;
85
+ part: number;
86
+ parts: number;
87
+ deleted: boolean;
88
+ }, {
89
+ version: string;
90
+ key: string;
91
+ collection: string;
92
+ order: string | null;
93
+ part: number;
94
+ parts: number;
95
+ deleted: boolean;
96
+ }>, {
97
+ version: string;
98
+ key: string;
99
+ collection: string;
100
+ order: string | null;
101
+ part: number;
102
+ parts: number;
103
+ deleted: boolean;
104
+ }, {
105
+ version: string;
106
+ key: string;
107
+ collection: string;
108
+ order: string | null;
109
+ part: number;
110
+ parts: number;
111
+ deleted: boolean;
112
+ }>>;
113
+ }, "strict", z.ZodTypeAny, {
114
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
115
+ revision: string;
116
+ sequence: string;
117
+ recordId: string;
118
+ entityId: string;
119
+ payloadJSON: string;
120
+ catalog?: {
121
+ version: string;
122
+ key: string;
123
+ collection: string;
124
+ order: string | null;
125
+ part: number;
126
+ parts: number;
127
+ deleted: boolean;
128
+ } | undefined;
129
+ }, {
130
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
131
+ revision: string;
132
+ sequence: string;
133
+ recordId: string;
134
+ entityId: string;
135
+ payloadJSON: string;
136
+ catalog?: {
137
+ version: string;
138
+ key: string;
139
+ collection: string;
140
+ order: string | null;
141
+ part: number;
142
+ parts: number;
143
+ deleted: boolean;
144
+ } | undefined;
145
+ }>;
146
+ export type ConversationArchiveEntry = z.infer<typeof ConversationArchiveEntry>;
147
+ export declare const ConversationArchiveStoredEntry: z.ZodObject<{
148
+ sequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
149
+ recordId: z.ZodEffects<z.ZodString, string, string>;
150
+ kind: z.ZodEnum<["conversation", "message", "board", "run", "runEvent", "request", "workflow", "attachment", "tombstone"]>;
151
+ entityId: z.ZodString;
152
+ revision: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
153
+ payloadJSON: z.ZodEffects<z.ZodString, string, string>;
154
+ catalog: z.ZodOptional<z.ZodEffects<z.ZodObject<{
155
+ collection: z.ZodString;
156
+ key: z.ZodString;
157
+ order: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
158
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
159
+ part: z.ZodNumber;
160
+ parts: z.ZodNumber;
161
+ deleted: z.ZodBoolean;
162
+ }, "strict", z.ZodTypeAny, {
163
+ version: string;
164
+ key: string;
165
+ collection: string;
166
+ order: string | null;
167
+ part: number;
168
+ parts: number;
169
+ deleted: boolean;
170
+ }, {
171
+ version: string;
172
+ key: string;
173
+ collection: string;
174
+ order: string | null;
175
+ part: number;
176
+ parts: number;
177
+ deleted: boolean;
178
+ }>, {
179
+ version: string;
180
+ key: string;
181
+ collection: string;
182
+ order: string | null;
183
+ part: number;
184
+ parts: number;
185
+ deleted: boolean;
186
+ }, {
187
+ version: string;
188
+ key: string;
189
+ collection: string;
190
+ order: string | null;
191
+ part: number;
192
+ parts: number;
193
+ deleted: boolean;
194
+ }>>;
195
+ } & {
196
+ previousHash: z.ZodString;
197
+ hash: z.ZodString;
198
+ }, "strict", z.ZodTypeAny, {
199
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
200
+ revision: string;
201
+ hash: string;
202
+ sequence: string;
203
+ recordId: string;
204
+ entityId: string;
205
+ payloadJSON: string;
206
+ previousHash: string;
207
+ catalog?: {
208
+ version: string;
209
+ key: string;
210
+ collection: string;
211
+ order: string | null;
212
+ part: number;
213
+ parts: number;
214
+ deleted: boolean;
215
+ } | undefined;
216
+ }, {
217
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
218
+ revision: string;
219
+ hash: string;
220
+ sequence: string;
221
+ recordId: string;
222
+ entityId: string;
223
+ payloadJSON: string;
224
+ previousHash: string;
225
+ catalog?: {
226
+ version: string;
227
+ key: string;
228
+ collection: string;
229
+ order: string | null;
230
+ part: number;
231
+ parts: number;
232
+ deleted: boolean;
233
+ } | undefined;
234
+ }>;
235
+ export declare function conversationArchiveEntryHashInput(previousHash: string, entry: ConversationArchiveEntry): string;
236
+ export declare const ConversationArchiveAppendParams: z.ZodEffects<z.ZodObject<{
237
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
238
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
239
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
240
+ } & {
241
+ afterSequence: z.ZodEffects<z.ZodString, string, string>;
242
+ afterHash: z.ZodString;
243
+ entries: z.ZodArray<z.ZodObject<{
244
+ sequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
245
+ recordId: z.ZodEffects<z.ZodString, string, string>;
246
+ kind: z.ZodEnum<["conversation", "message", "board", "run", "runEvent", "request", "workflow", "attachment", "tombstone"]>;
247
+ entityId: z.ZodString;
248
+ revision: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
249
+ payloadJSON: z.ZodEffects<z.ZodString, string, string>;
250
+ catalog: z.ZodOptional<z.ZodEffects<z.ZodObject<{
251
+ collection: z.ZodString;
252
+ key: z.ZodString;
253
+ order: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
254
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
255
+ part: z.ZodNumber;
256
+ parts: z.ZodNumber;
257
+ deleted: z.ZodBoolean;
258
+ }, "strict", z.ZodTypeAny, {
259
+ version: string;
260
+ key: string;
261
+ collection: string;
262
+ order: string | null;
263
+ part: number;
264
+ parts: number;
265
+ deleted: boolean;
266
+ }, {
267
+ version: string;
268
+ key: string;
269
+ collection: string;
270
+ order: string | null;
271
+ part: number;
272
+ parts: number;
273
+ deleted: boolean;
274
+ }>, {
275
+ version: string;
276
+ key: string;
277
+ collection: string;
278
+ order: string | null;
279
+ part: number;
280
+ parts: number;
281
+ deleted: boolean;
282
+ }, {
283
+ version: string;
284
+ key: string;
285
+ collection: string;
286
+ order: string | null;
287
+ part: number;
288
+ parts: number;
289
+ deleted: boolean;
290
+ }>>;
291
+ }, "strict", z.ZodTypeAny, {
292
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
293
+ revision: string;
294
+ sequence: string;
295
+ recordId: string;
296
+ entityId: string;
297
+ payloadJSON: string;
298
+ catalog?: {
299
+ version: string;
300
+ key: string;
301
+ collection: string;
302
+ order: string | null;
303
+ part: number;
304
+ parts: number;
305
+ deleted: boolean;
306
+ } | undefined;
307
+ }, {
308
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
309
+ revision: string;
310
+ sequence: string;
311
+ recordId: string;
312
+ entityId: string;
313
+ payloadJSON: string;
314
+ catalog?: {
315
+ version: string;
316
+ key: string;
317
+ collection: string;
318
+ order: string | null;
319
+ part: number;
320
+ parts: number;
321
+ deleted: boolean;
322
+ } | undefined;
323
+ }>, "many">;
324
+ }, "strict", z.ZodTypeAny, {
325
+ entries: {
326
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
327
+ revision: string;
328
+ sequence: string;
329
+ recordId: string;
330
+ entityId: string;
331
+ payloadJSON: string;
332
+ catalog?: {
333
+ version: string;
334
+ key: string;
335
+ collection: string;
336
+ order: string | null;
337
+ part: number;
338
+ parts: number;
339
+ deleted: boolean;
340
+ } | undefined;
341
+ }[];
342
+ projectId: string | null;
343
+ conversationId: string;
344
+ archiveEpoch: string;
345
+ afterSequence: string;
346
+ afterHash: string;
347
+ }, {
348
+ entries: {
349
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
350
+ revision: string;
351
+ sequence: string;
352
+ recordId: string;
353
+ entityId: string;
354
+ payloadJSON: string;
355
+ catalog?: {
356
+ version: string;
357
+ key: string;
358
+ collection: string;
359
+ order: string | null;
360
+ part: number;
361
+ parts: number;
362
+ deleted: boolean;
363
+ } | undefined;
364
+ }[];
365
+ projectId: string | null;
366
+ conversationId: string;
367
+ archiveEpoch: string;
368
+ afterSequence: string;
369
+ afterHash: string;
370
+ }>, {
371
+ entries: {
372
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
373
+ revision: string;
374
+ sequence: string;
375
+ recordId: string;
376
+ entityId: string;
377
+ payloadJSON: string;
378
+ catalog?: {
379
+ version: string;
380
+ key: string;
381
+ collection: string;
382
+ order: string | null;
383
+ part: number;
384
+ parts: number;
385
+ deleted: boolean;
386
+ } | undefined;
387
+ }[];
388
+ projectId: string | null;
389
+ conversationId: string;
390
+ archiveEpoch: string;
391
+ afterSequence: string;
392
+ afterHash: string;
393
+ }, {
394
+ entries: {
395
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
396
+ revision: string;
397
+ sequence: string;
398
+ recordId: string;
399
+ entityId: string;
400
+ payloadJSON: string;
401
+ catalog?: {
402
+ version: string;
403
+ key: string;
404
+ collection: string;
405
+ order: string | null;
406
+ part: number;
407
+ parts: number;
408
+ deleted: boolean;
409
+ } | undefined;
410
+ }[];
411
+ projectId: string | null;
412
+ conversationId: string;
413
+ archiveEpoch: string;
414
+ afterSequence: string;
415
+ afterHash: string;
416
+ }>;
417
+ export type ConversationArchiveAppendParams = z.infer<typeof ConversationArchiveAppendParams>;
418
+ export declare const ConversationArchiveStatusParams: z.ZodObject<{
419
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
420
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
421
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
422
+ }, "strict", z.ZodTypeAny, {
423
+ projectId: string | null;
424
+ conversationId: string;
425
+ archiveEpoch: string;
426
+ }, {
427
+ projectId: string | null;
428
+ conversationId: string;
429
+ archiveEpoch: string;
430
+ }>;
431
+ export declare const ConversationArchiveStatusResult: z.ZodObject<{
432
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
433
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
434
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
435
+ } & {
436
+ found: z.ZodBoolean;
437
+ persistent: z.ZodLiteral<true>;
438
+ throughSequence: z.ZodEffects<z.ZodString, string, string>;
439
+ headHash: z.ZodString;
440
+ payloadBytes: z.ZodNumber;
441
+ }, "strict", z.ZodTypeAny, {
442
+ projectId: string | null;
443
+ found: boolean;
444
+ conversationId: string;
445
+ archiveEpoch: string;
446
+ persistent: true;
447
+ throughSequence: string;
448
+ headHash: string;
449
+ payloadBytes: number;
450
+ }, {
451
+ projectId: string | null;
452
+ found: boolean;
453
+ conversationId: string;
454
+ archiveEpoch: string;
455
+ persistent: true;
456
+ throughSequence: string;
457
+ headHash: string;
458
+ payloadBytes: number;
459
+ }>;
460
+ export type ConversationArchiveStatusResult = z.infer<typeof ConversationArchiveStatusResult>;
461
+ export declare const ConversationArchiveAppendResult: z.ZodObject<{
462
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
463
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
464
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
465
+ } & {
466
+ found: z.ZodBoolean;
467
+ persistent: z.ZodLiteral<true>;
468
+ throughSequence: z.ZodEffects<z.ZodString, string, string>;
469
+ headHash: z.ZodString;
470
+ payloadBytes: z.ZodNumber;
471
+ } & {
472
+ committedThrough: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
473
+ committedHash: z.ZodString;
474
+ replayed: z.ZodBoolean;
475
+ }, "strict", z.ZodTypeAny, {
476
+ projectId: string | null;
477
+ found: boolean;
478
+ replayed: boolean;
479
+ conversationId: string;
480
+ archiveEpoch: string;
481
+ persistent: true;
482
+ throughSequence: string;
483
+ headHash: string;
484
+ payloadBytes: number;
485
+ committedThrough: string;
486
+ committedHash: string;
487
+ }, {
488
+ projectId: string | null;
489
+ found: boolean;
490
+ replayed: boolean;
491
+ conversationId: string;
492
+ archiveEpoch: string;
493
+ persistent: true;
494
+ throughSequence: string;
495
+ headHash: string;
496
+ payloadBytes: number;
497
+ committedThrough: string;
498
+ committedHash: string;
499
+ }>;
500
+ export type ConversationArchiveAppendResult = z.infer<typeof ConversationArchiveAppendResult>;
501
+ export declare const ConversationArchiveReadParams: z.ZodObject<{
502
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
503
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
504
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
505
+ } & {
506
+ afterSequence: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
507
+ afterHash: z.ZodOptional<z.ZodString>;
508
+ throughSequence: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
509
+ limit: z.ZodDefault<z.ZodNumber>;
510
+ }, "strict", z.ZodTypeAny, {
511
+ projectId: string | null;
512
+ limit: number;
513
+ conversationId: string;
514
+ archiveEpoch: string;
515
+ afterSequence: string;
516
+ afterHash?: string | undefined;
517
+ throughSequence?: string | undefined;
518
+ }, {
519
+ projectId: string | null;
520
+ conversationId: string;
521
+ archiveEpoch: string;
522
+ limit?: number | undefined;
523
+ afterSequence?: string | undefined;
524
+ afterHash?: string | undefined;
525
+ throughSequence?: string | undefined;
526
+ }>;
527
+ export type ConversationArchiveReadParams = z.infer<typeof ConversationArchiveReadParams>;
528
+ export declare const ConversationArchiveReadResult: z.ZodObject<{
529
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
530
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
531
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
532
+ } & {
533
+ persistent: z.ZodLiteral<true>;
534
+ afterSequence: z.ZodEffects<z.ZodString, string, string>;
535
+ afterHash: z.ZodString;
536
+ throughSequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
537
+ headHash: z.ZodString;
538
+ entries: z.ZodArray<z.ZodObject<{
539
+ sequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
540
+ recordId: z.ZodEffects<z.ZodString, string, string>;
541
+ kind: z.ZodEnum<["conversation", "message", "board", "run", "runEvent", "request", "workflow", "attachment", "tombstone"]>;
542
+ entityId: z.ZodString;
543
+ revision: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
544
+ payloadJSON: z.ZodEffects<z.ZodString, string, string>;
545
+ catalog: z.ZodOptional<z.ZodEffects<z.ZodObject<{
546
+ collection: z.ZodString;
547
+ key: z.ZodString;
548
+ order: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
549
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
550
+ part: z.ZodNumber;
551
+ parts: z.ZodNumber;
552
+ deleted: z.ZodBoolean;
553
+ }, "strict", z.ZodTypeAny, {
554
+ version: string;
555
+ key: string;
556
+ collection: string;
557
+ order: string | null;
558
+ part: number;
559
+ parts: number;
560
+ deleted: boolean;
561
+ }, {
562
+ version: string;
563
+ key: string;
564
+ collection: string;
565
+ order: string | null;
566
+ part: number;
567
+ parts: number;
568
+ deleted: boolean;
569
+ }>, {
570
+ version: string;
571
+ key: string;
572
+ collection: string;
573
+ order: string | null;
574
+ part: number;
575
+ parts: number;
576
+ deleted: boolean;
577
+ }, {
578
+ version: string;
579
+ key: string;
580
+ collection: string;
581
+ order: string | null;
582
+ part: number;
583
+ parts: number;
584
+ deleted: boolean;
585
+ }>>;
586
+ } & {
587
+ previousHash: z.ZodString;
588
+ hash: z.ZodString;
589
+ }, "strict", z.ZodTypeAny, {
590
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
591
+ revision: string;
592
+ hash: string;
593
+ sequence: string;
594
+ recordId: string;
595
+ entityId: string;
596
+ payloadJSON: string;
597
+ previousHash: string;
598
+ catalog?: {
599
+ version: string;
600
+ key: string;
601
+ collection: string;
602
+ order: string | null;
603
+ part: number;
604
+ parts: number;
605
+ deleted: boolean;
606
+ } | undefined;
607
+ }, {
608
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
609
+ revision: string;
610
+ hash: string;
611
+ sequence: string;
612
+ recordId: string;
613
+ entityId: string;
614
+ payloadJSON: string;
615
+ previousHash: string;
616
+ catalog?: {
617
+ version: string;
618
+ key: string;
619
+ collection: string;
620
+ order: string | null;
621
+ part: number;
622
+ parts: number;
623
+ deleted: boolean;
624
+ } | undefined;
625
+ }>, "many">;
626
+ nextAfterSequence: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
627
+ }, "strict", z.ZodTypeAny, {
628
+ entries: {
629
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
630
+ revision: string;
631
+ hash: string;
632
+ sequence: string;
633
+ recordId: string;
634
+ entityId: string;
635
+ payloadJSON: string;
636
+ previousHash: string;
637
+ catalog?: {
638
+ version: string;
639
+ key: string;
640
+ collection: string;
641
+ order: string | null;
642
+ part: number;
643
+ parts: number;
644
+ deleted: boolean;
645
+ } | undefined;
646
+ }[];
647
+ projectId: string | null;
648
+ conversationId: string;
649
+ archiveEpoch: string;
650
+ afterSequence: string;
651
+ afterHash: string;
652
+ persistent: true;
653
+ throughSequence: string;
654
+ headHash: string;
655
+ nextAfterSequence?: string | undefined;
656
+ }, {
657
+ entries: {
658
+ kind: "message" | "attachment" | "board" | "request" | "conversation" | "run" | "runEvent" | "workflow" | "tombstone";
659
+ revision: string;
660
+ hash: string;
661
+ sequence: string;
662
+ recordId: string;
663
+ entityId: string;
664
+ payloadJSON: string;
665
+ previousHash: string;
666
+ catalog?: {
667
+ version: string;
668
+ key: string;
669
+ collection: string;
670
+ order: string | null;
671
+ part: number;
672
+ parts: number;
673
+ deleted: boolean;
674
+ } | undefined;
675
+ }[];
676
+ projectId: string | null;
677
+ conversationId: string;
678
+ archiveEpoch: string;
679
+ afterSequence: string;
680
+ afterHash: string;
681
+ persistent: true;
682
+ throughSequence: string;
683
+ headHash: string;
684
+ nextAfterSequence?: string | undefined;
685
+ }>;
686
+ export type ConversationArchiveReadResult = z.infer<typeof ConversationArchiveReadResult>;
687
+ export declare const ConversationArchiveEntitiesParams: z.ZodObject<{
688
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
689
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
690
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
691
+ } & {
692
+ collection: z.ZodString;
693
+ throughSequence: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
694
+ before: z.ZodOptional<z.ZodObject<{
695
+ order: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
696
+ key: z.ZodString;
697
+ }, "strict", z.ZodTypeAny, {
698
+ key: string;
699
+ order: string;
700
+ }, {
701
+ key: string;
702
+ order: string;
703
+ }>>;
704
+ key: z.ZodOptional<z.ZodString>;
705
+ limit: z.ZodDefault<z.ZodNumber>;
706
+ }, "strict", z.ZodTypeAny, {
707
+ projectId: string | null;
708
+ limit: number;
709
+ conversationId: string;
710
+ archiveEpoch: string;
711
+ collection: string;
712
+ key?: string | undefined;
713
+ throughSequence?: string | undefined;
714
+ before?: {
715
+ key: string;
716
+ order: string;
717
+ } | undefined;
718
+ }, {
719
+ projectId: string | null;
720
+ conversationId: string;
721
+ archiveEpoch: string;
722
+ collection: string;
723
+ limit?: number | undefined;
724
+ key?: string | undefined;
725
+ throughSequence?: string | undefined;
726
+ before?: {
727
+ key: string;
728
+ order: string;
729
+ } | undefined;
730
+ }>;
731
+ export type ConversationArchiveEntitiesParams = z.infer<typeof ConversationArchiveEntitiesParams>;
732
+ export declare const ConversationArchiveEntity: z.ZodObject<{
733
+ key: z.ZodString;
734
+ order: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
735
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
736
+ parts: z.ZodNumber;
737
+ storedBytes: z.ZodNumber;
738
+ fromSequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
739
+ throughSequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
740
+ previousHash: z.ZodString;
741
+ hash: z.ZodString;
742
+ }, "strict", z.ZodTypeAny, {
743
+ version: string;
744
+ hash: string;
745
+ key: string;
746
+ order: string;
747
+ parts: number;
748
+ previousHash: string;
749
+ throughSequence: string;
750
+ storedBytes: number;
751
+ fromSequence: string;
752
+ }, {
753
+ version: string;
754
+ hash: string;
755
+ key: string;
756
+ order: string;
757
+ parts: number;
758
+ previousHash: string;
759
+ throughSequence: string;
760
+ storedBytes: number;
761
+ fromSequence: string;
762
+ }>;
763
+ export declare const ConversationArchiveEntitiesResult: z.ZodObject<{
764
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
765
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
766
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
767
+ } & {
768
+ persistent: z.ZodLiteral<true>;
769
+ collection: z.ZodString;
770
+ throughSequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
771
+ headHash: z.ZodString;
772
+ incomplete: z.ZodBoolean;
773
+ entities: z.ZodArray<z.ZodObject<{
774
+ key: z.ZodString;
775
+ order: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
776
+ version: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
777
+ parts: z.ZodNumber;
778
+ storedBytes: z.ZodNumber;
779
+ fromSequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
780
+ throughSequence: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
781
+ previousHash: z.ZodString;
782
+ hash: z.ZodString;
783
+ }, "strict", z.ZodTypeAny, {
784
+ version: string;
785
+ hash: string;
786
+ key: string;
787
+ order: string;
788
+ parts: number;
789
+ previousHash: string;
790
+ throughSequence: string;
791
+ storedBytes: number;
792
+ fromSequence: string;
793
+ }, {
794
+ version: string;
795
+ hash: string;
796
+ key: string;
797
+ order: string;
798
+ parts: number;
799
+ previousHash: string;
800
+ throughSequence: string;
801
+ storedBytes: number;
802
+ fromSequence: string;
803
+ }>, "many">;
804
+ before: z.ZodOptional<z.ZodObject<{
805
+ order: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
806
+ key: z.ZodString;
807
+ }, "strict", z.ZodTypeAny, {
808
+ key: string;
809
+ order: string;
810
+ }, {
811
+ key: string;
812
+ order: string;
813
+ }>>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ projectId: string | null;
816
+ conversationId: string;
817
+ archiveEpoch: string;
818
+ collection: string;
819
+ persistent: true;
820
+ throughSequence: string;
821
+ headHash: string;
822
+ incomplete: boolean;
823
+ entities: {
824
+ version: string;
825
+ hash: string;
826
+ key: string;
827
+ order: string;
828
+ parts: number;
829
+ previousHash: string;
830
+ throughSequence: string;
831
+ storedBytes: number;
832
+ fromSequence: string;
833
+ }[];
834
+ before?: {
835
+ key: string;
836
+ order: string;
837
+ } | undefined;
838
+ }, {
839
+ projectId: string | null;
840
+ conversationId: string;
841
+ archiveEpoch: string;
842
+ collection: string;
843
+ persistent: true;
844
+ throughSequence: string;
845
+ headHash: string;
846
+ incomplete: boolean;
847
+ entities: {
848
+ version: string;
849
+ hash: string;
850
+ key: string;
851
+ order: string;
852
+ parts: number;
853
+ previousHash: string;
854
+ throughSequence: string;
855
+ storedBytes: number;
856
+ fromSequence: string;
857
+ }[];
858
+ before?: {
859
+ key: string;
860
+ order: string;
861
+ } | undefined;
862
+ }>;
863
+ export type ConversationArchiveEntitiesResult = z.infer<typeof ConversationArchiveEntitiesResult>;
864
+ export declare const ConversationArchiveBlob: z.ZodObject<{
865
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
866
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
867
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
868
+ } & {
869
+ blobId: z.ZodEffects<z.ZodString, string, string>;
870
+ sha256: z.ZodString;
871
+ sizeBytes: z.ZodNumber;
872
+ }, "strict", z.ZodTypeAny, {
873
+ sha256: string;
874
+ sizeBytes: number;
875
+ projectId: string | null;
876
+ conversationId: string;
877
+ archiveEpoch: string;
878
+ blobId: string;
879
+ }, {
880
+ sha256: string;
881
+ sizeBytes: number;
882
+ projectId: string | null;
883
+ conversationId: string;
884
+ archiveEpoch: string;
885
+ blobId: string;
886
+ }>;
887
+ export type ConversationArchiveBlob = z.infer<typeof ConversationArchiveBlob>;
888
+ export declare const ConversationArchiveBlobWriteParams: z.ZodObject<{
889
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
890
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
891
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
892
+ } & {
893
+ blobId: z.ZodEffects<z.ZodString, string, string>;
894
+ sha256: z.ZodString;
895
+ sizeBytes: z.ZodNumber;
896
+ } & {
897
+ offset: z.ZodNumber;
898
+ data: z.ZodString;
899
+ }, "strict", z.ZodTypeAny, {
900
+ offset: number;
901
+ sha256: string;
902
+ sizeBytes: number;
903
+ projectId: string | null;
904
+ data: string;
905
+ conversationId: string;
906
+ archiveEpoch: string;
907
+ blobId: string;
908
+ }, {
909
+ offset: number;
910
+ sha256: string;
911
+ sizeBytes: number;
912
+ projectId: string | null;
913
+ data: string;
914
+ conversationId: string;
915
+ archiveEpoch: string;
916
+ blobId: string;
917
+ }>;
918
+ export type ConversationArchiveBlobWriteParams = z.infer<typeof ConversationArchiveBlobWriteParams>;
919
+ export declare const ConversationArchiveBlobStatusResult: z.ZodObject<{
920
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
921
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
922
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
923
+ } & {
924
+ blobId: z.ZodEffects<z.ZodString, string, string>;
925
+ sha256: z.ZodString;
926
+ sizeBytes: z.ZodNumber;
927
+ } & {
928
+ persistent: z.ZodLiteral<true>;
929
+ found: z.ZodBoolean;
930
+ complete: z.ZodBoolean;
931
+ receivedBytes: z.ZodNumber;
932
+ }, "strict", z.ZodTypeAny, {
933
+ sha256: string;
934
+ sizeBytes: number;
935
+ projectId: string | null;
936
+ found: boolean;
937
+ conversationId: string;
938
+ archiveEpoch: string;
939
+ persistent: true;
940
+ blobId: string;
941
+ complete: boolean;
942
+ receivedBytes: number;
943
+ }, {
944
+ sha256: string;
945
+ sizeBytes: number;
946
+ projectId: string | null;
947
+ found: boolean;
948
+ conversationId: string;
949
+ archiveEpoch: string;
950
+ persistent: true;
951
+ blobId: string;
952
+ complete: boolean;
953
+ receivedBytes: number;
954
+ }>;
955
+ export type ConversationArchiveBlobStatusResult = z.infer<typeof ConversationArchiveBlobStatusResult>;
956
+ export declare const ConversationArchiveBlobReadParams: z.ZodObject<{
957
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
958
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
959
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
960
+ } & {
961
+ blobId: z.ZodEffects<z.ZodString, string, string>;
962
+ sha256: z.ZodString;
963
+ sizeBytes: z.ZodNumber;
964
+ } & {
965
+ offset: z.ZodDefault<z.ZodNumber>;
966
+ }, "strict", z.ZodTypeAny, {
967
+ offset: number;
968
+ sha256: string;
969
+ sizeBytes: number;
970
+ projectId: string | null;
971
+ conversationId: string;
972
+ archiveEpoch: string;
973
+ blobId: string;
974
+ }, {
975
+ sha256: string;
976
+ sizeBytes: number;
977
+ projectId: string | null;
978
+ conversationId: string;
979
+ archiveEpoch: string;
980
+ blobId: string;
981
+ offset?: number | undefined;
982
+ }>;
983
+ export type ConversationArchiveBlobReadParams = z.infer<typeof ConversationArchiveBlobReadParams>;
984
+ export declare const ConversationArchiveBlobReadResult: z.ZodObject<{
985
+ conversationId: z.ZodEffects<z.ZodString, string, string>;
986
+ archiveEpoch: z.ZodEffects<z.ZodString, string, string>;
987
+ projectId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
988
+ } & {
989
+ blobId: z.ZodEffects<z.ZodString, string, string>;
990
+ sha256: z.ZodString;
991
+ sizeBytes: z.ZodNumber;
992
+ } & {
993
+ persistent: z.ZodLiteral<true>;
994
+ offset: z.ZodNumber;
995
+ data: z.ZodString;
996
+ nextOffset: z.ZodOptional<z.ZodNumber>;
997
+ }, "strict", z.ZodTypeAny, {
998
+ offset: number;
999
+ sha256: string;
1000
+ sizeBytes: number;
1001
+ projectId: string | null;
1002
+ data: string;
1003
+ conversationId: string;
1004
+ archiveEpoch: string;
1005
+ persistent: true;
1006
+ blobId: string;
1007
+ nextOffset?: number | undefined;
1008
+ }, {
1009
+ offset: number;
1010
+ sha256: string;
1011
+ sizeBytes: number;
1012
+ projectId: string | null;
1013
+ data: string;
1014
+ conversationId: string;
1015
+ archiveEpoch: string;
1016
+ persistent: true;
1017
+ blobId: string;
1018
+ nextOffset?: number | undefined;
1019
+ }>;
1020
+ export type ConversationArchiveBlobReadResult = z.infer<typeof ConversationArchiveBlobReadResult>;
1021
+ //# sourceMappingURL=conversation-archive.d.ts.map