wowok_agent 2.1.18 → 2.1.20

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const MessageStatusSchema: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2
+ export declare const MessageStatusSchema: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
3
3
  export declare const MessageDirectionSchema: z.ZodEnum<["sent", "received"]>;
4
4
  export declare const MessageTypeSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
5
5
  export declare const MessageContentTypeSchema: z.ZodEnum<["text", "zip", "wts", "wip"]>;
@@ -37,7 +37,7 @@ export declare const MessageSchema: z.ZodObject<{
37
37
  passportAddress: z.ZodOptional<z.ZodString>;
38
38
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
39
39
  direction: z.ZodEnum<["sent", "received"]>;
40
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
40
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
41
41
  msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
42
42
  leafIndex: z.ZodOptional<z.ZodNumber>;
43
43
  prevRoot: z.ZodOptional<z.ZodString>;
@@ -86,8 +86,11 @@ export declare const MessageSchema: z.ZodObject<{
86
86
  downloadedAt?: number | undefined;
87
87
  }>>;
88
88
  proof: z.ZodOptional<z.ZodString>;
89
+ decryptError: z.ZodOptional<z.ZodString>;
90
+ decryptAttempts: z.ZodOptional<z.ZodNumber>;
91
+ lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
89
92
  }, "strip", z.ZodTypeAny, {
90
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
93
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
91
94
  createdAt: number;
92
95
  messageId: string;
93
96
  fromAddress: string;
@@ -121,8 +124,11 @@ export declare const MessageSchema: z.ZodObject<{
121
124
  localCachePath?: string | undefined;
122
125
  downloadedAt?: number | undefined;
123
126
  } | undefined;
127
+ decryptError?: string | undefined;
128
+ decryptAttempts?: number | undefined;
129
+ lastDecryptAttemptAt?: number | undefined;
124
130
  }, {
125
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
131
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
126
132
  createdAt: number;
127
133
  messageId: string;
128
134
  fromAddress: string;
@@ -156,6 +162,9 @@ export declare const MessageSchema: z.ZodObject<{
156
162
  localCachePath?: string | undefined;
157
163
  downloadedAt?: number | undefined;
158
164
  } | undefined;
165
+ decryptError?: string | undefined;
166
+ decryptAttempts?: number | undefined;
167
+ lastDecryptAttemptAt?: number | undefined;
159
168
  }>;
160
169
  export declare const ConversationInfoSchema: z.ZodObject<{
161
170
  peerAddress: z.ZodString;
@@ -177,8 +186,10 @@ export declare const ConversationInfoSchema: z.ZodObject<{
177
186
  lastMessagePreview?: string | undefined;
178
187
  }>;
179
188
  export declare const MessageFilterSchema: z.ZodObject<{
189
+ /** Filter by account (specify which account to query) */
190
+ account: z.ZodOptional<z.ZodString>;
180
191
  direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
181
- status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>>;
192
+ status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
182
193
  peerAddress: z.ZodOptional<z.ZodObject<{
183
194
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
184
195
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -227,9 +238,8 @@ export declare const MessageFilterSchema: z.ZodObject<{
227
238
  excludeAddresses?: string[] | undefined;
228
239
  relation?: "union" | "intersection" | undefined;
229
240
  }>>;
230
- account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
231
241
  }, "strip", z.ZodTypeAny, {
232
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
242
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
233
243
  limit?: number | undefined;
234
244
  account?: string | undefined;
235
245
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
@@ -267,7 +277,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
267
277
  relation?: "union" | "intersection" | undefined;
268
278
  } | undefined;
269
279
  }, {
270
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
280
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
271
281
  limit?: number | undefined;
272
282
  account?: string | undefined;
273
283
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
@@ -345,7 +355,7 @@ export declare const SendFileOptionsSchema: z.ZodObject<{
345
355
  }>;
346
356
  export declare const SendMessageResultSchema: z.ZodObject<{
347
357
  messageId: z.ZodString;
348
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
358
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
349
359
  merkleData: z.ZodOptional<z.ZodObject<{
350
360
  leafIndex: z.ZodNumber;
351
361
  prevRoot: z.ZodString;
@@ -370,7 +380,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
370
380
  }>>;
371
381
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
382
  }, "strip", z.ZodTypeAny, {
373
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
383
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
374
384
  messageId: string;
375
385
  merkleData?: {
376
386
  serverTimestamp: number;
@@ -382,7 +392,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
382
392
  } | undefined;
383
393
  guardList?: string[] | undefined;
384
394
  }, {
385
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
395
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
386
396
  messageId: string;
387
397
  merkleData?: {
388
398
  serverTimestamp: number;
@@ -1228,8 +1238,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1228
1238
  }>, z.ZodObject<{
1229
1239
  operation: z.ZodLiteral<"watch_messages">;
1230
1240
  filter: z.ZodOptional<z.ZodObject<{
1241
+ /** Filter by account (specify which account to query) */
1242
+ account: z.ZodOptional<z.ZodString>;
1231
1243
  direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
1232
- status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>>;
1244
+ status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
1233
1245
  peerAddress: z.ZodOptional<z.ZodObject<{
1234
1246
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1235
1247
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1278,9 +1290,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1278
1290
  excludeAddresses?: string[] | undefined;
1279
1291
  relation?: "union" | "intersection" | undefined;
1280
1292
  }>>;
1281
- account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1282
1293
  }, "strip", z.ZodTypeAny, {
1283
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1294
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1284
1295
  limit?: number | undefined;
1285
1296
  account?: string | undefined;
1286
1297
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
@@ -1318,7 +1329,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1318
1329
  relation?: "union" | "intersection" | undefined;
1319
1330
  } | undefined;
1320
1331
  }, {
1321
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1332
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1322
1333
  limit?: number | undefined;
1323
1334
  account?: string | undefined;
1324
1335
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
@@ -1359,7 +1370,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1359
1370
  }, "strip", z.ZodTypeAny, {
1360
1371
  operation: "watch_messages";
1361
1372
  filter?: {
1362
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1373
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1363
1374
  limit?: number | undefined;
1364
1375
  account?: string | undefined;
1365
1376
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
@@ -1400,7 +1411,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1400
1411
  }, {
1401
1412
  operation: "watch_messages";
1402
1413
  filter?: {
1403
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1414
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1404
1415
  limit?: number | undefined;
1405
1416
  account?: string | undefined;
1406
1417
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
@@ -1451,7 +1462,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1451
1462
  passportAddress: z.ZodOptional<z.ZodString>;
1452
1463
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
1453
1464
  direction: z.ZodEnum<["sent", "received"]>;
1454
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
1465
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
1455
1466
  msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
1456
1467
  leafIndex: z.ZodOptional<z.ZodNumber>;
1457
1468
  prevRoot: z.ZodOptional<z.ZodString>;
@@ -1500,8 +1511,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1500
1511
  downloadedAt?: number | undefined;
1501
1512
  }>>;
1502
1513
  proof: z.ZodOptional<z.ZodString>;
1514
+ decryptError: z.ZodOptional<z.ZodString>;
1515
+ decryptAttempts: z.ZodOptional<z.ZodNumber>;
1516
+ lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
1503
1517
  }, "strip", z.ZodTypeAny, {
1504
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1518
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1505
1519
  createdAt: number;
1506
1520
  messageId: string;
1507
1521
  fromAddress: string;
@@ -1535,8 +1549,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1535
1549
  localCachePath?: string | undefined;
1536
1550
  downloadedAt?: number | undefined;
1537
1551
  } | undefined;
1552
+ decryptError?: string | undefined;
1553
+ decryptAttempts?: number | undefined;
1554
+ lastDecryptAttemptAt?: number | undefined;
1538
1555
  }, {
1539
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1556
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1540
1557
  createdAt: number;
1541
1558
  messageId: string;
1542
1559
  fromAddress: string;
@@ -1570,13 +1587,16 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1570
1587
  localCachePath?: string | undefined;
1571
1588
  downloadedAt?: number | undefined;
1572
1589
  } | undefined;
1590
+ decryptError?: string | undefined;
1591
+ decryptAttempts?: number | undefined;
1592
+ lastDecryptAttemptAt?: number | undefined;
1573
1593
  }>]>, "many">;
1574
1594
  outputDir: z.ZodString;
1575
1595
  }, "strip", z.ZodTypeAny, {
1576
1596
  operation: "extract_zip_messages";
1577
1597
  outputDir: string;
1578
1598
  messages: (string | {
1579
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1599
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1580
1600
  createdAt: number;
1581
1601
  messageId: string;
1582
1602
  fromAddress: string;
@@ -1610,13 +1630,16 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1610
1630
  localCachePath?: string | undefined;
1611
1631
  downloadedAt?: number | undefined;
1612
1632
  } | undefined;
1633
+ decryptError?: string | undefined;
1634
+ decryptAttempts?: number | undefined;
1635
+ lastDecryptAttemptAt?: number | undefined;
1613
1636
  })[];
1614
1637
  account?: string | undefined;
1615
1638
  }, {
1616
1639
  operation: "extract_zip_messages";
1617
1640
  outputDir: string;
1618
1641
  messages: (string | {
1619
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1642
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1620
1643
  createdAt: number;
1621
1644
  messageId: string;
1622
1645
  fromAddress: string;
@@ -1650,6 +1673,9 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1650
1673
  localCachePath?: string | undefined;
1651
1674
  downloadedAt?: number | undefined;
1652
1675
  } | undefined;
1676
+ decryptError?: string | undefined;
1677
+ decryptAttempts?: number | undefined;
1678
+ lastDecryptAttemptAt?: number | undefined;
1653
1679
  })[];
1654
1680
  account?: string | undefined;
1655
1681
  }>, z.ZodObject<{
@@ -2427,7 +2453,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2427
2453
  operation: z.ZodLiteral<"send_message">;
2428
2454
  result: z.ZodObject<{
2429
2455
  messageId: z.ZodString;
2430
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2456
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
2431
2457
  merkleData: z.ZodOptional<z.ZodObject<{
2432
2458
  leafIndex: z.ZodNumber;
2433
2459
  prevRoot: z.ZodString;
@@ -2452,7 +2478,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2452
2478
  }>>;
2453
2479
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2454
2480
  }, "strip", z.ZodTypeAny, {
2455
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2481
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2456
2482
  messageId: string;
2457
2483
  merkleData?: {
2458
2484
  serverTimestamp: number;
@@ -2464,7 +2490,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2464
2490
  } | undefined;
2465
2491
  guardList?: string[] | undefined;
2466
2492
  }, {
2467
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2493
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2468
2494
  messageId: string;
2469
2495
  merkleData?: {
2470
2496
  serverTimestamp: number;
@@ -2478,7 +2504,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2478
2504
  }>;
2479
2505
  }, "strip", z.ZodTypeAny, {
2480
2506
  result: {
2481
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2507
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2482
2508
  messageId: string;
2483
2509
  merkleData?: {
2484
2510
  serverTimestamp: number;
@@ -2493,7 +2519,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2493
2519
  operation: "send_message";
2494
2520
  }, {
2495
2521
  result: {
2496
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2522
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2497
2523
  messageId: string;
2498
2524
  merkleData?: {
2499
2525
  serverTimestamp: number;
@@ -2510,7 +2536,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2510
2536
  operation: z.ZodLiteral<"send_file">;
2511
2537
  result: z.ZodObject<{
2512
2538
  messageId: z.ZodString;
2513
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2539
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
2514
2540
  merkleData: z.ZodOptional<z.ZodObject<{
2515
2541
  leafIndex: z.ZodNumber;
2516
2542
  prevRoot: z.ZodString;
@@ -2535,7 +2561,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2535
2561
  }>>;
2536
2562
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2537
2563
  }, "strip", z.ZodTypeAny, {
2538
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2564
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2539
2565
  messageId: string;
2540
2566
  merkleData?: {
2541
2567
  serverTimestamp: number;
@@ -2547,7 +2573,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2547
2573
  } | undefined;
2548
2574
  guardList?: string[] | undefined;
2549
2575
  }, {
2550
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2576
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2551
2577
  messageId: string;
2552
2578
  merkleData?: {
2553
2579
  serverTimestamp: number;
@@ -2561,7 +2587,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2561
2587
  }>;
2562
2588
  }, "strip", z.ZodTypeAny, {
2563
2589
  result: {
2564
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2590
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2565
2591
  messageId: string;
2566
2592
  merkleData?: {
2567
2593
  serverTimestamp: number;
@@ -2576,7 +2602,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2576
2602
  operation: "send_file";
2577
2603
  }, {
2578
2604
  result: {
2579
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2605
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2580
2606
  messageId: string;
2581
2607
  merkleData?: {
2582
2608
  serverTimestamp: number;
@@ -2601,7 +2627,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2601
2627
  passportAddress: z.ZodOptional<z.ZodString>;
2602
2628
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2603
2629
  direction: z.ZodEnum<["sent", "received"]>;
2604
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2630
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
2605
2631
  msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
2606
2632
  leafIndex: z.ZodOptional<z.ZodNumber>;
2607
2633
  prevRoot: z.ZodOptional<z.ZodString>;
@@ -2650,8 +2676,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2650
2676
  downloadedAt?: number | undefined;
2651
2677
  }>>;
2652
2678
  proof: z.ZodOptional<z.ZodString>;
2679
+ decryptError: z.ZodOptional<z.ZodString>;
2680
+ decryptAttempts: z.ZodOptional<z.ZodNumber>;
2681
+ lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
2653
2682
  }, "strip", z.ZodTypeAny, {
2654
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2683
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2655
2684
  createdAt: number;
2656
2685
  messageId: string;
2657
2686
  fromAddress: string;
@@ -2685,8 +2714,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2685
2714
  localCachePath?: string | undefined;
2686
2715
  downloadedAt?: number | undefined;
2687
2716
  } | undefined;
2717
+ decryptError?: string | undefined;
2718
+ decryptAttempts?: number | undefined;
2719
+ lastDecryptAttemptAt?: number | undefined;
2688
2720
  }, {
2689
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2721
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2690
2722
  createdAt: number;
2691
2723
  messageId: string;
2692
2724
  fromAddress: string;
@@ -2720,10 +2752,13 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2720
2752
  localCachePath?: string | undefined;
2721
2753
  downloadedAt?: number | undefined;
2722
2754
  } | undefined;
2755
+ decryptError?: string | undefined;
2756
+ decryptAttempts?: number | undefined;
2757
+ lastDecryptAttemptAt?: number | undefined;
2723
2758
  }>, "many">;
2724
2759
  }, "strip", z.ZodTypeAny, {
2725
2760
  result: {
2726
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2761
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2727
2762
  createdAt: number;
2728
2763
  messageId: string;
2729
2764
  fromAddress: string;
@@ -2757,11 +2792,14 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2757
2792
  localCachePath?: string | undefined;
2758
2793
  downloadedAt?: number | undefined;
2759
2794
  } | undefined;
2795
+ decryptError?: string | undefined;
2796
+ decryptAttempts?: number | undefined;
2797
+ lastDecryptAttemptAt?: number | undefined;
2760
2798
  }[];
2761
2799
  operation: "watch_messages";
2762
2800
  }, {
2763
2801
  result: {
2764
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2802
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2765
2803
  createdAt: number;
2766
2804
  messageId: string;
2767
2805
  fromAddress: string;
@@ -2795,6 +2833,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2795
2833
  localCachePath?: string | undefined;
2796
2834
  downloadedAt?: number | undefined;
2797
2835
  } | undefined;
2836
+ decryptError?: string | undefined;
2837
+ decryptAttempts?: number | undefined;
2838
+ lastDecryptAttemptAt?: number | undefined;
2798
2839
  }[];
2799
2840
  operation: "watch_messages";
2800
2841
  }>, z.ZodObject<{
@@ -3305,7 +3346,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3305
3346
  operation: "watch_conversations";
3306
3347
  } | {
3307
3348
  result: {
3308
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3349
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3309
3350
  messageId: string;
3310
3351
  merkleData?: {
3311
3352
  serverTimestamp: number;
@@ -3320,7 +3361,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3320
3361
  operation: "send_message";
3321
3362
  } | {
3322
3363
  result: {
3323
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3364
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3324
3365
  messageId: string;
3325
3366
  merkleData?: {
3326
3367
  serverTimestamp: number;
@@ -3335,7 +3376,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3335
3376
  operation: "send_file";
3336
3377
  } | {
3337
3378
  result: {
3338
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3379
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3339
3380
  createdAt: number;
3340
3381
  messageId: string;
3341
3382
  fromAddress: string;
@@ -3369,6 +3410,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3369
3410
  localCachePath?: string | undefined;
3370
3411
  downloadedAt?: number | undefined;
3371
3412
  } | undefined;
3413
+ decryptError?: string | undefined;
3414
+ decryptAttempts?: number | undefined;
3415
+ lastDecryptAttemptAt?: number | undefined;
3372
3416
  }[];
3373
3417
  operation: "watch_messages";
3374
3418
  } | {
@@ -3485,7 +3529,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3485
3529
  operation: "watch_conversations";
3486
3530
  } | {
3487
3531
  result: {
3488
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3532
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3489
3533
  messageId: string;
3490
3534
  merkleData?: {
3491
3535
  serverTimestamp: number;
@@ -3500,7 +3544,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3500
3544
  operation: "send_message";
3501
3545
  } | {
3502
3546
  result: {
3503
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3547
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3504
3548
  messageId: string;
3505
3549
  merkleData?: {
3506
3550
  serverTimestamp: number;
@@ -3515,7 +3559,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3515
3559
  operation: "send_file";
3516
3560
  } | {
3517
3561
  result: {
3518
- status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3562
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3519
3563
  createdAt: number;
3520
3564
  messageId: string;
3521
3565
  fromAddress: string;
@@ -3549,6 +3593,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3549
3593
  localCachePath?: string | undefined;
3550
3594
  downloadedAt?: number | undefined;
3551
3595
  } | undefined;
3596
+ decryptError?: string | undefined;
3597
+ decryptAttempts?: number | undefined;
3598
+ lastDecryptAttemptAt?: number | undefined;
3552
3599
  }[];
3553
3600
  operation: "watch_messages";
3554
3601
  } | {
@@ -4,7 +4,7 @@ import { NameOrAddressSchema, EntrypointSchema, ManyAccountOrMark_AddressSchema,
4
4
  // Messenger Schema Definitions (strictly based on messenger-api.ts and types.ts)
5
5
  // ============================================================
6
6
  // Enums from types.ts
7
- export const MessageStatusSchema = z.enum(["pending", "confirmed", "read", "failed", "rejected"]);
7
+ export const MessageStatusSchema = z.enum(["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]);
8
8
  export const MessageDirectionSchema = z.enum(["sent", "received"]);
9
9
  export const MessageTypeSchema = z.union([z.literal(1), z.literal(3)]);
10
10
  export const MessageContentTypeSchema = z.enum(["text", "zip", "wts", "wip"]);
@@ -48,6 +48,10 @@ export const MessageSchema = z.object({
48
48
  receivedAt: z.number().optional().describe("Local reception time"),
49
49
  zipMetadata: ZipMetadataSchema.optional().describe("ZIP file metadata"),
50
50
  proof: z.string().optional().describe("On-chain proof object address"),
51
+ // Decryption status fields
52
+ decryptError: z.string().optional().describe("Decryption failure reason"),
53
+ decryptAttempts: z.number().optional().describe("Number of decryption attempts"),
54
+ lastDecryptAttemptAt: z.number().optional().describe("Last decryption attempt timestamp"),
51
55
  }).describe("Message object");
52
56
  // ConversationInfo
53
57
  export const ConversationInfoSchema = z.object({
@@ -59,6 +63,8 @@ export const ConversationInfoSchema = z.object({
59
63
  }).describe("Conversation info");
60
64
  // MessageFilter
61
65
  export const MessageFilterSchema = z.object({
66
+ /** Filter by account (specify which account to query) */
67
+ account: z.string().optional().describe("Account to filter messages for"),
62
68
  direction: MessageDirectionSchema.optional().describe("Filter by message direction"),
63
69
  status: MessageStatusSchema.optional().describe("Filter by message status"),
64
70
  peerAddress: AccountOrMark_AddressSchema.optional().describe("Filter by peer address"),
@@ -92,7 +98,6 @@ export const MessageFilterSchema = z.object({
92
98
  excludeAddresses: z.array(z.string()).optional().describe("Exclude addresses"),
93
99
  relation: z.enum(["union", "intersection"]).optional().describe("Address list relation"),
94
100
  }).optional().describe("Custom list filter"),
95
- account: NameOrAddressSchema.optional().describe("Account to filter messages for"),
96
101
  }).describe("Message filter options");
97
102
  // SendMessageOptions
98
103
  export const SendMessageOptionsSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wowok_agent",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "Making It Easy for Agents to Communicate, Collaborate, Trade, and Trust.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@modelcontextprotocol/sdk": "^1.29.0",
32
32
  "lodash": "^4.18.1",
33
- "wowok": "2.1.18",
33
+ "wowok": "2.1.20",
34
34
  "zod": "^3.25.76"
35
35
  },
36
36
  "devDependencies": {