@wowok/agent-mcp 2.3.13 → 2.3.14

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 (92) hide show
  1. package/dist/harness/checkpoint.d.ts +8 -0
  2. package/dist/harness/checkpoint.js +129 -0
  3. package/dist/harness/index.d.ts +33 -0
  4. package/dist/harness/index.js +75 -0
  5. package/dist/harness/plan.d.ts +18 -0
  6. package/dist/harness/plan.js +252 -0
  7. package/dist/harness/recover.d.ts +17 -0
  8. package/dist/harness/recover.js +139 -0
  9. package/dist/harness/types.d.ts +137 -0
  10. package/dist/harness/types.js +1 -0
  11. package/dist/harness/verify.d.ts +42 -0
  12. package/dist/harness/verify.js +237 -0
  13. package/dist/index.js +134 -52
  14. package/dist/loop-engineering/aggregate.d.ts +50 -0
  15. package/dist/loop-engineering/aggregate.js +132 -0
  16. package/dist/loop-engineering/diagnose.d.ts +21 -0
  17. package/dist/loop-engineering/diagnose.js +179 -0
  18. package/dist/loop-engineering/improve.d.ts +26 -0
  19. package/dist/loop-engineering/improve.js +178 -0
  20. package/dist/loop-engineering/index.d.ts +4 -0
  21. package/dist/loop-engineering/index.js +4 -0
  22. package/dist/loop-engineering/pipeline.d.ts +17 -0
  23. package/dist/loop-engineering/pipeline.js +56 -0
  24. package/dist/mode-market/index.d.ts +3 -0
  25. package/dist/mode-market/index.js +3 -0
  26. package/dist/mode-market/registry.d.ts +53 -0
  27. package/dist/mode-market/registry.js +124 -0
  28. package/dist/mode-market/review.d.ts +27 -0
  29. package/dist/mode-market/review.js +214 -0
  30. package/dist/mode-market/submission.d.ts +25 -0
  31. package/dist/mode-market/submission.js +85 -0
  32. package/dist/schema/call/allocation.d.ts +40 -40
  33. package/dist/schema/call/arbitration.d.ts +90 -90
  34. package/dist/schema/call/base.d.ts +1054 -0
  35. package/dist/schema/call/base.js +100 -22
  36. package/dist/schema/call/bridge-handler.js +36 -18
  37. package/dist/schema/call/bridge.d.ts +115 -115
  38. package/dist/schema/call/handler.d.ts +2 -1
  39. package/dist/schema/call/handler.js +94 -3
  40. package/dist/schema/call/index.d.ts +1 -0
  41. package/dist/schema/call/index.js +1 -0
  42. package/dist/schema/call/machine.d.ts +144 -144
  43. package/dist/schema/call/order.d.ts +12 -12
  44. package/dist/schema/call/progress.d.ts +6 -6
  45. package/dist/schema/call/reward.d.ts +6 -6
  46. package/dist/schema/call/semantic.d.ts +23 -0
  47. package/dist/schema/call/semantic.js +764 -0
  48. package/dist/schema/call/service.d.ts +142 -142
  49. package/dist/schema/call/treasury.d.ts +204 -204
  50. package/dist/schema/local/index.d.ts +113 -2
  51. package/dist/schema/local/index.js +11 -1
  52. package/dist/schema/messenger/index.d.ts +416 -92
  53. package/dist/schema/messenger/index.js +9 -0
  54. package/dist/schema/operations.d.ts +988 -495
  55. package/dist/schema/operations.js +14 -3
  56. package/dist/schema/query/index.d.ts +346 -342
  57. package/dist/schema/query/index.js +4 -1
  58. package/dist/schemas/account_operation.output.json +3 -0
  59. package/dist/schemas/account_operation.schema.json +1 -1
  60. package/dist/schemas/index.json +1 -1
  61. package/dist/schemas/local_info_operation.output.json +3 -0
  62. package/dist/schemas/local_mark_operation.output.json +3 -0
  63. package/dist/schemas/messenger_operation.output.json +21 -0
  64. package/dist/schemas/messenger_operation.schema.json +21 -0
  65. package/dist/schemas/onchain_events.output.json +3 -0
  66. package/dist/schemas/onchain_operations.output.json +464 -21
  67. package/dist/schemas/onchain_operations.schema.json +21 -17
  68. package/dist/schemas/onchain_operations_allocation.schema.json +11 -9
  69. package/dist/schemas/onchain_operations_arbitration.schema.json +11 -9
  70. package/dist/schemas/onchain_operations_contact.schema.json +11 -9
  71. package/dist/schemas/onchain_operations_demand.schema.json +11 -9
  72. package/dist/schemas/onchain_operations_gen_passport.schema.json +21 -17
  73. package/dist/schemas/onchain_operations_guard.schema.json +11 -9
  74. package/dist/schemas/onchain_operations_machine.schema.json +11 -9
  75. package/dist/schemas/onchain_operations_order.schema.json +11 -9
  76. package/dist/schemas/onchain_operations_payment.schema.json +11 -9
  77. package/dist/schemas/onchain_operations_permission.schema.json +11 -9
  78. package/dist/schemas/onchain_operations_personal.schema.json +11 -9
  79. package/dist/schemas/onchain_operations_progress.schema.json +11 -9
  80. package/dist/schemas/onchain_operations_repository.schema.json +11 -9
  81. package/dist/schemas/onchain_operations_reward.schema.json +11 -9
  82. package/dist/schemas/onchain_operations_service.schema.json +11 -9
  83. package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
  84. package/dist/schemas/onchain_table_data.output.json +3 -0
  85. package/dist/schemas/query_toolkit.schema.json +5 -1
  86. package/dist/telemetry/index.d.ts +19 -0
  87. package/dist/telemetry/index.js +112 -0
  88. package/dist/telemetry/redact.d.ts +2 -0
  89. package/dist/telemetry/redact.js +23 -0
  90. package/dist/telemetry/storage.d.ts +8 -0
  91. package/dist/telemetry/storage.js +80 -0
  92. package/package.json +6 -3
@@ -53,13 +53,13 @@ export declare const MessageSchema: z.ZodObject<{
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  signature: string;
55
55
  recipient: string;
56
- recipientPublicKey: string;
57
56
  timestamp: number;
57
+ recipientPublicKey: string;
58
58
  }, {
59
59
  signature: string;
60
60
  recipient: string;
61
- recipientPublicKey: string;
62
61
  timestamp: number;
62
+ recipientPublicKey: string;
63
63
  }>>;
64
64
  createdAt: z.ZodNumber;
65
65
  receivedAt: z.ZodOptional<z.ZodNumber>;
@@ -91,7 +91,7 @@ export declare const MessageSchema: z.ZodObject<{
91
91
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
92
92
  viewedAt: z.ZodOptional<z.ZodNumber>;
93
93
  }, "strip", z.ZodTypeAny, {
94
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
94
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
95
95
  createdAt: number;
96
96
  direction: "received" | "sent";
97
97
  messageId: string;
@@ -114,8 +114,8 @@ export declare const MessageSchema: z.ZodObject<{
114
114
  arkConfirmed?: {
115
115
  signature: string;
116
116
  recipient: string;
117
- recipientPublicKey: string;
118
117
  timestamp: number;
118
+ recipientPublicKey: string;
119
119
  } | undefined;
120
120
  zipMetadata?: {
121
121
  fileName: string;
@@ -130,7 +130,7 @@ export declare const MessageSchema: z.ZodObject<{
130
130
  lastDecryptAttemptAt?: number | undefined;
131
131
  viewedAt?: number | undefined;
132
132
  }, {
133
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
133
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
134
134
  createdAt: number;
135
135
  direction: "received" | "sent";
136
136
  messageId: string;
@@ -153,8 +153,8 @@ export declare const MessageSchema: z.ZodObject<{
153
153
  arkConfirmed?: {
154
154
  signature: string;
155
155
  recipient: string;
156
- recipientPublicKey: string;
157
156
  timestamp: number;
157
+ recipientPublicKey: string;
158
158
  } | undefined;
159
159
  zipMetadata?: {
160
160
  fileName: string;
@@ -201,13 +201,13 @@ export declare const ConversationInfoSchema: z.ZodObject<{
201
201
  }, "strip", z.ZodTypeAny, {
202
202
  signature: string;
203
203
  recipient: string;
204
- recipientPublicKey: string;
205
204
  timestamp: number;
205
+ recipientPublicKey: string;
206
206
  }, {
207
207
  signature: string;
208
208
  recipient: string;
209
- recipientPublicKey: string;
210
209
  timestamp: number;
210
+ recipientPublicKey: string;
211
211
  }>>;
212
212
  createdAt: z.ZodNumber;
213
213
  receivedAt: z.ZodOptional<z.ZodNumber>;
@@ -239,7 +239,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
239
239
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
240
240
  viewedAt: z.ZodOptional<z.ZodNumber>;
241
241
  }, "strip", z.ZodTypeAny, {
242
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
242
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
243
243
  createdAt: number;
244
244
  direction: "received" | "sent";
245
245
  messageId: string;
@@ -262,8 +262,8 @@ export declare const ConversationInfoSchema: z.ZodObject<{
262
262
  arkConfirmed?: {
263
263
  signature: string;
264
264
  recipient: string;
265
- recipientPublicKey: string;
266
265
  timestamp: number;
266
+ recipientPublicKey: string;
267
267
  } | undefined;
268
268
  zipMetadata?: {
269
269
  fileName: string;
@@ -278,7 +278,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
278
278
  lastDecryptAttemptAt?: number | undefined;
279
279
  viewedAt?: number | undefined;
280
280
  }, {
281
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
281
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
282
282
  createdAt: number;
283
283
  direction: "received" | "sent";
284
284
  messageId: string;
@@ -301,8 +301,8 @@ export declare const ConversationInfoSchema: z.ZodObject<{
301
301
  arkConfirmed?: {
302
302
  signature: string;
303
303
  recipient: string;
304
- recipientPublicKey: string;
305
304
  timestamp: number;
305
+ recipientPublicKey: string;
306
306
  } | undefined;
307
307
  zipMetadata?: {
308
308
  fileName: string;
@@ -324,7 +324,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
324
324
  unreadCount: number;
325
325
  lastMessagePreview?: string | undefined;
326
326
  previewMessages?: {
327
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
327
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
328
328
  createdAt: number;
329
329
  direction: "received" | "sent";
330
330
  messageId: string;
@@ -347,8 +347,8 @@ export declare const ConversationInfoSchema: z.ZodObject<{
347
347
  arkConfirmed?: {
348
348
  signature: string;
349
349
  recipient: string;
350
- recipientPublicKey: string;
351
350
  timestamp: number;
351
+ recipientPublicKey: string;
352
352
  } | undefined;
353
353
  zipMetadata?: {
354
354
  fileName: string;
@@ -370,7 +370,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
370
370
  unreadCount: number;
371
371
  lastMessagePreview?: string | undefined;
372
372
  previewMessages?: {
373
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
373
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
374
374
  createdAt: number;
375
375
  direction: "received" | "sent";
376
376
  messageId: string;
@@ -393,8 +393,8 @@ export declare const ConversationInfoSchema: z.ZodObject<{
393
393
  arkConfirmed?: {
394
394
  signature: string;
395
395
  recipient: string;
396
- recipientPublicKey: string;
397
396
  timestamp: number;
397
+ recipientPublicKey: string;
398
398
  } | undefined;
399
399
  zipMetadata?: {
400
400
  fileName: string;
@@ -482,20 +482,20 @@ export declare const MessageFilterSchema: z.ZodObject<{
482
482
  excludeAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
483
483
  relation: z.ZodOptional<z.ZodEnum<["union", "intersection"]>>;
484
484
  }, "strip", z.ZodTypeAny, {
485
+ relation?: "union" | "intersection" | undefined;
485
486
  includeAddresses?: string[] | undefined;
486
487
  excludeAddresses?: string[] | undefined;
487
- relation?: "union" | "intersection" | undefined;
488
488
  }, {
489
+ relation?: "union" | "intersection" | undefined;
489
490
  includeAddresses?: string[] | undefined;
490
491
  excludeAddresses?: string[] | undefined;
491
- relation?: "union" | "intersection" | undefined;
492
492
  }>>;
493
493
  viewed: z.ZodOptional<z.ZodBoolean>;
494
494
  viewedAtStart: z.ZodOptional<z.ZodNumber>;
495
495
  viewedAtEnd: z.ZodOptional<z.ZodNumber>;
496
496
  skipAutoMarkViewed: z.ZodOptional<z.ZodBoolean>;
497
497
  }, "strip", z.ZodTypeAny, {
498
- status?: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
498
+ status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
499
499
  account?: string | undefined;
500
500
  limit?: number | undefined;
501
501
  direction?: "received" | "sent" | undefined;
@@ -529,15 +529,15 @@ export declare const MessageFilterSchema: z.ZodObject<{
529
529
  lastReceivedIndexMax?: number | undefined;
530
530
  listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
531
531
  customListFilter?: {
532
+ relation?: "union" | "intersection" | undefined;
532
533
  includeAddresses?: string[] | undefined;
533
534
  excludeAddresses?: string[] | undefined;
534
- relation?: "union" | "intersection" | undefined;
535
535
  } | undefined;
536
536
  viewed?: boolean | undefined;
537
537
  viewedAtStart?: number | undefined;
538
538
  viewedAtEnd?: number | undefined;
539
539
  }, {
540
- status?: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
540
+ status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
541
541
  account?: string | undefined;
542
542
  limit?: number | undefined;
543
543
  direction?: "received" | "sent" | undefined;
@@ -571,9 +571,9 @@ export declare const MessageFilterSchema: z.ZodObject<{
571
571
  lastReceivedIndexMax?: number | undefined;
572
572
  listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
573
573
  customListFilter?: {
574
+ relation?: "union" | "intersection" | undefined;
574
575
  includeAddresses?: string[] | undefined;
575
576
  excludeAddresses?: string[] | undefined;
576
- relation?: "union" | "intersection" | undefined;
577
577
  } | undefined;
578
578
  viewed?: boolean | undefined;
579
579
  viewedAtStart?: number | undefined;
@@ -651,7 +651,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
651
651
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
652
652
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
653
653
  }, "strip", z.ZodTypeAny, {
654
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
654
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
655
655
  messageId: string;
656
656
  lastReceivedLeafIndex?: number | undefined;
657
657
  merkleData?: {
@@ -664,7 +664,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
664
664
  } | undefined;
665
665
  guardList?: string[] | undefined;
666
666
  }, {
667
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
667
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
668
668
  messageId: string;
669
669
  lastReceivedLeafIndex?: number | undefined;
670
670
  merkleData?: {
@@ -1500,11 +1500,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1500
1500
  }>>;
1501
1501
  }, "strip", z.ZodTypeAny, {
1502
1502
  content: string;
1503
- operation: "send_message";
1504
1503
  to: string | {
1505
1504
  name_or_address?: string | undefined;
1506
1505
  local_mark_first?: boolean | undefined;
1507
1506
  };
1507
+ operation: "send_message";
1508
1508
  options?: {
1509
1509
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1510
1510
  guardAddress?: string | undefined;
@@ -1515,11 +1515,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1515
1515
  from?: string | undefined;
1516
1516
  }, {
1517
1517
  content: string;
1518
- operation: "send_message";
1519
1518
  to: string | {
1520
1519
  name_or_address?: string | undefined;
1521
1520
  local_mark_first?: boolean | undefined;
1522
1521
  };
1522
+ operation: "send_message";
1523
1523
  options?: {
1524
1524
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1525
1525
  guardAddress?: string | undefined;
@@ -1569,11 +1569,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1569
1569
  }>>;
1570
1570
  }, "strip", z.ZodTypeAny, {
1571
1571
  filePath: string;
1572
- operation: "send_file";
1573
1572
  to: string | {
1574
1573
  name_or_address?: string | undefined;
1575
1574
  local_mark_first?: boolean | undefined;
1576
1575
  };
1576
+ operation: "send_file";
1577
1577
  options?: {
1578
1578
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1579
1579
  fileName?: string | undefined;
@@ -1586,11 +1586,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1586
1586
  from?: string | undefined;
1587
1587
  }, {
1588
1588
  filePath: string;
1589
- operation: "send_file";
1590
1589
  to: string | {
1591
1590
  name_or_address?: string | undefined;
1592
1591
  local_mark_first?: boolean | undefined;
1593
1592
  };
1593
+ operation: "send_file";
1594
1594
  options?: {
1595
1595
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1596
1596
  fileName?: string | undefined;
@@ -1647,20 +1647,20 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1647
1647
  excludeAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1648
1648
  relation: z.ZodOptional<z.ZodEnum<["union", "intersection"]>>;
1649
1649
  }, "strip", z.ZodTypeAny, {
1650
+ relation?: "union" | "intersection" | undefined;
1650
1651
  includeAddresses?: string[] | undefined;
1651
1652
  excludeAddresses?: string[] | undefined;
1652
- relation?: "union" | "intersection" | undefined;
1653
1653
  }, {
1654
+ relation?: "union" | "intersection" | undefined;
1654
1655
  includeAddresses?: string[] | undefined;
1655
1656
  excludeAddresses?: string[] | undefined;
1656
- relation?: "union" | "intersection" | undefined;
1657
1657
  }>>;
1658
1658
  viewed: z.ZodOptional<z.ZodBoolean>;
1659
1659
  viewedAtStart: z.ZodOptional<z.ZodNumber>;
1660
1660
  viewedAtEnd: z.ZodOptional<z.ZodNumber>;
1661
1661
  skipAutoMarkViewed: z.ZodOptional<z.ZodBoolean>;
1662
1662
  }, "strip", z.ZodTypeAny, {
1663
- status?: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1663
+ status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1664
1664
  account?: string | undefined;
1665
1665
  limit?: number | undefined;
1666
1666
  direction?: "received" | "sent" | undefined;
@@ -1694,15 +1694,15 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1694
1694
  lastReceivedIndexMax?: number | undefined;
1695
1695
  listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1696
1696
  customListFilter?: {
1697
+ relation?: "union" | "intersection" | undefined;
1697
1698
  includeAddresses?: string[] | undefined;
1698
1699
  excludeAddresses?: string[] | undefined;
1699
- relation?: "union" | "intersection" | undefined;
1700
1700
  } | undefined;
1701
1701
  viewed?: boolean | undefined;
1702
1702
  viewedAtStart?: number | undefined;
1703
1703
  viewedAtEnd?: number | undefined;
1704
1704
  }, {
1705
- status?: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1705
+ status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1706
1706
  account?: string | undefined;
1707
1707
  limit?: number | undefined;
1708
1708
  direction?: "received" | "sent" | undefined;
@@ -1736,9 +1736,9 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1736
1736
  lastReceivedIndexMax?: number | undefined;
1737
1737
  listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1738
1738
  customListFilter?: {
1739
+ relation?: "union" | "intersection" | undefined;
1739
1740
  includeAddresses?: string[] | undefined;
1740
1741
  excludeAddresses?: string[] | undefined;
1741
- relation?: "union" | "intersection" | undefined;
1742
1742
  } | undefined;
1743
1743
  viewed?: boolean | undefined;
1744
1744
  viewedAtStart?: number | undefined;
@@ -1747,7 +1747,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1747
1747
  }, "strip", z.ZodTypeAny, {
1748
1748
  operation: "watch_messages";
1749
1749
  filter?: {
1750
- status?: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1750
+ status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1751
1751
  account?: string | undefined;
1752
1752
  limit?: number | undefined;
1753
1753
  direction?: "received" | "sent" | undefined;
@@ -1781,9 +1781,9 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1781
1781
  lastReceivedIndexMax?: number | undefined;
1782
1782
  listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1783
1783
  customListFilter?: {
1784
+ relation?: "union" | "intersection" | undefined;
1784
1785
  includeAddresses?: string[] | undefined;
1785
1786
  excludeAddresses?: string[] | undefined;
1786
- relation?: "union" | "intersection" | undefined;
1787
1787
  } | undefined;
1788
1788
  viewed?: boolean | undefined;
1789
1789
  viewedAtStart?: number | undefined;
@@ -1792,7 +1792,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1792
1792
  }, {
1793
1793
  operation: "watch_messages";
1794
1794
  filter?: {
1795
- status?: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1795
+ status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1796
1796
  account?: string | undefined;
1797
1797
  limit?: number | undefined;
1798
1798
  direction?: "received" | "sent" | undefined;
@@ -1826,9 +1826,9 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1826
1826
  lastReceivedIndexMax?: number | undefined;
1827
1827
  listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1828
1828
  customListFilter?: {
1829
+ relation?: "union" | "intersection" | undefined;
1829
1830
  includeAddresses?: string[] | undefined;
1830
1831
  excludeAddresses?: string[] | undefined;
1831
- relation?: "union" | "intersection" | undefined;
1832
1832
  } | undefined;
1833
1833
  viewed?: boolean | undefined;
1834
1834
  viewedAtStart?: number | undefined;
@@ -1863,13 +1863,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1863
1863
  }, "strip", z.ZodTypeAny, {
1864
1864
  signature: string;
1865
1865
  recipient: string;
1866
- recipientPublicKey: string;
1867
1866
  timestamp: number;
1867
+ recipientPublicKey: string;
1868
1868
  }, {
1869
1869
  signature: string;
1870
1870
  recipient: string;
1871
- recipientPublicKey: string;
1872
1871
  timestamp: number;
1872
+ recipientPublicKey: string;
1873
1873
  }>>;
1874
1874
  createdAt: z.ZodNumber;
1875
1875
  receivedAt: z.ZodOptional<z.ZodNumber>;
@@ -1901,7 +1901,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1901
1901
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
1902
1902
  viewedAt: z.ZodOptional<z.ZodNumber>;
1903
1903
  }, "strip", z.ZodTypeAny, {
1904
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1904
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1905
1905
  createdAt: number;
1906
1906
  direction: "received" | "sent";
1907
1907
  messageId: string;
@@ -1924,8 +1924,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1924
1924
  arkConfirmed?: {
1925
1925
  signature: string;
1926
1926
  recipient: string;
1927
- recipientPublicKey: string;
1928
1927
  timestamp: number;
1928
+ recipientPublicKey: string;
1929
1929
  } | undefined;
1930
1930
  zipMetadata?: {
1931
1931
  fileName: string;
@@ -1940,7 +1940,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1940
1940
  lastDecryptAttemptAt?: number | undefined;
1941
1941
  viewedAt?: number | undefined;
1942
1942
  }, {
1943
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1943
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1944
1944
  createdAt: number;
1945
1945
  direction: "received" | "sent";
1946
1946
  messageId: string;
@@ -1963,8 +1963,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1963
1963
  arkConfirmed?: {
1964
1964
  signature: string;
1965
1965
  recipient: string;
1966
- recipientPublicKey: string;
1967
1966
  timestamp: number;
1967
+ recipientPublicKey: string;
1968
1968
  } | undefined;
1969
1969
  zipMetadata?: {
1970
1970
  fileName: string;
@@ -1984,7 +1984,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1984
1984
  operation: "extract_zip_messages";
1985
1985
  outputDir: string;
1986
1986
  messages: (string | {
1987
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1987
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1988
1988
  createdAt: number;
1989
1989
  direction: "received" | "sent";
1990
1990
  messageId: string;
@@ -2007,8 +2007,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2007
2007
  arkConfirmed?: {
2008
2008
  signature: string;
2009
2009
  recipient: string;
2010
- recipientPublicKey: string;
2011
2010
  timestamp: number;
2011
+ recipientPublicKey: string;
2012
2012
  } | undefined;
2013
2013
  zipMetadata?: {
2014
2014
  fileName: string;
@@ -2028,7 +2028,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2028
2028
  operation: "extract_zip_messages";
2029
2029
  outputDir: string;
2030
2030
  messages: (string | {
2031
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2031
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2032
2032
  createdAt: number;
2033
2033
  direction: "received" | "sent";
2034
2034
  messageId: string;
@@ -2051,8 +2051,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2051
2051
  arkConfirmed?: {
2052
2052
  signature: string;
2053
2053
  recipient: string;
2054
- recipientPublicKey: string;
2055
2054
  timestamp: number;
2055
+ recipientPublicKey: string;
2056
2056
  } | undefined;
2057
2057
  zipMetadata?: {
2058
2058
  fileName: string;
@@ -2879,6 +2879,18 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2879
2879
  local_mark_first?: boolean | undefined;
2880
2880
  };
2881
2881
  account?: string | undefined;
2882
+ }>, z.ZodObject<{
2883
+ operation: z.ZodLiteral<"pull_messages">;
2884
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2885
+ limit: z.ZodOptional<z.ZodNumber>;
2886
+ }, "strip", z.ZodTypeAny, {
2887
+ operation: "pull_messages";
2888
+ account?: string | undefined;
2889
+ limit?: number | undefined;
2890
+ }, {
2891
+ operation: "pull_messages";
2892
+ account?: string | undefined;
2893
+ limit?: number | undefined;
2882
2894
  }>]>;
2883
2895
  export declare const MessengerOperationOutputSchema: z.ZodObject<{
2884
2896
  result: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
@@ -2915,13 +2927,13 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2915
2927
  }, "strip", z.ZodTypeAny, {
2916
2928
  signature: string;
2917
2929
  recipient: string;
2918
- recipientPublicKey: string;
2919
2930
  timestamp: number;
2931
+ recipientPublicKey: string;
2920
2932
  }, {
2921
2933
  signature: string;
2922
2934
  recipient: string;
2923
- recipientPublicKey: string;
2924
2935
  timestamp: number;
2936
+ recipientPublicKey: string;
2925
2937
  }>>;
2926
2938
  createdAt: z.ZodNumber;
2927
2939
  receivedAt: z.ZodOptional<z.ZodNumber>;
@@ -2953,7 +2965,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2953
2965
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
2954
2966
  viewedAt: z.ZodOptional<z.ZodNumber>;
2955
2967
  }, "strip", z.ZodTypeAny, {
2956
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2968
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2957
2969
  createdAt: number;
2958
2970
  direction: "received" | "sent";
2959
2971
  messageId: string;
@@ -2976,8 +2988,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2976
2988
  arkConfirmed?: {
2977
2989
  signature: string;
2978
2990
  recipient: string;
2979
- recipientPublicKey: string;
2980
2991
  timestamp: number;
2992
+ recipientPublicKey: string;
2981
2993
  } | undefined;
2982
2994
  zipMetadata?: {
2983
2995
  fileName: string;
@@ -2992,7 +3004,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2992
3004
  lastDecryptAttemptAt?: number | undefined;
2993
3005
  viewedAt?: number | undefined;
2994
3006
  }, {
2995
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3007
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2996
3008
  createdAt: number;
2997
3009
  direction: "received" | "sent";
2998
3010
  messageId: string;
@@ -3015,8 +3027,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3015
3027
  arkConfirmed?: {
3016
3028
  signature: string;
3017
3029
  recipient: string;
3018
- recipientPublicKey: string;
3019
3030
  timestamp: number;
3031
+ recipientPublicKey: string;
3020
3032
  } | undefined;
3021
3033
  zipMetadata?: {
3022
3034
  fileName: string;
@@ -3038,7 +3050,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3038
3050
  unreadCount: number;
3039
3051
  lastMessagePreview?: string | undefined;
3040
3052
  previewMessages?: {
3041
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3053
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3042
3054
  createdAt: number;
3043
3055
  direction: "received" | "sent";
3044
3056
  messageId: string;
@@ -3061,8 +3073,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3061
3073
  arkConfirmed?: {
3062
3074
  signature: string;
3063
3075
  recipient: string;
3064
- recipientPublicKey: string;
3065
3076
  timestamp: number;
3077
+ recipientPublicKey: string;
3066
3078
  } | undefined;
3067
3079
  zipMetadata?: {
3068
3080
  fileName: string;
@@ -3084,7 +3096,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3084
3096
  unreadCount: number;
3085
3097
  lastMessagePreview?: string | undefined;
3086
3098
  previewMessages?: {
3087
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3099
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3088
3100
  createdAt: number;
3089
3101
  direction: "received" | "sent";
3090
3102
  messageId: string;
@@ -3107,8 +3119,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3107
3119
  arkConfirmed?: {
3108
3120
  signature: string;
3109
3121
  recipient: string;
3110
- recipientPublicKey: string;
3111
3122
  timestamp: number;
3123
+ recipientPublicKey: string;
3112
3124
  } | undefined;
3113
3125
  zipMetadata?: {
3114
3126
  fileName: string;
@@ -3132,7 +3144,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3132
3144
  unreadCount: number;
3133
3145
  lastMessagePreview?: string | undefined;
3134
3146
  previewMessages?: {
3135
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3147
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3136
3148
  createdAt: number;
3137
3149
  direction: "received" | "sent";
3138
3150
  messageId: string;
@@ -3155,8 +3167,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3155
3167
  arkConfirmed?: {
3156
3168
  signature: string;
3157
3169
  recipient: string;
3158
- recipientPublicKey: string;
3159
3170
  timestamp: number;
3171
+ recipientPublicKey: string;
3160
3172
  } | undefined;
3161
3173
  zipMetadata?: {
3162
3174
  fileName: string;
@@ -3181,7 +3193,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3181
3193
  unreadCount: number;
3182
3194
  lastMessagePreview?: string | undefined;
3183
3195
  previewMessages?: {
3184
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3196
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3185
3197
  createdAt: number;
3186
3198
  direction: "received" | "sent";
3187
3199
  messageId: string;
@@ -3204,8 +3216,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3204
3216
  arkConfirmed?: {
3205
3217
  signature: string;
3206
3218
  recipient: string;
3207
- recipientPublicKey: string;
3208
3219
  timestamp: number;
3220
+ recipientPublicKey: string;
3209
3221
  } | undefined;
3210
3222
  zipMetadata?: {
3211
3223
  fileName: string;
@@ -3252,7 +3264,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3252
3264
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3253
3265
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
3254
3266
  }, "strip", z.ZodTypeAny, {
3255
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3267
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3256
3268
  messageId: string;
3257
3269
  lastReceivedLeafIndex?: number | undefined;
3258
3270
  merkleData?: {
@@ -3265,7 +3277,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3265
3277
  } | undefined;
3266
3278
  guardList?: string[] | undefined;
3267
3279
  }, {
3268
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3280
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3269
3281
  messageId: string;
3270
3282
  lastReceivedLeafIndex?: number | undefined;
3271
3283
  merkleData?: {
@@ -3280,7 +3292,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3280
3292
  }>;
3281
3293
  }, "strip", z.ZodTypeAny, {
3282
3294
  result: {
3283
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3295
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3284
3296
  messageId: string;
3285
3297
  lastReceivedLeafIndex?: number | undefined;
3286
3298
  merkleData?: {
@@ -3296,7 +3308,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3296
3308
  operation: "send_message";
3297
3309
  }, {
3298
3310
  result: {
3299
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3311
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3300
3312
  messageId: string;
3301
3313
  lastReceivedLeafIndex?: number | undefined;
3302
3314
  merkleData?: {
@@ -3340,7 +3352,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3340
3352
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3341
3353
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
3342
3354
  }, "strip", z.ZodTypeAny, {
3343
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3355
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3344
3356
  messageId: string;
3345
3357
  lastReceivedLeafIndex?: number | undefined;
3346
3358
  merkleData?: {
@@ -3353,7 +3365,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3353
3365
  } | undefined;
3354
3366
  guardList?: string[] | undefined;
3355
3367
  }, {
3356
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3368
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3357
3369
  messageId: string;
3358
3370
  lastReceivedLeafIndex?: number | undefined;
3359
3371
  merkleData?: {
@@ -3368,7 +3380,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3368
3380
  }>;
3369
3381
  }, "strip", z.ZodTypeAny, {
3370
3382
  result: {
3371
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3383
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3372
3384
  messageId: string;
3373
3385
  lastReceivedLeafIndex?: number | undefined;
3374
3386
  merkleData?: {
@@ -3384,7 +3396,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3384
3396
  operation: "send_file";
3385
3397
  }, {
3386
3398
  result: {
3387
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3399
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3388
3400
  messageId: string;
3389
3401
  lastReceivedLeafIndex?: number | undefined;
3390
3402
  merkleData?: {
@@ -3426,13 +3438,13 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3426
3438
  }, "strip", z.ZodTypeAny, {
3427
3439
  signature: string;
3428
3440
  recipient: string;
3429
- recipientPublicKey: string;
3430
3441
  timestamp: number;
3442
+ recipientPublicKey: string;
3431
3443
  }, {
3432
3444
  signature: string;
3433
3445
  recipient: string;
3434
- recipientPublicKey: string;
3435
3446
  timestamp: number;
3447
+ recipientPublicKey: string;
3436
3448
  }>>;
3437
3449
  createdAt: z.ZodNumber;
3438
3450
  receivedAt: z.ZodOptional<z.ZodNumber>;
@@ -3464,7 +3476,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3464
3476
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
3465
3477
  viewedAt: z.ZodOptional<z.ZodNumber>;
3466
3478
  }, "strip", z.ZodTypeAny, {
3467
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3479
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3468
3480
  createdAt: number;
3469
3481
  direction: "received" | "sent";
3470
3482
  messageId: string;
@@ -3487,8 +3499,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3487
3499
  arkConfirmed?: {
3488
3500
  signature: string;
3489
3501
  recipient: string;
3490
- recipientPublicKey: string;
3491
3502
  timestamp: number;
3503
+ recipientPublicKey: string;
3492
3504
  } | undefined;
3493
3505
  zipMetadata?: {
3494
3506
  fileName: string;
@@ -3503,7 +3515,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3503
3515
  lastDecryptAttemptAt?: number | undefined;
3504
3516
  viewedAt?: number | undefined;
3505
3517
  }, {
3506
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3518
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3507
3519
  createdAt: number;
3508
3520
  direction: "received" | "sent";
3509
3521
  messageId: string;
@@ -3526,8 +3538,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3526
3538
  arkConfirmed?: {
3527
3539
  signature: string;
3528
3540
  recipient: string;
3529
- recipientPublicKey: string;
3530
3541
  timestamp: number;
3542
+ recipientPublicKey: string;
3531
3543
  } | undefined;
3532
3544
  zipMetadata?: {
3533
3545
  fileName: string;
@@ -3544,7 +3556,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3544
3556
  }>, "many">;
3545
3557
  }, "strip", z.ZodTypeAny, {
3546
3558
  result: {
3547
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3559
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3548
3560
  createdAt: number;
3549
3561
  direction: "received" | "sent";
3550
3562
  messageId: string;
@@ -3567,8 +3579,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3567
3579
  arkConfirmed?: {
3568
3580
  signature: string;
3569
3581
  recipient: string;
3570
- recipientPublicKey: string;
3571
3582
  timestamp: number;
3583
+ recipientPublicKey: string;
3572
3584
  } | undefined;
3573
3585
  zipMetadata?: {
3574
3586
  fileName: string;
@@ -3586,7 +3598,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3586
3598
  operation: "watch_messages";
3587
3599
  }, {
3588
3600
  result: {
3589
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3601
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3590
3602
  createdAt: number;
3591
3603
  direction: "received" | "sent";
3592
3604
  messageId: string;
@@ -3609,8 +3621,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3609
3621
  arkConfirmed?: {
3610
3622
  signature: string;
3611
3623
  recipient: string;
3612
- recipientPublicKey: string;
3613
3624
  timestamp: number;
3625
+ recipientPublicKey: string;
3614
3626
  } | undefined;
3615
3627
  zipMetadata?: {
3616
3628
  fileName: string;
@@ -4181,6 +4193,234 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4181
4193
  }, {
4182
4194
  result: number;
4183
4195
  operation: "mark_conversation_as_viewed";
4196
+ }>, z.ZodObject<{
4197
+ operation: z.ZodLiteral<"pull_messages">;
4198
+ result: z.ZodArray<z.ZodObject<{
4199
+ messageId: z.ZodString;
4200
+ fromAddress: z.ZodString;
4201
+ toAddress: z.ZodString;
4202
+ plaintextHash: z.ZodString;
4203
+ plaintext: z.ZodOptional<z.ZodString>;
4204
+ guardAddress: z.ZodOptional<z.ZodString>;
4205
+ passportAddress: z.ZodOptional<z.ZodString>;
4206
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
4207
+ direction: z.ZodEnum<["sent", "received"]>;
4208
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
4209
+ msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
4210
+ leafIndex: z.ZodOptional<z.ZodNumber>;
4211
+ prevRoot: z.ZodOptional<z.ZodString>;
4212
+ newRoot: z.ZodOptional<z.ZodString>;
4213
+ serverSignature: z.ZodOptional<z.ZodString>;
4214
+ serverTimestamp: z.ZodOptional<z.ZodNumber>;
4215
+ serverPublicKey: z.ZodOptional<z.ZodString>;
4216
+ arkConfirmed: z.ZodOptional<z.ZodObject<{
4217
+ recipient: z.ZodString;
4218
+ recipientPublicKey: z.ZodString;
4219
+ signature: z.ZodString;
4220
+ timestamp: z.ZodNumber;
4221
+ }, "strip", z.ZodTypeAny, {
4222
+ signature: string;
4223
+ recipient: string;
4224
+ timestamp: number;
4225
+ recipientPublicKey: string;
4226
+ }, {
4227
+ signature: string;
4228
+ recipient: string;
4229
+ timestamp: number;
4230
+ recipientPublicKey: string;
4231
+ }>>;
4232
+ createdAt: z.ZodNumber;
4233
+ receivedAt: z.ZodOptional<z.ZodNumber>;
4234
+ zipMetadata: z.ZodOptional<z.ZodObject<{
4235
+ fileName: z.ZodString;
4236
+ fileSize: z.ZodNumber;
4237
+ fileHash: z.ZodString;
4238
+ contentType: z.ZodEnum<["text", "zip", "wts", "wip"]>;
4239
+ localCachePath: z.ZodOptional<z.ZodString>;
4240
+ downloadedAt: z.ZodOptional<z.ZodNumber>;
4241
+ }, "strip", z.ZodTypeAny, {
4242
+ fileName: string;
4243
+ fileSize: number;
4244
+ fileHash: string;
4245
+ contentType: "text" | "wip" | "zip" | "wts";
4246
+ localCachePath?: string | undefined;
4247
+ downloadedAt?: number | undefined;
4248
+ }, {
4249
+ fileName: string;
4250
+ fileSize: number;
4251
+ fileHash: string;
4252
+ contentType: "text" | "wip" | "zip" | "wts";
4253
+ localCachePath?: string | undefined;
4254
+ downloadedAt?: number | undefined;
4255
+ }>>;
4256
+ proof: z.ZodOptional<z.ZodString>;
4257
+ decryptError: z.ZodOptional<z.ZodString>;
4258
+ decryptAttempts: z.ZodOptional<z.ZodNumber>;
4259
+ lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
4260
+ viewedAt: z.ZodOptional<z.ZodNumber>;
4261
+ }, "strip", z.ZodTypeAny, {
4262
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4263
+ createdAt: number;
4264
+ direction: "received" | "sent";
4265
+ messageId: string;
4266
+ fromAddress: string;
4267
+ toAddress: string;
4268
+ plaintextHash: string;
4269
+ msgType: 1 | 3;
4270
+ proof?: string | undefined;
4271
+ receivedAt?: number | undefined;
4272
+ serverTimestamp?: number | undefined;
4273
+ plaintext?: string | undefined;
4274
+ guardAddress?: string | undefined;
4275
+ passportAddress?: string | undefined;
4276
+ lastReceivedLeafIndex?: number | undefined;
4277
+ leafIndex?: number | undefined;
4278
+ prevRoot?: string | undefined;
4279
+ newRoot?: string | undefined;
4280
+ serverSignature?: string | undefined;
4281
+ serverPublicKey?: string | undefined;
4282
+ arkConfirmed?: {
4283
+ signature: string;
4284
+ recipient: string;
4285
+ timestamp: number;
4286
+ recipientPublicKey: string;
4287
+ } | undefined;
4288
+ zipMetadata?: {
4289
+ fileName: string;
4290
+ fileSize: number;
4291
+ fileHash: string;
4292
+ contentType: "text" | "wip" | "zip" | "wts";
4293
+ localCachePath?: string | undefined;
4294
+ downloadedAt?: number | undefined;
4295
+ } | undefined;
4296
+ decryptError?: string | undefined;
4297
+ decryptAttempts?: number | undefined;
4298
+ lastDecryptAttemptAt?: number | undefined;
4299
+ viewedAt?: number | undefined;
4300
+ }, {
4301
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4302
+ createdAt: number;
4303
+ direction: "received" | "sent";
4304
+ messageId: string;
4305
+ fromAddress: string;
4306
+ toAddress: string;
4307
+ plaintextHash: string;
4308
+ msgType: 1 | 3;
4309
+ proof?: string | undefined;
4310
+ receivedAt?: number | undefined;
4311
+ serverTimestamp?: number | undefined;
4312
+ plaintext?: string | undefined;
4313
+ guardAddress?: string | undefined;
4314
+ passportAddress?: string | undefined;
4315
+ lastReceivedLeafIndex?: number | undefined;
4316
+ leafIndex?: number | undefined;
4317
+ prevRoot?: string | undefined;
4318
+ newRoot?: string | undefined;
4319
+ serverSignature?: string | undefined;
4320
+ serverPublicKey?: string | undefined;
4321
+ arkConfirmed?: {
4322
+ signature: string;
4323
+ recipient: string;
4324
+ timestamp: number;
4325
+ recipientPublicKey: string;
4326
+ } | undefined;
4327
+ zipMetadata?: {
4328
+ fileName: string;
4329
+ fileSize: number;
4330
+ fileHash: string;
4331
+ contentType: "text" | "wip" | "zip" | "wts";
4332
+ localCachePath?: string | undefined;
4333
+ downloadedAt?: number | undefined;
4334
+ } | undefined;
4335
+ decryptError?: string | undefined;
4336
+ decryptAttempts?: number | undefined;
4337
+ lastDecryptAttemptAt?: number | undefined;
4338
+ viewedAt?: number | undefined;
4339
+ }>, "many">;
4340
+ }, "strip", z.ZodTypeAny, {
4341
+ result: {
4342
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4343
+ createdAt: number;
4344
+ direction: "received" | "sent";
4345
+ messageId: string;
4346
+ fromAddress: string;
4347
+ toAddress: string;
4348
+ plaintextHash: string;
4349
+ msgType: 1 | 3;
4350
+ proof?: string | undefined;
4351
+ receivedAt?: number | undefined;
4352
+ serverTimestamp?: number | undefined;
4353
+ plaintext?: string | undefined;
4354
+ guardAddress?: string | undefined;
4355
+ passportAddress?: string | undefined;
4356
+ lastReceivedLeafIndex?: number | undefined;
4357
+ leafIndex?: number | undefined;
4358
+ prevRoot?: string | undefined;
4359
+ newRoot?: string | undefined;
4360
+ serverSignature?: string | undefined;
4361
+ serverPublicKey?: string | undefined;
4362
+ arkConfirmed?: {
4363
+ signature: string;
4364
+ recipient: string;
4365
+ timestamp: number;
4366
+ recipientPublicKey: string;
4367
+ } | undefined;
4368
+ zipMetadata?: {
4369
+ fileName: string;
4370
+ fileSize: number;
4371
+ fileHash: string;
4372
+ contentType: "text" | "wip" | "zip" | "wts";
4373
+ localCachePath?: string | undefined;
4374
+ downloadedAt?: number | undefined;
4375
+ } | undefined;
4376
+ decryptError?: string | undefined;
4377
+ decryptAttempts?: number | undefined;
4378
+ lastDecryptAttemptAt?: number | undefined;
4379
+ viewedAt?: number | undefined;
4380
+ }[];
4381
+ operation: "pull_messages";
4382
+ }, {
4383
+ result: {
4384
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4385
+ createdAt: number;
4386
+ direction: "received" | "sent";
4387
+ messageId: string;
4388
+ fromAddress: string;
4389
+ toAddress: string;
4390
+ plaintextHash: string;
4391
+ msgType: 1 | 3;
4392
+ proof?: string | undefined;
4393
+ receivedAt?: number | undefined;
4394
+ serverTimestamp?: number | undefined;
4395
+ plaintext?: string | undefined;
4396
+ guardAddress?: string | undefined;
4397
+ passportAddress?: string | undefined;
4398
+ lastReceivedLeafIndex?: number | undefined;
4399
+ leafIndex?: number | undefined;
4400
+ prevRoot?: string | undefined;
4401
+ newRoot?: string | undefined;
4402
+ serverSignature?: string | undefined;
4403
+ serverPublicKey?: string | undefined;
4404
+ arkConfirmed?: {
4405
+ signature: string;
4406
+ recipient: string;
4407
+ timestamp: number;
4408
+ recipientPublicKey: string;
4409
+ } | undefined;
4410
+ zipMetadata?: {
4411
+ fileName: string;
4412
+ fileSize: number;
4413
+ fileHash: string;
4414
+ contentType: "text" | "wip" | "zip" | "wts";
4415
+ localCachePath?: string | undefined;
4416
+ downloadedAt?: number | undefined;
4417
+ } | undefined;
4418
+ decryptError?: string | undefined;
4419
+ decryptAttempts?: number | undefined;
4420
+ lastDecryptAttemptAt?: number | undefined;
4421
+ viewedAt?: number | undefined;
4422
+ }[];
4423
+ operation: "pull_messages";
4184
4424
  }>]>;
4185
4425
  }, "strip", z.ZodTypeAny, {
4186
4426
  result: {
@@ -4191,7 +4431,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4191
4431
  unreadCount: number;
4192
4432
  lastMessagePreview?: string | undefined;
4193
4433
  previewMessages?: {
4194
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4434
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4195
4435
  createdAt: number;
4196
4436
  direction: "received" | "sent";
4197
4437
  messageId: string;
@@ -4214,8 +4454,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4214
4454
  arkConfirmed?: {
4215
4455
  signature: string;
4216
4456
  recipient: string;
4217
- recipientPublicKey: string;
4218
4457
  timestamp: number;
4458
+ recipientPublicKey: string;
4219
4459
  } | undefined;
4220
4460
  zipMetadata?: {
4221
4461
  fileName: string;
@@ -4234,7 +4474,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4234
4474
  operation: "watch_conversations";
4235
4475
  } | {
4236
4476
  result: {
4237
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4477
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4238
4478
  messageId: string;
4239
4479
  lastReceivedLeafIndex?: number | undefined;
4240
4480
  merkleData?: {
@@ -4250,7 +4490,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4250
4490
  operation: "send_message";
4251
4491
  } | {
4252
4492
  result: {
4253
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4493
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4254
4494
  messageId: string;
4255
4495
  lastReceivedLeafIndex?: number | undefined;
4256
4496
  merkleData?: {
@@ -4266,7 +4506,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4266
4506
  operation: "send_file";
4267
4507
  } | {
4268
4508
  result: {
4269
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4509
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4270
4510
  createdAt: number;
4271
4511
  direction: "received" | "sent";
4272
4512
  messageId: string;
@@ -4289,8 +4529,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4289
4529
  arkConfirmed?: {
4290
4530
  signature: string;
4291
4531
  recipient: string;
4292
- recipientPublicKey: string;
4293
4532
  timestamp: number;
4533
+ recipientPublicKey: string;
4294
4534
  } | undefined;
4295
4535
  zipMetadata?: {
4296
4536
  fileName: string;
@@ -4423,6 +4663,48 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4423
4663
  } | {
4424
4664
  result: number;
4425
4665
  operation: "mark_conversation_as_viewed";
4666
+ } | {
4667
+ result: {
4668
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4669
+ createdAt: number;
4670
+ direction: "received" | "sent";
4671
+ messageId: string;
4672
+ fromAddress: string;
4673
+ toAddress: string;
4674
+ plaintextHash: string;
4675
+ msgType: 1 | 3;
4676
+ proof?: string | undefined;
4677
+ receivedAt?: number | undefined;
4678
+ serverTimestamp?: number | undefined;
4679
+ plaintext?: string | undefined;
4680
+ guardAddress?: string | undefined;
4681
+ passportAddress?: string | undefined;
4682
+ lastReceivedLeafIndex?: number | undefined;
4683
+ leafIndex?: number | undefined;
4684
+ prevRoot?: string | undefined;
4685
+ newRoot?: string | undefined;
4686
+ serverSignature?: string | undefined;
4687
+ serverPublicKey?: string | undefined;
4688
+ arkConfirmed?: {
4689
+ signature: string;
4690
+ recipient: string;
4691
+ timestamp: number;
4692
+ recipientPublicKey: string;
4693
+ } | undefined;
4694
+ zipMetadata?: {
4695
+ fileName: string;
4696
+ fileSize: number;
4697
+ fileHash: string;
4698
+ contentType: "text" | "wip" | "zip" | "wts";
4699
+ localCachePath?: string | undefined;
4700
+ downloadedAt?: number | undefined;
4701
+ } | undefined;
4702
+ decryptError?: string | undefined;
4703
+ decryptAttempts?: number | undefined;
4704
+ lastDecryptAttemptAt?: number | undefined;
4705
+ viewedAt?: number | undefined;
4706
+ }[];
4707
+ operation: "pull_messages";
4426
4708
  };
4427
4709
  }, {
4428
4710
  result: {
@@ -4433,7 +4715,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4433
4715
  unreadCount: number;
4434
4716
  lastMessagePreview?: string | undefined;
4435
4717
  previewMessages?: {
4436
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4718
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4437
4719
  createdAt: number;
4438
4720
  direction: "received" | "sent";
4439
4721
  messageId: string;
@@ -4456,8 +4738,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4456
4738
  arkConfirmed?: {
4457
4739
  signature: string;
4458
4740
  recipient: string;
4459
- recipientPublicKey: string;
4460
4741
  timestamp: number;
4742
+ recipientPublicKey: string;
4461
4743
  } | undefined;
4462
4744
  zipMetadata?: {
4463
4745
  fileName: string;
@@ -4476,7 +4758,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4476
4758
  operation: "watch_conversations";
4477
4759
  } | {
4478
4760
  result: {
4479
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4761
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4480
4762
  messageId: string;
4481
4763
  lastReceivedLeafIndex?: number | undefined;
4482
4764
  merkleData?: {
@@ -4492,7 +4774,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4492
4774
  operation: "send_message";
4493
4775
  } | {
4494
4776
  result: {
4495
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4777
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4496
4778
  messageId: string;
4497
4779
  lastReceivedLeafIndex?: number | undefined;
4498
4780
  merkleData?: {
@@ -4508,7 +4790,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4508
4790
  operation: "send_file";
4509
4791
  } | {
4510
4792
  result: {
4511
- status: "pending" | "failed" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4793
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4512
4794
  createdAt: number;
4513
4795
  direction: "received" | "sent";
4514
4796
  messageId: string;
@@ -4531,8 +4813,8 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4531
4813
  arkConfirmed?: {
4532
4814
  signature: string;
4533
4815
  recipient: string;
4534
- recipientPublicKey: string;
4535
4816
  timestamp: number;
4817
+ recipientPublicKey: string;
4536
4818
  } | undefined;
4537
4819
  zipMetadata?: {
4538
4820
  fileName: string;
@@ -4665,6 +4947,48 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4665
4947
  } | {
4666
4948
  result: number;
4667
4949
  operation: "mark_conversation_as_viewed";
4950
+ } | {
4951
+ result: {
4952
+ status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4953
+ createdAt: number;
4954
+ direction: "received" | "sent";
4955
+ messageId: string;
4956
+ fromAddress: string;
4957
+ toAddress: string;
4958
+ plaintextHash: string;
4959
+ msgType: 1 | 3;
4960
+ proof?: string | undefined;
4961
+ receivedAt?: number | undefined;
4962
+ serverTimestamp?: number | undefined;
4963
+ plaintext?: string | undefined;
4964
+ guardAddress?: string | undefined;
4965
+ passportAddress?: string | undefined;
4966
+ lastReceivedLeafIndex?: number | undefined;
4967
+ leafIndex?: number | undefined;
4968
+ prevRoot?: string | undefined;
4969
+ newRoot?: string | undefined;
4970
+ serverSignature?: string | undefined;
4971
+ serverPublicKey?: string | undefined;
4972
+ arkConfirmed?: {
4973
+ signature: string;
4974
+ recipient: string;
4975
+ timestamp: number;
4976
+ recipientPublicKey: string;
4977
+ } | undefined;
4978
+ zipMetadata?: {
4979
+ fileName: string;
4980
+ fileSize: number;
4981
+ fileHash: string;
4982
+ contentType: "text" | "wip" | "zip" | "wts";
4983
+ localCachePath?: string | undefined;
4984
+ downloadedAt?: number | undefined;
4985
+ } | undefined;
4986
+ decryptError?: string | undefined;
4987
+ decryptAttempts?: number | undefined;
4988
+ lastDecryptAttemptAt?: number | undefined;
4989
+ viewedAt?: number | undefined;
4990
+ }[];
4991
+ operation: "pull_messages";
4668
4992
  };
4669
4993
  }>;
4670
4994
  export type MessengerOperationInput = z.infer<typeof MessengerOperationInputSchema>;