@joe-broadhead/messaging 0.7.1 → 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 (89) hide show
  1. package/CHANGELOG.md +214 -2
  2. package/dist/bin/messaging-mcp.js +5043 -4054
  3. package/dist/bin/messaging-relay.js +8263 -5425
  4. package/dist/bin/messaging.js +5982 -4906
  5. package/dist/bin/messagingd.js +19956 -13716
  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 +23 -139
  9. package/dist/lib/modules/core/consent.js +1 -1
  10. package/dist/lib/modules/core/conversation/event.js +29 -4
  11. package/dist/lib/modules/core/conversation/guest-invitation.js +42 -0
  12. package/dist/lib/modules/core/conversation/log.js +287 -65
  13. package/dist/lib/modules/core/conversation/request-log.js +158 -0
  14. package/dist/lib/modules/core/conversation/request-seal.js +41 -0
  15. package/dist/lib/modules/core/conversation/requests.js +87 -0
  16. package/dist/lib/modules/core/conversation/seal.js +90 -37
  17. package/dist/lib/modules/core/conversation-agent-tools.js +69 -0
  18. package/dist/lib/modules/core/federation/directory-proof.js +83 -0
  19. package/dist/lib/modules/core/federation/proof-state.js +167 -0
  20. package/dist/lib/modules/core/federation/roster-proof.js +74 -0
  21. package/dist/lib/modules/core/index.js +8 -3
  22. package/dist/lib/modules/core/jelly-host.js +5 -5
  23. package/dist/lib/modules/core/schema/common.js +31 -5
  24. package/dist/lib/modules/core/schema/consent.js +5 -4
  25. package/dist/lib/modules/core/schema/contact-request.js +22 -0
  26. package/dist/lib/modules/core/schema/conv-frames.js +94 -0
  27. package/dist/lib/modules/core/schema/conversation.js +67 -33
  28. package/dist/lib/modules/core/schema/envelope.js +8 -24
  29. package/dist/lib/modules/core/schema/errors.js +4 -3
  30. package/dist/lib/modules/core/schema/guest-invitation.js +13 -0
  31. package/dist/lib/modules/core/schema/index.js +5 -0
  32. package/dist/lib/modules/core/schema/ipc/consent.js +13 -9
  33. package/dist/lib/modules/core/schema/ipc/conversation-views.js +80 -0
  34. package/dist/lib/modules/core/schema/ipc/conversations.js +128 -0
  35. package/dist/lib/modules/core/schema/ipc/device.js +2 -0
  36. package/dist/lib/modules/core/schema/ipc/jelly.js +3 -38
  37. package/dist/lib/modules/core/schema/ipc/shapes.js +14 -72
  38. package/dist/lib/modules/core/schema/ipc/surfaces.js +12 -195
  39. package/dist/lib/modules/core/schema/ipc/tasks.js +31 -0
  40. package/dist/lib/modules/core/schema/ipc.js +18 -44
  41. package/dist/lib/modules/core/testing.js +1 -1
  42. package/dist/lib/modules/core/version.js +1 -1
  43. package/dist/lib/modules/ipc/client.js +10 -2
  44. package/dist/lib/modules/ipc/server.js +14 -5
  45. package/dist/lib/modules/ipc/testing.js +13 -23
  46. package/dist/spec/messaging-v1.md +546 -409
  47. package/dist/third-party-notices.md +1 -1
  48. package/dist/third-party.json +1 -1
  49. package/dist/types/core/agent/operations.d.ts +5 -52
  50. package/dist/types/core/agent/present.d.ts +6 -21
  51. package/dist/types/core/agent-tools.d.ts +263 -442
  52. package/dist/types/core/conversation/event.d.ts +6 -6
  53. package/dist/types/core/conversation/guest-invitation.d.ts +8 -0
  54. package/dist/types/core/conversation/log.d.ts +28 -13
  55. package/dist/types/core/conversation/request-log.d.ts +24 -0
  56. package/dist/types/core/conversation/request-seal.d.ts +6 -0
  57. package/dist/types/core/conversation/requests.d.ts +14 -0
  58. package/dist/types/core/conversation/seal.d.ts +32 -9
  59. package/dist/types/core/conversation-agent-tools.d.ts +918 -0
  60. package/dist/types/core/federation/directory-proof.d.ts +8 -0
  61. package/dist/types/core/federation/proof-state.d.ts +114 -0
  62. package/dist/types/core/federation/roster-proof.d.ts +7 -0
  63. package/dist/types/core/index.d.ts +10 -5
  64. package/dist/types/core/jelly-host.d.ts +1 -1
  65. package/dist/types/core/schema/common.d.ts +31 -6
  66. package/dist/types/core/schema/consent.d.ts +7 -7
  67. package/dist/types/core/schema/contact-request.d.ts +264 -0
  68. package/dist/types/core/schema/conv-frames.d.ts +1200 -0
  69. package/dist/types/core/schema/conversation.d.ts +1410 -264
  70. package/dist/types/core/schema/envelope.d.ts +83 -130
  71. package/dist/types/core/schema/errors.d.ts +3 -1
  72. package/dist/types/core/schema/guest-invitation.d.ts +51 -0
  73. package/dist/types/core/schema/index.d.ts +5 -0
  74. package/dist/types/core/schema/ipc/consent.d.ts +89 -49
  75. package/dist/types/core/schema/ipc/conversation-views.d.ts +1023 -0
  76. package/dist/types/core/schema/ipc/conversations.d.ts +3987 -0
  77. package/dist/types/core/schema/ipc/device.d.ts +4 -0
  78. package/dist/types/core/schema/ipc/jelly.d.ts +2 -105
  79. package/dist/types/core/schema/ipc/shapes.d.ts +13 -95
  80. package/dist/types/core/schema/ipc/surfaces.d.ts +25 -427
  81. package/dist/types/core/schema/ipc/tasks.d.ts +208 -0
  82. package/dist/types/core/schema/ipc.d.ts +2671 -525
  83. package/dist/types/core/schema/relay.d.ts +8 -4
  84. package/dist/types/core/testing.d.ts +1 -1
  85. package/dist/types/core/version.d.ts +1 -1
  86. package/dist/types/ipc/client.d.ts +4 -1
  87. package/dist/types/ipc/server.d.ts +10 -1
  88. package/dist/types/ipc/testing.d.ts +21 -8
  89. 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,154 +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<{
186
- channel: "channel";
187
- dm: "dm";
188
- }>;
189
- lastAt: z.ZodOptional<z.ZodNumber>;
190
- 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>;
249
- }, 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
- conv_conflict: "conv_conflict";
298
- stale_epoch: "stale_epoch";
299
- device_limit: "device_limit";
300
- admission_required: "admission_required";
301
- admission_invalid: "admission_invalid";
302
- directory_inconsistent: "directory_inconsistent";
303
- unknown_device: "unknown_device";
304
- directory_unavailable: "directory_unavailable";
305
- login_unsupported: "login_unsupported";
306
- login_denied: "login_denied";
307
- grant_required: "grant_required";
308
- grant_invalid: "grant_invalid";
309
- ticket_required: "ticket_required";
310
- ticket_invalid: "ticket_invalid";
311
- daemon_unavailable: "daemon_unavailable";
312
- daemon_mismatch: "daemon_mismatch";
313
- store_refused: "store_refused";
314
- internal: "internal";
315
- }>>;
316
- expect: z.ZodOptional<z.ZodEnum<{
317
- kept: "kept";
318
- next_turn: "next_turn";
319
- wake: "wake";
320
- next_prompt: "next_prompt";
321
- on_read: "on_read";
322
- offline: "offline";
323
- }>>;
2557
+ self: "self";
2558
+ channel: "channel";
2559
+ group: "group";
2560
+ dm: "dm";
2561
+ }>;
2562
+ name: z.ZodOptional<z.ZodString>;
2563
+ dmWith: z.ZodOptional<z.ZodString>;
2564
+ }, z.core.$strict>>;
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>;
324
2583
  }, z.core.$strip>>;
325
2584
  }, z.core.$strip>;
326
2585
  };
@@ -328,6 +2587,7 @@ export declare const IPC_METHODS: {
328
2587
  readonly params: z.ZodObject<{
329
2588
  key: z.ZodString;
330
2589
  id: z.ZodString;
2590
+ cid: z.ZodOptional<z.ZodString>;
331
2591
  }, z.core.$strict>;
332
2592
  readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
333
2593
  kind: z.ZodLiteral<"received">;
@@ -335,12 +2595,14 @@ export declare const IPC_METHODS: {
335
2595
  id: z.ZodString;
336
2596
  key: z.ZodString;
337
2597
  from: z.ZodObject<{
338
- address: z.ZodString;
339
2598
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
340
2599
  agent: z.ZodOptional<z.ZodString>;
341
- device: z.ZodString;
342
- label: z.ZodString;
2600
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2601
+ device: z.ZodOptional<z.ZodString>;
2602
+ label: z.ZodOptional<z.ZodString>;
343
2603
  }, z.core.$strip>;
2604
+ cid: z.ZodOptional<z.ZodString>;
2605
+ eventId: z.ZodOptional<z.ZodString>;
344
2606
  kind: z.ZodEnum<{
345
2607
  message: "message";
346
2608
  task: "task";
@@ -395,7 +2657,7 @@ export declare const IPC_METHODS: {
395
2657
  }, z.core.$strip>, z.ZodObject<{
396
2658
  kind: z.ZodLiteral<"sent">;
397
2659
  envelopeId: z.ZodString;
398
- to: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
2660
+ to: z.ZodString;
399
2661
  stage: z.ZodEnum<{
400
2662
  accepted: "accepted";
401
2663
  relayed: "relayed";
@@ -432,6 +2694,7 @@ export declare const IPC_METHODS: {
432
2694
  refused: "refused";
433
2695
  declined: "declined";
434
2696
  request_required: "request_required";
2697
+ peer_outdated: "peer_outdated";
435
2698
  rate_limited: "rate_limited";
436
2699
  loop_guard: "loop_guard";
437
2700
  too_large: "too_large";
@@ -471,171 +2734,6 @@ export declare const IPC_METHODS: {
471
2734
  }, z.core.$strip>>;
472
2735
  }, z.core.$strip>], "kind">;
473
2736
  };
474
- readonly "conv.read": {
475
- readonly params: z.ZodObject<{
476
- key: z.ZodOptional<z.ZodString>;
477
- conversation: z.ZodString;
478
- thread: z.ZodOptional<z.ZodString>;
479
- before: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
480
- at: z.ZodNumber;
481
- id: z.ZodString;
482
- }, z.core.$strict>]>>;
483
- after: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
484
- at: z.ZodNumber;
485
- id: z.ZodString;
486
- }, z.core.$strict>]>>;
487
- limit: z.ZodOptional<z.ZodNumber>;
488
- }, z.core.$strict>;
489
- readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
490
- kind: z.ZodLiteral<"lines">;
491
- lines: z.ZodArray<z.ZodObject<{
492
- id: z.ZodString;
493
- seq: z.ZodNumber;
494
- at: z.ZodNumber;
495
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
496
- agent: z.ZodOptional<z.ZodString>;
497
- direction: z.ZodEnum<{
498
- out: "out";
499
- in: "in";
500
- }>;
501
- body: z.ZodString;
502
- thread: z.ZodOptional<z.ZodString>;
503
- state: z.ZodOptional<z.ZodEnum<{
504
- delivered: "delivered";
505
- held: "held";
506
- refused: "refused";
507
- sent: "sent";
508
- }>>;
509
- refused: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
510
- notice: z.ZodOptional<z.ZodLiteral<true>>;
511
- }, z.core.$strip>>;
512
- more: z.ZodBoolean;
513
- }, z.core.$strip>, z.ZodObject<{
514
- kind: z.ZodLiteral<"agent">;
515
- entries: z.ZodArray<z.ZodObject<{
516
- id: z.ZodString;
517
- kind: z.ZodEnum<{
518
- task: "task";
519
- mail: "mail";
520
- }>;
521
- direction: z.ZodEnum<{
522
- out: "out";
523
- in: "in";
524
- }>;
525
- peer: z.ZodString;
526
- at: z.ZodNumber;
527
- text: z.ZodOptional<z.ZodString>;
528
- taskId: z.ZodOptional<z.ZodString>;
529
- stage: z.ZodOptional<z.ZodEnum<{
530
- accepted: "accepted";
531
- relayed: "relayed";
532
- delivered: "delivered";
533
- held: "held";
534
- handed_to_agent: "handed_to_agent";
535
- read: "read";
536
- replied: "replied";
537
- rejected: "rejected";
538
- expired: "expired";
539
- }>>;
540
- role: z.ZodOptional<z.ZodEnum<{
541
- requester: "requester";
542
- executor: "executor";
543
- }>>;
544
- state: z.ZodOptional<z.ZodEnum<{
545
- TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
546
- TASK_STATE_WORKING: "TASK_STATE_WORKING";
547
- TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
548
- TASK_STATE_FAILED: "TASK_STATE_FAILED";
549
- TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
550
- TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
551
- TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
552
- TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
553
- }>>;
554
- }, z.core.$strip>>;
555
- more: z.ZodBoolean;
556
- }, z.core.$strip>], "kind">;
557
- };
558
- readonly search: {
559
- readonly params: z.ZodObject<{
560
- query: z.ZodString;
561
- conversation: z.ZodOptional<z.ZodString>;
562
- limit: z.ZodOptional<z.ZodNumber>;
563
- }, z.core.$strict>;
564
- readonly result: z.ZodObject<{
565
- hits: z.ZodArray<z.ZodObject<{
566
- id: z.ZodString;
567
- seq: z.ZodNumber;
568
- at: z.ZodNumber;
569
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
570
- agent: z.ZodOptional<z.ZodString>;
571
- direction: z.ZodEnum<{
572
- out: "out";
573
- in: "in";
574
- }>;
575
- body: z.ZodString;
576
- thread: z.ZodOptional<z.ZodString>;
577
- state: z.ZodOptional<z.ZodEnum<{
578
- delivered: "delivered";
579
- held: "held";
580
- refused: "refused";
581
- sent: "sent";
582
- }>>;
583
- refused: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
584
- notice: z.ZodOptional<z.ZodLiteral<true>>;
585
- conversation: z.ZodString;
586
- }, z.core.$strip>>;
587
- }, z.core.$strip>;
588
- };
589
- readonly "conv.list": {
590
- readonly params: z.ZodObject<{
591
- limit: z.ZodOptional<z.ZodNumber>;
592
- }, z.core.$strict>;
593
- readonly result: z.ZodObject<{
594
- conversations: z.ZodArray<z.ZodObject<{
595
- conversation: z.ZodString;
596
- kind: z.ZodEnum<{
597
- channel: "channel";
598
- dm: "dm";
599
- }>;
600
- lastAt: z.ZodOptional<z.ZodNumber>;
601
- name: z.ZodOptional<z.ZodString>;
602
- lastSeq: z.ZodOptional<z.ZodNumber>;
603
- readUpTo: z.ZodNumber;
604
- unread: z.ZodNumber;
605
- }, z.core.$strip>>;
606
- }, z.core.$strip>;
607
- };
608
- readonly "conv.markRead": {
609
- readonly params: z.ZodObject<{
610
- conversation: z.ZodString;
611
- upTo: z.ZodNumber;
612
- }, z.core.$strict>;
613
- readonly result: z.ZodObject<{
614
- readUpTo: z.ZodNumber;
615
- unread: z.ZodNumber;
616
- }, z.core.$strip>;
617
- };
618
- readonly "conv.subscribe": {
619
- readonly params: z.ZodObject<{
620
- since: z.ZodOptional<z.ZodNumber>;
621
- }, z.core.$strict>;
622
- readonly result: z.ZodObject<{
623
- seq: z.ZodNumber;
624
- gap: z.ZodBoolean;
625
- }, z.core.$strip>;
626
- };
627
- readonly "person.send": {
628
- readonly params: z.ZodObject<{
629
- conversation: z.ZodString;
630
- text: z.ZodString;
631
- thread: z.ZodOptional<z.ZodString>;
632
- clientId: z.ZodOptional<z.ZodString>;
633
- }, z.core.$strict>;
634
- readonly result: z.ZodObject<{
635
- id: z.ZodString;
636
- conversation: z.ZodString;
637
- }, z.core.$strip>;
638
- };
639
2737
  readonly "people.search": {
640
2738
  readonly params: z.ZodObject<{
641
2739
  query: z.ZodOptional<z.ZodString>;
@@ -660,60 +2758,6 @@ export declare const IPC_METHODS: {
660
2758
  }, z.core.$strip>>;
661
2759
  }, z.core.$strip>;
662
2760
  };
663
- readonly "people.get": {
664
- readonly params: z.ZodObject<{
665
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
666
- }, z.core.$strict>;
667
- readonly result: z.ZodObject<{
668
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
669
- name: z.ZodString;
670
- handle: z.ZodString;
671
- org: z.ZodEnum<{
672
- other: "other";
673
- none: "none";
674
- same: "same";
675
- }>;
676
- vouched: z.ZodEnum<{
677
- admin: "admin";
678
- device: "device";
679
- jelly: "jelly";
680
- service: "service";
681
- }>;
682
- devices: z.ZodArray<z.ZodObject<{
683
- device: z.ZodString;
684
- label: z.ZodString;
685
- self: z.ZodBoolean;
686
- away: z.ZodOptional<z.ZodLiteral<true>>;
687
- }, z.core.$strip>>;
688
- deviceChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
689
- change: z.ZodEnum<{
690
- removed: "removed";
691
- replaced: "replaced";
692
- added: "added";
693
- vouched: "vouched";
694
- }>;
695
- device: z.ZodString;
696
- label: z.ZodString;
697
- kind: z.ZodOptional<z.ZodEnum<{
698
- "jelly-host": "jelly-host";
699
- laptop: "laptop";
700
- server: "server";
701
- other: "other";
702
- }>>;
703
- vouch: z.ZodEnum<{
704
- admin: "admin";
705
- device: "device";
706
- jelly: "jelly";
707
- }>;
708
- via: z.ZodOptional<z.ZodEnum<{
709
- host: "host";
710
- browser: "browser";
711
- }>>;
712
- approver: z.ZodOptional<z.ZodString>;
713
- at: z.ZodNumber;
714
- }, z.core.$strip>>>;
715
- }, z.core.$strip>;
716
- };
717
2761
  readonly "daemon.health": {
718
2762
  readonly params: z.ZodObject<{}, z.core.$strict>;
719
2763
  readonly result: z.ZodObject<{
@@ -736,90 +2780,11 @@ export declare const IPC_METHODS: {
736
2780
  directory: "directory";
737
2781
  restored: "restored";
738
2782
  keys_missing: "keys_missing";
739
- }>>;
740
- busy: z.ZodBoolean;
741
- version: z.ZodString;
742
- storeSchema: z.ZodNumber;
743
- }, z.core.$strip>;
744
- };
745
- readonly "agents.list": {
746
- readonly params: z.ZodObject<{}, z.core.$strict>;
747
- readonly result: z.ZodObject<{
748
- agents: z.ZodArray<z.ZodObject<{
749
- agent: z.ZodString;
750
- conversations: z.ZodNumber;
751
- unread: z.ZodNumber;
752
- lastAt: z.ZodOptional<z.ZodNumber>;
753
- state: z.ZodEnum<{
754
- idle: "idle";
755
- busy: "busy";
756
- kept: "kept";
757
- }>;
758
- }, z.core.$strip>>;
759
- }, z.core.$strip>;
760
- };
761
- readonly "agents.read": {
762
- readonly params: z.ZodObject<{
763
- agent: z.ZodString;
764
- conversation: z.ZodOptional<z.ZodString>;
765
- before: z.ZodOptional<z.ZodObject<{
766
- at: z.ZodNumber;
767
- id: z.ZodString;
768
- }, z.core.$strict>>;
769
- limit: z.ZodOptional<z.ZodNumber>;
770
- }, z.core.$strict>;
771
- readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
772
- kind: z.ZodLiteral<"conversations">;
773
- conversations: z.ZodArray<z.ZodObject<{
774
- conversation: z.ZodString;
775
- unread: z.ZodNumber;
776
- lastAt: z.ZodNumber;
777
- }, z.core.$strip>>;
778
- }, z.core.$strip>, z.ZodObject<{
779
- kind: z.ZodLiteral<"entries">;
780
- conversation: z.ZodString;
781
- entries: z.ZodArray<z.ZodObject<{
782
- id: z.ZodString;
783
- kind: z.ZodEnum<{
784
- task: "task";
785
- mail: "mail";
786
- }>;
787
- direction: z.ZodEnum<{
788
- out: "out";
789
- in: "in";
790
- }>;
791
- peer: z.ZodString;
792
- at: z.ZodNumber;
793
- text: z.ZodOptional<z.ZodString>;
794
- taskId: z.ZodOptional<z.ZodString>;
795
- stage: z.ZodOptional<z.ZodEnum<{
796
- accepted: "accepted";
797
- relayed: "relayed";
798
- delivered: "delivered";
799
- held: "held";
800
- handed_to_agent: "handed_to_agent";
801
- read: "read";
802
- replied: "replied";
803
- rejected: "rejected";
804
- expired: "expired";
805
- }>>;
806
- role: z.ZodOptional<z.ZodEnum<{
807
- requester: "requester";
808
- executor: "executor";
809
- }>>;
810
- state: z.ZodOptional<z.ZodEnum<{
811
- TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
812
- TASK_STATE_WORKING: "TASK_STATE_WORKING";
813
- TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
814
- TASK_STATE_FAILED: "TASK_STATE_FAILED";
815
- TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
816
- TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
817
- TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
818
- TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
819
- }>>;
820
- }, z.core.$strip>>;
821
- more: z.ZodBoolean;
822
- }, z.core.$strip>], "kind">;
2783
+ }>>;
2784
+ busy: z.ZodBoolean;
2785
+ version: z.ZodString;
2786
+ storeSchema: z.ZodNumber;
2787
+ }, z.core.$strip>;
823
2788
  };
824
2789
  readonly "notice.subscribe": {
825
2790
  readonly params: z.ZodObject<{
@@ -843,7 +2808,6 @@ export declare const IPC_METHODS: {
843
2808
  request: "request";
844
2809
  alert: "alert";
845
2810
  }>;
846
- conversation: z.ZodOptional<z.ZodString>;
847
2811
  from: z.ZodOptional<z.ZodObject<{
848
2812
  name: z.ZodString;
849
2813
  email: z.ZodOptional<z.ZodString>;
@@ -894,7 +2858,6 @@ export declare const IPC_METHODS: {
894
2858
  at: z.ZodNumber;
895
2859
  }, z.core.$strip>>;
896
2860
  counts: z.ZodObject<{
897
- unread: z.ZodNumber;
898
2861
  requests: z.ZodNumber;
899
2862
  }, z.core.$strip>;
900
2863
  }, z.core.$strip>;
@@ -995,7 +2958,7 @@ export declare const IPC_METHODS: {
995
2958
  subject: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
996
2959
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
997
2960
  }, z.core.$strict>, z.ZodObject<{
998
- channel: z.ZodString;
2961
+ conv: z.ZodString;
999
2962
  }, z.core.$strict>]>>;
1000
2963
  }, z.core.$strict>;
1001
2964
  readonly result: z.ZodObject<{
@@ -1014,31 +2977,29 @@ export declare const IPC_METHODS: {
1014
2977
  blocked: "blocked";
1015
2978
  }>>;
1016
2979
  ask: z.ZodOptional<z.ZodEnum<{
1017
- open: "open";
1018
2980
  request: "request";
2981
+ open: "open";
1019
2982
  no: "no";
1020
2983
  }>>;
1021
2984
  trustedUntil: z.ZodOptional<z.ZodNumber>;
1022
2985
  discoverable: z.ZodOptional<z.ZodBoolean>;
1023
2986
  subject: z.ZodUnion<readonly [z.ZodObject<{
1024
2987
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1025
- }, z.core.$strip>, z.ZodObject<{
1026
- channel: z.ZodString;
1027
- name: z.ZodOptional<z.ZodString>;
1028
- }, z.core.$strip>]>;
2988
+ }, z.core.$strict>, z.ZodObject<{
2989
+ conv: z.ZodString;
2990
+ }, z.core.$strict>]>;
1029
2991
  }, z.core.$strip>>;
1030
2992
  review: z.ZodArray<z.ZodObject<{
1031
2993
  subject: z.ZodUnion<readonly [z.ZodObject<{
1032
2994
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1033
- }, z.core.$strip>, z.ZodObject<{
1034
- channel: z.ZodString;
1035
- name: z.ZodOptional<z.ZodString>;
1036
- }, z.core.$strip>]>;
2995
+ }, z.core.$strict>, z.ZodObject<{
2996
+ conv: z.ZodString;
2997
+ }, z.core.$strict>]>;
1037
2998
  chat: z.ZodOptional<z.ZodLiteral<"open">>;
1038
2999
  agentMail: z.ZodOptional<z.ZodLiteral<"open">>;
1039
3000
  ask: z.ZodOptional<z.ZodEnum<{
1040
- open: "open";
1041
3001
  request: "request";
3002
+ open: "open";
1042
3003
  }>>;
1043
3004
  trustedUntil: z.ZodOptional<z.ZodNumber>;
1044
3005
  discoverable: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1059,8 +3020,8 @@ export declare const IPC_METHODS: {
1059
3020
  blocked: "blocked";
1060
3021
  }>>;
1061
3022
  ask: z.ZodOptional<z.ZodEnum<{
1062
- open: "open";
1063
3023
  request: "request";
3024
+ open: "open";
1064
3025
  no: "no";
1065
3026
  }>>;
1066
3027
  trustedUntil: z.ZodOptional<z.ZodNumber>;
@@ -1068,7 +3029,7 @@ export declare const IPC_METHODS: {
1068
3029
  subject: z.ZodUnion<readonly [z.ZodObject<{
1069
3030
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1070
3031
  }, z.core.$strict>, z.ZodObject<{
1071
- channel: z.ZodString;
3032
+ conv: z.ZodString;
1072
3033
  }, z.core.$strict>]>;
1073
3034
  }, z.core.$strict>;
1074
3035
  readonly result: z.ZodObject<{
@@ -1087,18 +3048,17 @@ export declare const IPC_METHODS: {
1087
3048
  blocked: "blocked";
1088
3049
  }>>;
1089
3050
  ask: z.ZodOptional<z.ZodEnum<{
1090
- open: "open";
1091
3051
  request: "request";
3052
+ open: "open";
1092
3053
  no: "no";
1093
3054
  }>>;
1094
3055
  trustedUntil: z.ZodOptional<z.ZodNumber>;
1095
3056
  discoverable: z.ZodOptional<z.ZodBoolean>;
1096
3057
  subject: z.ZodUnion<readonly [z.ZodObject<{
1097
3058
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1098
- }, z.core.$strip>, z.ZodObject<{
1099
- channel: z.ZodString;
1100
- name: z.ZodOptional<z.ZodString>;
1101
- }, z.core.$strip>]>;
3059
+ }, z.core.$strict>, z.ZodObject<{
3060
+ conv: z.ZodString;
3061
+ }, z.core.$strict>]>;
1102
3062
  }, z.core.$strip>;
1103
3063
  }, z.core.$strip>;
1104
3064
  };
@@ -1115,8 +3075,8 @@ export declare const IPC_METHODS: {
1115
3075
  blocked: "blocked";
1116
3076
  }>>;
1117
3077
  ask: z.ZodOptional<z.ZodEnum<{
1118
- open: "open";
1119
3078
  request: "request";
3079
+ open: "open";
1120
3080
  no: "no";
1121
3081
  }>>;
1122
3082
  trustedUntil: z.ZodOptional<z.ZodNumber>;
@@ -1124,7 +3084,7 @@ export declare const IPC_METHODS: {
1124
3084
  subject: z.ZodUnion<readonly [z.ZodObject<{
1125
3085
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1126
3086
  }, z.core.$strict>, z.ZodObject<{
1127
- channel: z.ZodString;
3087
+ conv: z.ZodString;
1128
3088
  }, z.core.$strict>]>;
1129
3089
  }, z.core.$strict>;
1130
3090
  readonly result: z.ZodObject<{
@@ -1154,10 +3114,17 @@ export declare const IPC_METHODS: {
1154
3114
  }, z.core.$strip>, z.ZodObject<{
1155
3115
  id: z.ZodString;
1156
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
+ }>;
1157
3124
  from: z.ZodObject<{
1158
3125
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1159
3126
  device: z.ZodString;
1160
- label: z.ZodString;
3127
+ label: z.ZodOptional<z.ZodString>;
1161
3128
  name: z.ZodString;
1162
3129
  email: z.ZodOptional<z.ZodString>;
1163
3130
  org: z.ZodEnum<{
@@ -1175,17 +3142,24 @@ export declare const IPC_METHODS: {
1175
3142
  agent: z.ZodString;
1176
3143
  email: z.ZodString;
1177
3144
  at: z.ZodNumber;
1178
- }, 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>]>>;
1179
3153
  }, z.core.$strip>;
1180
3154
  };
1181
3155
  readonly "request.answer": {
1182
3156
  readonly params: z.ZodObject<{
1183
3157
  id: z.ZodString;
1184
3158
  answer: z.ZodEnum<{
1185
- once: "once";
1186
- always: "always";
1187
3159
  accept: "accept";
1188
3160
  decline: "decline";
3161
+ once: "once";
3162
+ always: "always";
1189
3163
  block: "block";
1190
3164
  }>;
1191
3165
  all: z.ZodOptional<z.ZodBoolean>;
@@ -1198,10 +3172,10 @@ export declare const IPC_METHODS: {
1198
3172
  readonly params: z.ZodObject<{
1199
3173
  id: z.ZodString;
1200
3174
  answer: z.ZodEnum<{
1201
- once: "once";
1202
- always: "always";
1203
3175
  accept: "accept";
1204
3176
  decline: "decline";
3177
+ once: "once";
3178
+ always: "always";
1205
3179
  block: "block";
1206
3180
  }>;
1207
3181
  all: z.ZodOptional<z.ZodBoolean>;
@@ -1211,6 +3185,7 @@ export declare const IPC_METHODS: {
1211
3185
  message: "message";
1212
3186
  task: "task";
1213
3187
  contact: "contact";
3188
+ "agent-invitation": "agent-invitation";
1214
3189
  suggestion: "suggestion";
1215
3190
  }>;
1216
3191
  from: z.ZodObject<{
@@ -1236,7 +3211,7 @@ export declare const IPC_METHODS: {
1236
3211
  }, z.core.$strict>;
1237
3212
  readonly result: z.ZodObject<{
1238
3213
  id: z.ZodString;
1239
- conversation: z.ZodString;
3214
+ cid: z.ZodString;
1240
3215
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1241
3216
  }, z.core.$strip>;
1242
3217
  };
@@ -1406,12 +3381,14 @@ export declare const IPC_METHODS: {
1406
3381
  id: z.ZodString;
1407
3382
  key: z.ZodString;
1408
3383
  from: z.ZodObject<{
1409
- address: z.ZodString;
1410
3384
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1411
3385
  agent: z.ZodOptional<z.ZodString>;
1412
- device: z.ZodString;
1413
- label: z.ZodString;
3386
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3387
+ device: z.ZodOptional<z.ZodString>;
3388
+ label: z.ZodOptional<z.ZodString>;
1414
3389
  }, z.core.$strip>;
3390
+ cid: z.ZodOptional<z.ZodString>;
3391
+ eventId: z.ZodOptional<z.ZodString>;
1415
3392
  kind: z.ZodEnum<{
1416
3393
  message: "message";
1417
3394
  task: "task";
@@ -1453,6 +3430,7 @@ export declare const IPC_METHODS: {
1453
3430
  readonly params: z.ZodObject<{
1454
3431
  key: z.ZodString;
1455
3432
  id: z.ZodString;
3433
+ cid: z.ZodOptional<z.ZodString>;
1456
3434
  message: z.ZodOptional<z.ZodBoolean>;
1457
3435
  }, z.core.$strict>;
1458
3436
  readonly result: z.ZodObject<{
@@ -1460,12 +3438,14 @@ export declare const IPC_METHODS: {
1460
3438
  id: z.ZodString;
1461
3439
  key: z.ZodString;
1462
3440
  from: z.ZodObject<{
1463
- address: z.ZodString;
1464
3441
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1465
3442
  agent: z.ZodOptional<z.ZodString>;
1466
- device: z.ZodString;
1467
- label: z.ZodString;
3443
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3444
+ device: z.ZodOptional<z.ZodString>;
3445
+ label: z.ZodOptional<z.ZodString>;
1468
3446
  }, z.core.$strip>;
3447
+ cid: z.ZodOptional<z.ZodString>;
3448
+ eventId: z.ZodOptional<z.ZodString>;
1469
3449
  kind: z.ZodEnum<{
1470
3450
  message: "message";
1471
3451
  task: "task";
@@ -1523,6 +3503,7 @@ export declare const IPC_METHODS: {
1523
3503
  readonly params: z.ZodObject<{
1524
3504
  key: z.ZodString;
1525
3505
  id: z.ZodString;
3506
+ cid: z.ZodOptional<z.ZodString>;
1526
3507
  stage: z.ZodEnum<{
1527
3508
  handed_to_agent: "handed_to_agent";
1528
3509
  read: "read";
@@ -2271,42 +4252,208 @@ export declare const IPC_METHODS: {
2271
4252
  enc: z.ZodString;
2272
4253
  }, z.core.$strip>;
2273
4254
  };
2274
- /** Creates a channel with this person and `persons` (at most `LIMITS.channelPersons` together). */
2275
- readonly "channel.create": {
2276
- readonly params: z.ZodObject<{
2277
- name: z.ZodString;
2278
- persons: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2279
- }, z.core.$strict>;
2280
- readonly result: z.ZodObject<{
2281
- id: z.ZodString;
2282
- name: z.ZodString;
2283
- }, z.core.$strip>;
2284
- };
2285
- readonly "channel.invite": {
2286
- readonly params: z.ZodObject<{
2287
- name: z.ZodString;
2288
- persons: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
2289
- }, z.core.$strict>;
2290
- readonly result: z.ZodObject<{
2291
- ok: z.ZodLiteral<true>;
2292
- }, z.core.$strip>;
2293
- };
2294
- readonly "channel.leave": {
4255
+ readonly "task.create": {
2295
4256
  readonly params: z.ZodObject<{
2296
- 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>;
2297
4281
  }, z.core.$strict>;
2298
4282
  readonly result: z.ZodObject<{
2299
- 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>>;
2300
4357
  }, z.core.$strip>;
2301
4358
  };
2302
- /** Removes other persons from a channel; only its creator or a team admin may (spec §6.8). */
2303
- readonly "channel.remove": {
4359
+ readonly "task.continue": {
2304
4360
  readonly params: z.ZodObject<{
2305
- name: z.ZodString;
2306
- 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>;
2307
4381
  }, z.core.$strict>;
2308
4382
  readonly result: z.ZodObject<{
2309
- 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>>;
2310
4457
  }, z.core.$strip>;
2311
4458
  };
2312
4459
  readonly "device.status": {
@@ -2381,6 +4528,7 @@ export declare const IPC_METHODS: {
2381
4528
  }>>;
2382
4529
  current: z.ZodBoolean;
2383
4530
  self: z.ZodBoolean;
4531
+ away: z.ZodOptional<z.ZodLiteral<true>>;
2384
4532
  since: z.ZodOptional<z.ZodNumber>;
2385
4533
  unbound: z.ZodOptional<z.ZodObject<{
2386
4534
  at: z.ZodNumber;
@@ -2505,6 +4653,7 @@ export declare const IPC_METHODS: {
2505
4653
  refused: "refused";
2506
4654
  declined: "declined";
2507
4655
  request_required: "request_required";
4656
+ peer_outdated: "peer_outdated";
2508
4657
  rate_limited: "rate_limited";
2509
4658
  loop_guard: "loop_guard";
2510
4659
  too_large: "too_large";
@@ -2705,14 +4854,14 @@ export type IpcResult<M extends IpcMethod> = z.infer<IpcMethods[M]["result"]>;
2705
4854
  * daemon serves on `run/agent.sock` (spec §8.2). Anything else is for human clients, on
2706
4855
  * `run/admin.sock`: the `messaging` CLI and the `/messaging` TUI.
2707
4856
  */
2708
- 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"];
2709
4858
  export type AgentMethod = (typeof AGENT_METHODS)[number];
2710
4859
  /**
2711
4860
  * The human tier (design §7.5): methods that act as the person, on `run/admin.sock` only: their
2712
4861
  * conversations and own lines, the people of the realm, their grants and held requests (spec §6.9), and channels.
2713
4862
  * `conv.read` is in both tiers.
2714
4863
  */
2715
- 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"];
2716
4865
  export type HumanMethod = (typeof HUMAN_METHODS)[number];
2717
4866
  /**
2718
4867
  * The admin tier (design §7.5): this device and the daemon, and in a roster realm the team, on
@@ -2734,12 +4883,14 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
2734
4883
  id: z.ZodString;
2735
4884
  key: z.ZodString;
2736
4885
  from: z.ZodObject<{
2737
- address: z.ZodString;
2738
4886
  person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2739
4887
  agent: z.ZodOptional<z.ZodString>;
2740
- device: z.ZodString;
2741
- label: z.ZodString;
4888
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4889
+ device: z.ZodOptional<z.ZodString>;
4890
+ label: z.ZodOptional<z.ZodString>;
2742
4891
  }, z.core.$strip>;
4892
+ cid: z.ZodOptional<z.ZodString>;
4893
+ eventId: z.ZodOptional<z.ZodString>;
2743
4894
  kind: z.ZodEnum<{
2744
4895
  message: "message";
2745
4896
  task: "task";
@@ -2798,6 +4949,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
2798
4949
  refused: "refused";
2799
4950
  declined: "declined";
2800
4951
  request_required: "request_required";
4952
+ peer_outdated: "peer_outdated";
2801
4953
  rate_limited: "rate_limited";
2802
4954
  loop_guard: "loop_guard";
2803
4955
  too_large: "too_large";
@@ -3016,12 +5168,6 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3016
5168
  }, z.core.$strip>, z.ZodObject<{
3017
5169
  type: z.ZodLiteral<"relay">;
3018
5170
  connected: z.ZodBoolean;
3019
- }, z.core.$strip>, z.ZodObject<{
3020
- type: z.ZodLiteral<"conv">;
3021
- conversation: z.ZodString;
3022
- id: z.ZodString;
3023
- person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3024
- seq: z.ZodNumber;
3025
5171
  }, z.core.$strip>, z.ZodObject<{
3026
5172
  type: z.ZodLiteral<"login">;
3027
5173
  state: z.ZodEnum<{
@@ -3048,6 +5194,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3048
5194
  refused: "refused";
3049
5195
  declined: "declined";
3050
5196
  request_required: "request_required";
5197
+ peer_outdated: "peer_outdated";
3051
5198
  rate_limited: "rate_limited";
3052
5199
  loop_guard: "loop_guard";
3053
5200
  too_large: "too_large";
@@ -3092,7 +5239,6 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3092
5239
  request: "request";
3093
5240
  alert: "alert";
3094
5241
  }>;
3095
- conversation: z.ZodOptional<z.ZodString>;
3096
5242
  from: z.ZodOptional<z.ZodObject<{
3097
5243
  name: z.ZodString;
3098
5244
  email: z.ZodOptional<z.ZodString>;