@joe-broadhead/messaging 0.7.0 → 0.8.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 (97) hide show
  1. package/CHANGELOG.md +259 -2
  2. package/dist/bin/messaging-mcp.js +5484 -3858
  3. package/dist/bin/messaging-relay.js +4728 -1136
  4. package/dist/bin/messaging.js +4616 -2807
  5. package/dist/bin/messagingd.js +16451 -9444
  6. package/dist/lib/modules/core/agent/operations.js +19 -327
  7. package/dist/lib/modules/core/agent/present.js +15 -55
  8. package/dist/lib/modules/core/agent-tools.js +46 -143
  9. package/dist/lib/modules/core/consent.js +1 -1
  10. package/dist/lib/modules/core/conversation/context.js +80 -0
  11. package/dist/lib/modules/core/conversation/event.js +125 -0
  12. package/dist/lib/modules/core/conversation/guest-invitation.js +42 -0
  13. package/dist/lib/modules/core/conversation/ids.js +38 -0
  14. package/dist/lib/modules/core/conversation/link.js +35 -0
  15. package/dist/lib/modules/core/conversation/log.js +988 -0
  16. package/dist/lib/modules/core/conversation/ratchet.js +243 -0
  17. package/dist/lib/modules/core/conversation/request-log.js +158 -0
  18. package/dist/lib/modules/core/conversation/request-seal.js +41 -0
  19. package/dist/lib/modules/core/conversation/requests.js +87 -0
  20. package/dist/lib/modules/core/conversation/seal.js +251 -0
  21. package/dist/lib/modules/core/conversation-agent-tools.js +69 -0
  22. package/dist/lib/modules/core/federation/directory-proof.js +83 -0
  23. package/dist/lib/modules/core/federation/proof-state.js +167 -0
  24. package/dist/lib/modules/core/federation/roster-proof.js +74 -0
  25. package/dist/lib/modules/core/index.js +16 -2
  26. package/dist/lib/modules/core/jelly-host.js +5 -5
  27. package/dist/lib/modules/core/schema/common.js +85 -3
  28. package/dist/lib/modules/core/schema/consent.js +5 -4
  29. package/dist/lib/modules/core/schema/contact-request.js +22 -0
  30. package/dist/lib/modules/core/schema/conv-frames.js +94 -0
  31. package/dist/lib/modules/core/schema/conversation.js +326 -0
  32. package/dist/lib/modules/core/schema/envelope.js +8 -24
  33. package/dist/lib/modules/core/schema/errors.js +42 -2
  34. package/dist/lib/modules/core/schema/guest-invitation.js +13 -0
  35. package/dist/lib/modules/core/schema/index.js +6 -0
  36. package/dist/lib/modules/core/schema/ipc/consent.js +13 -9
  37. package/dist/lib/modules/core/schema/ipc/conversation-views.js +80 -0
  38. package/dist/lib/modules/core/schema/ipc/conversations.js +128 -0
  39. package/dist/lib/modules/core/schema/ipc/device.js +2 -0
  40. package/dist/lib/modules/core/schema/ipc/jelly.js +3 -38
  41. package/dist/lib/modules/core/schema/ipc/shapes.js +14 -72
  42. package/dist/lib/modules/core/schema/ipc/surfaces.js +12 -195
  43. package/dist/lib/modules/core/schema/ipc/tasks.js +31 -0
  44. package/dist/lib/modules/core/schema/ipc.js +18 -44
  45. package/dist/lib/modules/core/testing.js +1 -0
  46. package/dist/lib/modules/core/version.js +1 -1
  47. package/dist/lib/modules/ipc/client.js +10 -2
  48. package/dist/lib/modules/ipc/server.js +14 -5
  49. package/dist/lib/modules/ipc/testing.js +13 -23
  50. package/dist/spec/messaging-v1.md +835 -380
  51. package/dist/third-party-notices.md +1 -1
  52. package/dist/third-party.json +1 -1
  53. package/dist/types/core/agent/operations.d.ts +5 -52
  54. package/dist/types/core/agent/present.d.ts +6 -21
  55. package/dist/types/core/agent-tools.d.ts +277 -438
  56. package/dist/types/core/conversation/context.d.ts +56 -0
  57. package/dist/types/core/conversation/event.d.ts +36 -0
  58. package/dist/types/core/conversation/guest-invitation.d.ts +8 -0
  59. package/dist/types/core/conversation/ids.d.ts +18 -0
  60. package/dist/types/core/conversation/link.d.ts +16 -0
  61. package/dist/types/core/conversation/log.d.ts +157 -0
  62. package/dist/types/core/conversation/ratchet.d.ts +95 -0
  63. package/dist/types/core/conversation/request-log.d.ts +24 -0
  64. package/dist/types/core/conversation/request-seal.d.ts +6 -0
  65. package/dist/types/core/conversation/requests.d.ts +14 -0
  66. package/dist/types/core/conversation/seal.d.ts +70 -0
  67. package/dist/types/core/conversation-agent-tools.d.ts +918 -0
  68. package/dist/types/core/federation/directory-proof.d.ts +8 -0
  69. package/dist/types/core/federation/proof-state.d.ts +114 -0
  70. package/dist/types/core/federation/roster-proof.d.ts +7 -0
  71. package/dist/types/core/index.d.ts +15 -3
  72. package/dist/types/core/jelly-host.d.ts +1 -1
  73. package/dist/types/core/schema/common.d.ts +85 -4
  74. package/dist/types/core/schema/consent.d.ts +7 -7
  75. package/dist/types/core/schema/contact-request.d.ts +264 -0
  76. package/dist/types/core/schema/conv-frames.d.ts +1200 -0
  77. package/dist/types/core/schema/conversation.d.ts +2803 -0
  78. package/dist/types/core/schema/envelope.d.ts +89 -130
  79. package/dist/types/core/schema/errors.d.ts +40 -0
  80. package/dist/types/core/schema/guest-invitation.d.ts +51 -0
  81. package/dist/types/core/schema/index.d.ts +6 -0
  82. package/dist/types/core/schema/ipc/consent.d.ts +89 -49
  83. package/dist/types/core/schema/ipc/conversation-views.d.ts +1023 -0
  84. package/dist/types/core/schema/ipc/conversations.d.ts +3987 -0
  85. package/dist/types/core/schema/ipc/device.d.ts +10 -0
  86. package/dist/types/core/schema/ipc/jelly.d.ts +2 -105
  87. package/dist/types/core/schema/ipc/shapes.d.ts +16 -95
  88. package/dist/types/core/schema/ipc/surfaces.d.ts +28 -424
  89. package/dist/types/core/schema/ipc/tasks.d.ts +208 -0
  90. package/dist/types/core/schema/ipc.d.ts +2684 -523
  91. package/dist/types/core/schema/relay.d.ts +20 -4
  92. package/dist/types/core/testing.d.ts +1 -0
  93. package/dist/types/core/version.d.ts +1 -1
  94. package/dist/types/ipc/client.d.ts +4 -1
  95. package/dist/types/ipc/server.d.ts +10 -1
  96. package/dist/types/ipc/testing.d.ts +21 -8
  97. package/package.json +1 -1
@@ -15,11 +15,14 @@
15
15
  *
16
16
  * Errors: standard JSON-RPC codes for transport/schema problems (-32700, -32600, -32601, -32602,
17
17
  * -32603); every Messaging error uses code -32000 with `data: { code: ErrorCode }`.
18
- * The daemon pushes notifications `{"jsonrpc":"2.0","method":"event","params":Event}`: `conv` events
19
- * to connections that called `conv.subscribe`, every other event to connections that called
20
- * `events.subscribe` for its key (or to all of them, for events without a key).
18
+ * The daemon pushes notifications `{"jsonrpc":"2.0","method":"event","params":Event}` to connections
19
+ * subscribed to the event's key. Notice subscriptions are human-only. Conversations use `conv.sync`.
21
20
  */
22
21
  import { z } from "zod";
22
+ import { CONVERSATION_TIERS, type LiveConversationMethod } from "./ipc/conversations.js";
23
+ type ConversationTier<T extends "agent" | "human"> = {
24
+ [M in LiveConversationMethod]: typeof CONVERSATION_TIERS[M] extends T ? M : never;
25
+ }[LiveConversationMethod];
23
26
  export * from "./ipc/shapes.js";
24
27
  export * from "./ipc/surfaces.js";
25
28
  export * from "./ipc/jelly.js";
@@ -144,6 +147,2374 @@ export declare const InviteSummary: z.ZodObject<{
144
147
  }, z.core.$strip>;
145
148
  /** Method table: name → params/result schemas. The daemon validates params; clients validate results. */
146
149
  export declare const IPC_METHODS: {
150
+ readonly "conv.list": {
151
+ params: z.ZodObject<{
152
+ limit: z.ZodOptional<z.ZodNumber>;
153
+ cursor: z.ZodOptional<z.ZodString>;
154
+ key: z.ZodOptional<z.ZodString>;
155
+ filter: z.ZodOptional<z.ZodObject<{
156
+ unread: z.ZodOptional<z.ZodBoolean>;
157
+ mentions: z.ZodOptional<z.ZodBoolean>;
158
+ kind: z.ZodOptional<z.ZodEnum<{
159
+ self: "self";
160
+ channel: "channel";
161
+ group: "group";
162
+ dm: "dm";
163
+ }>>;
164
+ archived: z.ZodOptional<z.ZodBoolean>;
165
+ }, z.core.$strict>>;
166
+ }, z.core.$strict>;
167
+ result: z.ZodObject<{
168
+ conversations: z.ZodArray<z.ZodObject<{
169
+ cid: z.ZodString;
170
+ kind: z.ZodEnum<{
171
+ self: "self";
172
+ channel: "channel";
173
+ group: "group";
174
+ dm: "dm";
175
+ }>;
176
+ visibility: z.ZodOptional<z.ZodEnum<{
177
+ public: "public";
178
+ private: "private";
179
+ }>>;
180
+ history: z.ZodEnum<{
181
+ none: "none";
182
+ shared: "shared";
183
+ }>;
184
+ retainDays: z.ZodNumber;
185
+ agentContext: z.ZodEnum<{
186
+ none: "none";
187
+ members: "members";
188
+ seats: "seats";
189
+ }>;
190
+ name: z.ZodOptional<z.ZodString>;
191
+ topic: z.ZodOptional<z.ZodString>;
192
+ purpose: z.ZodOptional<z.ZodString>;
193
+ archived: z.ZodBoolean;
194
+ role: z.ZodEnum<{
195
+ admin: "admin";
196
+ member: "member";
197
+ owner: "owner";
198
+ guest: "guest";
199
+ }>;
200
+ participants: z.ZodNumber;
201
+ dmWith: z.ZodOptional<z.ZodObject<{
202
+ p: z.ZodString;
203
+ kind: z.ZodEnum<{
204
+ person: "person";
205
+ agent: "agent";
206
+ }>;
207
+ role: z.ZodEnum<{
208
+ admin: "admin";
209
+ member: "member";
210
+ owner: "owner";
211
+ guest: "guest";
212
+ }>;
213
+ state: z.ZodEnum<{
214
+ member: "member";
215
+ invited: "invited";
216
+ }>;
217
+ name: z.ZodString;
218
+ handle: z.ZodOptional<z.ZodString>;
219
+ org: z.ZodEnum<{
220
+ other: "other";
221
+ none: "none";
222
+ same: "same";
223
+ }>;
224
+ presence: z.ZodEnum<{
225
+ unknown: "unknown";
226
+ away: "away";
227
+ offline: "offline";
228
+ online: "online";
229
+ }>;
230
+ agentState: z.ZodOptional<z.ZodEnum<{
231
+ idle: "idle";
232
+ busy: "busy";
233
+ kept: "kept";
234
+ }>>;
235
+ respondTo: z.ZodOptional<z.ZodEnum<{
236
+ self: "self";
237
+ none: "none";
238
+ members: "members";
239
+ }>>;
240
+ }, z.core.$strip>>;
241
+ last: z.ZodOptional<z.ZodObject<{
242
+ cid: z.ZodString;
243
+ id: z.ZodString;
244
+ seq: z.ZodNumber;
245
+ at: z.ZodNumber;
246
+ author: z.ZodObject<{
247
+ name: z.ZodString;
248
+ kind: z.ZodEnum<{
249
+ person: "person";
250
+ agent: "agent";
251
+ }>;
252
+ p: z.ZodString;
253
+ }, z.core.$strip>;
254
+ kind: z.ZodEnum<{
255
+ task: "task";
256
+ line: "line";
257
+ notice: "notice";
258
+ }>;
259
+ text: z.ZodOptional<z.ZodString>;
260
+ format: z.ZodOptional<z.ZodEnum<{
261
+ plain: "plain";
262
+ md: "md";
263
+ }>>;
264
+ thread: z.ZodOptional<z.ZodString>;
265
+ broadcast: z.ZodOptional<z.ZodBoolean>;
266
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
267
+ p: z.ZodString;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ all: z.ZodLiteral<"channel">;
270
+ }, z.core.$strict>, z.ZodObject<{
271
+ all: z.ZodLiteral<"here">;
272
+ }, z.core.$strict>]>>>;
273
+ mentionsMe: z.ZodBoolean;
274
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
275
+ blob: z.ZodString;
276
+ name: z.ZodString;
277
+ mime: z.ZodString;
278
+ bytes: z.ZodNumber;
279
+ }, z.core.$strip>>>;
280
+ edited: z.ZodOptional<z.ZodNumber>;
281
+ deleted: z.ZodOptional<z.ZodBoolean>;
282
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
283
+ key: z.ZodString;
284
+ count: z.ZodNumber;
285
+ mine: z.ZodBoolean;
286
+ }, z.core.$strip>>>;
287
+ pinned: z.ZodOptional<z.ZodBoolean>;
288
+ replies: z.ZodOptional<z.ZodObject<{
289
+ count: z.ZodNumber;
290
+ lastAt: z.ZodNumber;
291
+ participants: z.ZodArray<z.ZodString>;
292
+ unread: z.ZodOptional<z.ZodNumber>;
293
+ following: z.ZodOptional<z.ZodBoolean>;
294
+ }, z.core.$strip>>;
295
+ task: z.ZodOptional<z.ZodObject<{
296
+ id: z.ZodString;
297
+ state: z.ZodEnum<{
298
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
299
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
300
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
301
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
302
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
303
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
304
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
305
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
306
+ }>;
307
+ }, z.core.$strip>>;
308
+ notice: z.ZodOptional<z.ZodObject<{
309
+ op: z.ZodEnum<{
310
+ role: "role";
311
+ remove: "remove";
312
+ accept: "accept";
313
+ settings: "settings";
314
+ create: "create";
315
+ add: "add";
316
+ join: "join";
317
+ leave: "leave";
318
+ seat: "seat";
319
+ archive: "archive";
320
+ policy: "policy";
321
+ meta: "meta";
322
+ }>;
323
+ by: z.ZodObject<{
324
+ name: z.ZodString;
325
+ kind: z.ZodEnum<{
326
+ person: "person";
327
+ agent: "agent";
328
+ }>;
329
+ p: z.ZodString;
330
+ }, z.core.$strip>;
331
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
332
+ name: z.ZodString;
333
+ kind: z.ZodEnum<{
334
+ person: "person";
335
+ agent: "agent";
336
+ }>;
337
+ p: z.ZodString;
338
+ }, z.core.$strip>>>;
339
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
340
+ name: "name";
341
+ history: "history";
342
+ purpose: "purpose";
343
+ agentContext: "agentContext";
344
+ bridges: "bridges";
345
+ visibility: "visibility";
346
+ retainDays: "retainDays";
347
+ post: "post";
348
+ invite: "invite";
349
+ pins: "pins";
350
+ topic: "topic";
351
+ }>>>;
352
+ }, z.core.$strip>>;
353
+ delivery: z.ZodOptional<z.ZodEnum<{
354
+ delivered: "delivered";
355
+ read: "read";
356
+ pending: "pending";
357
+ failed: "failed";
358
+ sent: "sent";
359
+ }>>;
360
+ clientId: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strip>>;
362
+ headSeq: z.ZodNumber;
363
+ readUpTo: z.ZodOptional<z.ZodNumber>;
364
+ unread: z.ZodOptional<z.ZodNumber>;
365
+ mentions: z.ZodOptional<z.ZodNumber>;
366
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
367
+ notify: z.ZodOptional<z.ZodEnum<{
368
+ none: "none";
369
+ all: "all";
370
+ mentions: "mentions";
371
+ }>>;
372
+ mutedUntil: z.ZodOptional<z.ZodNumber>;
373
+ draft: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strip>>;
375
+ cursor: z.ZodOptional<z.ZodString>;
376
+ }, z.core.$strip>;
377
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
378
+ };
379
+ readonly "conv.get": {
380
+ params: z.ZodObject<{
381
+ cid: z.ZodString;
382
+ key: z.ZodOptional<z.ZodString>;
383
+ }, z.core.$strict>;
384
+ result: z.ZodObject<{
385
+ cid: z.ZodString;
386
+ kind: z.ZodEnum<{
387
+ self: "self";
388
+ channel: "channel";
389
+ group: "group";
390
+ dm: "dm";
391
+ }>;
392
+ visibility: z.ZodOptional<z.ZodEnum<{
393
+ public: "public";
394
+ private: "private";
395
+ }>>;
396
+ history: z.ZodEnum<{
397
+ none: "none";
398
+ shared: "shared";
399
+ }>;
400
+ retainDays: z.ZodNumber;
401
+ agentContext: z.ZodEnum<{
402
+ none: "none";
403
+ members: "members";
404
+ seats: "seats";
405
+ }>;
406
+ name: z.ZodOptional<z.ZodString>;
407
+ topic: z.ZodOptional<z.ZodString>;
408
+ purpose: z.ZodOptional<z.ZodString>;
409
+ archived: z.ZodBoolean;
410
+ role: z.ZodEnum<{
411
+ admin: "admin";
412
+ member: "member";
413
+ owner: "owner";
414
+ guest: "guest";
415
+ }>;
416
+ participants: z.ZodNumber;
417
+ dmWith: z.ZodOptional<z.ZodObject<{
418
+ p: z.ZodString;
419
+ kind: z.ZodEnum<{
420
+ person: "person";
421
+ agent: "agent";
422
+ }>;
423
+ role: z.ZodEnum<{
424
+ admin: "admin";
425
+ member: "member";
426
+ owner: "owner";
427
+ guest: "guest";
428
+ }>;
429
+ state: z.ZodEnum<{
430
+ member: "member";
431
+ invited: "invited";
432
+ }>;
433
+ name: z.ZodString;
434
+ handle: z.ZodOptional<z.ZodString>;
435
+ org: z.ZodEnum<{
436
+ other: "other";
437
+ none: "none";
438
+ same: "same";
439
+ }>;
440
+ presence: z.ZodEnum<{
441
+ unknown: "unknown";
442
+ away: "away";
443
+ offline: "offline";
444
+ online: "online";
445
+ }>;
446
+ agentState: z.ZodOptional<z.ZodEnum<{
447
+ idle: "idle";
448
+ busy: "busy";
449
+ kept: "kept";
450
+ }>>;
451
+ respondTo: z.ZodOptional<z.ZodEnum<{
452
+ self: "self";
453
+ none: "none";
454
+ members: "members";
455
+ }>>;
456
+ }, z.core.$strip>>;
457
+ last: z.ZodOptional<z.ZodObject<{
458
+ cid: z.ZodString;
459
+ id: z.ZodString;
460
+ seq: z.ZodNumber;
461
+ at: z.ZodNumber;
462
+ author: z.ZodObject<{
463
+ name: z.ZodString;
464
+ kind: z.ZodEnum<{
465
+ person: "person";
466
+ agent: "agent";
467
+ }>;
468
+ p: z.ZodString;
469
+ }, z.core.$strip>;
470
+ kind: z.ZodEnum<{
471
+ task: "task";
472
+ line: "line";
473
+ notice: "notice";
474
+ }>;
475
+ text: z.ZodOptional<z.ZodString>;
476
+ format: z.ZodOptional<z.ZodEnum<{
477
+ plain: "plain";
478
+ md: "md";
479
+ }>>;
480
+ thread: z.ZodOptional<z.ZodString>;
481
+ broadcast: z.ZodOptional<z.ZodBoolean>;
482
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
483
+ p: z.ZodString;
484
+ }, z.core.$strict>, z.ZodObject<{
485
+ all: z.ZodLiteral<"channel">;
486
+ }, z.core.$strict>, z.ZodObject<{
487
+ all: z.ZodLiteral<"here">;
488
+ }, z.core.$strict>]>>>;
489
+ mentionsMe: z.ZodBoolean;
490
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
491
+ blob: z.ZodString;
492
+ name: z.ZodString;
493
+ mime: z.ZodString;
494
+ bytes: z.ZodNumber;
495
+ }, z.core.$strip>>>;
496
+ edited: z.ZodOptional<z.ZodNumber>;
497
+ deleted: z.ZodOptional<z.ZodBoolean>;
498
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
499
+ key: z.ZodString;
500
+ count: z.ZodNumber;
501
+ mine: z.ZodBoolean;
502
+ }, z.core.$strip>>>;
503
+ pinned: z.ZodOptional<z.ZodBoolean>;
504
+ replies: z.ZodOptional<z.ZodObject<{
505
+ count: z.ZodNumber;
506
+ lastAt: z.ZodNumber;
507
+ participants: z.ZodArray<z.ZodString>;
508
+ unread: z.ZodOptional<z.ZodNumber>;
509
+ following: z.ZodOptional<z.ZodBoolean>;
510
+ }, z.core.$strip>>;
511
+ task: z.ZodOptional<z.ZodObject<{
512
+ id: z.ZodString;
513
+ state: z.ZodEnum<{
514
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
515
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
516
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
517
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
518
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
519
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
520
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
521
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
522
+ }>;
523
+ }, z.core.$strip>>;
524
+ notice: z.ZodOptional<z.ZodObject<{
525
+ op: z.ZodEnum<{
526
+ role: "role";
527
+ remove: "remove";
528
+ accept: "accept";
529
+ settings: "settings";
530
+ create: "create";
531
+ add: "add";
532
+ join: "join";
533
+ leave: "leave";
534
+ seat: "seat";
535
+ archive: "archive";
536
+ policy: "policy";
537
+ meta: "meta";
538
+ }>;
539
+ by: z.ZodObject<{
540
+ name: z.ZodString;
541
+ kind: z.ZodEnum<{
542
+ person: "person";
543
+ agent: "agent";
544
+ }>;
545
+ p: z.ZodString;
546
+ }, z.core.$strip>;
547
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
548
+ name: z.ZodString;
549
+ kind: z.ZodEnum<{
550
+ person: "person";
551
+ agent: "agent";
552
+ }>;
553
+ p: z.ZodString;
554
+ }, z.core.$strip>>>;
555
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
556
+ name: "name";
557
+ history: "history";
558
+ purpose: "purpose";
559
+ agentContext: "agentContext";
560
+ bridges: "bridges";
561
+ visibility: "visibility";
562
+ retainDays: "retainDays";
563
+ post: "post";
564
+ invite: "invite";
565
+ pins: "pins";
566
+ topic: "topic";
567
+ }>>>;
568
+ }, z.core.$strip>>;
569
+ delivery: z.ZodOptional<z.ZodEnum<{
570
+ delivered: "delivered";
571
+ read: "read";
572
+ pending: "pending";
573
+ failed: "failed";
574
+ sent: "sent";
575
+ }>>;
576
+ clientId: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$strip>>;
578
+ headSeq: z.ZodNumber;
579
+ readUpTo: z.ZodOptional<z.ZodNumber>;
580
+ unread: z.ZodOptional<z.ZodNumber>;
581
+ mentions: z.ZodOptional<z.ZodNumber>;
582
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
583
+ notify: z.ZodOptional<z.ZodEnum<{
584
+ none: "none";
585
+ all: "all";
586
+ mentions: "mentions";
587
+ }>>;
588
+ mutedUntil: z.ZodOptional<z.ZodNumber>;
589
+ draft: z.ZodOptional<z.ZodString>;
590
+ }, z.core.$strip>;
591
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
592
+ };
593
+ readonly "conv.members": {
594
+ params: z.ZodObject<{
595
+ limit: z.ZodOptional<z.ZodNumber>;
596
+ cursor: z.ZodOptional<z.ZodString>;
597
+ cid: z.ZodString;
598
+ }, z.core.$strict>;
599
+ result: z.ZodObject<{
600
+ participants: z.ZodArray<z.ZodObject<{
601
+ p: z.ZodString;
602
+ kind: z.ZodEnum<{
603
+ person: "person";
604
+ agent: "agent";
605
+ }>;
606
+ role: z.ZodEnum<{
607
+ admin: "admin";
608
+ member: "member";
609
+ owner: "owner";
610
+ guest: "guest";
611
+ }>;
612
+ state: z.ZodEnum<{
613
+ member: "member";
614
+ invited: "invited";
615
+ }>;
616
+ name: z.ZodString;
617
+ handle: z.ZodOptional<z.ZodString>;
618
+ org: z.ZodEnum<{
619
+ other: "other";
620
+ none: "none";
621
+ same: "same";
622
+ }>;
623
+ presence: z.ZodEnum<{
624
+ unknown: "unknown";
625
+ away: "away";
626
+ offline: "offline";
627
+ online: "online";
628
+ }>;
629
+ agentState: z.ZodOptional<z.ZodEnum<{
630
+ idle: "idle";
631
+ busy: "busy";
632
+ kept: "kept";
633
+ }>>;
634
+ respondTo: z.ZodOptional<z.ZodEnum<{
635
+ self: "self";
636
+ none: "none";
637
+ members: "members";
638
+ }>>;
639
+ }, z.core.$strip>>;
640
+ cursor: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>;
642
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
643
+ };
644
+ readonly "conv.read": {
645
+ params: z.ZodObject<{
646
+ thread: z.ZodOptional<z.ZodString>;
647
+ before: z.ZodOptional<z.ZodNumber>;
648
+ after: z.ZodOptional<z.ZodNumber>;
649
+ around: z.ZodOptional<z.ZodString>;
650
+ limit: z.ZodOptional<z.ZodNumber>;
651
+ cursor: z.ZodOptional<z.ZodString>;
652
+ cid: z.ZodString;
653
+ key: z.ZodOptional<z.ZodString>;
654
+ }, z.core.$strict>;
655
+ result: z.ZodUnion<readonly [z.ZodObject<{
656
+ events: z.ZodArray<z.ZodObject<{
657
+ cid: z.ZodString;
658
+ id: z.ZodString;
659
+ seq: z.ZodNumber;
660
+ at: z.ZodNumber;
661
+ author: z.ZodObject<{
662
+ name: z.ZodString;
663
+ kind: z.ZodEnum<{
664
+ person: "person";
665
+ agent: "agent";
666
+ }>;
667
+ p: z.ZodString;
668
+ }, z.core.$strip>;
669
+ kind: z.ZodEnum<{
670
+ task: "task";
671
+ line: "line";
672
+ notice: "notice";
673
+ }>;
674
+ text: z.ZodOptional<z.ZodString>;
675
+ format: z.ZodOptional<z.ZodEnum<{
676
+ plain: "plain";
677
+ md: "md";
678
+ }>>;
679
+ thread: z.ZodOptional<z.ZodString>;
680
+ broadcast: z.ZodOptional<z.ZodBoolean>;
681
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
682
+ p: z.ZodString;
683
+ }, z.core.$strict>, z.ZodObject<{
684
+ all: z.ZodLiteral<"channel">;
685
+ }, z.core.$strict>, z.ZodObject<{
686
+ all: z.ZodLiteral<"here">;
687
+ }, z.core.$strict>]>>>;
688
+ mentionsMe: z.ZodBoolean;
689
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
690
+ blob: z.ZodString;
691
+ name: z.ZodString;
692
+ mime: z.ZodString;
693
+ bytes: z.ZodNumber;
694
+ }, z.core.$strip>>>;
695
+ edited: z.ZodOptional<z.ZodNumber>;
696
+ deleted: z.ZodOptional<z.ZodBoolean>;
697
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
698
+ key: z.ZodString;
699
+ count: z.ZodNumber;
700
+ mine: z.ZodBoolean;
701
+ }, z.core.$strip>>>;
702
+ pinned: z.ZodOptional<z.ZodBoolean>;
703
+ replies: z.ZodOptional<z.ZodObject<{
704
+ count: z.ZodNumber;
705
+ lastAt: z.ZodNumber;
706
+ participants: z.ZodArray<z.ZodString>;
707
+ unread: z.ZodOptional<z.ZodNumber>;
708
+ following: z.ZodOptional<z.ZodBoolean>;
709
+ }, z.core.$strip>>;
710
+ task: z.ZodOptional<z.ZodObject<{
711
+ id: z.ZodString;
712
+ state: z.ZodEnum<{
713
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
714
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
715
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
716
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
717
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
718
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
719
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
720
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
721
+ }>;
722
+ }, z.core.$strip>>;
723
+ notice: z.ZodOptional<z.ZodObject<{
724
+ op: z.ZodEnum<{
725
+ role: "role";
726
+ remove: "remove";
727
+ accept: "accept";
728
+ settings: "settings";
729
+ create: "create";
730
+ add: "add";
731
+ join: "join";
732
+ leave: "leave";
733
+ seat: "seat";
734
+ archive: "archive";
735
+ policy: "policy";
736
+ meta: "meta";
737
+ }>;
738
+ by: z.ZodObject<{
739
+ name: z.ZodString;
740
+ kind: z.ZodEnum<{
741
+ person: "person";
742
+ agent: "agent";
743
+ }>;
744
+ p: z.ZodString;
745
+ }, z.core.$strip>;
746
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
747
+ name: z.ZodString;
748
+ kind: z.ZodEnum<{
749
+ person: "person";
750
+ agent: "agent";
751
+ }>;
752
+ p: z.ZodString;
753
+ }, z.core.$strip>>>;
754
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
755
+ name: "name";
756
+ history: "history";
757
+ purpose: "purpose";
758
+ agentContext: "agentContext";
759
+ bridges: "bridges";
760
+ visibility: "visibility";
761
+ retainDays: "retainDays";
762
+ post: "post";
763
+ invite: "invite";
764
+ pins: "pins";
765
+ topic: "topic";
766
+ }>>>;
767
+ }, z.core.$strip>>;
768
+ delivery: z.ZodOptional<z.ZodEnum<{
769
+ delivered: "delivered";
770
+ read: "read";
771
+ pending: "pending";
772
+ failed: "failed";
773
+ sent: "sent";
774
+ }>>;
775
+ clientId: z.ZodOptional<z.ZodString>;
776
+ }, z.core.$strip>>;
777
+ more: z.ZodBoolean;
778
+ cursor: z.ZodOptional<z.ZodString>;
779
+ }, z.core.$strip>, z.ZodObject<{
780
+ stage: z.ZodLiteral<"held">;
781
+ code: z.ZodEnum<{
782
+ audience: "audience";
783
+ context: "context";
784
+ }>;
785
+ expect: z.ZodLiteral<"on_consent">;
786
+ }, z.core.$strip>]>;
787
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
788
+ };
789
+ readonly "conv.threads": {
790
+ params: z.ZodObject<{
791
+ limit: z.ZodOptional<z.ZodNumber>;
792
+ cursor: z.ZodOptional<z.ZodString>;
793
+ filter: z.ZodOptional<z.ZodEnum<{
794
+ all: "all";
795
+ unread: "unread";
796
+ following: "following";
797
+ }>>;
798
+ cid: z.ZodString;
799
+ }, z.core.$strict>;
800
+ result: z.ZodObject<{
801
+ events: z.ZodArray<z.ZodObject<{
802
+ cid: z.ZodString;
803
+ id: z.ZodString;
804
+ seq: z.ZodNumber;
805
+ at: z.ZodNumber;
806
+ author: z.ZodObject<{
807
+ name: z.ZodString;
808
+ kind: z.ZodEnum<{
809
+ person: "person";
810
+ agent: "agent";
811
+ }>;
812
+ p: z.ZodString;
813
+ }, z.core.$strip>;
814
+ kind: z.ZodEnum<{
815
+ task: "task";
816
+ line: "line";
817
+ notice: "notice";
818
+ }>;
819
+ text: z.ZodOptional<z.ZodString>;
820
+ format: z.ZodOptional<z.ZodEnum<{
821
+ plain: "plain";
822
+ md: "md";
823
+ }>>;
824
+ thread: z.ZodOptional<z.ZodString>;
825
+ broadcast: z.ZodOptional<z.ZodBoolean>;
826
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
827
+ p: z.ZodString;
828
+ }, z.core.$strict>, z.ZodObject<{
829
+ all: z.ZodLiteral<"channel">;
830
+ }, z.core.$strict>, z.ZodObject<{
831
+ all: z.ZodLiteral<"here">;
832
+ }, z.core.$strict>]>>>;
833
+ mentionsMe: z.ZodBoolean;
834
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
835
+ blob: z.ZodString;
836
+ name: z.ZodString;
837
+ mime: z.ZodString;
838
+ bytes: z.ZodNumber;
839
+ }, z.core.$strip>>>;
840
+ edited: z.ZodOptional<z.ZodNumber>;
841
+ deleted: z.ZodOptional<z.ZodBoolean>;
842
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
843
+ key: z.ZodString;
844
+ count: z.ZodNumber;
845
+ mine: z.ZodBoolean;
846
+ }, z.core.$strip>>>;
847
+ pinned: z.ZodOptional<z.ZodBoolean>;
848
+ replies: z.ZodOptional<z.ZodObject<{
849
+ count: z.ZodNumber;
850
+ lastAt: z.ZodNumber;
851
+ participants: z.ZodArray<z.ZodString>;
852
+ unread: z.ZodOptional<z.ZodNumber>;
853
+ following: z.ZodOptional<z.ZodBoolean>;
854
+ }, z.core.$strip>>;
855
+ task: z.ZodOptional<z.ZodObject<{
856
+ id: z.ZodString;
857
+ state: z.ZodEnum<{
858
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
859
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
860
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
861
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
862
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
863
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
864
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
865
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
866
+ }>;
867
+ }, z.core.$strip>>;
868
+ notice: z.ZodOptional<z.ZodObject<{
869
+ op: z.ZodEnum<{
870
+ role: "role";
871
+ remove: "remove";
872
+ accept: "accept";
873
+ settings: "settings";
874
+ create: "create";
875
+ add: "add";
876
+ join: "join";
877
+ leave: "leave";
878
+ seat: "seat";
879
+ archive: "archive";
880
+ policy: "policy";
881
+ meta: "meta";
882
+ }>;
883
+ by: z.ZodObject<{
884
+ name: z.ZodString;
885
+ kind: z.ZodEnum<{
886
+ person: "person";
887
+ agent: "agent";
888
+ }>;
889
+ p: z.ZodString;
890
+ }, z.core.$strip>;
891
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
892
+ name: z.ZodString;
893
+ kind: z.ZodEnum<{
894
+ person: "person";
895
+ agent: "agent";
896
+ }>;
897
+ p: z.ZodString;
898
+ }, z.core.$strip>>>;
899
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
900
+ name: "name";
901
+ history: "history";
902
+ purpose: "purpose";
903
+ agentContext: "agentContext";
904
+ bridges: "bridges";
905
+ visibility: "visibility";
906
+ retainDays: "retainDays";
907
+ post: "post";
908
+ invite: "invite";
909
+ pins: "pins";
910
+ topic: "topic";
911
+ }>>>;
912
+ }, z.core.$strip>>;
913
+ delivery: z.ZodOptional<z.ZodEnum<{
914
+ delivered: "delivered";
915
+ read: "read";
916
+ pending: "pending";
917
+ failed: "failed";
918
+ sent: "sent";
919
+ }>>;
920
+ clientId: z.ZodOptional<z.ZodString>;
921
+ }, z.core.$strip>>;
922
+ more: z.ZodBoolean;
923
+ cursor: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strip>;
925
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
926
+ };
927
+ readonly "conv.send": {
928
+ readonly params: z.ZodObject<{
929
+ answer: z.ZodOptional<z.ZodString>;
930
+ clientId: z.ZodString;
931
+ text: z.ZodString;
932
+ format: z.ZodOptional<z.ZodEnum<{
933
+ plain: "plain";
934
+ md: "md";
935
+ }>>;
936
+ thread: z.ZodOptional<z.ZodString>;
937
+ broadcast: z.ZodOptional<z.ZodBoolean>;
938
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
939
+ p: z.ZodString;
940
+ }, z.core.$strict>, z.ZodObject<{
941
+ all: z.ZodLiteral<"channel">;
942
+ }, z.core.$strict>, z.ZodObject<{
943
+ all: z.ZodLiteral<"here">;
944
+ }, z.core.$strict>]>>>;
945
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
946
+ blob: z.ZodString;
947
+ key: z.ZodString;
948
+ nonce: z.ZodString;
949
+ sha256: z.ZodString;
950
+ bytes: z.ZodNumber;
951
+ mime: z.ZodString;
952
+ name: z.ZodString;
953
+ thumb: z.ZodOptional<z.ZodString>;
954
+ }, z.core.$strict>>>;
955
+ key: z.ZodOptional<z.ZodString>;
956
+ cid: z.ZodOptional<z.ZodString>;
957
+ to: z.ZodOptional<z.ZodString>;
958
+ }, z.core.$strict>;
959
+ readonly result: z.ZodUnion<readonly [z.ZodObject<{
960
+ cid: z.ZodString;
961
+ id: z.ZodString;
962
+ clientId: z.ZodString;
963
+ stage: z.ZodLiteral<"pending">;
964
+ }, z.core.$strip>, z.ZodObject<{
965
+ stage: z.ZodLiteral<"held">;
966
+ code: z.ZodEnum<{
967
+ audience: "audience";
968
+ context: "context";
969
+ }>;
970
+ expect: z.ZodLiteral<"on_consent">;
971
+ }, z.core.$strip>]>;
972
+ readonly errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
973
+ };
974
+ readonly "conv.react": {
975
+ params: z.ZodObject<{
976
+ reaction: z.ZodString;
977
+ on: z.ZodBoolean;
978
+ cid: z.ZodString;
979
+ id: z.ZodString;
980
+ key: z.ZodOptional<z.ZodString>;
981
+ }, z.core.$strict>;
982
+ result: z.ZodObject<{
983
+ ok: z.ZodLiteral<true>;
984
+ }, z.core.$strip>;
985
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
986
+ };
987
+ readonly "conv.edit": {
988
+ params: z.ZodObject<{
989
+ text: z.ZodString;
990
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
991
+ p: z.ZodString;
992
+ }, z.core.$strict>, z.ZodObject<{
993
+ all: z.ZodLiteral<"channel">;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ all: z.ZodLiteral<"here">;
996
+ }, z.core.$strict>]>>>;
997
+ cid: z.ZodString;
998
+ id: z.ZodString;
999
+ key: z.ZodOptional<z.ZodString>;
1000
+ }, z.core.$strict>;
1001
+ result: z.ZodObject<{
1002
+ ok: z.ZodLiteral<true>;
1003
+ }, z.core.$strip>;
1004
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1005
+ };
1006
+ readonly "conv.delete": {
1007
+ params: z.ZodObject<{
1008
+ cid: z.ZodString;
1009
+ id: z.ZodString;
1010
+ key: z.ZodOptional<z.ZodString>;
1011
+ }, z.core.$strict>;
1012
+ result: z.ZodObject<{
1013
+ ok: z.ZodLiteral<true>;
1014
+ }, z.core.$strip>;
1015
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1016
+ };
1017
+ readonly "conv.pin": {
1018
+ params: z.ZodObject<{
1019
+ on: z.ZodBoolean;
1020
+ cid: z.ZodString;
1021
+ id: z.ZodString;
1022
+ }, z.core.$strict>;
1023
+ result: z.ZodObject<{
1024
+ ok: z.ZodLiteral<true>;
1025
+ }, z.core.$strip>;
1026
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1027
+ };
1028
+ readonly "conv.create": {
1029
+ readonly params: z.ZodObject<{
1030
+ kind: z.ZodEnum<{
1031
+ channel: "channel";
1032
+ group: "group";
1033
+ dm: "dm";
1034
+ }>;
1035
+ participants: z.ZodArray<z.ZodObject<{
1036
+ p: z.ZodString;
1037
+ role: z.ZodEnum<{
1038
+ admin: "admin";
1039
+ member: "member";
1040
+ owner: "owner";
1041
+ guest: "guest";
1042
+ }>;
1043
+ device: z.ZodOptional<z.ZodString>;
1044
+ respondTo: z.ZodOptional<z.ZodEnum<{
1045
+ self: "self";
1046
+ none: "none";
1047
+ members: "members";
1048
+ }>>;
1049
+ }, z.core.$strict>>;
1050
+ visibility: z.ZodOptional<z.ZodEnum<{
1051
+ public: "public";
1052
+ private: "private";
1053
+ }>>;
1054
+ history: z.ZodEnum<{
1055
+ none: "none";
1056
+ shared: "shared";
1057
+ }>;
1058
+ retainDays: z.ZodNumber;
1059
+ meta: z.ZodOptional<z.ZodObject<{
1060
+ name: z.ZodOptional<z.ZodString>;
1061
+ topic: z.ZodOptional<z.ZodString>;
1062
+ purpose: z.ZodOptional<z.ZodString>;
1063
+ }, z.core.$strict>>;
1064
+ }, z.core.$strict>;
1065
+ readonly result: z.ZodObject<{
1066
+ cid: z.ZodString;
1067
+ }, z.core.$strip>;
1068
+ readonly errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1069
+ };
1070
+ readonly "conv.add": {
1071
+ params: z.ZodObject<{
1072
+ participants: z.ZodArray<z.ZodObject<{
1073
+ p: z.ZodString;
1074
+ role: z.ZodEnum<{
1075
+ admin: "admin";
1076
+ member: "member";
1077
+ owner: "owner";
1078
+ guest: "guest";
1079
+ }>;
1080
+ device: z.ZodOptional<z.ZodString>;
1081
+ respondTo: z.ZodOptional<z.ZodEnum<{
1082
+ self: "self";
1083
+ none: "none";
1084
+ members: "members";
1085
+ }>>;
1086
+ }, z.core.$strict>>;
1087
+ cid: z.ZodString;
1088
+ }, z.core.$strict>;
1089
+ result: z.ZodObject<{
1090
+ ok: z.ZodLiteral<true>;
1091
+ }, z.core.$strip>;
1092
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1093
+ };
1094
+ readonly "conv.remove": {
1095
+ params: z.ZodObject<{
1096
+ participants: z.ZodArray<z.ZodString>;
1097
+ cid: z.ZodString;
1098
+ }, z.core.$strict>;
1099
+ result: z.ZodObject<{
1100
+ ok: z.ZodLiteral<true>;
1101
+ }, z.core.$strip>;
1102
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1103
+ };
1104
+ readonly "conv.role": {
1105
+ params: z.ZodObject<{
1106
+ p: z.ZodString;
1107
+ role: z.ZodEnum<{
1108
+ admin: "admin";
1109
+ member: "member";
1110
+ owner: "owner";
1111
+ guest: "guest";
1112
+ }>;
1113
+ cid: z.ZodString;
1114
+ }, z.core.$strict>;
1115
+ result: z.ZodObject<{
1116
+ ok: z.ZodLiteral<true>;
1117
+ }, z.core.$strip>;
1118
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1119
+ };
1120
+ readonly "conv.seat": {
1121
+ params: z.ZodObject<{
1122
+ p: z.ZodString;
1123
+ device: z.ZodOptional<z.ZodString>;
1124
+ respondTo: z.ZodOptional<z.ZodEnum<{
1125
+ self: "self";
1126
+ none: "none";
1127
+ members: "members";
1128
+ }>>;
1129
+ cid: z.ZodString;
1130
+ }, z.core.$strict>;
1131
+ result: z.ZodObject<{
1132
+ ok: z.ZodLiteral<true>;
1133
+ }, z.core.$strip>;
1134
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1135
+ };
1136
+ readonly "conv.settings": {
1137
+ params: z.ZodObject<{
1138
+ visibility: z.ZodOptional<z.ZodEnum<{
1139
+ public: "public";
1140
+ private: "private";
1141
+ }>>;
1142
+ history: z.ZodOptional<z.ZodEnum<{
1143
+ none: "none";
1144
+ shared: "shared";
1145
+ }>>;
1146
+ retainDays: z.ZodOptional<z.ZodNumber>;
1147
+ post: z.ZodOptional<z.ZodEnum<{
1148
+ admins: "admins";
1149
+ all: "all";
1150
+ }>>;
1151
+ invite: z.ZodOptional<z.ZodEnum<{
1152
+ admins: "admins";
1153
+ all: "all";
1154
+ }>>;
1155
+ pins: z.ZodOptional<z.ZodEnum<{
1156
+ admins: "admins";
1157
+ all: "all";
1158
+ }>>;
1159
+ cid: z.ZodString;
1160
+ }, z.core.$strict>;
1161
+ result: z.ZodObject<{
1162
+ ok: z.ZodLiteral<true>;
1163
+ }, z.core.$strip>;
1164
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1165
+ };
1166
+ readonly "conv.meta": {
1167
+ params: z.ZodObject<{
1168
+ meta: z.ZodObject<{
1169
+ name: z.ZodOptional<z.ZodString>;
1170
+ topic: z.ZodOptional<z.ZodString>;
1171
+ purpose: z.ZodOptional<z.ZodString>;
1172
+ }, z.core.$strict>;
1173
+ cid: z.ZodString;
1174
+ }, z.core.$strict>;
1175
+ result: z.ZodObject<{
1176
+ ok: z.ZodLiteral<true>;
1177
+ }, z.core.$strip>;
1178
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1179
+ };
1180
+ readonly "conv.archive": {
1181
+ params: z.ZodObject<{
1182
+ on: z.ZodBoolean;
1183
+ cid: z.ZodString;
1184
+ }, z.core.$strict>;
1185
+ result: z.ZodObject<{
1186
+ ok: z.ZodLiteral<true>;
1187
+ }, z.core.$strip>;
1188
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1189
+ };
1190
+ readonly "conv.leave": {
1191
+ params: z.ZodObject<{
1192
+ cid: z.ZodString;
1193
+ }, z.core.$strict>;
1194
+ result: z.ZodObject<{
1195
+ ok: z.ZodLiteral<true>;
1196
+ }, z.core.$strip>;
1197
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1198
+ };
1199
+ readonly "conv.join": {
1200
+ params: z.ZodObject<{
1201
+ cid: z.ZodString;
1202
+ }, z.core.$strict>;
1203
+ result: z.ZodObject<{
1204
+ ok: z.ZodLiteral<true>;
1205
+ }, z.core.$strip>;
1206
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1207
+ };
1208
+ readonly "conv.accept": {
1209
+ params: z.ZodObject<{
1210
+ cid: z.ZodString;
1211
+ }, z.core.$strict>;
1212
+ result: z.ZodObject<{
1213
+ ok: z.ZodLiteral<true>;
1214
+ }, z.core.$strip>;
1215
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1216
+ };
1217
+ readonly "conv.search": {
1218
+ params: z.ZodObject<{
1219
+ limit: z.ZodOptional<z.ZodNumber>;
1220
+ cursor: z.ZodOptional<z.ZodString>;
1221
+ key: z.ZodOptional<z.ZodString>;
1222
+ query: z.ZodString;
1223
+ cid: z.ZodOptional<z.ZodString>;
1224
+ from: z.ZodOptional<z.ZodString>;
1225
+ after: z.ZodOptional<z.ZodNumber>;
1226
+ before: z.ZodOptional<z.ZodNumber>;
1227
+ thread: z.ZodOptional<z.ZodString>;
1228
+ has: z.ZodOptional<z.ZodEnum<{
1229
+ file: "file";
1230
+ link: "link";
1231
+ }>>;
1232
+ }, z.core.$strict>;
1233
+ result: z.ZodUnion<readonly [z.ZodObject<{
1234
+ events: z.ZodArray<z.ZodObject<{
1235
+ cid: z.ZodString;
1236
+ id: z.ZodString;
1237
+ seq: z.ZodNumber;
1238
+ at: z.ZodNumber;
1239
+ author: z.ZodObject<{
1240
+ name: z.ZodString;
1241
+ kind: z.ZodEnum<{
1242
+ person: "person";
1243
+ agent: "agent";
1244
+ }>;
1245
+ p: z.ZodString;
1246
+ }, z.core.$strip>;
1247
+ kind: z.ZodEnum<{
1248
+ task: "task";
1249
+ line: "line";
1250
+ notice: "notice";
1251
+ }>;
1252
+ text: z.ZodOptional<z.ZodString>;
1253
+ format: z.ZodOptional<z.ZodEnum<{
1254
+ plain: "plain";
1255
+ md: "md";
1256
+ }>>;
1257
+ thread: z.ZodOptional<z.ZodString>;
1258
+ broadcast: z.ZodOptional<z.ZodBoolean>;
1259
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1260
+ p: z.ZodString;
1261
+ }, z.core.$strict>, z.ZodObject<{
1262
+ all: z.ZodLiteral<"channel">;
1263
+ }, z.core.$strict>, z.ZodObject<{
1264
+ all: z.ZodLiteral<"here">;
1265
+ }, z.core.$strict>]>>>;
1266
+ mentionsMe: z.ZodBoolean;
1267
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1268
+ blob: z.ZodString;
1269
+ name: z.ZodString;
1270
+ mime: z.ZodString;
1271
+ bytes: z.ZodNumber;
1272
+ }, z.core.$strip>>>;
1273
+ edited: z.ZodOptional<z.ZodNumber>;
1274
+ deleted: z.ZodOptional<z.ZodBoolean>;
1275
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1276
+ key: z.ZodString;
1277
+ count: z.ZodNumber;
1278
+ mine: z.ZodBoolean;
1279
+ }, z.core.$strip>>>;
1280
+ pinned: z.ZodOptional<z.ZodBoolean>;
1281
+ replies: z.ZodOptional<z.ZodObject<{
1282
+ count: z.ZodNumber;
1283
+ lastAt: z.ZodNumber;
1284
+ participants: z.ZodArray<z.ZodString>;
1285
+ unread: z.ZodOptional<z.ZodNumber>;
1286
+ following: z.ZodOptional<z.ZodBoolean>;
1287
+ }, z.core.$strip>>;
1288
+ task: z.ZodOptional<z.ZodObject<{
1289
+ id: z.ZodString;
1290
+ state: z.ZodEnum<{
1291
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
1292
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
1293
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
1294
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
1295
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
1296
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
1297
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
1298
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
1299
+ }>;
1300
+ }, z.core.$strip>>;
1301
+ notice: z.ZodOptional<z.ZodObject<{
1302
+ op: z.ZodEnum<{
1303
+ role: "role";
1304
+ remove: "remove";
1305
+ accept: "accept";
1306
+ settings: "settings";
1307
+ create: "create";
1308
+ add: "add";
1309
+ join: "join";
1310
+ leave: "leave";
1311
+ seat: "seat";
1312
+ archive: "archive";
1313
+ policy: "policy";
1314
+ meta: "meta";
1315
+ }>;
1316
+ by: z.ZodObject<{
1317
+ name: z.ZodString;
1318
+ kind: z.ZodEnum<{
1319
+ person: "person";
1320
+ agent: "agent";
1321
+ }>;
1322
+ p: z.ZodString;
1323
+ }, z.core.$strip>;
1324
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1325
+ name: z.ZodString;
1326
+ kind: z.ZodEnum<{
1327
+ person: "person";
1328
+ agent: "agent";
1329
+ }>;
1330
+ p: z.ZodString;
1331
+ }, z.core.$strip>>>;
1332
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1333
+ name: "name";
1334
+ history: "history";
1335
+ purpose: "purpose";
1336
+ agentContext: "agentContext";
1337
+ bridges: "bridges";
1338
+ visibility: "visibility";
1339
+ retainDays: "retainDays";
1340
+ post: "post";
1341
+ invite: "invite";
1342
+ pins: "pins";
1343
+ topic: "topic";
1344
+ }>>>;
1345
+ }, z.core.$strip>>;
1346
+ delivery: z.ZodOptional<z.ZodEnum<{
1347
+ delivered: "delivered";
1348
+ read: "read";
1349
+ pending: "pending";
1350
+ failed: "failed";
1351
+ sent: "sent";
1352
+ }>>;
1353
+ clientId: z.ZodOptional<z.ZodString>;
1354
+ }, z.core.$strip>>;
1355
+ more: z.ZodBoolean;
1356
+ cursor: z.ZodOptional<z.ZodString>;
1357
+ }, z.core.$strip>, z.ZodObject<{
1358
+ stage: z.ZodLiteral<"held">;
1359
+ code: z.ZodEnum<{
1360
+ audience: "audience";
1361
+ context: "context";
1362
+ }>;
1363
+ expect: z.ZodLiteral<"on_consent">;
1364
+ }, z.core.$strip>]>;
1365
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
1366
+ };
1367
+ readonly "conv.context": {
1368
+ params: z.ZodObject<{
1369
+ event: z.ZodString;
1370
+ before: z.ZodOptional<z.ZodNumber>;
1371
+ after: z.ZodOptional<z.ZodNumber>;
1372
+ cid: z.ZodString;
1373
+ key: z.ZodOptional<z.ZodString>;
1374
+ }, z.core.$strict>;
1375
+ result: z.ZodUnion<readonly [z.ZodObject<{
1376
+ events: z.ZodArray<z.ZodObject<{
1377
+ cid: z.ZodString;
1378
+ id: z.ZodString;
1379
+ seq: z.ZodNumber;
1380
+ at: z.ZodNumber;
1381
+ author: z.ZodObject<{
1382
+ name: z.ZodString;
1383
+ kind: z.ZodEnum<{
1384
+ person: "person";
1385
+ agent: "agent";
1386
+ }>;
1387
+ p: z.ZodString;
1388
+ }, z.core.$strip>;
1389
+ kind: z.ZodEnum<{
1390
+ task: "task";
1391
+ line: "line";
1392
+ notice: "notice";
1393
+ }>;
1394
+ text: z.ZodOptional<z.ZodString>;
1395
+ format: z.ZodOptional<z.ZodEnum<{
1396
+ plain: "plain";
1397
+ md: "md";
1398
+ }>>;
1399
+ thread: z.ZodOptional<z.ZodString>;
1400
+ broadcast: z.ZodOptional<z.ZodBoolean>;
1401
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1402
+ p: z.ZodString;
1403
+ }, z.core.$strict>, z.ZodObject<{
1404
+ all: z.ZodLiteral<"channel">;
1405
+ }, z.core.$strict>, z.ZodObject<{
1406
+ all: z.ZodLiteral<"here">;
1407
+ }, z.core.$strict>]>>>;
1408
+ mentionsMe: z.ZodBoolean;
1409
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1410
+ blob: z.ZodString;
1411
+ name: z.ZodString;
1412
+ mime: z.ZodString;
1413
+ bytes: z.ZodNumber;
1414
+ }, z.core.$strip>>>;
1415
+ edited: z.ZodOptional<z.ZodNumber>;
1416
+ deleted: z.ZodOptional<z.ZodBoolean>;
1417
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1418
+ key: z.ZodString;
1419
+ count: z.ZodNumber;
1420
+ mine: z.ZodBoolean;
1421
+ }, z.core.$strip>>>;
1422
+ pinned: z.ZodOptional<z.ZodBoolean>;
1423
+ replies: z.ZodOptional<z.ZodObject<{
1424
+ count: z.ZodNumber;
1425
+ lastAt: z.ZodNumber;
1426
+ participants: z.ZodArray<z.ZodString>;
1427
+ unread: z.ZodOptional<z.ZodNumber>;
1428
+ following: z.ZodOptional<z.ZodBoolean>;
1429
+ }, z.core.$strip>>;
1430
+ task: z.ZodOptional<z.ZodObject<{
1431
+ id: z.ZodString;
1432
+ state: z.ZodEnum<{
1433
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
1434
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
1435
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
1436
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
1437
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
1438
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
1439
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
1440
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
1441
+ }>;
1442
+ }, z.core.$strip>>;
1443
+ notice: z.ZodOptional<z.ZodObject<{
1444
+ op: z.ZodEnum<{
1445
+ role: "role";
1446
+ remove: "remove";
1447
+ accept: "accept";
1448
+ settings: "settings";
1449
+ create: "create";
1450
+ add: "add";
1451
+ join: "join";
1452
+ leave: "leave";
1453
+ seat: "seat";
1454
+ archive: "archive";
1455
+ policy: "policy";
1456
+ meta: "meta";
1457
+ }>;
1458
+ by: z.ZodObject<{
1459
+ name: z.ZodString;
1460
+ kind: z.ZodEnum<{
1461
+ person: "person";
1462
+ agent: "agent";
1463
+ }>;
1464
+ p: z.ZodString;
1465
+ }, z.core.$strip>;
1466
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1467
+ name: z.ZodString;
1468
+ kind: z.ZodEnum<{
1469
+ person: "person";
1470
+ agent: "agent";
1471
+ }>;
1472
+ p: z.ZodString;
1473
+ }, z.core.$strip>>>;
1474
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1475
+ name: "name";
1476
+ history: "history";
1477
+ purpose: "purpose";
1478
+ agentContext: "agentContext";
1479
+ bridges: "bridges";
1480
+ visibility: "visibility";
1481
+ retainDays: "retainDays";
1482
+ post: "post";
1483
+ invite: "invite";
1484
+ pins: "pins";
1485
+ topic: "topic";
1486
+ }>>>;
1487
+ }, z.core.$strip>>;
1488
+ delivery: z.ZodOptional<z.ZodEnum<{
1489
+ delivered: "delivered";
1490
+ read: "read";
1491
+ pending: "pending";
1492
+ failed: "failed";
1493
+ sent: "sent";
1494
+ }>>;
1495
+ clientId: z.ZodOptional<z.ZodString>;
1496
+ }, z.core.$strip>>;
1497
+ root: z.ZodOptional<z.ZodObject<{
1498
+ cid: z.ZodString;
1499
+ id: z.ZodString;
1500
+ seq: z.ZodNumber;
1501
+ at: z.ZodNumber;
1502
+ author: z.ZodObject<{
1503
+ name: z.ZodString;
1504
+ kind: z.ZodEnum<{
1505
+ person: "person";
1506
+ agent: "agent";
1507
+ }>;
1508
+ p: z.ZodString;
1509
+ }, z.core.$strip>;
1510
+ kind: z.ZodEnum<{
1511
+ task: "task";
1512
+ line: "line";
1513
+ notice: "notice";
1514
+ }>;
1515
+ text: z.ZodOptional<z.ZodString>;
1516
+ format: z.ZodOptional<z.ZodEnum<{
1517
+ plain: "plain";
1518
+ md: "md";
1519
+ }>>;
1520
+ thread: z.ZodOptional<z.ZodString>;
1521
+ broadcast: z.ZodOptional<z.ZodBoolean>;
1522
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1523
+ p: z.ZodString;
1524
+ }, z.core.$strict>, z.ZodObject<{
1525
+ all: z.ZodLiteral<"channel">;
1526
+ }, z.core.$strict>, z.ZodObject<{
1527
+ all: z.ZodLiteral<"here">;
1528
+ }, z.core.$strict>]>>>;
1529
+ mentionsMe: z.ZodBoolean;
1530
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1531
+ blob: z.ZodString;
1532
+ name: z.ZodString;
1533
+ mime: z.ZodString;
1534
+ bytes: z.ZodNumber;
1535
+ }, z.core.$strip>>>;
1536
+ edited: z.ZodOptional<z.ZodNumber>;
1537
+ deleted: z.ZodOptional<z.ZodBoolean>;
1538
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1539
+ key: z.ZodString;
1540
+ count: z.ZodNumber;
1541
+ mine: z.ZodBoolean;
1542
+ }, z.core.$strip>>>;
1543
+ pinned: z.ZodOptional<z.ZodBoolean>;
1544
+ replies: z.ZodOptional<z.ZodObject<{
1545
+ count: z.ZodNumber;
1546
+ lastAt: z.ZodNumber;
1547
+ participants: z.ZodArray<z.ZodString>;
1548
+ unread: z.ZodOptional<z.ZodNumber>;
1549
+ following: z.ZodOptional<z.ZodBoolean>;
1550
+ }, z.core.$strip>>;
1551
+ task: z.ZodOptional<z.ZodObject<{
1552
+ id: z.ZodString;
1553
+ state: z.ZodEnum<{
1554
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
1555
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
1556
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
1557
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
1558
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
1559
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
1560
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
1561
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
1562
+ }>;
1563
+ }, z.core.$strip>>;
1564
+ notice: z.ZodOptional<z.ZodObject<{
1565
+ op: z.ZodEnum<{
1566
+ role: "role";
1567
+ remove: "remove";
1568
+ accept: "accept";
1569
+ settings: "settings";
1570
+ create: "create";
1571
+ add: "add";
1572
+ join: "join";
1573
+ leave: "leave";
1574
+ seat: "seat";
1575
+ archive: "archive";
1576
+ policy: "policy";
1577
+ meta: "meta";
1578
+ }>;
1579
+ by: z.ZodObject<{
1580
+ name: z.ZodString;
1581
+ kind: z.ZodEnum<{
1582
+ person: "person";
1583
+ agent: "agent";
1584
+ }>;
1585
+ p: z.ZodString;
1586
+ }, z.core.$strip>;
1587
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1588
+ name: z.ZodString;
1589
+ kind: z.ZodEnum<{
1590
+ person: "person";
1591
+ agent: "agent";
1592
+ }>;
1593
+ p: z.ZodString;
1594
+ }, z.core.$strip>>>;
1595
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1596
+ name: "name";
1597
+ history: "history";
1598
+ purpose: "purpose";
1599
+ agentContext: "agentContext";
1600
+ bridges: "bridges";
1601
+ visibility: "visibility";
1602
+ retainDays: "retainDays";
1603
+ post: "post";
1604
+ invite: "invite";
1605
+ pins: "pins";
1606
+ topic: "topic";
1607
+ }>>>;
1608
+ }, z.core.$strip>>;
1609
+ delivery: z.ZodOptional<z.ZodEnum<{
1610
+ delivered: "delivered";
1611
+ read: "read";
1612
+ pending: "pending";
1613
+ failed: "failed";
1614
+ sent: "sent";
1615
+ }>>;
1616
+ clientId: z.ZodOptional<z.ZodString>;
1617
+ }, z.core.$strip>>;
1618
+ }, z.core.$strip>, z.ZodObject<{
1619
+ stage: z.ZodLiteral<"held">;
1620
+ code: z.ZodEnum<{
1621
+ audience: "audience";
1622
+ context: "context";
1623
+ }>;
1624
+ expect: z.ZodLiteral<"on_consent">;
1625
+ }, z.core.$strip>]>;
1626
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
1627
+ };
1628
+ readonly "conv.access": {
1629
+ params: z.ZodObject<{
1630
+ limit: z.ZodOptional<z.ZodNumber>;
1631
+ cursor: z.ZodOptional<z.ZodString>;
1632
+ key: z.ZodString;
1633
+ cid: z.ZodOptional<z.ZodString>;
1634
+ }, z.core.$strict>;
1635
+ result: z.ZodObject<{
1636
+ conversations: z.ZodArray<z.ZodObject<{
1637
+ conv: z.ZodObject<{
1638
+ cid: z.ZodString;
1639
+ kind: z.ZodEnum<{
1640
+ self: "self";
1641
+ channel: "channel";
1642
+ group: "group";
1643
+ dm: "dm";
1644
+ }>;
1645
+ visibility: z.ZodOptional<z.ZodEnum<{
1646
+ public: "public";
1647
+ private: "private";
1648
+ }>>;
1649
+ history: z.ZodEnum<{
1650
+ none: "none";
1651
+ shared: "shared";
1652
+ }>;
1653
+ retainDays: z.ZodNumber;
1654
+ agentContext: z.ZodEnum<{
1655
+ none: "none";
1656
+ members: "members";
1657
+ seats: "seats";
1658
+ }>;
1659
+ name: z.ZodOptional<z.ZodString>;
1660
+ topic: z.ZodOptional<z.ZodString>;
1661
+ purpose: z.ZodOptional<z.ZodString>;
1662
+ archived: z.ZodBoolean;
1663
+ role: z.ZodEnum<{
1664
+ admin: "admin";
1665
+ member: "member";
1666
+ owner: "owner";
1667
+ guest: "guest";
1668
+ }>;
1669
+ participants: z.ZodNumber;
1670
+ dmWith: z.ZodOptional<z.ZodObject<{
1671
+ p: z.ZodString;
1672
+ kind: z.ZodEnum<{
1673
+ person: "person";
1674
+ agent: "agent";
1675
+ }>;
1676
+ role: z.ZodEnum<{
1677
+ admin: "admin";
1678
+ member: "member";
1679
+ owner: "owner";
1680
+ guest: "guest";
1681
+ }>;
1682
+ state: z.ZodEnum<{
1683
+ member: "member";
1684
+ invited: "invited";
1685
+ }>;
1686
+ name: z.ZodString;
1687
+ handle: z.ZodOptional<z.ZodString>;
1688
+ org: z.ZodEnum<{
1689
+ other: "other";
1690
+ none: "none";
1691
+ same: "same";
1692
+ }>;
1693
+ presence: z.ZodEnum<{
1694
+ unknown: "unknown";
1695
+ away: "away";
1696
+ offline: "offline";
1697
+ online: "online";
1698
+ }>;
1699
+ agentState: z.ZodOptional<z.ZodEnum<{
1700
+ idle: "idle";
1701
+ busy: "busy";
1702
+ kept: "kept";
1703
+ }>>;
1704
+ respondTo: z.ZodOptional<z.ZodEnum<{
1705
+ self: "self";
1706
+ none: "none";
1707
+ members: "members";
1708
+ }>>;
1709
+ }, z.core.$strip>>;
1710
+ last: z.ZodOptional<z.ZodObject<{
1711
+ cid: z.ZodString;
1712
+ id: z.ZodString;
1713
+ seq: z.ZodNumber;
1714
+ at: z.ZodNumber;
1715
+ author: z.ZodObject<{
1716
+ name: z.ZodString;
1717
+ kind: z.ZodEnum<{
1718
+ person: "person";
1719
+ agent: "agent";
1720
+ }>;
1721
+ p: z.ZodString;
1722
+ }, z.core.$strip>;
1723
+ kind: z.ZodEnum<{
1724
+ task: "task";
1725
+ line: "line";
1726
+ notice: "notice";
1727
+ }>;
1728
+ text: z.ZodOptional<z.ZodString>;
1729
+ format: z.ZodOptional<z.ZodEnum<{
1730
+ plain: "plain";
1731
+ md: "md";
1732
+ }>>;
1733
+ thread: z.ZodOptional<z.ZodString>;
1734
+ broadcast: z.ZodOptional<z.ZodBoolean>;
1735
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1736
+ p: z.ZodString;
1737
+ }, z.core.$strict>, z.ZodObject<{
1738
+ all: z.ZodLiteral<"channel">;
1739
+ }, z.core.$strict>, z.ZodObject<{
1740
+ all: z.ZodLiteral<"here">;
1741
+ }, z.core.$strict>]>>>;
1742
+ mentionsMe: z.ZodBoolean;
1743
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1744
+ blob: z.ZodString;
1745
+ name: z.ZodString;
1746
+ mime: z.ZodString;
1747
+ bytes: z.ZodNumber;
1748
+ }, z.core.$strip>>>;
1749
+ edited: z.ZodOptional<z.ZodNumber>;
1750
+ deleted: z.ZodOptional<z.ZodBoolean>;
1751
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1752
+ key: z.ZodString;
1753
+ count: z.ZodNumber;
1754
+ mine: z.ZodBoolean;
1755
+ }, z.core.$strip>>>;
1756
+ pinned: z.ZodOptional<z.ZodBoolean>;
1757
+ replies: z.ZodOptional<z.ZodObject<{
1758
+ count: z.ZodNumber;
1759
+ lastAt: z.ZodNumber;
1760
+ participants: z.ZodArray<z.ZodString>;
1761
+ unread: z.ZodOptional<z.ZodNumber>;
1762
+ following: z.ZodOptional<z.ZodBoolean>;
1763
+ }, z.core.$strip>>;
1764
+ task: z.ZodOptional<z.ZodObject<{
1765
+ id: z.ZodString;
1766
+ state: z.ZodEnum<{
1767
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
1768
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
1769
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
1770
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
1771
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
1772
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
1773
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
1774
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
1775
+ }>;
1776
+ }, z.core.$strip>>;
1777
+ notice: z.ZodOptional<z.ZodObject<{
1778
+ op: z.ZodEnum<{
1779
+ role: "role";
1780
+ remove: "remove";
1781
+ accept: "accept";
1782
+ settings: "settings";
1783
+ create: "create";
1784
+ add: "add";
1785
+ join: "join";
1786
+ leave: "leave";
1787
+ seat: "seat";
1788
+ archive: "archive";
1789
+ policy: "policy";
1790
+ meta: "meta";
1791
+ }>;
1792
+ by: z.ZodObject<{
1793
+ name: z.ZodString;
1794
+ kind: z.ZodEnum<{
1795
+ person: "person";
1796
+ agent: "agent";
1797
+ }>;
1798
+ p: z.ZodString;
1799
+ }, z.core.$strip>;
1800
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1801
+ name: z.ZodString;
1802
+ kind: z.ZodEnum<{
1803
+ person: "person";
1804
+ agent: "agent";
1805
+ }>;
1806
+ p: z.ZodString;
1807
+ }, z.core.$strip>>>;
1808
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1809
+ name: "name";
1810
+ history: "history";
1811
+ purpose: "purpose";
1812
+ agentContext: "agentContext";
1813
+ bridges: "bridges";
1814
+ visibility: "visibility";
1815
+ retainDays: "retainDays";
1816
+ post: "post";
1817
+ invite: "invite";
1818
+ pins: "pins";
1819
+ topic: "topic";
1820
+ }>>>;
1821
+ }, z.core.$strip>>;
1822
+ delivery: z.ZodOptional<z.ZodEnum<{
1823
+ delivered: "delivered";
1824
+ read: "read";
1825
+ pending: "pending";
1826
+ failed: "failed";
1827
+ sent: "sent";
1828
+ }>>;
1829
+ clientId: z.ZodOptional<z.ZodString>;
1830
+ }, z.core.$strip>>;
1831
+ headSeq: z.ZodNumber;
1832
+ readUpTo: z.ZodOptional<z.ZodNumber>;
1833
+ unread: z.ZodOptional<z.ZodNumber>;
1834
+ mentions: z.ZodOptional<z.ZodNumber>;
1835
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
1836
+ notify: z.ZodOptional<z.ZodEnum<{
1837
+ none: "none";
1838
+ all: "all";
1839
+ mentions: "mentions";
1840
+ }>>;
1841
+ mutedUntil: z.ZodOptional<z.ZodNumber>;
1842
+ draft: z.ZodOptional<z.ZodString>;
1843
+ }, z.core.$strip>;
1844
+ reason: z.ZodEnum<{
1845
+ seat: "seat";
1846
+ allow: "allow";
1847
+ ask: "ask";
1848
+ }>;
1849
+ lookbackDays: z.ZodNumber;
1850
+ indexedFrom: z.ZodOptional<z.ZodNumber>;
1851
+ complete: z.ZodBoolean;
1852
+ }, z.core.$strip>>;
1853
+ cursor: z.ZodOptional<z.ZodString>;
1854
+ }, z.core.$strip>;
1855
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
1856
+ };
1857
+ readonly "conv.policy": {
1858
+ params: z.ZodObject<{
1859
+ agentContext: z.ZodEnum<{
1860
+ none: "none";
1861
+ members: "members";
1862
+ seats: "seats";
1863
+ }>;
1864
+ cid: z.ZodString;
1865
+ }, z.core.$strict>;
1866
+ result: z.ZodObject<{
1867
+ ok: z.ZodLiteral<true>;
1868
+ }, z.core.$strip>;
1869
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1870
+ };
1871
+ readonly "conv.backfill": {
1872
+ readonly params: z.ZodObject<{
1873
+ cid: z.ZodString;
1874
+ }, z.core.$strict>;
1875
+ readonly result: z.ZodObject<{
1876
+ indexedFrom: z.ZodOptional<z.ZodNumber>;
1877
+ complete: z.ZodBoolean;
1878
+ }, z.core.$strip>;
1879
+ readonly errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "invalid_state", "conv_conflict", "stale_epoch", "relay_unavailable", "rate_limited", "duplicate", "secret_refused", "refused", "declined", "request_required", "loop_guard", "unknown_device", "binding_invalid"];
1880
+ };
1881
+ readonly "conv.sync": {
1882
+ params: z.ZodObject<{
1883
+ key: z.ZodOptional<z.ZodString>;
1884
+ after: z.ZodOptional<z.ZodNumber>;
1885
+ waitMs: z.ZodOptional<z.ZodNumber>;
1886
+ limit: z.ZodOptional<z.ZodNumber>;
1887
+ }, z.core.$strict>;
1888
+ result: z.ZodObject<{
1889
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1890
+ type: z.ZodLiteral<"event">;
1891
+ pos: z.ZodNumber;
1892
+ event: z.ZodObject<{
1893
+ cid: z.ZodString;
1894
+ id: z.ZodString;
1895
+ seq: z.ZodNumber;
1896
+ at: z.ZodNumber;
1897
+ author: z.ZodObject<{
1898
+ name: z.ZodString;
1899
+ kind: z.ZodEnum<{
1900
+ person: "person";
1901
+ agent: "agent";
1902
+ }>;
1903
+ p: z.ZodString;
1904
+ }, z.core.$strip>;
1905
+ kind: z.ZodEnum<{
1906
+ task: "task";
1907
+ line: "line";
1908
+ notice: "notice";
1909
+ }>;
1910
+ text: z.ZodOptional<z.ZodString>;
1911
+ format: z.ZodOptional<z.ZodEnum<{
1912
+ plain: "plain";
1913
+ md: "md";
1914
+ }>>;
1915
+ thread: z.ZodOptional<z.ZodString>;
1916
+ broadcast: z.ZodOptional<z.ZodBoolean>;
1917
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1918
+ p: z.ZodString;
1919
+ }, z.core.$strict>, z.ZodObject<{
1920
+ all: z.ZodLiteral<"channel">;
1921
+ }, z.core.$strict>, z.ZodObject<{
1922
+ all: z.ZodLiteral<"here">;
1923
+ }, z.core.$strict>]>>>;
1924
+ mentionsMe: z.ZodBoolean;
1925
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1926
+ blob: z.ZodString;
1927
+ name: z.ZodString;
1928
+ mime: z.ZodString;
1929
+ bytes: z.ZodNumber;
1930
+ }, z.core.$strip>>>;
1931
+ edited: z.ZodOptional<z.ZodNumber>;
1932
+ deleted: z.ZodOptional<z.ZodBoolean>;
1933
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1934
+ key: z.ZodString;
1935
+ count: z.ZodNumber;
1936
+ mine: z.ZodBoolean;
1937
+ }, z.core.$strip>>>;
1938
+ pinned: z.ZodOptional<z.ZodBoolean>;
1939
+ replies: z.ZodOptional<z.ZodObject<{
1940
+ count: z.ZodNumber;
1941
+ lastAt: z.ZodNumber;
1942
+ participants: z.ZodArray<z.ZodString>;
1943
+ unread: z.ZodOptional<z.ZodNumber>;
1944
+ following: z.ZodOptional<z.ZodBoolean>;
1945
+ }, z.core.$strip>>;
1946
+ task: z.ZodOptional<z.ZodObject<{
1947
+ id: z.ZodString;
1948
+ state: z.ZodEnum<{
1949
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
1950
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
1951
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
1952
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
1953
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
1954
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
1955
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
1956
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
1957
+ }>;
1958
+ }, z.core.$strip>>;
1959
+ notice: z.ZodOptional<z.ZodObject<{
1960
+ op: z.ZodEnum<{
1961
+ role: "role";
1962
+ remove: "remove";
1963
+ accept: "accept";
1964
+ settings: "settings";
1965
+ create: "create";
1966
+ add: "add";
1967
+ join: "join";
1968
+ leave: "leave";
1969
+ seat: "seat";
1970
+ archive: "archive";
1971
+ policy: "policy";
1972
+ meta: "meta";
1973
+ }>;
1974
+ by: z.ZodObject<{
1975
+ name: z.ZodString;
1976
+ kind: z.ZodEnum<{
1977
+ person: "person";
1978
+ agent: "agent";
1979
+ }>;
1980
+ p: z.ZodString;
1981
+ }, z.core.$strip>;
1982
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1983
+ name: z.ZodString;
1984
+ kind: z.ZodEnum<{
1985
+ person: "person";
1986
+ agent: "agent";
1987
+ }>;
1988
+ p: z.ZodString;
1989
+ }, z.core.$strip>>>;
1990
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1991
+ name: "name";
1992
+ history: "history";
1993
+ purpose: "purpose";
1994
+ agentContext: "agentContext";
1995
+ bridges: "bridges";
1996
+ visibility: "visibility";
1997
+ retainDays: "retainDays";
1998
+ post: "post";
1999
+ invite: "invite";
2000
+ pins: "pins";
2001
+ topic: "topic";
2002
+ }>>>;
2003
+ }, z.core.$strip>>;
2004
+ delivery: z.ZodOptional<z.ZodEnum<{
2005
+ delivered: "delivered";
2006
+ read: "read";
2007
+ pending: "pending";
2008
+ failed: "failed";
2009
+ sent: "sent";
2010
+ }>>;
2011
+ clientId: z.ZodOptional<z.ZodString>;
2012
+ }, z.core.$strip>;
2013
+ }, z.core.$strip>, z.ZodObject<{
2014
+ type: z.ZodLiteral<"event.update">;
2015
+ pos: z.ZodNumber;
2016
+ cid: z.ZodString;
2017
+ id: z.ZodString;
2018
+ change: z.ZodEnum<{
2019
+ task: "task";
2020
+ edit: "edit";
2021
+ delete: "delete";
2022
+ react: "react";
2023
+ pin: "pin";
2024
+ replies: "replies";
2025
+ delivery: "delivery";
2026
+ }>;
2027
+ event: z.ZodObject<{
2028
+ cid: z.ZodString;
2029
+ id: z.ZodString;
2030
+ seq: z.ZodNumber;
2031
+ at: z.ZodNumber;
2032
+ author: z.ZodObject<{
2033
+ name: z.ZodString;
2034
+ kind: z.ZodEnum<{
2035
+ person: "person";
2036
+ agent: "agent";
2037
+ }>;
2038
+ p: z.ZodString;
2039
+ }, z.core.$strip>;
2040
+ kind: z.ZodEnum<{
2041
+ task: "task";
2042
+ line: "line";
2043
+ notice: "notice";
2044
+ }>;
2045
+ text: z.ZodOptional<z.ZodString>;
2046
+ format: z.ZodOptional<z.ZodEnum<{
2047
+ plain: "plain";
2048
+ md: "md";
2049
+ }>>;
2050
+ thread: z.ZodOptional<z.ZodString>;
2051
+ broadcast: z.ZodOptional<z.ZodBoolean>;
2052
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2053
+ p: z.ZodString;
2054
+ }, z.core.$strict>, z.ZodObject<{
2055
+ all: z.ZodLiteral<"channel">;
2056
+ }, z.core.$strict>, z.ZodObject<{
2057
+ all: z.ZodLiteral<"here">;
2058
+ }, z.core.$strict>]>>>;
2059
+ mentionsMe: z.ZodBoolean;
2060
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
2061
+ blob: z.ZodString;
2062
+ name: z.ZodString;
2063
+ mime: z.ZodString;
2064
+ bytes: z.ZodNumber;
2065
+ }, z.core.$strip>>>;
2066
+ edited: z.ZodOptional<z.ZodNumber>;
2067
+ deleted: z.ZodOptional<z.ZodBoolean>;
2068
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2069
+ key: z.ZodString;
2070
+ count: z.ZodNumber;
2071
+ mine: z.ZodBoolean;
2072
+ }, z.core.$strip>>>;
2073
+ pinned: z.ZodOptional<z.ZodBoolean>;
2074
+ replies: z.ZodOptional<z.ZodObject<{
2075
+ count: z.ZodNumber;
2076
+ lastAt: z.ZodNumber;
2077
+ participants: z.ZodArray<z.ZodString>;
2078
+ unread: z.ZodOptional<z.ZodNumber>;
2079
+ following: z.ZodOptional<z.ZodBoolean>;
2080
+ }, z.core.$strip>>;
2081
+ task: z.ZodOptional<z.ZodObject<{
2082
+ id: z.ZodString;
2083
+ state: z.ZodEnum<{
2084
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
2085
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
2086
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
2087
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
2088
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
2089
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
2090
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
2091
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
2092
+ }>;
2093
+ }, z.core.$strip>>;
2094
+ notice: z.ZodOptional<z.ZodObject<{
2095
+ op: z.ZodEnum<{
2096
+ role: "role";
2097
+ remove: "remove";
2098
+ accept: "accept";
2099
+ settings: "settings";
2100
+ create: "create";
2101
+ add: "add";
2102
+ join: "join";
2103
+ leave: "leave";
2104
+ seat: "seat";
2105
+ archive: "archive";
2106
+ policy: "policy";
2107
+ meta: "meta";
2108
+ }>;
2109
+ by: z.ZodObject<{
2110
+ name: z.ZodString;
2111
+ kind: z.ZodEnum<{
2112
+ person: "person";
2113
+ agent: "agent";
2114
+ }>;
2115
+ p: z.ZodString;
2116
+ }, z.core.$strip>;
2117
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2118
+ name: z.ZodString;
2119
+ kind: z.ZodEnum<{
2120
+ person: "person";
2121
+ agent: "agent";
2122
+ }>;
2123
+ p: z.ZodString;
2124
+ }, z.core.$strip>>>;
2125
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2126
+ name: "name";
2127
+ history: "history";
2128
+ purpose: "purpose";
2129
+ agentContext: "agentContext";
2130
+ bridges: "bridges";
2131
+ visibility: "visibility";
2132
+ retainDays: "retainDays";
2133
+ post: "post";
2134
+ invite: "invite";
2135
+ pins: "pins";
2136
+ topic: "topic";
2137
+ }>>>;
2138
+ }, z.core.$strip>>;
2139
+ delivery: z.ZodOptional<z.ZodEnum<{
2140
+ delivered: "delivered";
2141
+ read: "read";
2142
+ pending: "pending";
2143
+ failed: "failed";
2144
+ sent: "sent";
2145
+ }>>;
2146
+ clientId: z.ZodOptional<z.ZodString>;
2147
+ }, z.core.$strip>;
2148
+ }, z.core.$strip>, z.ZodObject<{
2149
+ type: z.ZodLiteral<"conv">;
2150
+ pos: z.ZodNumber;
2151
+ conv: z.ZodObject<{
2152
+ cid: z.ZodString;
2153
+ kind: z.ZodEnum<{
2154
+ self: "self";
2155
+ channel: "channel";
2156
+ group: "group";
2157
+ dm: "dm";
2158
+ }>;
2159
+ visibility: z.ZodOptional<z.ZodEnum<{
2160
+ public: "public";
2161
+ private: "private";
2162
+ }>>;
2163
+ history: z.ZodEnum<{
2164
+ none: "none";
2165
+ shared: "shared";
2166
+ }>;
2167
+ retainDays: z.ZodNumber;
2168
+ agentContext: z.ZodEnum<{
2169
+ none: "none";
2170
+ members: "members";
2171
+ seats: "seats";
2172
+ }>;
2173
+ name: z.ZodOptional<z.ZodString>;
2174
+ topic: z.ZodOptional<z.ZodString>;
2175
+ purpose: z.ZodOptional<z.ZodString>;
2176
+ archived: z.ZodBoolean;
2177
+ role: z.ZodEnum<{
2178
+ admin: "admin";
2179
+ member: "member";
2180
+ owner: "owner";
2181
+ guest: "guest";
2182
+ }>;
2183
+ participants: z.ZodNumber;
2184
+ dmWith: z.ZodOptional<z.ZodObject<{
2185
+ p: z.ZodString;
2186
+ kind: z.ZodEnum<{
2187
+ person: "person";
2188
+ agent: "agent";
2189
+ }>;
2190
+ role: z.ZodEnum<{
2191
+ admin: "admin";
2192
+ member: "member";
2193
+ owner: "owner";
2194
+ guest: "guest";
2195
+ }>;
2196
+ state: z.ZodEnum<{
2197
+ member: "member";
2198
+ invited: "invited";
2199
+ }>;
2200
+ name: z.ZodString;
2201
+ handle: z.ZodOptional<z.ZodString>;
2202
+ org: z.ZodEnum<{
2203
+ other: "other";
2204
+ none: "none";
2205
+ same: "same";
2206
+ }>;
2207
+ presence: z.ZodEnum<{
2208
+ unknown: "unknown";
2209
+ away: "away";
2210
+ offline: "offline";
2211
+ online: "online";
2212
+ }>;
2213
+ agentState: z.ZodOptional<z.ZodEnum<{
2214
+ idle: "idle";
2215
+ busy: "busy";
2216
+ kept: "kept";
2217
+ }>>;
2218
+ respondTo: z.ZodOptional<z.ZodEnum<{
2219
+ self: "self";
2220
+ none: "none";
2221
+ members: "members";
2222
+ }>>;
2223
+ }, z.core.$strip>>;
2224
+ last: z.ZodOptional<z.ZodObject<{
2225
+ cid: z.ZodString;
2226
+ id: z.ZodString;
2227
+ seq: z.ZodNumber;
2228
+ at: z.ZodNumber;
2229
+ author: z.ZodObject<{
2230
+ name: z.ZodString;
2231
+ kind: z.ZodEnum<{
2232
+ person: "person";
2233
+ agent: "agent";
2234
+ }>;
2235
+ p: z.ZodString;
2236
+ }, z.core.$strip>;
2237
+ kind: z.ZodEnum<{
2238
+ task: "task";
2239
+ line: "line";
2240
+ notice: "notice";
2241
+ }>;
2242
+ text: z.ZodOptional<z.ZodString>;
2243
+ format: z.ZodOptional<z.ZodEnum<{
2244
+ plain: "plain";
2245
+ md: "md";
2246
+ }>>;
2247
+ thread: z.ZodOptional<z.ZodString>;
2248
+ broadcast: z.ZodOptional<z.ZodBoolean>;
2249
+ mentions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2250
+ p: z.ZodString;
2251
+ }, z.core.$strict>, z.ZodObject<{
2252
+ all: z.ZodLiteral<"channel">;
2253
+ }, z.core.$strict>, z.ZodObject<{
2254
+ all: z.ZodLiteral<"here">;
2255
+ }, z.core.$strict>]>>>;
2256
+ mentionsMe: z.ZodBoolean;
2257
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
2258
+ blob: z.ZodString;
2259
+ name: z.ZodString;
2260
+ mime: z.ZodString;
2261
+ bytes: z.ZodNumber;
2262
+ }, z.core.$strip>>>;
2263
+ edited: z.ZodOptional<z.ZodNumber>;
2264
+ deleted: z.ZodOptional<z.ZodBoolean>;
2265
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2266
+ key: z.ZodString;
2267
+ count: z.ZodNumber;
2268
+ mine: z.ZodBoolean;
2269
+ }, z.core.$strip>>>;
2270
+ pinned: z.ZodOptional<z.ZodBoolean>;
2271
+ replies: z.ZodOptional<z.ZodObject<{
2272
+ count: z.ZodNumber;
2273
+ lastAt: z.ZodNumber;
2274
+ participants: z.ZodArray<z.ZodString>;
2275
+ unread: z.ZodOptional<z.ZodNumber>;
2276
+ following: z.ZodOptional<z.ZodBoolean>;
2277
+ }, z.core.$strip>>;
2278
+ task: z.ZodOptional<z.ZodObject<{
2279
+ id: z.ZodString;
2280
+ state: z.ZodEnum<{
2281
+ TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
2282
+ TASK_STATE_WORKING: "TASK_STATE_WORKING";
2283
+ TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
2284
+ TASK_STATE_FAILED: "TASK_STATE_FAILED";
2285
+ TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
2286
+ TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
2287
+ TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
2288
+ TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
2289
+ }>;
2290
+ }, z.core.$strip>>;
2291
+ notice: z.ZodOptional<z.ZodObject<{
2292
+ op: z.ZodEnum<{
2293
+ role: "role";
2294
+ remove: "remove";
2295
+ accept: "accept";
2296
+ settings: "settings";
2297
+ create: "create";
2298
+ add: "add";
2299
+ join: "join";
2300
+ leave: "leave";
2301
+ seat: "seat";
2302
+ archive: "archive";
2303
+ policy: "policy";
2304
+ meta: "meta";
2305
+ }>;
2306
+ by: z.ZodObject<{
2307
+ name: z.ZodString;
2308
+ kind: z.ZodEnum<{
2309
+ person: "person";
2310
+ agent: "agent";
2311
+ }>;
2312
+ p: z.ZodString;
2313
+ }, z.core.$strip>;
2314
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2315
+ name: z.ZodString;
2316
+ kind: z.ZodEnum<{
2317
+ person: "person";
2318
+ agent: "agent";
2319
+ }>;
2320
+ p: z.ZodString;
2321
+ }, z.core.$strip>>>;
2322
+ fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2323
+ name: "name";
2324
+ history: "history";
2325
+ purpose: "purpose";
2326
+ agentContext: "agentContext";
2327
+ bridges: "bridges";
2328
+ visibility: "visibility";
2329
+ retainDays: "retainDays";
2330
+ post: "post";
2331
+ invite: "invite";
2332
+ pins: "pins";
2333
+ topic: "topic";
2334
+ }>>>;
2335
+ }, z.core.$strip>>;
2336
+ delivery: z.ZodOptional<z.ZodEnum<{
2337
+ delivered: "delivered";
2338
+ read: "read";
2339
+ pending: "pending";
2340
+ failed: "failed";
2341
+ sent: "sent";
2342
+ }>>;
2343
+ clientId: z.ZodOptional<z.ZodString>;
2344
+ }, z.core.$strip>>;
2345
+ headSeq: z.ZodNumber;
2346
+ readUpTo: z.ZodOptional<z.ZodNumber>;
2347
+ unread: z.ZodOptional<z.ZodNumber>;
2348
+ mentions: z.ZodOptional<z.ZodNumber>;
2349
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
2350
+ notify: z.ZodOptional<z.ZodEnum<{
2351
+ none: "none";
2352
+ all: "all";
2353
+ mentions: "mentions";
2354
+ }>>;
2355
+ mutedUntil: z.ZodOptional<z.ZodNumber>;
2356
+ draft: z.ZodOptional<z.ZodString>;
2357
+ }, z.core.$strip>;
2358
+ }, z.core.$strip>, z.ZodObject<{
2359
+ type: z.ZodLiteral<"member">;
2360
+ pos: z.ZodNumber;
2361
+ cid: z.ZodString;
2362
+ participant: z.ZodObject<{
2363
+ p: z.ZodString;
2364
+ kind: z.ZodEnum<{
2365
+ person: "person";
2366
+ agent: "agent";
2367
+ }>;
2368
+ role: z.ZodEnum<{
2369
+ admin: "admin";
2370
+ member: "member";
2371
+ owner: "owner";
2372
+ guest: "guest";
2373
+ }>;
2374
+ state: z.ZodEnum<{
2375
+ member: "member";
2376
+ invited: "invited";
2377
+ }>;
2378
+ name: z.ZodString;
2379
+ handle: z.ZodOptional<z.ZodString>;
2380
+ org: z.ZodEnum<{
2381
+ other: "other";
2382
+ none: "none";
2383
+ same: "same";
2384
+ }>;
2385
+ presence: z.ZodEnum<{
2386
+ unknown: "unknown";
2387
+ away: "away";
2388
+ offline: "offline";
2389
+ online: "online";
2390
+ }>;
2391
+ agentState: z.ZodOptional<z.ZodEnum<{
2392
+ idle: "idle";
2393
+ busy: "busy";
2394
+ kept: "kept";
2395
+ }>>;
2396
+ respondTo: z.ZodOptional<z.ZodEnum<{
2397
+ self: "self";
2398
+ none: "none";
2399
+ members: "members";
2400
+ }>>;
2401
+ }, z.core.$strip>;
2402
+ change: z.ZodEnum<{
2403
+ role: "role";
2404
+ removed: "removed";
2405
+ added: "added";
2406
+ invited: "invited";
2407
+ seat: "seat";
2408
+ presence: "presence";
2409
+ }>;
2410
+ }, z.core.$strip>, z.ZodObject<{
2411
+ type: z.ZodLiteral<"read">;
2412
+ pos: z.ZodNumber;
2413
+ cid: z.ZodString;
2414
+ readUpTo: z.ZodNumber;
2415
+ unread: z.ZodNumber;
2416
+ mentions: z.ZodNumber;
2417
+ }, z.core.$strip>, z.ZodObject<{
2418
+ type: z.ZodLiteral<"typing">;
2419
+ cid: z.ZodString;
2420
+ p: z.ZodString;
2421
+ thread: z.ZodOptional<z.ZodString>;
2422
+ until: z.ZodNumber;
2423
+ }, z.core.$strip>, z.ZodObject<{
2424
+ type: z.ZodLiteral<"activity">;
2425
+ body: z.ZodObject<{
2426
+ session: z.ZodString;
2427
+ turn: z.ZodString;
2428
+ seq: z.ZodNumber;
2429
+ source: z.ZodOptional<z.ZodObject<{
2430
+ item: z.ZodOptional<z.ZodString>;
2431
+ cid: z.ZodOptional<z.ZodString>;
2432
+ task: z.ZodOptional<z.ZodString>;
2433
+ }, z.core.$strip>>;
2434
+ kind: z.ZodEnum<{
2435
+ error: "error";
2436
+ cancelled: "cancelled";
2437
+ turn_started: "turn_started";
2438
+ step: "step";
2439
+ turn_ended: "turn_ended";
2440
+ }>;
2441
+ summary: z.ZodOptional<z.ZodString>;
2442
+ }, z.core.$strip>;
2443
+ }, z.core.$strip>, z.ZodObject<{
2444
+ type: z.ZodLiteral<"gap">;
2445
+ pos: z.ZodNumber;
2446
+ }, z.core.$strip>], "type">>;
2447
+ pos: z.ZodNumber;
2448
+ }, z.core.$strip>;
2449
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
2450
+ };
2451
+ readonly "people.get": {
2452
+ params: z.ZodObject<{
2453
+ people: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2454
+ }, z.core.$strict>;
2455
+ result: z.ZodObject<{
2456
+ people: z.ZodArray<z.ZodObject<{
2457
+ person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2458
+ name: z.ZodString;
2459
+ handle: z.ZodString;
2460
+ org: z.ZodEnum<{
2461
+ other: "other";
2462
+ none: "none";
2463
+ same: "same";
2464
+ }>;
2465
+ vouched: z.ZodEnum<{
2466
+ admin: "admin";
2467
+ device: "device";
2468
+ jelly: "jelly";
2469
+ service: "service";
2470
+ }>;
2471
+ }, z.core.$strip>>;
2472
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2473
+ }, z.core.$strip>;
2474
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
2475
+ };
2476
+ readonly "sessions.list": {
2477
+ params: z.ZodObject<{}, z.core.$strict>;
2478
+ result: z.ZodObject<{
2479
+ sessions: z.ZodArray<z.ZodObject<{
2480
+ agent: z.ZodString;
2481
+ state: z.ZodEnum<{
2482
+ idle: "idle";
2483
+ busy: "busy";
2484
+ kept: "kept";
2485
+ }>;
2486
+ seats: z.ZodArray<z.ZodString>;
2487
+ }, z.core.$strip>>;
2488
+ }, z.core.$strip>;
2489
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
2490
+ };
2491
+ readonly "request.waiting": {
2492
+ params: z.ZodObject<{
2493
+ limit: z.ZodOptional<z.ZodNumber>;
2494
+ cursor: z.ZodOptional<z.ZodString>;
2495
+ }, z.core.$strict>;
2496
+ result: z.ZodObject<{
2497
+ items: z.ZodArray<z.ZodObject<{
2498
+ id: z.ZodString;
2499
+ kind: z.ZodEnum<{
2500
+ message: "message";
2501
+ task: "task";
2502
+ contact: "contact";
2503
+ }>;
2504
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2505
+ name: z.ZodString;
2506
+ at: z.ZodNumber;
2507
+ cid: z.ZodOptional<z.ZodString>;
2508
+ agent: z.ZodOptional<z.ZodString>;
2509
+ state: z.ZodEnum<{
2510
+ held: "held";
2511
+ "pending-delivery": "pending-delivery";
2512
+ }>;
2513
+ }, z.core.$strip>>;
2514
+ cursor: z.ZodOptional<z.ZodString>;
2515
+ }, z.core.$strip>;
2516
+ errors: readonly ["invalid_request", "forbidden", "not_found", "too_large", "internal", "no_identity", "unknown_session", "grant_required", "grant_invalid", "directory_unavailable", "directory_inconsistent", "relay_unavailable"];
2517
+ };
147
2518
  readonly "contacts.list": {
148
2519
  readonly params: z.ZodObject<{
149
2520
  person: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
@@ -173,151 +2544,42 @@ export declare const IPC_METHODS: {
173
2544
  self: z.ZodBoolean;
174
2545
  expect: z.ZodOptional<z.ZodEnum<{
175
2546
  kept: "kept";
176
- next_turn: "next_turn";
177
2547
  wake: "wake";
2548
+ next_turn: "next_turn";
178
2549
  next_prompt: "next_prompt";
179
2550
  on_read: "on_read";
180
2551
  offline: "offline";
181
2552
  }>>;
182
2553
  }, z.core.$strip>>;
183
2554
  conversations: z.ZodArray<z.ZodObject<{
184
- conversation: z.ZodString;
2555
+ cid: z.ZodString;
185
2556
  kind: z.ZodEnum<{
2557
+ self: "self";
186
2558
  channel: "channel";
2559
+ group: "group";
187
2560
  dm: "dm";
188
2561
  }>;
189
- lastAt: z.ZodOptional<z.ZodNumber>;
190
2562
  name: z.ZodOptional<z.ZodString>;
191
- lastSeq: z.ZodOptional<z.ZodNumber>;
192
- readUpTo: z.ZodNumber;
193
- unread: z.ZodNumber;
194
- }, z.core.$strip>>;
195
- reach: z.ZodArray<z.ZodObject<{
196
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
197
- can: z.ZodObject<{
198
- chat: z.ZodBoolean;
199
- agentMail: z.ZodBoolean;
200
- ask: z.ZodEnum<{
201
- open: "open";
202
- request: "request";
203
- no: "no";
204
- }>;
205
- trustedUntil: z.ZodOptional<z.ZodNumber>;
206
- }, z.core.$strict>;
207
- source: z.ZodEnum<{
208
- default: "default";
209
- card: "card";
210
- }>;
211
- at: z.ZodOptional<z.ZodNumber>;
212
- devicesChangedAt: z.ZodOptional<z.ZodNumber>;
213
- }, z.core.$strip>>;
214
- }, z.core.$strip>;
215
- };
216
- readonly "msg.send": {
217
- readonly params: z.ZodObject<{
218
- key: z.ZodString;
219
- to: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
220
- kind: z.ZodEnum<{
221
- message: "message";
222
- task: "task";
223
- }>;
224
- parts: z.ZodArray<z.ZodObject<{
225
- text: z.ZodOptional<z.ZodString>;
226
- raw: z.ZodOptional<z.ZodString>;
227
- url: z.ZodOptional<z.ZodString>;
228
- data: z.ZodOptional<z.ZodUnknown>;
229
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
230
- filename: z.ZodOptional<z.ZodString>;
231
- mediaType: z.ZodOptional<z.ZodString>;
232
- }, z.core.$strip>>;
233
- contextId: z.ZodOptional<z.ZodString>;
234
- taskId: z.ZodOptional<z.ZodString>;
235
- replyTo: z.ZodOptional<z.ZodString>;
236
- idempotencyKey: z.ZodOptional<z.ZodString>;
237
- messageId: z.ZodOptional<z.ZodString>;
238
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
239
- extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
240
- referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
- wake: z.ZodOptional<z.ZodBoolean>;
242
- request: z.ZodOptional<z.ZodObject<{
243
- contact: z.ZodString;
244
- }, z.core.$strict>>;
245
- onBehalfOf: z.ZodOptional<z.ZodObject<{
246
- taskId: z.ZodString;
247
- scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
248
- maxDepth: z.ZodOptional<z.ZodNumber>;
2563
+ dmWith: z.ZodOptional<z.ZodString>;
249
2564
  }, z.core.$strict>>;
250
- }, z.core.$strict>;
251
- readonly result: z.ZodObject<{
252
- results: z.ZodArray<z.ZodObject<{
253
- to: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
254
- envelopeId: z.ZodString;
255
- messageId: z.ZodString;
256
- taskId: z.ZodOptional<z.ZodString>;
257
- contextId: z.ZodString;
258
- stage: z.ZodEnum<{
259
- accepted: "accepted";
260
- relayed: "relayed";
261
- delivered: "delivered";
262
- held: "held";
263
- handed_to_agent: "handed_to_agent";
264
- read: "read";
265
- replied: "replied";
266
- rejected: "rejected";
267
- expired: "expired";
268
- }>;
269
- code: z.ZodOptional<z.ZodEnum<{
270
- expired: "expired";
271
- invalid_request: "invalid_request";
272
- not_member: "not_member";
273
- bad_signature: "bad_signature";
274
- unknown_session: "unknown_session";
275
- ambiguous_address: "ambiguous_address";
276
- no_recipients: "no_recipients";
277
- unknown_address: "unknown_address";
278
- refused: "refused";
279
- declined: "declined";
280
- request_required: "request_required";
281
- rate_limited: "rate_limited";
282
- loop_guard: "loop_guard";
283
- too_large: "too_large";
284
- secret_refused: "secret_refused";
285
- duplicate: "duplicate";
286
- relay_unavailable: "relay_unavailable";
287
- not_found: "not_found";
288
- invalid_state: "invalid_state";
289
- forbidden: "forbidden";
290
- guarded_turn: "guarded_turn";
291
- roster_conflict: "roster_conflict";
292
- invite_invalid: "invite_invalid";
293
- no_identity: "no_identity";
294
- binding_invalid: "binding_invalid";
295
- jelly_unavailable: "jelly_unavailable";
296
- log_conflict: "log_conflict";
297
- device_limit: "device_limit";
298
- admission_required: "admission_required";
299
- admission_invalid: "admission_invalid";
300
- directory_inconsistent: "directory_inconsistent";
301
- unknown_device: "unknown_device";
302
- directory_unavailable: "directory_unavailable";
303
- login_unsupported: "login_unsupported";
304
- login_denied: "login_denied";
305
- grant_required: "grant_required";
306
- grant_invalid: "grant_invalid";
307
- ticket_required: "ticket_required";
308
- ticket_invalid: "ticket_invalid";
309
- daemon_unavailable: "daemon_unavailable";
310
- daemon_mismatch: "daemon_mismatch";
311
- internal: "internal";
312
- }>>;
313
- expect: z.ZodOptional<z.ZodEnum<{
314
- kept: "kept";
315
- next_turn: "next_turn";
316
- wake: "wake";
317
- next_prompt: "next_prompt";
318
- on_read: "on_read";
319
- offline: "offline";
320
- }>>;
2565
+ reach: z.ZodArray<z.ZodObject<{
2566
+ person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2567
+ can: z.ZodObject<{
2568
+ chat: z.ZodBoolean;
2569
+ agentMail: z.ZodBoolean;
2570
+ ask: z.ZodEnum<{
2571
+ request: "request";
2572
+ open: "open";
2573
+ no: "no";
2574
+ }>;
2575
+ trustedUntil: z.ZodOptional<z.ZodNumber>;
2576
+ }, z.core.$strict>;
2577
+ source: z.ZodEnum<{
2578
+ default: "default";
2579
+ card: "card";
2580
+ }>;
2581
+ at: z.ZodOptional<z.ZodNumber>;
2582
+ devicesChangedAt: z.ZodOptional<z.ZodNumber>;
321
2583
  }, z.core.$strip>>;
322
2584
  }, z.core.$strip>;
323
2585
  };
@@ -325,6 +2587,7 @@ export declare const IPC_METHODS: {
325
2587
  readonly params: z.ZodObject<{
326
2588
  key: z.ZodString;
327
2589
  id: z.ZodString;
2590
+ cid: z.ZodOptional<z.ZodString>;
328
2591
  }, z.core.$strict>;
329
2592
  readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
330
2593
  kind: z.ZodLiteral<"received">;
@@ -332,12 +2595,14 @@ export declare const IPC_METHODS: {
332
2595
  id: z.ZodString;
333
2596
  key: z.ZodString;
334
2597
  from: z.ZodObject<{
335
- address: z.ZodString;
336
2598
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
337
2599
  agent: z.ZodOptional<z.ZodString>;
338
- device: z.ZodString;
339
- label: z.ZodString;
2600
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2601
+ device: z.ZodOptional<z.ZodString>;
2602
+ label: z.ZodOptional<z.ZodString>;
340
2603
  }, z.core.$strip>;
2604
+ cid: z.ZodOptional<z.ZodString>;
2605
+ eventId: z.ZodOptional<z.ZodString>;
341
2606
  kind: z.ZodEnum<{
342
2607
  message: "message";
343
2608
  task: "task";
@@ -392,7 +2657,7 @@ export declare const IPC_METHODS: {
392
2657
  }, z.core.$strip>, z.ZodObject<{
393
2658
  kind: z.ZodLiteral<"sent">;
394
2659
  envelopeId: z.ZodString;
395
- to: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
2660
+ to: z.ZodString;
396
2661
  stage: z.ZodEnum<{
397
2662
  accepted: "accepted";
398
2663
  relayed: "relayed";
@@ -429,6 +2694,7 @@ export declare const IPC_METHODS: {
429
2694
  refused: "refused";
430
2695
  declined: "declined";
431
2696
  request_required: "request_required";
2697
+ peer_outdated: "peer_outdated";
432
2698
  rate_limited: "rate_limited";
433
2699
  loop_guard: "loop_guard";
434
2700
  too_large: "too_large";
@@ -445,6 +2711,8 @@ export declare const IPC_METHODS: {
445
2711
  binding_invalid: "binding_invalid";
446
2712
  jelly_unavailable: "jelly_unavailable";
447
2713
  log_conflict: "log_conflict";
2714
+ conv_conflict: "conv_conflict";
2715
+ stale_epoch: "stale_epoch";
448
2716
  device_limit: "device_limit";
449
2717
  admission_required: "admission_required";
450
2718
  admission_invalid: "admission_invalid";
@@ -459,177 +2727,13 @@ export declare const IPC_METHODS: {
459
2727
  ticket_invalid: "ticket_invalid";
460
2728
  daemon_unavailable: "daemon_unavailable";
461
2729
  daemon_mismatch: "daemon_mismatch";
2730
+ store_refused: "store_refused";
462
2731
  internal: "internal";
463
2732
  }>>;
464
2733
  note: z.ZodOptional<z.ZodString>;
465
2734
  }, z.core.$strip>>;
466
2735
  }, z.core.$strip>], "kind">;
467
2736
  };
468
- readonly "conv.read": {
469
- readonly params: z.ZodObject<{
470
- key: z.ZodOptional<z.ZodString>;
471
- conversation: z.ZodString;
472
- thread: z.ZodOptional<z.ZodString>;
473
- before: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
474
- at: z.ZodNumber;
475
- id: z.ZodString;
476
- }, z.core.$strict>]>>;
477
- after: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
478
- at: z.ZodNumber;
479
- id: z.ZodString;
480
- }, z.core.$strict>]>>;
481
- limit: z.ZodOptional<z.ZodNumber>;
482
- }, z.core.$strict>;
483
- readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
- kind: z.ZodLiteral<"lines">;
485
- lines: z.ZodArray<z.ZodObject<{
486
- id: z.ZodString;
487
- seq: z.ZodNumber;
488
- at: z.ZodNumber;
489
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
490
- agent: z.ZodOptional<z.ZodString>;
491
- direction: z.ZodEnum<{
492
- out: "out";
493
- in: "in";
494
- }>;
495
- body: z.ZodString;
496
- thread: z.ZodOptional<z.ZodString>;
497
- state: z.ZodOptional<z.ZodEnum<{
498
- delivered: "delivered";
499
- held: "held";
500
- refused: "refused";
501
- sent: "sent";
502
- }>>;
503
- refused: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
504
- notice: z.ZodOptional<z.ZodLiteral<true>>;
505
- }, z.core.$strip>>;
506
- more: z.ZodBoolean;
507
- }, z.core.$strip>, z.ZodObject<{
508
- kind: z.ZodLiteral<"agent">;
509
- entries: z.ZodArray<z.ZodObject<{
510
- id: z.ZodString;
511
- kind: z.ZodEnum<{
512
- task: "task";
513
- mail: "mail";
514
- }>;
515
- direction: z.ZodEnum<{
516
- out: "out";
517
- in: "in";
518
- }>;
519
- peer: z.ZodString;
520
- at: z.ZodNumber;
521
- text: z.ZodOptional<z.ZodString>;
522
- taskId: z.ZodOptional<z.ZodString>;
523
- stage: z.ZodOptional<z.ZodEnum<{
524
- accepted: "accepted";
525
- relayed: "relayed";
526
- delivered: "delivered";
527
- held: "held";
528
- handed_to_agent: "handed_to_agent";
529
- read: "read";
530
- replied: "replied";
531
- rejected: "rejected";
532
- expired: "expired";
533
- }>>;
534
- role: z.ZodOptional<z.ZodEnum<{
535
- requester: "requester";
536
- executor: "executor";
537
- }>>;
538
- state: z.ZodOptional<z.ZodEnum<{
539
- TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
540
- TASK_STATE_WORKING: "TASK_STATE_WORKING";
541
- TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
542
- TASK_STATE_FAILED: "TASK_STATE_FAILED";
543
- TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
544
- TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
545
- TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
546
- TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
547
- }>>;
548
- }, z.core.$strip>>;
549
- more: z.ZodBoolean;
550
- }, z.core.$strip>], "kind">;
551
- };
552
- readonly search: {
553
- readonly params: z.ZodObject<{
554
- query: z.ZodString;
555
- conversation: z.ZodOptional<z.ZodString>;
556
- limit: z.ZodOptional<z.ZodNumber>;
557
- }, z.core.$strict>;
558
- readonly result: z.ZodObject<{
559
- hits: z.ZodArray<z.ZodObject<{
560
- id: z.ZodString;
561
- seq: z.ZodNumber;
562
- at: z.ZodNumber;
563
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
564
- agent: z.ZodOptional<z.ZodString>;
565
- direction: z.ZodEnum<{
566
- out: "out";
567
- in: "in";
568
- }>;
569
- body: z.ZodString;
570
- thread: z.ZodOptional<z.ZodString>;
571
- state: z.ZodOptional<z.ZodEnum<{
572
- delivered: "delivered";
573
- held: "held";
574
- refused: "refused";
575
- sent: "sent";
576
- }>>;
577
- refused: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
578
- notice: z.ZodOptional<z.ZodLiteral<true>>;
579
- conversation: z.ZodString;
580
- }, z.core.$strip>>;
581
- }, z.core.$strip>;
582
- };
583
- readonly "conv.list": {
584
- readonly params: z.ZodObject<{
585
- limit: z.ZodOptional<z.ZodNumber>;
586
- }, z.core.$strict>;
587
- readonly result: z.ZodObject<{
588
- conversations: z.ZodArray<z.ZodObject<{
589
- conversation: z.ZodString;
590
- kind: z.ZodEnum<{
591
- channel: "channel";
592
- dm: "dm";
593
- }>;
594
- lastAt: z.ZodOptional<z.ZodNumber>;
595
- name: z.ZodOptional<z.ZodString>;
596
- lastSeq: z.ZodOptional<z.ZodNumber>;
597
- readUpTo: z.ZodNumber;
598
- unread: z.ZodNumber;
599
- }, z.core.$strip>>;
600
- }, z.core.$strip>;
601
- };
602
- readonly "conv.markRead": {
603
- readonly params: z.ZodObject<{
604
- conversation: z.ZodString;
605
- upTo: z.ZodNumber;
606
- }, z.core.$strict>;
607
- readonly result: z.ZodObject<{
608
- readUpTo: z.ZodNumber;
609
- unread: z.ZodNumber;
610
- }, z.core.$strip>;
611
- };
612
- readonly "conv.subscribe": {
613
- readonly params: z.ZodObject<{
614
- since: z.ZodOptional<z.ZodNumber>;
615
- }, z.core.$strict>;
616
- readonly result: z.ZodObject<{
617
- seq: z.ZodNumber;
618
- gap: z.ZodBoolean;
619
- }, z.core.$strip>;
620
- };
621
- readonly "person.send": {
622
- readonly params: z.ZodObject<{
623
- conversation: z.ZodString;
624
- text: z.ZodString;
625
- thread: z.ZodOptional<z.ZodString>;
626
- clientId: z.ZodOptional<z.ZodString>;
627
- }, z.core.$strict>;
628
- readonly result: z.ZodObject<{
629
- id: z.ZodString;
630
- conversation: z.ZodString;
631
- }, z.core.$strip>;
632
- };
633
2737
  readonly "people.search": {
634
2738
  readonly params: z.ZodObject<{
635
2739
  query: z.ZodOptional<z.ZodString>;
@@ -654,60 +2758,6 @@ export declare const IPC_METHODS: {
654
2758
  }, z.core.$strip>>;
655
2759
  }, z.core.$strip>;
656
2760
  };
657
- readonly "people.get": {
658
- readonly params: z.ZodObject<{
659
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
660
- }, z.core.$strict>;
661
- readonly result: z.ZodObject<{
662
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
663
- name: z.ZodString;
664
- handle: z.ZodString;
665
- org: z.ZodEnum<{
666
- other: "other";
667
- none: "none";
668
- same: "same";
669
- }>;
670
- vouched: z.ZodEnum<{
671
- admin: "admin";
672
- device: "device";
673
- jelly: "jelly";
674
- service: "service";
675
- }>;
676
- devices: z.ZodArray<z.ZodObject<{
677
- device: z.ZodString;
678
- label: z.ZodString;
679
- self: z.ZodBoolean;
680
- away: z.ZodOptional<z.ZodLiteral<true>>;
681
- }, z.core.$strip>>;
682
- deviceChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
683
- change: z.ZodEnum<{
684
- removed: "removed";
685
- replaced: "replaced";
686
- added: "added";
687
- vouched: "vouched";
688
- }>;
689
- device: z.ZodString;
690
- label: z.ZodString;
691
- kind: z.ZodOptional<z.ZodEnum<{
692
- "jelly-host": "jelly-host";
693
- laptop: "laptop";
694
- server: "server";
695
- other: "other";
696
- }>>;
697
- vouch: z.ZodEnum<{
698
- admin: "admin";
699
- device: "device";
700
- jelly: "jelly";
701
- }>;
702
- via: z.ZodOptional<z.ZodEnum<{
703
- host: "host";
704
- browser: "browser";
705
- }>>;
706
- approver: z.ZodOptional<z.ZodString>;
707
- at: z.ZodNumber;
708
- }, z.core.$strip>>>;
709
- }, z.core.$strip>;
710
- };
711
2761
  readonly "daemon.health": {
712
2762
  readonly params: z.ZodObject<{}, z.core.$strict>;
713
2763
  readonly result: z.ZodObject<{
@@ -724,96 +2774,17 @@ export declare const IPC_METHODS: {
724
2774
  directory: z.ZodEnum<{
725
2775
  alarm: "alarm";
726
2776
  ok: "ok";
727
- unavailable: "unavailable";
728
- }>;
729
- alarm: z.ZodNullable<z.ZodEnum<{
730
- directory: "directory";
731
- restored: "restored";
732
- keys_missing: "keys_missing";
733
- }>>;
734
- busy: z.ZodBoolean;
735
- version: z.ZodString;
736
- storeSchema: z.ZodNumber;
737
- }, z.core.$strip>;
738
- };
739
- readonly "agents.list": {
740
- readonly params: z.ZodObject<{}, z.core.$strict>;
741
- readonly result: z.ZodObject<{
742
- agents: z.ZodArray<z.ZodObject<{
743
- agent: z.ZodString;
744
- conversations: z.ZodNumber;
745
- unread: z.ZodNumber;
746
- lastAt: z.ZodOptional<z.ZodNumber>;
747
- state: z.ZodEnum<{
748
- idle: "idle";
749
- busy: "busy";
750
- kept: "kept";
751
- }>;
752
- }, z.core.$strip>>;
753
- }, z.core.$strip>;
754
- };
755
- readonly "agents.read": {
756
- readonly params: z.ZodObject<{
757
- agent: z.ZodString;
758
- conversation: z.ZodOptional<z.ZodString>;
759
- before: z.ZodOptional<z.ZodObject<{
760
- at: z.ZodNumber;
761
- id: z.ZodString;
762
- }, z.core.$strict>>;
763
- limit: z.ZodOptional<z.ZodNumber>;
764
- }, z.core.$strict>;
765
- readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
766
- kind: z.ZodLiteral<"conversations">;
767
- conversations: z.ZodArray<z.ZodObject<{
768
- conversation: z.ZodString;
769
- unread: z.ZodNumber;
770
- lastAt: z.ZodNumber;
771
- }, z.core.$strip>>;
772
- }, z.core.$strip>, z.ZodObject<{
773
- kind: z.ZodLiteral<"entries">;
774
- conversation: z.ZodString;
775
- entries: z.ZodArray<z.ZodObject<{
776
- id: z.ZodString;
777
- kind: z.ZodEnum<{
778
- task: "task";
779
- mail: "mail";
780
- }>;
781
- direction: z.ZodEnum<{
782
- out: "out";
783
- in: "in";
784
- }>;
785
- peer: z.ZodString;
786
- at: z.ZodNumber;
787
- text: z.ZodOptional<z.ZodString>;
788
- taskId: z.ZodOptional<z.ZodString>;
789
- stage: z.ZodOptional<z.ZodEnum<{
790
- accepted: "accepted";
791
- relayed: "relayed";
792
- delivered: "delivered";
793
- held: "held";
794
- handed_to_agent: "handed_to_agent";
795
- read: "read";
796
- replied: "replied";
797
- rejected: "rejected";
798
- expired: "expired";
799
- }>>;
800
- role: z.ZodOptional<z.ZodEnum<{
801
- requester: "requester";
802
- executor: "executor";
803
- }>>;
804
- state: z.ZodOptional<z.ZodEnum<{
805
- TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
806
- TASK_STATE_WORKING: "TASK_STATE_WORKING";
807
- TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
808
- TASK_STATE_FAILED: "TASK_STATE_FAILED";
809
- TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
810
- TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
811
- TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
812
- TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
813
- }>>;
814
- }, z.core.$strip>>;
815
- more: z.ZodBoolean;
816
- }, z.core.$strip>], "kind">;
2777
+ unavailable: "unavailable";
2778
+ }>;
2779
+ alarm: z.ZodNullable<z.ZodEnum<{
2780
+ directory: "directory";
2781
+ restored: "restored";
2782
+ keys_missing: "keys_missing";
2783
+ }>>;
2784
+ busy: z.ZodBoolean;
2785
+ version: z.ZodString;
2786
+ storeSchema: z.ZodNumber;
2787
+ }, z.core.$strip>;
817
2788
  };
818
2789
  readonly "notice.subscribe": {
819
2790
  readonly params: z.ZodObject<{
@@ -837,7 +2808,6 @@ export declare const IPC_METHODS: {
837
2808
  request: "request";
838
2809
  alert: "alert";
839
2810
  }>;
840
- conversation: z.ZodOptional<z.ZodString>;
841
2811
  from: z.ZodOptional<z.ZodObject<{
842
2812
  name: z.ZodString;
843
2813
  email: z.ZodOptional<z.ZodString>;
@@ -888,7 +2858,6 @@ export declare const IPC_METHODS: {
888
2858
  at: z.ZodNumber;
889
2859
  }, z.core.$strip>>;
890
2860
  counts: z.ZodObject<{
891
- unread: z.ZodNumber;
892
2861
  requests: z.ZodNumber;
893
2862
  }, z.core.$strip>;
894
2863
  }, z.core.$strip>;
@@ -989,7 +2958,7 @@ export declare const IPC_METHODS: {
989
2958
  subject: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
990
2959
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
991
2960
  }, z.core.$strict>, z.ZodObject<{
992
- channel: z.ZodString;
2961
+ conv: z.ZodString;
993
2962
  }, z.core.$strict>]>>;
994
2963
  }, z.core.$strict>;
995
2964
  readonly result: z.ZodObject<{
@@ -1008,31 +2977,29 @@ export declare const IPC_METHODS: {
1008
2977
  blocked: "blocked";
1009
2978
  }>>;
1010
2979
  ask: z.ZodOptional<z.ZodEnum<{
1011
- open: "open";
1012
2980
  request: "request";
2981
+ open: "open";
1013
2982
  no: "no";
1014
2983
  }>>;
1015
2984
  trustedUntil: z.ZodOptional<z.ZodNumber>;
1016
2985
  discoverable: z.ZodOptional<z.ZodBoolean>;
1017
2986
  subject: z.ZodUnion<readonly [z.ZodObject<{
1018
2987
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1019
- }, z.core.$strip>, z.ZodObject<{
1020
- channel: z.ZodString;
1021
- name: z.ZodOptional<z.ZodString>;
1022
- }, z.core.$strip>]>;
2988
+ }, z.core.$strict>, z.ZodObject<{
2989
+ conv: z.ZodString;
2990
+ }, z.core.$strict>]>;
1023
2991
  }, z.core.$strip>>;
1024
2992
  review: z.ZodArray<z.ZodObject<{
1025
2993
  subject: z.ZodUnion<readonly [z.ZodObject<{
1026
2994
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1027
- }, z.core.$strip>, z.ZodObject<{
1028
- channel: z.ZodString;
1029
- name: z.ZodOptional<z.ZodString>;
1030
- }, z.core.$strip>]>;
2995
+ }, z.core.$strict>, z.ZodObject<{
2996
+ conv: z.ZodString;
2997
+ }, z.core.$strict>]>;
1031
2998
  chat: z.ZodOptional<z.ZodLiteral<"open">>;
1032
2999
  agentMail: z.ZodOptional<z.ZodLiteral<"open">>;
1033
3000
  ask: z.ZodOptional<z.ZodEnum<{
1034
- open: "open";
1035
3001
  request: "request";
3002
+ open: "open";
1036
3003
  }>>;
1037
3004
  trustedUntil: z.ZodOptional<z.ZodNumber>;
1038
3005
  discoverable: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1053,8 +3020,8 @@ export declare const IPC_METHODS: {
1053
3020
  blocked: "blocked";
1054
3021
  }>>;
1055
3022
  ask: z.ZodOptional<z.ZodEnum<{
1056
- open: "open";
1057
3023
  request: "request";
3024
+ open: "open";
1058
3025
  no: "no";
1059
3026
  }>>;
1060
3027
  trustedUntil: z.ZodOptional<z.ZodNumber>;
@@ -1062,7 +3029,7 @@ export declare const IPC_METHODS: {
1062
3029
  subject: z.ZodUnion<readonly [z.ZodObject<{
1063
3030
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1064
3031
  }, z.core.$strict>, z.ZodObject<{
1065
- channel: z.ZodString;
3032
+ conv: z.ZodString;
1066
3033
  }, z.core.$strict>]>;
1067
3034
  }, z.core.$strict>;
1068
3035
  readonly result: z.ZodObject<{
@@ -1081,18 +3048,17 @@ export declare const IPC_METHODS: {
1081
3048
  blocked: "blocked";
1082
3049
  }>>;
1083
3050
  ask: z.ZodOptional<z.ZodEnum<{
1084
- open: "open";
1085
3051
  request: "request";
3052
+ open: "open";
1086
3053
  no: "no";
1087
3054
  }>>;
1088
3055
  trustedUntil: z.ZodOptional<z.ZodNumber>;
1089
3056
  discoverable: z.ZodOptional<z.ZodBoolean>;
1090
3057
  subject: z.ZodUnion<readonly [z.ZodObject<{
1091
3058
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1092
- }, z.core.$strip>, z.ZodObject<{
1093
- channel: z.ZodString;
1094
- name: z.ZodOptional<z.ZodString>;
1095
- }, z.core.$strip>]>;
3059
+ }, z.core.$strict>, z.ZodObject<{
3060
+ conv: z.ZodString;
3061
+ }, z.core.$strict>]>;
1096
3062
  }, z.core.$strip>;
1097
3063
  }, z.core.$strip>;
1098
3064
  };
@@ -1109,8 +3075,8 @@ export declare const IPC_METHODS: {
1109
3075
  blocked: "blocked";
1110
3076
  }>>;
1111
3077
  ask: z.ZodOptional<z.ZodEnum<{
1112
- open: "open";
1113
3078
  request: "request";
3079
+ open: "open";
1114
3080
  no: "no";
1115
3081
  }>>;
1116
3082
  trustedUntil: z.ZodOptional<z.ZodNumber>;
@@ -1118,7 +3084,7 @@ export declare const IPC_METHODS: {
1118
3084
  subject: z.ZodUnion<readonly [z.ZodObject<{
1119
3085
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1120
3086
  }, z.core.$strict>, z.ZodObject<{
1121
- channel: z.ZodString;
3087
+ conv: z.ZodString;
1122
3088
  }, z.core.$strict>]>;
1123
3089
  }, z.core.$strict>;
1124
3090
  readonly result: z.ZodObject<{
@@ -1148,10 +3114,17 @@ export declare const IPC_METHODS: {
1148
3114
  }, z.core.$strip>, z.ZodObject<{
1149
3115
  id: z.ZodString;
1150
3116
  kind: z.ZodLiteral<"contact">;
3117
+ cid: z.ZodOptional<z.ZodString>;
3118
+ state: z.ZodEnum<{
3119
+ accepted: "accepted";
3120
+ pending: "pending";
3121
+ answering: "answering";
3122
+ resend: "resend";
3123
+ }>;
1151
3124
  from: z.ZodObject<{
1152
3125
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1153
3126
  device: z.ZodString;
1154
- label: z.ZodString;
3127
+ label: z.ZodOptional<z.ZodString>;
1155
3128
  name: z.ZodString;
1156
3129
  email: z.ZodOptional<z.ZodString>;
1157
3130
  org: z.ZodEnum<{
@@ -1169,17 +3142,24 @@ export declare const IPC_METHODS: {
1169
3142
  agent: z.ZodString;
1170
3143
  email: z.ZodString;
1171
3144
  at: z.ZodNumber;
1172
- }, z.core.$strip>]>>;
3145
+ }, z.core.$strip>, z.ZodObject<{
3146
+ kind: z.ZodLiteral<"agent-invitation">;
3147
+ id: z.ZodString;
3148
+ cid: z.ZodString;
3149
+ from: z.ZodString;
3150
+ to: z.ZodString;
3151
+ at: z.ZodNumber;
3152
+ }, z.core.$strict>]>>;
1173
3153
  }, z.core.$strip>;
1174
3154
  };
1175
3155
  readonly "request.answer": {
1176
3156
  readonly params: z.ZodObject<{
1177
3157
  id: z.ZodString;
1178
3158
  answer: z.ZodEnum<{
1179
- once: "once";
1180
- always: "always";
1181
3159
  accept: "accept";
1182
3160
  decline: "decline";
3161
+ once: "once";
3162
+ always: "always";
1183
3163
  block: "block";
1184
3164
  }>;
1185
3165
  all: z.ZodOptional<z.ZodBoolean>;
@@ -1192,10 +3172,10 @@ export declare const IPC_METHODS: {
1192
3172
  readonly params: z.ZodObject<{
1193
3173
  id: z.ZodString;
1194
3174
  answer: z.ZodEnum<{
1195
- once: "once";
1196
- always: "always";
1197
3175
  accept: "accept";
1198
3176
  decline: "decline";
3177
+ once: "once";
3178
+ always: "always";
1199
3179
  block: "block";
1200
3180
  }>;
1201
3181
  all: z.ZodOptional<z.ZodBoolean>;
@@ -1205,6 +3185,7 @@ export declare const IPC_METHODS: {
1205
3185
  message: "message";
1206
3186
  task: "task";
1207
3187
  contact: "contact";
3188
+ "agent-invitation": "agent-invitation";
1208
3189
  suggestion: "suggestion";
1209
3190
  }>;
1210
3191
  from: z.ZodObject<{
@@ -1230,7 +3211,7 @@ export declare const IPC_METHODS: {
1230
3211
  }, z.core.$strict>;
1231
3212
  readonly result: z.ZodObject<{
1232
3213
  id: z.ZodString;
1233
- conversation: z.ZodString;
3214
+ cid: z.ZodString;
1234
3215
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1235
3216
  }, z.core.$strip>;
1236
3217
  };
@@ -1400,12 +3381,14 @@ export declare const IPC_METHODS: {
1400
3381
  id: z.ZodString;
1401
3382
  key: z.ZodString;
1402
3383
  from: z.ZodObject<{
1403
- address: z.ZodString;
1404
3384
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1405
3385
  agent: z.ZodOptional<z.ZodString>;
1406
- device: z.ZodString;
1407
- label: z.ZodString;
3386
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3387
+ device: z.ZodOptional<z.ZodString>;
3388
+ label: z.ZodOptional<z.ZodString>;
1408
3389
  }, z.core.$strip>;
3390
+ cid: z.ZodOptional<z.ZodString>;
3391
+ eventId: z.ZodOptional<z.ZodString>;
1409
3392
  kind: z.ZodEnum<{
1410
3393
  message: "message";
1411
3394
  task: "task";
@@ -1447,6 +3430,7 @@ export declare const IPC_METHODS: {
1447
3430
  readonly params: z.ZodObject<{
1448
3431
  key: z.ZodString;
1449
3432
  id: z.ZodString;
3433
+ cid: z.ZodOptional<z.ZodString>;
1450
3434
  message: z.ZodOptional<z.ZodBoolean>;
1451
3435
  }, z.core.$strict>;
1452
3436
  readonly result: z.ZodObject<{
@@ -1454,12 +3438,14 @@ export declare const IPC_METHODS: {
1454
3438
  id: z.ZodString;
1455
3439
  key: z.ZodString;
1456
3440
  from: z.ZodObject<{
1457
- address: z.ZodString;
1458
3441
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1459
3442
  agent: z.ZodOptional<z.ZodString>;
1460
- device: z.ZodString;
1461
- label: z.ZodString;
3443
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3444
+ device: z.ZodOptional<z.ZodString>;
3445
+ label: z.ZodOptional<z.ZodString>;
1462
3446
  }, z.core.$strip>;
3447
+ cid: z.ZodOptional<z.ZodString>;
3448
+ eventId: z.ZodOptional<z.ZodString>;
1463
3449
  kind: z.ZodEnum<{
1464
3450
  message: "message";
1465
3451
  task: "task";
@@ -1517,6 +3503,7 @@ export declare const IPC_METHODS: {
1517
3503
  readonly params: z.ZodObject<{
1518
3504
  key: z.ZodString;
1519
3505
  id: z.ZodString;
3506
+ cid: z.ZodOptional<z.ZodString>;
1520
3507
  stage: z.ZodEnum<{
1521
3508
  handed_to_agent: "handed_to_agent";
1522
3509
  read: "read";
@@ -2265,42 +4252,208 @@ export declare const IPC_METHODS: {
2265
4252
  enc: z.ZodString;
2266
4253
  }, z.core.$strip>;
2267
4254
  };
2268
- /** Creates a channel with this person and `persons` (at most `LIMITS.channelPersons` together). */
2269
- readonly "channel.create": {
4255
+ readonly "task.create": {
2270
4256
  readonly params: z.ZodObject<{
2271
- name: z.ZodString;
2272
- persons: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2273
- }, z.core.$strict>;
2274
- readonly result: z.ZodObject<{
2275
- id: z.ZodString;
2276
- name: z.ZodString;
2277
- }, z.core.$strip>;
2278
- };
2279
- readonly "channel.invite": {
2280
- readonly params: z.ZodObject<{
2281
- name: z.ZodString;
2282
- persons: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2283
- }, z.core.$strict>;
2284
- readonly result: z.ZodObject<{
2285
- ok: z.ZodLiteral<true>;
2286
- }, z.core.$strip>;
2287
- };
2288
- readonly "channel.leave": {
2289
- readonly params: z.ZodObject<{
2290
- name: z.ZodString;
4257
+ onBehalfOf: z.ZodOptional<z.ZodObject<{
4258
+ taskId: z.ZodString;
4259
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
4260
+ maxDepth: z.ZodOptional<z.ZodNumber>;
4261
+ }, z.core.$strict>>;
4262
+ key: z.ZodString;
4263
+ to: z.ZodString;
4264
+ parts: z.ZodArray<z.ZodObject<{
4265
+ text: z.ZodOptional<z.ZodString>;
4266
+ raw: z.ZodOptional<z.ZodString>;
4267
+ url: z.ZodOptional<z.ZodString>;
4268
+ data: z.ZodOptional<z.ZodUnknown>;
4269
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4270
+ filename: z.ZodOptional<z.ZodString>;
4271
+ mediaType: z.ZodOptional<z.ZodString>;
4272
+ }, z.core.$strip>>;
4273
+ contextId: z.ZodOptional<z.ZodString>;
4274
+ replyTo: z.ZodOptional<z.ZodString>;
4275
+ idempotencyKey: z.ZodOptional<z.ZodString>;
4276
+ messageId: z.ZodOptional<z.ZodString>;
4277
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4278
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4279
+ referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4280
+ wake: z.ZodOptional<z.ZodBoolean>;
2291
4281
  }, z.core.$strict>;
2292
4282
  readonly result: z.ZodObject<{
2293
- ok: z.ZodLiteral<true>;
4283
+ results: z.ZodArray<z.ZodObject<{
4284
+ to: z.ZodString;
4285
+ envelopeId: z.ZodString;
4286
+ messageId: z.ZodString;
4287
+ taskId: z.ZodOptional<z.ZodString>;
4288
+ contextId: z.ZodString;
4289
+ stage: z.ZodEnum<{
4290
+ accepted: "accepted";
4291
+ relayed: "relayed";
4292
+ delivered: "delivered";
4293
+ held: "held";
4294
+ handed_to_agent: "handed_to_agent";
4295
+ read: "read";
4296
+ replied: "replied";
4297
+ rejected: "rejected";
4298
+ expired: "expired";
4299
+ }>;
4300
+ code: z.ZodOptional<z.ZodEnum<{
4301
+ expired: "expired";
4302
+ invalid_request: "invalid_request";
4303
+ not_member: "not_member";
4304
+ bad_signature: "bad_signature";
4305
+ unknown_session: "unknown_session";
4306
+ ambiguous_address: "ambiguous_address";
4307
+ no_recipients: "no_recipients";
4308
+ unknown_address: "unknown_address";
4309
+ refused: "refused";
4310
+ declined: "declined";
4311
+ request_required: "request_required";
4312
+ peer_outdated: "peer_outdated";
4313
+ rate_limited: "rate_limited";
4314
+ loop_guard: "loop_guard";
4315
+ too_large: "too_large";
4316
+ secret_refused: "secret_refused";
4317
+ duplicate: "duplicate";
4318
+ relay_unavailable: "relay_unavailable";
4319
+ not_found: "not_found";
4320
+ invalid_state: "invalid_state";
4321
+ forbidden: "forbidden";
4322
+ guarded_turn: "guarded_turn";
4323
+ roster_conflict: "roster_conflict";
4324
+ invite_invalid: "invite_invalid";
4325
+ no_identity: "no_identity";
4326
+ binding_invalid: "binding_invalid";
4327
+ jelly_unavailable: "jelly_unavailable";
4328
+ log_conflict: "log_conflict";
4329
+ conv_conflict: "conv_conflict";
4330
+ stale_epoch: "stale_epoch";
4331
+ device_limit: "device_limit";
4332
+ admission_required: "admission_required";
4333
+ admission_invalid: "admission_invalid";
4334
+ directory_inconsistent: "directory_inconsistent";
4335
+ unknown_device: "unknown_device";
4336
+ directory_unavailable: "directory_unavailable";
4337
+ login_unsupported: "login_unsupported";
4338
+ login_denied: "login_denied";
4339
+ grant_required: "grant_required";
4340
+ grant_invalid: "grant_invalid";
4341
+ ticket_required: "ticket_required";
4342
+ ticket_invalid: "ticket_invalid";
4343
+ daemon_unavailable: "daemon_unavailable";
4344
+ daemon_mismatch: "daemon_mismatch";
4345
+ store_refused: "store_refused";
4346
+ internal: "internal";
4347
+ }>>;
4348
+ expect: z.ZodOptional<z.ZodEnum<{
4349
+ kept: "kept";
4350
+ wake: "wake";
4351
+ next_turn: "next_turn";
4352
+ next_prompt: "next_prompt";
4353
+ on_read: "on_read";
4354
+ offline: "offline";
4355
+ }>>;
4356
+ }, z.core.$strip>>;
2294
4357
  }, z.core.$strip>;
2295
4358
  };
2296
- /** Removes other persons from a channel; only its creator or a team admin may (spec §6.8). */
2297
- readonly "channel.remove": {
4359
+ readonly "task.continue": {
2298
4360
  readonly params: z.ZodObject<{
2299
- name: z.ZodString;
2300
- persons: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
4361
+ taskId: z.ZodString;
4362
+ key: z.ZodString;
4363
+ to: z.ZodString;
4364
+ parts: z.ZodArray<z.ZodObject<{
4365
+ text: z.ZodOptional<z.ZodString>;
4366
+ raw: z.ZodOptional<z.ZodString>;
4367
+ url: z.ZodOptional<z.ZodString>;
4368
+ data: z.ZodOptional<z.ZodUnknown>;
4369
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4370
+ filename: z.ZodOptional<z.ZodString>;
4371
+ mediaType: z.ZodOptional<z.ZodString>;
4372
+ }, z.core.$strip>>;
4373
+ contextId: z.ZodOptional<z.ZodString>;
4374
+ replyTo: z.ZodOptional<z.ZodString>;
4375
+ idempotencyKey: z.ZodOptional<z.ZodString>;
4376
+ messageId: z.ZodOptional<z.ZodString>;
4377
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4378
+ extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4379
+ referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4380
+ wake: z.ZodOptional<z.ZodBoolean>;
2301
4381
  }, z.core.$strict>;
2302
4382
  readonly result: z.ZodObject<{
2303
- ok: z.ZodLiteral<true>;
4383
+ results: z.ZodArray<z.ZodObject<{
4384
+ to: z.ZodString;
4385
+ envelopeId: z.ZodString;
4386
+ messageId: z.ZodString;
4387
+ taskId: z.ZodOptional<z.ZodString>;
4388
+ contextId: z.ZodString;
4389
+ stage: z.ZodEnum<{
4390
+ accepted: "accepted";
4391
+ relayed: "relayed";
4392
+ delivered: "delivered";
4393
+ held: "held";
4394
+ handed_to_agent: "handed_to_agent";
4395
+ read: "read";
4396
+ replied: "replied";
4397
+ rejected: "rejected";
4398
+ expired: "expired";
4399
+ }>;
4400
+ code: z.ZodOptional<z.ZodEnum<{
4401
+ expired: "expired";
4402
+ invalid_request: "invalid_request";
4403
+ not_member: "not_member";
4404
+ bad_signature: "bad_signature";
4405
+ unknown_session: "unknown_session";
4406
+ ambiguous_address: "ambiguous_address";
4407
+ no_recipients: "no_recipients";
4408
+ unknown_address: "unknown_address";
4409
+ refused: "refused";
4410
+ declined: "declined";
4411
+ request_required: "request_required";
4412
+ peer_outdated: "peer_outdated";
4413
+ rate_limited: "rate_limited";
4414
+ loop_guard: "loop_guard";
4415
+ too_large: "too_large";
4416
+ secret_refused: "secret_refused";
4417
+ duplicate: "duplicate";
4418
+ relay_unavailable: "relay_unavailable";
4419
+ not_found: "not_found";
4420
+ invalid_state: "invalid_state";
4421
+ forbidden: "forbidden";
4422
+ guarded_turn: "guarded_turn";
4423
+ roster_conflict: "roster_conflict";
4424
+ invite_invalid: "invite_invalid";
4425
+ no_identity: "no_identity";
4426
+ binding_invalid: "binding_invalid";
4427
+ jelly_unavailable: "jelly_unavailable";
4428
+ log_conflict: "log_conflict";
4429
+ conv_conflict: "conv_conflict";
4430
+ stale_epoch: "stale_epoch";
4431
+ device_limit: "device_limit";
4432
+ admission_required: "admission_required";
4433
+ admission_invalid: "admission_invalid";
4434
+ directory_inconsistent: "directory_inconsistent";
4435
+ unknown_device: "unknown_device";
4436
+ directory_unavailable: "directory_unavailable";
4437
+ login_unsupported: "login_unsupported";
4438
+ login_denied: "login_denied";
4439
+ grant_required: "grant_required";
4440
+ grant_invalid: "grant_invalid";
4441
+ ticket_required: "ticket_required";
4442
+ ticket_invalid: "ticket_invalid";
4443
+ daemon_unavailable: "daemon_unavailable";
4444
+ daemon_mismatch: "daemon_mismatch";
4445
+ store_refused: "store_refused";
4446
+ internal: "internal";
4447
+ }>>;
4448
+ expect: z.ZodOptional<z.ZodEnum<{
4449
+ kept: "kept";
4450
+ wake: "wake";
4451
+ next_turn: "next_turn";
4452
+ next_prompt: "next_prompt";
4453
+ on_read: "on_read";
4454
+ offline: "offline";
4455
+ }>>;
4456
+ }, z.core.$strip>>;
2304
4457
  }, z.core.$strip>;
2305
4458
  };
2306
4459
  readonly "device.status": {
@@ -2375,6 +4528,7 @@ export declare const IPC_METHODS: {
2375
4528
  }>>;
2376
4529
  current: z.ZodBoolean;
2377
4530
  self: z.ZodBoolean;
4531
+ away: z.ZodOptional<z.ZodLiteral<true>>;
2378
4532
  since: z.ZodOptional<z.ZodNumber>;
2379
4533
  unbound: z.ZodOptional<z.ZodObject<{
2380
4534
  at: z.ZodNumber;
@@ -2499,6 +4653,7 @@ export declare const IPC_METHODS: {
2499
4653
  refused: "refused";
2500
4654
  declined: "declined";
2501
4655
  request_required: "request_required";
4656
+ peer_outdated: "peer_outdated";
2502
4657
  rate_limited: "rate_limited";
2503
4658
  loop_guard: "loop_guard";
2504
4659
  too_large: "too_large";
@@ -2515,6 +4670,8 @@ export declare const IPC_METHODS: {
2515
4670
  binding_invalid: "binding_invalid";
2516
4671
  jelly_unavailable: "jelly_unavailable";
2517
4672
  log_conflict: "log_conflict";
4673
+ conv_conflict: "conv_conflict";
4674
+ stale_epoch: "stale_epoch";
2518
4675
  device_limit: "device_limit";
2519
4676
  admission_required: "admission_required";
2520
4677
  admission_invalid: "admission_invalid";
@@ -2529,6 +4686,7 @@ export declare const IPC_METHODS: {
2529
4686
  ticket_invalid: "ticket_invalid";
2530
4687
  daemon_unavailable: "daemon_unavailable";
2531
4688
  daemon_mismatch: "daemon_mismatch";
4689
+ store_refused: "store_refused";
2532
4690
  internal: "internal";
2533
4691
  }>;
2534
4692
  message: z.ZodString;
@@ -2696,14 +4854,14 @@ export type IpcResult<M extends IpcMethod> = z.infer<IpcMethods[M]["result"]>;
2696
4854
  * daemon serves on `run/agent.sock` (spec §8.2). Anything else is for human clients, on
2697
4855
  * `run/admin.sock`: the `messaging` CLI and the `/messaging` TUI.
2698
4856
  */
2699
- export declare const AGENT_METHODS: readonly ["daemon.status", "daemon.health", "device.status", "device.bind", "session.register", "session.update", "session.unregister", "events.subscribe", "contacts.list", "msg.send", "inbox.list", "inbox.get", "inbox.ack", "item.read", "conv.read", "search", "task.list", "task.get", "task.update", "task.cancel"];
4857
+ export declare const AGENT_METHODS: readonly ["daemon.status", "daemon.health", "device.status", "device.bind", "session.register", "session.update", "session.unregister", "events.subscribe", "contacts.list", "inbox.list", "inbox.get", "inbox.ack", "item.read", ...ConversationTier<"agent">[], "task.create", "task.continue", "task.list", "task.get", "task.update", "task.cancel"];
2700
4858
  export type AgentMethod = (typeof AGENT_METHODS)[number];
2701
4859
  /**
2702
4860
  * The human tier (design §7.5): methods that act as the person, on `run/admin.sock` only: their
2703
4861
  * conversations and own lines, the people of the realm, their grants and held requests (spec §6.9), and channels.
2704
4862
  * `conv.read` is in both tiers.
2705
4863
  */
2706
- export declare const HUMAN_METHODS: readonly ["conv.list", "conv.read", "conv.markRead", "conv.subscribe", "person.send", "people.search", "people.get", "grant.list", "grant.set", "grant.set.preview", "request.list", "request.answer", "request.answer.preview", "contact.request", "contact.request.preview", "card.get", "agents.list", "agents.read", "notice.subscribe", "notice.list", "notice.ack", "device.approve.preview", "device.remove.preview", "identity.replace.preview", "directory.erase.preview", "channel.create", "channel.invite", "channel.leave", "channel.remove"];
4864
+ export declare const HUMAN_METHODS: readonly [...(ConversationTier<"agent"> | ConversationTier<"human">)[], "people.search", "grant.list", "grant.set", "grant.set.preview", "request.list", "request.answer", "request.answer.preview", "contact.request", "contact.request.preview", "card.get", "notice.subscribe", "notice.list", "notice.ack", "device.approve.preview", "device.remove.preview", "identity.replace.preview", "directory.erase.preview"];
2707
4865
  export type HumanMethod = (typeof HUMAN_METHODS)[number];
2708
4866
  /**
2709
4867
  * The admin tier (design §7.5): this device and the daemon, and in a roster realm the team, on
@@ -2725,12 +4883,14 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
2725
4883
  id: z.ZodString;
2726
4884
  key: z.ZodString;
2727
4885
  from: z.ZodObject<{
2728
- address: z.ZodString;
2729
4886
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2730
4887
  agent: z.ZodOptional<z.ZodString>;
2731
- device: z.ZodString;
2732
- label: z.ZodString;
4888
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4889
+ device: z.ZodOptional<z.ZodString>;
4890
+ label: z.ZodOptional<z.ZodString>;
2733
4891
  }, z.core.$strip>;
4892
+ cid: z.ZodOptional<z.ZodString>;
4893
+ eventId: z.ZodOptional<z.ZodString>;
2734
4894
  kind: z.ZodEnum<{
2735
4895
  message: "message";
2736
4896
  task: "task";
@@ -2789,6 +4949,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
2789
4949
  refused: "refused";
2790
4950
  declined: "declined";
2791
4951
  request_required: "request_required";
4952
+ peer_outdated: "peer_outdated";
2792
4953
  rate_limited: "rate_limited";
2793
4954
  loop_guard: "loop_guard";
2794
4955
  too_large: "too_large";
@@ -2805,6 +4966,8 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
2805
4966
  binding_invalid: "binding_invalid";
2806
4967
  jelly_unavailable: "jelly_unavailable";
2807
4968
  log_conflict: "log_conflict";
4969
+ conv_conflict: "conv_conflict";
4970
+ stale_epoch: "stale_epoch";
2808
4971
  device_limit: "device_limit";
2809
4972
  admission_required: "admission_required";
2810
4973
  admission_invalid: "admission_invalid";
@@ -2819,6 +4982,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
2819
4982
  ticket_invalid: "ticket_invalid";
2820
4983
  daemon_unavailable: "daemon_unavailable";
2821
4984
  daemon_mismatch: "daemon_mismatch";
4985
+ store_refused: "store_refused";
2822
4986
  internal: "internal";
2823
4987
  }>>;
2824
4988
  }, z.core.$strip>, z.ZodObject<{
@@ -3004,12 +5168,6 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3004
5168
  }, z.core.$strip>, z.ZodObject<{
3005
5169
  type: z.ZodLiteral<"relay">;
3006
5170
  connected: z.ZodBoolean;
3007
- }, z.core.$strip>, z.ZodObject<{
3008
- type: z.ZodLiteral<"conv">;
3009
- conversation: z.ZodString;
3010
- id: z.ZodString;
3011
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3012
- seq: z.ZodNumber;
3013
5171
  }, z.core.$strip>, z.ZodObject<{
3014
5172
  type: z.ZodLiteral<"login">;
3015
5173
  state: z.ZodEnum<{
@@ -3036,6 +5194,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3036
5194
  refused: "refused";
3037
5195
  declined: "declined";
3038
5196
  request_required: "request_required";
5197
+ peer_outdated: "peer_outdated";
3039
5198
  rate_limited: "rate_limited";
3040
5199
  loop_guard: "loop_guard";
3041
5200
  too_large: "too_large";
@@ -3052,6 +5211,8 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3052
5211
  binding_invalid: "binding_invalid";
3053
5212
  jelly_unavailable: "jelly_unavailable";
3054
5213
  log_conflict: "log_conflict";
5214
+ conv_conflict: "conv_conflict";
5215
+ stale_epoch: "stale_epoch";
3055
5216
  device_limit: "device_limit";
3056
5217
  admission_required: "admission_required";
3057
5218
  admission_invalid: "admission_invalid";
@@ -3066,6 +5227,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3066
5227
  ticket_invalid: "ticket_invalid";
3067
5228
  daemon_unavailable: "daemon_unavailable";
3068
5229
  daemon_mismatch: "daemon_mismatch";
5230
+ store_refused: "store_refused";
3069
5231
  internal: "internal";
3070
5232
  }>>;
3071
5233
  }, z.core.$strip>, z.ZodObject<{
@@ -3077,7 +5239,6 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3077
5239
  request: "request";
3078
5240
  alert: "alert";
3079
5241
  }>;
3080
- conversation: z.ZodOptional<z.ZodString>;
3081
5242
  from: z.ZodOptional<z.ZodObject<{
3082
5243
  name: z.ZodString;
3083
5244
  email: z.ZodOptional<z.ZodString>;