wowok_agent 2.1.19 → 2.1.21

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", "decrypted"]>;
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", "decrypted"]>;
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" | "decrypted";
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" | "decrypted";
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,9 +186,11 @@ 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", "decrypted"]>>;
182
- peerAddress: z.ZodOptional<z.ZodObject<{
192
+ status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
193
+ peerAddress: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
183
194
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
184
195
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
185
196
  }, "strict", z.ZodTypeAny, {
@@ -188,7 +199,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
188
199
  }, {
189
200
  name_or_address?: string | undefined;
190
201
  local_mark_first?: boolean | undefined;
191
- }>>;
202
+ }>]>>;
192
203
  msgType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>>;
193
204
  contentType: z.ZodOptional<z.ZodEnum<["text", "zip", "wts", "wip"]>>;
194
205
  decryptedOnly: z.ZodOptional<z.ZodBoolean>;
@@ -227,15 +238,14 @@ 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" | "decrypted" | 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;
236
246
  direction?: "received" | "sent" | undefined;
237
247
  msgType?: 1 | 3 | undefined;
238
- peerAddress?: {
248
+ peerAddress?: string | {
239
249
  name_or_address?: string | undefined;
240
250
  local_mark_first?: boolean | undefined;
241
251
  } | undefined;
@@ -267,13 +277,13 @@ export declare const MessageFilterSchema: z.ZodObject<{
267
277
  relation?: "union" | "intersection" | undefined;
268
278
  } | undefined;
269
279
  }, {
270
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | 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;
274
284
  direction?: "received" | "sent" | undefined;
275
285
  msgType?: 1 | 3 | undefined;
276
- peerAddress?: {
286
+ peerAddress?: string | {
277
287
  name_or_address?: string | undefined;
278
288
  local_mark_first?: boolean | undefined;
279
289
  } | 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", "decrypted"]>;
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;
@@ -369,9 +379,11 @@ export declare const SendMessageResultSchema: z.ZodObject<{
369
379
  serverPublicKey: string;
370
380
  }>>;
371
381
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
382
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
372
383
  }, "strip", z.ZodTypeAny, {
373
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
384
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
374
385
  messageId: string;
386
+ lastReceivedLeafIndex?: number | undefined;
375
387
  merkleData?: {
376
388
  serverTimestamp: number;
377
389
  leafIndex: number;
@@ -382,8 +394,9 @@ export declare const SendMessageResultSchema: z.ZodObject<{
382
394
  } | undefined;
383
395
  guardList?: string[] | undefined;
384
396
  }, {
385
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
397
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
386
398
  messageId: string;
399
+ lastReceivedLeafIndex?: number | undefined;
387
400
  merkleData?: {
388
401
  serverTimestamp: number;
389
402
  leafIndex: number;
@@ -472,7 +485,7 @@ export declare const WtsRangeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
472
485
  }>]>;
473
486
  export declare const WtsGenerationParamsSchema: z.ZodObject<{
474
487
  myAccount: z.ZodEffects<z.ZodString, string, string>;
475
- peerAccount: z.ZodObject<{
488
+ peerAccount: z.ZodUnion<[z.ZodString, z.ZodObject<{
476
489
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
477
490
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
478
491
  }, "strict", z.ZodTypeAny, {
@@ -481,7 +494,7 @@ export declare const WtsGenerationParamsSchema: z.ZodObject<{
481
494
  }, {
482
495
  name_or_address?: string | undefined;
483
496
  local_mark_first?: boolean | undefined;
484
- }>;
497
+ }>]>;
485
498
  range: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
486
499
  type: z.ZodLiteral<"time">;
487
500
  start: z.ZodNumber;
@@ -523,7 +536,7 @@ export declare const WtsGenerationParamsSchema: z.ZodObject<{
523
536
  outputDir: z.ZodString;
524
537
  }, "strip", z.ZodTypeAny, {
525
538
  myAccount: string;
526
- peerAccount: {
539
+ peerAccount: string | {
527
540
  name_or_address?: string | undefined;
528
541
  local_mark_first?: boolean | undefined;
529
542
  };
@@ -544,7 +557,7 @@ export declare const WtsGenerationParamsSchema: z.ZodObject<{
544
557
  excludePlaintext?: boolean | undefined;
545
558
  }, {
546
559
  myAccount: string;
547
- peerAccount: {
560
+ peerAccount: string | {
548
561
  name_or_address?: string | undefined;
549
562
  local_mark_first?: boolean | undefined;
550
563
  };
@@ -746,7 +759,7 @@ export declare const ListOperationResponseSchema: z.ZodObject<{
746
759
  }>;
747
760
  export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
748
761
  op: z.ZodLiteral<"add">;
749
- users: z.ZodObject<{
762
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
750
763
  entities: z.ZodArray<z.ZodObject<{
751
764
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
752
765
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -770,7 +783,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
770
783
  local_mark_first?: boolean | undefined;
771
784
  }[];
772
785
  check_all_founded?: boolean | undefined;
773
- }>;
786
+ }>]>;
774
787
  }, "strip", z.ZodTypeAny, {
775
788
  op: "add";
776
789
  users: {
@@ -779,7 +792,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
779
792
  local_mark_first?: boolean | undefined;
780
793
  }[];
781
794
  check_all_founded?: boolean | undefined;
782
- };
795
+ } | string[];
783
796
  }, {
784
797
  op: "add";
785
798
  users: {
@@ -788,10 +801,10 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
788
801
  local_mark_first?: boolean | undefined;
789
802
  }[];
790
803
  check_all_founded?: boolean | undefined;
791
- };
804
+ } | string[];
792
805
  }>, z.ZodObject<{
793
806
  op: z.ZodLiteral<"remove">;
794
- users: z.ZodObject<{
807
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
795
808
  entities: z.ZodArray<z.ZodObject<{
796
809
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
797
810
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -815,7 +828,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
815
828
  local_mark_first?: boolean | undefined;
816
829
  }[];
817
830
  check_all_founded?: boolean | undefined;
818
- }>;
831
+ }>]>;
819
832
  }, "strip", z.ZodTypeAny, {
820
833
  op: "remove";
821
834
  users: {
@@ -824,7 +837,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
824
837
  local_mark_first?: boolean | undefined;
825
838
  }[];
826
839
  check_all_founded?: boolean | undefined;
827
- };
840
+ } | string[];
828
841
  }, {
829
842
  op: "remove";
830
843
  users: {
@@ -833,7 +846,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
833
846
  local_mark_first?: boolean | undefined;
834
847
  }[];
835
848
  check_all_founded?: boolean | undefined;
836
- };
849
+ } | string[];
837
850
  }>, z.ZodObject<{
838
851
  op: z.ZodLiteral<"clear">;
839
852
  }, "strip", z.ZodTypeAny, {
@@ -848,7 +861,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
848
861
  op: "get";
849
862
  }>, z.ZodObject<{
850
863
  op: z.ZodLiteral<"exist">;
851
- users: z.ZodObject<{
864
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
852
865
  entities: z.ZodArray<z.ZodObject<{
853
866
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
854
867
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -872,7 +885,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
872
885
  local_mark_first?: boolean | undefined;
873
886
  }[];
874
887
  check_all_founded?: boolean | undefined;
875
- }>;
888
+ }>]>;
876
889
  }, "strip", z.ZodTypeAny, {
877
890
  op: "exist";
878
891
  users: {
@@ -881,7 +894,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
881
894
  local_mark_first?: boolean | undefined;
882
895
  }[];
883
896
  check_all_founded?: boolean | undefined;
884
- };
897
+ } | string[];
885
898
  }, {
886
899
  op: "exist";
887
900
  users: {
@@ -890,11 +903,11 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
890
903
  local_mark_first?: boolean | undefined;
891
904
  }[];
892
905
  check_all_founded?: boolean | undefined;
893
- };
906
+ } | string[];
894
907
  }>]>;
895
908
  export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
896
909
  op: z.ZodLiteral<"add">;
897
- users: z.ZodObject<{
910
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
898
911
  entities: z.ZodArray<z.ZodObject<{
899
912
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
900
913
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -918,7 +931,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
918
931
  local_mark_first?: boolean | undefined;
919
932
  }[];
920
933
  check_all_founded?: boolean | undefined;
921
- }>;
934
+ }>]>;
922
935
  }, "strip", z.ZodTypeAny, {
923
936
  op: "add";
924
937
  users: {
@@ -927,7 +940,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
927
940
  local_mark_first?: boolean | undefined;
928
941
  }[];
929
942
  check_all_founded?: boolean | undefined;
930
- };
943
+ } | string[];
931
944
  }, {
932
945
  op: "add";
933
946
  users: {
@@ -936,10 +949,10 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
936
949
  local_mark_first?: boolean | undefined;
937
950
  }[];
938
951
  check_all_founded?: boolean | undefined;
939
- };
952
+ } | string[];
940
953
  }>, z.ZodObject<{
941
954
  op: z.ZodLiteral<"remove">;
942
- users: z.ZodObject<{
955
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
943
956
  entities: z.ZodArray<z.ZodObject<{
944
957
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
945
958
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -963,7 +976,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
963
976
  local_mark_first?: boolean | undefined;
964
977
  }[];
965
978
  check_all_founded?: boolean | undefined;
966
- }>;
979
+ }>]>;
967
980
  }, "strip", z.ZodTypeAny, {
968
981
  op: "remove";
969
982
  users: {
@@ -972,7 +985,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
972
985
  local_mark_first?: boolean | undefined;
973
986
  }[];
974
987
  check_all_founded?: boolean | undefined;
975
- };
988
+ } | string[];
976
989
  }, {
977
990
  op: "remove";
978
991
  users: {
@@ -981,7 +994,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
981
994
  local_mark_first?: boolean | undefined;
982
995
  }[];
983
996
  check_all_founded?: boolean | undefined;
984
- };
997
+ } | string[];
985
998
  }>, z.ZodObject<{
986
999
  op: z.ZodLiteral<"clear">;
987
1000
  }, "strip", z.ZodTypeAny, {
@@ -996,7 +1009,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
996
1009
  op: "get";
997
1010
  }>, z.ZodObject<{
998
1011
  op: z.ZodLiteral<"exist">;
999
- users: z.ZodObject<{
1012
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1000
1013
  entities: z.ZodArray<z.ZodObject<{
1001
1014
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1002
1015
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1020,7 +1033,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1020
1033
  local_mark_first?: boolean | undefined;
1021
1034
  }[];
1022
1035
  check_all_founded?: boolean | undefined;
1023
- }>;
1036
+ }>]>;
1024
1037
  }, "strip", z.ZodTypeAny, {
1025
1038
  op: "exist";
1026
1039
  users: {
@@ -1029,7 +1042,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1029
1042
  local_mark_first?: boolean | undefined;
1030
1043
  }[];
1031
1044
  check_all_founded?: boolean | undefined;
1032
- };
1045
+ } | string[];
1033
1046
  }, {
1034
1047
  op: "exist";
1035
1048
  users: {
@@ -1038,7 +1051,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1038
1051
  local_mark_first?: boolean | undefined;
1039
1052
  }[];
1040
1053
  check_all_founded?: boolean | undefined;
1041
- };
1054
+ } | string[];
1042
1055
  }>]>;
1043
1056
  export declare const GuardParamSchema: z.ZodObject<{
1044
1057
  guard: z.ZodEffects<z.ZodString, string, string>;
@@ -1090,6 +1103,44 @@ export declare const GuardlistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
1090
1103
  }, {
1091
1104
  op: "get";
1092
1105
  }>]>;
1106
+ export declare const SettingsOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1107
+ op: z.ZodLiteral<"get">;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ op: "get";
1110
+ }, {
1111
+ op: "get";
1112
+ }>, z.ZodObject<{
1113
+ op: z.ZodLiteral<"set">;
1114
+ allowStrangerMessages: z.ZodOptional<z.ZodBoolean>;
1115
+ maxInboxSize: z.ZodOptional<z.ZodNumber>;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ op: "set";
1118
+ allowStrangerMessages?: boolean | undefined;
1119
+ maxInboxSize?: number | undefined;
1120
+ }, {
1121
+ op: "set";
1122
+ allowStrangerMessages?: boolean | undefined;
1123
+ maxInboxSize?: number | undefined;
1124
+ }>]>;
1125
+ export declare const GetSettingsResponseSchema: z.ZodObject<{
1126
+ allowStrangerMessages: z.ZodOptional<z.ZodBoolean>;
1127
+ maxInboxSize: z.ZodOptional<z.ZodNumber>;
1128
+ serverMinInboxSizeLimit: z.ZodNumber;
1129
+ serverMaxInboxSizeLimit: z.ZodNumber;
1130
+ serverDefaultAllowStrangerMessages: z.ZodBoolean;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ serverMinInboxSizeLimit: number;
1133
+ serverMaxInboxSizeLimit: number;
1134
+ serverDefaultAllowStrangerMessages: boolean;
1135
+ allowStrangerMessages?: boolean | undefined;
1136
+ maxInboxSize?: number | undefined;
1137
+ }, {
1138
+ serverMinInboxSizeLimit: number;
1139
+ serverMaxInboxSizeLimit: number;
1140
+ serverDefaultAllowStrangerMessages: boolean;
1141
+ allowStrangerMessages?: boolean | undefined;
1142
+ maxInboxSize?: number | undefined;
1143
+ }>;
1093
1144
  export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1094
1145
  operation: z.ZodLiteral<"watch_conversations">;
1095
1146
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -1102,7 +1153,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1102
1153
  }>, z.ZodObject<{
1103
1154
  operation: z.ZodLiteral<"send_message">;
1104
1155
  from: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1105
- to: z.ZodObject<{
1156
+ to: z.ZodUnion<[z.ZodString, z.ZodObject<{
1106
1157
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1107
1158
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1108
1159
  }, "strict", z.ZodTypeAny, {
@@ -1111,7 +1162,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1111
1162
  }, {
1112
1163
  name_or_address?: string | undefined;
1113
1164
  local_mark_first?: boolean | undefined;
1114
- }>;
1165
+ }>]>;
1115
1166
  content: z.ZodString;
1116
1167
  options: z.ZodOptional<z.ZodObject<{
1117
1168
  guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -1131,7 +1182,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1131
1182
  }>>;
1132
1183
  }, "strip", z.ZodTypeAny, {
1133
1184
  content: string;
1134
- to: {
1185
+ to: string | {
1135
1186
  name_or_address?: string | undefined;
1136
1187
  local_mark_first?: boolean | undefined;
1137
1188
  };
@@ -1145,7 +1196,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1145
1196
  from?: string | undefined;
1146
1197
  }, {
1147
1198
  content: string;
1148
- to: {
1199
+ to: string | {
1149
1200
  name_or_address?: string | undefined;
1150
1201
  local_mark_first?: boolean | undefined;
1151
1202
  };
@@ -1160,7 +1211,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1160
1211
  }>, z.ZodObject<{
1161
1212
  operation: z.ZodLiteral<"send_file">;
1162
1213
  from: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1163
- to: z.ZodObject<{
1214
+ to: z.ZodUnion<[z.ZodString, z.ZodObject<{
1164
1215
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1165
1216
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1166
1217
  }, "strict", z.ZodTypeAny, {
@@ -1169,7 +1220,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1169
1220
  }, {
1170
1221
  name_or_address?: string | undefined;
1171
1222
  local_mark_first?: boolean | undefined;
1172
- }>;
1223
+ }>]>;
1173
1224
  filePath: z.ZodString;
1174
1225
  options: z.ZodOptional<z.ZodObject<{
1175
1226
  fileName: z.ZodOptional<z.ZodString>;
@@ -1195,7 +1246,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1195
1246
  }>>;
1196
1247
  }, "strip", z.ZodTypeAny, {
1197
1248
  filePath: string;
1198
- to: {
1249
+ to: string | {
1199
1250
  name_or_address?: string | undefined;
1200
1251
  local_mark_first?: boolean | undefined;
1201
1252
  };
@@ -1211,7 +1262,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1211
1262
  from?: string | undefined;
1212
1263
  }, {
1213
1264
  filePath: string;
1214
- to: {
1265
+ to: string | {
1215
1266
  name_or_address?: string | undefined;
1216
1267
  local_mark_first?: boolean | undefined;
1217
1268
  };
@@ -1228,9 +1279,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1228
1279
  }>, z.ZodObject<{
1229
1280
  operation: z.ZodLiteral<"watch_messages">;
1230
1281
  filter: z.ZodOptional<z.ZodObject<{
1282
+ /** Filter by account (specify which account to query) */
1283
+ account: z.ZodOptional<z.ZodString>;
1231
1284
  direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
1232
- status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted"]>>;
1233
- peerAddress: z.ZodOptional<z.ZodObject<{
1285
+ status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
1286
+ peerAddress: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1234
1287
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1235
1288
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1236
1289
  }, "strict", z.ZodTypeAny, {
@@ -1239,7 +1292,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1239
1292
  }, {
1240
1293
  name_or_address?: string | undefined;
1241
1294
  local_mark_first?: boolean | undefined;
1242
- }>>;
1295
+ }>]>>;
1243
1296
  msgType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>>;
1244
1297
  contentType: z.ZodOptional<z.ZodEnum<["text", "zip", "wts", "wip"]>>;
1245
1298
  decryptedOnly: z.ZodOptional<z.ZodBoolean>;
@@ -1278,15 +1331,14 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1278
1331
  excludeAddresses?: string[] | undefined;
1279
1332
  relation?: "union" | "intersection" | undefined;
1280
1333
  }>>;
1281
- account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1282
1334
  }, "strip", z.ZodTypeAny, {
1283
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | undefined;
1335
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1284
1336
  limit?: number | undefined;
1285
1337
  account?: string | undefined;
1286
1338
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1287
1339
  direction?: "received" | "sent" | undefined;
1288
1340
  msgType?: 1 | 3 | undefined;
1289
- peerAddress?: {
1341
+ peerAddress?: string | {
1290
1342
  name_or_address?: string | undefined;
1291
1343
  local_mark_first?: boolean | undefined;
1292
1344
  } | undefined;
@@ -1318,13 +1370,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1318
1370
  relation?: "union" | "intersection" | undefined;
1319
1371
  } | undefined;
1320
1372
  }, {
1321
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | undefined;
1373
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1322
1374
  limit?: number | undefined;
1323
1375
  account?: string | undefined;
1324
1376
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1325
1377
  direction?: "received" | "sent" | undefined;
1326
1378
  msgType?: 1 | 3 | undefined;
1327
- peerAddress?: {
1379
+ peerAddress?: string | {
1328
1380
  name_or_address?: string | undefined;
1329
1381
  local_mark_first?: boolean | undefined;
1330
1382
  } | undefined;
@@ -1359,13 +1411,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1359
1411
  }, "strip", z.ZodTypeAny, {
1360
1412
  operation: "watch_messages";
1361
1413
  filter?: {
1362
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | undefined;
1414
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1363
1415
  limit?: number | undefined;
1364
1416
  account?: string | undefined;
1365
1417
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1366
1418
  direction?: "received" | "sent" | undefined;
1367
1419
  msgType?: 1 | 3 | undefined;
1368
- peerAddress?: {
1420
+ peerAddress?: string | {
1369
1421
  name_or_address?: string | undefined;
1370
1422
  local_mark_first?: boolean | undefined;
1371
1423
  } | undefined;
@@ -1400,13 +1452,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1400
1452
  }, {
1401
1453
  operation: "watch_messages";
1402
1454
  filter?: {
1403
- status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | undefined;
1455
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1404
1456
  limit?: number | undefined;
1405
1457
  account?: string | undefined;
1406
1458
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1407
1459
  direction?: "received" | "sent" | undefined;
1408
1460
  msgType?: 1 | 3 | undefined;
1409
- peerAddress?: {
1461
+ peerAddress?: string | {
1410
1462
  name_or_address?: string | undefined;
1411
1463
  local_mark_first?: boolean | undefined;
1412
1464
  } | undefined;
@@ -1451,7 +1503,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1451
1503
  passportAddress: z.ZodOptional<z.ZodString>;
1452
1504
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
1453
1505
  direction: z.ZodEnum<["sent", "received"]>;
1454
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted"]>;
1506
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
1455
1507
  msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
1456
1508
  leafIndex: z.ZodOptional<z.ZodNumber>;
1457
1509
  prevRoot: z.ZodOptional<z.ZodString>;
@@ -1500,8 +1552,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1500
1552
  downloadedAt?: number | undefined;
1501
1553
  }>>;
1502
1554
  proof: z.ZodOptional<z.ZodString>;
1555
+ decryptError: z.ZodOptional<z.ZodString>;
1556
+ decryptAttempts: z.ZodOptional<z.ZodNumber>;
1557
+ lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
1503
1558
  }, "strip", z.ZodTypeAny, {
1504
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
1559
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1505
1560
  createdAt: number;
1506
1561
  messageId: string;
1507
1562
  fromAddress: string;
@@ -1535,8 +1590,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1535
1590
  localCachePath?: string | undefined;
1536
1591
  downloadedAt?: number | undefined;
1537
1592
  } | undefined;
1593
+ decryptError?: string | undefined;
1594
+ decryptAttempts?: number | undefined;
1595
+ lastDecryptAttemptAt?: number | undefined;
1538
1596
  }, {
1539
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
1597
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1540
1598
  createdAt: number;
1541
1599
  messageId: string;
1542
1600
  fromAddress: string;
@@ -1570,13 +1628,16 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1570
1628
  localCachePath?: string | undefined;
1571
1629
  downloadedAt?: number | undefined;
1572
1630
  } | undefined;
1631
+ decryptError?: string | undefined;
1632
+ decryptAttempts?: number | undefined;
1633
+ lastDecryptAttemptAt?: number | undefined;
1573
1634
  }>]>, "many">;
1574
1635
  outputDir: z.ZodString;
1575
1636
  }, "strip", z.ZodTypeAny, {
1576
1637
  operation: "extract_zip_messages";
1577
1638
  outputDir: string;
1578
1639
  messages: (string | {
1579
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
1640
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1580
1641
  createdAt: number;
1581
1642
  messageId: string;
1582
1643
  fromAddress: string;
@@ -1610,13 +1671,16 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1610
1671
  localCachePath?: string | undefined;
1611
1672
  downloadedAt?: number | undefined;
1612
1673
  } | undefined;
1674
+ decryptError?: string | undefined;
1675
+ decryptAttempts?: number | undefined;
1676
+ lastDecryptAttemptAt?: number | undefined;
1613
1677
  })[];
1614
1678
  account?: string | undefined;
1615
1679
  }, {
1616
1680
  operation: "extract_zip_messages";
1617
1681
  outputDir: string;
1618
1682
  messages: (string | {
1619
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
1683
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
1620
1684
  createdAt: number;
1621
1685
  messageId: string;
1622
1686
  fromAddress: string;
@@ -1650,13 +1714,16 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1650
1714
  localCachePath?: string | undefined;
1651
1715
  downloadedAt?: number | undefined;
1652
1716
  } | undefined;
1717
+ decryptError?: string | undefined;
1718
+ decryptAttempts?: number | undefined;
1719
+ lastDecryptAttemptAt?: number | undefined;
1653
1720
  })[];
1654
1721
  account?: string | undefined;
1655
1722
  }>, z.ZodObject<{
1656
1723
  operation: z.ZodLiteral<"generate_wts">;
1657
1724
  params: z.ZodObject<{
1658
1725
  myAccount: z.ZodEffects<z.ZodString, string, string>;
1659
- peerAccount: z.ZodObject<{
1726
+ peerAccount: z.ZodUnion<[z.ZodString, z.ZodObject<{
1660
1727
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1661
1728
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1662
1729
  }, "strict", z.ZodTypeAny, {
@@ -1665,7 +1732,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1665
1732
  }, {
1666
1733
  name_or_address?: string | undefined;
1667
1734
  local_mark_first?: boolean | undefined;
1668
- }>;
1735
+ }>]>;
1669
1736
  range: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
1670
1737
  type: z.ZodLiteral<"time">;
1671
1738
  start: z.ZodNumber;
@@ -1707,7 +1774,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1707
1774
  outputDir: z.ZodString;
1708
1775
  }, "strip", z.ZodTypeAny, {
1709
1776
  myAccount: string;
1710
- peerAccount: {
1777
+ peerAccount: string | {
1711
1778
  name_or_address?: string | undefined;
1712
1779
  local_mark_first?: boolean | undefined;
1713
1780
  };
@@ -1728,7 +1795,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1728
1795
  excludePlaintext?: boolean | undefined;
1729
1796
  }, {
1730
1797
  myAccount: string;
1731
- peerAccount: {
1798
+ peerAccount: string | {
1732
1799
  name_or_address?: string | undefined;
1733
1800
  local_mark_first?: boolean | undefined;
1734
1801
  };
@@ -1751,7 +1818,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1751
1818
  }, "strip", z.ZodTypeAny, {
1752
1819
  params: {
1753
1820
  myAccount: string;
1754
- peerAccount: {
1821
+ peerAccount: string | {
1755
1822
  name_or_address?: string | undefined;
1756
1823
  local_mark_first?: boolean | undefined;
1757
1824
  };
@@ -1775,7 +1842,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1775
1842
  }, {
1776
1843
  params: {
1777
1844
  myAccount: string;
1778
- peerAccount: {
1845
+ peerAccount: string | {
1779
1846
  name_or_address?: string | undefined;
1780
1847
  local_mark_first?: boolean | undefined;
1781
1848
  };
@@ -1872,7 +1939,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1872
1939
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1873
1940
  blacklist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1874
1941
  op: z.ZodLiteral<"add">;
1875
- users: z.ZodObject<{
1942
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1876
1943
  entities: z.ZodArray<z.ZodObject<{
1877
1944
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1878
1945
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1896,7 +1963,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1896
1963
  local_mark_first?: boolean | undefined;
1897
1964
  }[];
1898
1965
  check_all_founded?: boolean | undefined;
1899
- }>;
1966
+ }>]>;
1900
1967
  }, "strip", z.ZodTypeAny, {
1901
1968
  op: "add";
1902
1969
  users: {
@@ -1905,7 +1972,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1905
1972
  local_mark_first?: boolean | undefined;
1906
1973
  }[];
1907
1974
  check_all_founded?: boolean | undefined;
1908
- };
1975
+ } | string[];
1909
1976
  }, {
1910
1977
  op: "add";
1911
1978
  users: {
@@ -1914,10 +1981,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1914
1981
  local_mark_first?: boolean | undefined;
1915
1982
  }[];
1916
1983
  check_all_founded?: boolean | undefined;
1917
- };
1984
+ } | string[];
1918
1985
  }>, z.ZodObject<{
1919
1986
  op: z.ZodLiteral<"remove">;
1920
- users: z.ZodObject<{
1987
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1921
1988
  entities: z.ZodArray<z.ZodObject<{
1922
1989
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1923
1990
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1941,7 +2008,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1941
2008
  local_mark_first?: boolean | undefined;
1942
2009
  }[];
1943
2010
  check_all_founded?: boolean | undefined;
1944
- }>;
2011
+ }>]>;
1945
2012
  }, "strip", z.ZodTypeAny, {
1946
2013
  op: "remove";
1947
2014
  users: {
@@ -1950,7 +2017,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1950
2017
  local_mark_first?: boolean | undefined;
1951
2018
  }[];
1952
2019
  check_all_founded?: boolean | undefined;
1953
- };
2020
+ } | string[];
1954
2021
  }, {
1955
2022
  op: "remove";
1956
2023
  users: {
@@ -1959,7 +2026,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1959
2026
  local_mark_first?: boolean | undefined;
1960
2027
  }[];
1961
2028
  check_all_founded?: boolean | undefined;
1962
- };
2029
+ } | string[];
1963
2030
  }>, z.ZodObject<{
1964
2031
  op: z.ZodLiteral<"clear">;
1965
2032
  }, "strip", z.ZodTypeAny, {
@@ -1974,7 +2041,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1974
2041
  op: "get";
1975
2042
  }>, z.ZodObject<{
1976
2043
  op: z.ZodLiteral<"exist">;
1977
- users: z.ZodObject<{
2044
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1978
2045
  entities: z.ZodArray<z.ZodObject<{
1979
2046
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1980
2047
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1998,7 +2065,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1998
2065
  local_mark_first?: boolean | undefined;
1999
2066
  }[];
2000
2067
  check_all_founded?: boolean | undefined;
2001
- }>;
2068
+ }>]>;
2002
2069
  }, "strip", z.ZodTypeAny, {
2003
2070
  op: "exist";
2004
2071
  users: {
@@ -2007,7 +2074,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2007
2074
  local_mark_first?: boolean | undefined;
2008
2075
  }[];
2009
2076
  check_all_founded?: boolean | undefined;
2010
- };
2077
+ } | string[];
2011
2078
  }, {
2012
2079
  op: "exist";
2013
2080
  users: {
@@ -2016,7 +2083,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2016
2083
  local_mark_first?: boolean | undefined;
2017
2084
  }[];
2018
2085
  check_all_founded?: boolean | undefined;
2019
- };
2086
+ } | string[];
2020
2087
  }>]>;
2021
2088
  }, "strip", z.ZodTypeAny, {
2022
2089
  operation: "blacklist";
@@ -2028,7 +2095,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2028
2095
  local_mark_first?: boolean | undefined;
2029
2096
  }[];
2030
2097
  check_all_founded?: boolean | undefined;
2031
- };
2098
+ } | string[];
2032
2099
  } | {
2033
2100
  op: "remove";
2034
2101
  users: {
@@ -2037,7 +2104,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2037
2104
  local_mark_first?: boolean | undefined;
2038
2105
  }[];
2039
2106
  check_all_founded?: boolean | undefined;
2040
- };
2107
+ } | string[];
2041
2108
  } | {
2042
2109
  op: "clear";
2043
2110
  } | {
@@ -2050,7 +2117,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2050
2117
  local_mark_first?: boolean | undefined;
2051
2118
  }[];
2052
2119
  check_all_founded?: boolean | undefined;
2053
- };
2120
+ } | string[];
2054
2121
  };
2055
2122
  account?: string | undefined;
2056
2123
  }, {
@@ -2063,7 +2130,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2063
2130
  local_mark_first?: boolean | undefined;
2064
2131
  }[];
2065
2132
  check_all_founded?: boolean | undefined;
2066
- };
2133
+ } | string[];
2067
2134
  } | {
2068
2135
  op: "remove";
2069
2136
  users: {
@@ -2072,7 +2139,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2072
2139
  local_mark_first?: boolean | undefined;
2073
2140
  }[];
2074
2141
  check_all_founded?: boolean | undefined;
2075
- };
2142
+ } | string[];
2076
2143
  } | {
2077
2144
  op: "clear";
2078
2145
  } | {
@@ -2085,7 +2152,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2085
2152
  local_mark_first?: boolean | undefined;
2086
2153
  }[];
2087
2154
  check_all_founded?: boolean | undefined;
2088
- };
2155
+ } | string[];
2089
2156
  };
2090
2157
  account?: string | undefined;
2091
2158
  }>, z.ZodObject<{
@@ -2093,7 +2160,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2093
2160
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2094
2161
  friendslist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
2095
2162
  op: z.ZodLiteral<"add">;
2096
- users: z.ZodObject<{
2163
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2097
2164
  entities: z.ZodArray<z.ZodObject<{
2098
2165
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2099
2166
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2117,7 +2184,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2117
2184
  local_mark_first?: boolean | undefined;
2118
2185
  }[];
2119
2186
  check_all_founded?: boolean | undefined;
2120
- }>;
2187
+ }>]>;
2121
2188
  }, "strip", z.ZodTypeAny, {
2122
2189
  op: "add";
2123
2190
  users: {
@@ -2126,7 +2193,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2126
2193
  local_mark_first?: boolean | undefined;
2127
2194
  }[];
2128
2195
  check_all_founded?: boolean | undefined;
2129
- };
2196
+ } | string[];
2130
2197
  }, {
2131
2198
  op: "add";
2132
2199
  users: {
@@ -2135,10 +2202,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2135
2202
  local_mark_first?: boolean | undefined;
2136
2203
  }[];
2137
2204
  check_all_founded?: boolean | undefined;
2138
- };
2205
+ } | string[];
2139
2206
  }>, z.ZodObject<{
2140
2207
  op: z.ZodLiteral<"remove">;
2141
- users: z.ZodObject<{
2208
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2142
2209
  entities: z.ZodArray<z.ZodObject<{
2143
2210
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2144
2211
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2162,7 +2229,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2162
2229
  local_mark_first?: boolean | undefined;
2163
2230
  }[];
2164
2231
  check_all_founded?: boolean | undefined;
2165
- }>;
2232
+ }>]>;
2166
2233
  }, "strip", z.ZodTypeAny, {
2167
2234
  op: "remove";
2168
2235
  users: {
@@ -2171,7 +2238,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2171
2238
  local_mark_first?: boolean | undefined;
2172
2239
  }[];
2173
2240
  check_all_founded?: boolean | undefined;
2174
- };
2241
+ } | string[];
2175
2242
  }, {
2176
2243
  op: "remove";
2177
2244
  users: {
@@ -2180,7 +2247,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2180
2247
  local_mark_first?: boolean | undefined;
2181
2248
  }[];
2182
2249
  check_all_founded?: boolean | undefined;
2183
- };
2250
+ } | string[];
2184
2251
  }>, z.ZodObject<{
2185
2252
  op: z.ZodLiteral<"clear">;
2186
2253
  }, "strip", z.ZodTypeAny, {
@@ -2195,7 +2262,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2195
2262
  op: "get";
2196
2263
  }>, z.ZodObject<{
2197
2264
  op: z.ZodLiteral<"exist">;
2198
- users: z.ZodObject<{
2265
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2199
2266
  entities: z.ZodArray<z.ZodObject<{
2200
2267
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2201
2268
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2219,7 +2286,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2219
2286
  local_mark_first?: boolean | undefined;
2220
2287
  }[];
2221
2288
  check_all_founded?: boolean | undefined;
2222
- }>;
2289
+ }>]>;
2223
2290
  }, "strip", z.ZodTypeAny, {
2224
2291
  op: "exist";
2225
2292
  users: {
@@ -2228,7 +2295,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2228
2295
  local_mark_first?: boolean | undefined;
2229
2296
  }[];
2230
2297
  check_all_founded?: boolean | undefined;
2231
- };
2298
+ } | string[];
2232
2299
  }, {
2233
2300
  op: "exist";
2234
2301
  users: {
@@ -2237,7 +2304,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2237
2304
  local_mark_first?: boolean | undefined;
2238
2305
  }[];
2239
2306
  check_all_founded?: boolean | undefined;
2240
- };
2307
+ } | string[];
2241
2308
  }>]>;
2242
2309
  }, "strip", z.ZodTypeAny, {
2243
2310
  operation: "friendslist";
@@ -2249,7 +2316,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2249
2316
  local_mark_first?: boolean | undefined;
2250
2317
  }[];
2251
2318
  check_all_founded?: boolean | undefined;
2252
- };
2319
+ } | string[];
2253
2320
  } | {
2254
2321
  op: "remove";
2255
2322
  users: {
@@ -2258,7 +2325,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2258
2325
  local_mark_first?: boolean | undefined;
2259
2326
  }[];
2260
2327
  check_all_founded?: boolean | undefined;
2261
- };
2328
+ } | string[];
2262
2329
  } | {
2263
2330
  op: "clear";
2264
2331
  } | {
@@ -2271,7 +2338,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2271
2338
  local_mark_first?: boolean | undefined;
2272
2339
  }[];
2273
2340
  check_all_founded?: boolean | undefined;
2274
- };
2341
+ } | string[];
2275
2342
  };
2276
2343
  account?: string | undefined;
2277
2344
  }, {
@@ -2284,7 +2351,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2284
2351
  local_mark_first?: boolean | undefined;
2285
2352
  }[];
2286
2353
  check_all_founded?: boolean | undefined;
2287
- };
2354
+ } | string[];
2288
2355
  } | {
2289
2356
  op: "remove";
2290
2357
  users: {
@@ -2293,7 +2360,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2293
2360
  local_mark_first?: boolean | undefined;
2294
2361
  }[];
2295
2362
  check_all_founded?: boolean | undefined;
2296
- };
2363
+ } | string[];
2297
2364
  } | {
2298
2365
  op: "clear";
2299
2366
  } | {
@@ -2306,7 +2373,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2306
2373
  local_mark_first?: boolean | undefined;
2307
2374
  }[];
2308
2375
  check_all_founded?: boolean | undefined;
2309
- };
2376
+ } | string[];
2310
2377
  };
2311
2378
  account?: string | undefined;
2312
2379
  }>, z.ZodObject<{
@@ -2382,6 +2449,48 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2382
2449
  op: "get";
2383
2450
  };
2384
2451
  account?: string | undefined;
2452
+ }>, z.ZodObject<{
2453
+ operation: z.ZodLiteral<"settings">;
2454
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2455
+ settings: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
2456
+ op: z.ZodLiteral<"get">;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ op: "get";
2459
+ }, {
2460
+ op: "get";
2461
+ }>, z.ZodObject<{
2462
+ op: z.ZodLiteral<"set">;
2463
+ allowStrangerMessages: z.ZodOptional<z.ZodBoolean>;
2464
+ maxInboxSize: z.ZodOptional<z.ZodNumber>;
2465
+ }, "strip", z.ZodTypeAny, {
2466
+ op: "set";
2467
+ allowStrangerMessages?: boolean | undefined;
2468
+ maxInboxSize?: number | undefined;
2469
+ }, {
2470
+ op: "set";
2471
+ allowStrangerMessages?: boolean | undefined;
2472
+ maxInboxSize?: number | undefined;
2473
+ }>]>;
2474
+ }, "strip", z.ZodTypeAny, {
2475
+ operation: "settings";
2476
+ settings: {
2477
+ op: "get";
2478
+ } | {
2479
+ op: "set";
2480
+ allowStrangerMessages?: boolean | undefined;
2481
+ maxInboxSize?: number | undefined;
2482
+ };
2483
+ account?: string | undefined;
2484
+ }, {
2485
+ operation: "settings";
2486
+ settings: {
2487
+ op: "get";
2488
+ } | {
2489
+ op: "set";
2490
+ allowStrangerMessages?: boolean | undefined;
2491
+ maxInboxSize?: number | undefined;
2492
+ };
2493
+ account?: string | undefined;
2385
2494
  }>]>;
2386
2495
  export declare const MessengerOperationOutputSchema: z.ZodObject<{
2387
2496
  result: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
@@ -2427,7 +2536,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2427
2536
  operation: z.ZodLiteral<"send_message">;
2428
2537
  result: z.ZodObject<{
2429
2538
  messageId: z.ZodString;
2430
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted"]>;
2539
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
2431
2540
  merkleData: z.ZodOptional<z.ZodObject<{
2432
2541
  leafIndex: z.ZodNumber;
2433
2542
  prevRoot: z.ZodString;
@@ -2451,9 +2560,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2451
2560
  serverPublicKey: string;
2452
2561
  }>>;
2453
2562
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2563
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2454
2564
  }, "strip", z.ZodTypeAny, {
2455
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2565
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2456
2566
  messageId: string;
2567
+ lastReceivedLeafIndex?: number | undefined;
2457
2568
  merkleData?: {
2458
2569
  serverTimestamp: number;
2459
2570
  leafIndex: number;
@@ -2464,8 +2575,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2464
2575
  } | undefined;
2465
2576
  guardList?: string[] | undefined;
2466
2577
  }, {
2467
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2578
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2468
2579
  messageId: string;
2580
+ lastReceivedLeafIndex?: number | undefined;
2469
2581
  merkleData?: {
2470
2582
  serverTimestamp: number;
2471
2583
  leafIndex: number;
@@ -2478,8 +2590,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2478
2590
  }>;
2479
2591
  }, "strip", z.ZodTypeAny, {
2480
2592
  result: {
2481
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2593
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2482
2594
  messageId: string;
2595
+ lastReceivedLeafIndex?: number | undefined;
2483
2596
  merkleData?: {
2484
2597
  serverTimestamp: number;
2485
2598
  leafIndex: number;
@@ -2493,8 +2606,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2493
2606
  operation: "send_message";
2494
2607
  }, {
2495
2608
  result: {
2496
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2609
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2497
2610
  messageId: string;
2611
+ lastReceivedLeafIndex?: number | undefined;
2498
2612
  merkleData?: {
2499
2613
  serverTimestamp: number;
2500
2614
  leafIndex: number;
@@ -2510,7 +2624,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2510
2624
  operation: z.ZodLiteral<"send_file">;
2511
2625
  result: z.ZodObject<{
2512
2626
  messageId: z.ZodString;
2513
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted"]>;
2627
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
2514
2628
  merkleData: z.ZodOptional<z.ZodObject<{
2515
2629
  leafIndex: z.ZodNumber;
2516
2630
  prevRoot: z.ZodString;
@@ -2534,9 +2648,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2534
2648
  serverPublicKey: string;
2535
2649
  }>>;
2536
2650
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2651
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2537
2652
  }, "strip", z.ZodTypeAny, {
2538
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2653
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2539
2654
  messageId: string;
2655
+ lastReceivedLeafIndex?: number | undefined;
2540
2656
  merkleData?: {
2541
2657
  serverTimestamp: number;
2542
2658
  leafIndex: number;
@@ -2547,8 +2663,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2547
2663
  } | undefined;
2548
2664
  guardList?: string[] | undefined;
2549
2665
  }, {
2550
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2666
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2551
2667
  messageId: string;
2668
+ lastReceivedLeafIndex?: number | undefined;
2552
2669
  merkleData?: {
2553
2670
  serverTimestamp: number;
2554
2671
  leafIndex: number;
@@ -2561,8 +2678,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2561
2678
  }>;
2562
2679
  }, "strip", z.ZodTypeAny, {
2563
2680
  result: {
2564
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2681
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2565
2682
  messageId: string;
2683
+ lastReceivedLeafIndex?: number | undefined;
2566
2684
  merkleData?: {
2567
2685
  serverTimestamp: number;
2568
2686
  leafIndex: number;
@@ -2576,8 +2694,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2576
2694
  operation: "send_file";
2577
2695
  }, {
2578
2696
  result: {
2579
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2697
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2580
2698
  messageId: string;
2699
+ lastReceivedLeafIndex?: number | undefined;
2581
2700
  merkleData?: {
2582
2701
  serverTimestamp: number;
2583
2702
  leafIndex: number;
@@ -2601,7 +2720,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2601
2720
  passportAddress: z.ZodOptional<z.ZodString>;
2602
2721
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2603
2722
  direction: z.ZodEnum<["sent", "received"]>;
2604
- status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted"]>;
2723
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>;
2605
2724
  msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
2606
2725
  leafIndex: z.ZodOptional<z.ZodNumber>;
2607
2726
  prevRoot: z.ZodOptional<z.ZodString>;
@@ -2650,8 +2769,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2650
2769
  downloadedAt?: number | undefined;
2651
2770
  }>>;
2652
2771
  proof: z.ZodOptional<z.ZodString>;
2772
+ decryptError: z.ZodOptional<z.ZodString>;
2773
+ decryptAttempts: z.ZodOptional<z.ZodNumber>;
2774
+ lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
2653
2775
  }, "strip", z.ZodTypeAny, {
2654
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2776
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2655
2777
  createdAt: number;
2656
2778
  messageId: string;
2657
2779
  fromAddress: string;
@@ -2685,8 +2807,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2685
2807
  localCachePath?: string | undefined;
2686
2808
  downloadedAt?: number | undefined;
2687
2809
  } | undefined;
2810
+ decryptError?: string | undefined;
2811
+ decryptAttempts?: number | undefined;
2812
+ lastDecryptAttemptAt?: number | undefined;
2688
2813
  }, {
2689
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2814
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2690
2815
  createdAt: number;
2691
2816
  messageId: string;
2692
2817
  fromAddress: string;
@@ -2720,10 +2845,13 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2720
2845
  localCachePath?: string | undefined;
2721
2846
  downloadedAt?: number | undefined;
2722
2847
  } | undefined;
2848
+ decryptError?: string | undefined;
2849
+ decryptAttempts?: number | undefined;
2850
+ lastDecryptAttemptAt?: number | undefined;
2723
2851
  }>, "many">;
2724
2852
  }, "strip", z.ZodTypeAny, {
2725
2853
  result: {
2726
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2854
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2727
2855
  createdAt: number;
2728
2856
  messageId: string;
2729
2857
  fromAddress: string;
@@ -2757,11 +2885,14 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2757
2885
  localCachePath?: string | undefined;
2758
2886
  downloadedAt?: number | undefined;
2759
2887
  } | undefined;
2888
+ decryptError?: string | undefined;
2889
+ decryptAttempts?: number | undefined;
2890
+ lastDecryptAttemptAt?: number | undefined;
2760
2891
  }[];
2761
2892
  operation: "watch_messages";
2762
2893
  }, {
2763
2894
  result: {
2764
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
2895
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2765
2896
  createdAt: number;
2766
2897
  messageId: string;
2767
2898
  fromAddress: string;
@@ -2795,6 +2926,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2795
2926
  localCachePath?: string | undefined;
2796
2927
  downloadedAt?: number | undefined;
2797
2928
  } | undefined;
2929
+ decryptError?: string | undefined;
2930
+ decryptAttempts?: number | undefined;
2931
+ lastDecryptAttemptAt?: number | undefined;
2798
2932
  }[];
2799
2933
  operation: "watch_messages";
2800
2934
  }>, z.ZodObject<{
@@ -3292,6 +3426,48 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3292
3426
  };
3293
3427
  op: "get" | "add" | "remove";
3294
3428
  operation: "guardlist";
3429
+ }>, z.ZodObject<{
3430
+ operation: z.ZodLiteral<"settings">;
3431
+ op: z.ZodEnum<["get", "set"]>;
3432
+ result: z.ZodUnion<[z.ZodObject<{
3433
+ allowStrangerMessages: z.ZodOptional<z.ZodBoolean>;
3434
+ maxInboxSize: z.ZodOptional<z.ZodNumber>;
3435
+ serverMinInboxSizeLimit: z.ZodNumber;
3436
+ serverMaxInboxSizeLimit: z.ZodNumber;
3437
+ serverDefaultAllowStrangerMessages: z.ZodBoolean;
3438
+ }, "strip", z.ZodTypeAny, {
3439
+ serverMinInboxSizeLimit: number;
3440
+ serverMaxInboxSizeLimit: number;
3441
+ serverDefaultAllowStrangerMessages: boolean;
3442
+ allowStrangerMessages?: boolean | undefined;
3443
+ maxInboxSize?: number | undefined;
3444
+ }, {
3445
+ serverMinInboxSizeLimit: number;
3446
+ serverMaxInboxSizeLimit: number;
3447
+ serverDefaultAllowStrangerMessages: boolean;
3448
+ allowStrangerMessages?: boolean | undefined;
3449
+ maxInboxSize?: number | undefined;
3450
+ }>, z.ZodBoolean]>;
3451
+ }, "strip", z.ZodTypeAny, {
3452
+ result: boolean | {
3453
+ serverMinInboxSizeLimit: number;
3454
+ serverMaxInboxSizeLimit: number;
3455
+ serverDefaultAllowStrangerMessages: boolean;
3456
+ allowStrangerMessages?: boolean | undefined;
3457
+ maxInboxSize?: number | undefined;
3458
+ };
3459
+ op: "set" | "get";
3460
+ operation: "settings";
3461
+ }, {
3462
+ result: boolean | {
3463
+ serverMinInboxSizeLimit: number;
3464
+ serverMaxInboxSizeLimit: number;
3465
+ serverDefaultAllowStrangerMessages: boolean;
3466
+ allowStrangerMessages?: boolean | undefined;
3467
+ maxInboxSize?: number | undefined;
3468
+ };
3469
+ op: "set" | "get";
3470
+ operation: "settings";
3295
3471
  }>]>;
3296
3472
  }, "strip", z.ZodTypeAny, {
3297
3473
  result: {
@@ -3305,8 +3481,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3305
3481
  operation: "watch_conversations";
3306
3482
  } | {
3307
3483
  result: {
3308
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
3484
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3309
3485
  messageId: string;
3486
+ lastReceivedLeafIndex?: number | undefined;
3310
3487
  merkleData?: {
3311
3488
  serverTimestamp: number;
3312
3489
  leafIndex: number;
@@ -3320,8 +3497,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3320
3497
  operation: "send_message";
3321
3498
  } | {
3322
3499
  result: {
3323
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
3500
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3324
3501
  messageId: string;
3502
+ lastReceivedLeafIndex?: number | undefined;
3325
3503
  merkleData?: {
3326
3504
  serverTimestamp: number;
3327
3505
  leafIndex: number;
@@ -3335,7 +3513,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3335
3513
  operation: "send_file";
3336
3514
  } | {
3337
3515
  result: {
3338
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
3516
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3339
3517
  createdAt: number;
3340
3518
  messageId: string;
3341
3519
  fromAddress: string;
@@ -3369,6 +3547,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3369
3547
  localCachePath?: string | undefined;
3370
3548
  downloadedAt?: number | undefined;
3371
3549
  } | undefined;
3550
+ decryptError?: string | undefined;
3551
+ decryptAttempts?: number | undefined;
3552
+ lastDecryptAttemptAt?: number | undefined;
3372
3553
  }[];
3373
3554
  operation: "watch_messages";
3374
3555
  } | {
@@ -3472,6 +3653,16 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3472
3653
  };
3473
3654
  op: "get" | "add" | "remove";
3474
3655
  operation: "guardlist";
3656
+ } | {
3657
+ result: boolean | {
3658
+ serverMinInboxSizeLimit: number;
3659
+ serverMaxInboxSizeLimit: number;
3660
+ serverDefaultAllowStrangerMessages: boolean;
3661
+ allowStrangerMessages?: boolean | undefined;
3662
+ maxInboxSize?: number | undefined;
3663
+ };
3664
+ op: "set" | "get";
3665
+ operation: "settings";
3475
3666
  };
3476
3667
  }, {
3477
3668
  result: {
@@ -3485,8 +3676,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3485
3676
  operation: "watch_conversations";
3486
3677
  } | {
3487
3678
  result: {
3488
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
3679
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3489
3680
  messageId: string;
3681
+ lastReceivedLeafIndex?: number | undefined;
3490
3682
  merkleData?: {
3491
3683
  serverTimestamp: number;
3492
3684
  leafIndex: number;
@@ -3500,8 +3692,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3500
3692
  operation: "send_message";
3501
3693
  } | {
3502
3694
  result: {
3503
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
3695
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3504
3696
  messageId: string;
3697
+ lastReceivedLeafIndex?: number | undefined;
3505
3698
  merkleData?: {
3506
3699
  serverTimestamp: number;
3507
3700
  leafIndex: number;
@@ -3515,7 +3708,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3515
3708
  operation: "send_file";
3516
3709
  } | {
3517
3710
  result: {
3518
- status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted";
3711
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3519
3712
  createdAt: number;
3520
3713
  messageId: string;
3521
3714
  fromAddress: string;
@@ -3549,6 +3742,9 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3549
3742
  localCachePath?: string | undefined;
3550
3743
  downloadedAt?: number | undefined;
3551
3744
  } | undefined;
3745
+ decryptError?: string | undefined;
3746
+ decryptAttempts?: number | undefined;
3747
+ lastDecryptAttemptAt?: number | undefined;
3552
3748
  }[];
3553
3749
  operation: "watch_messages";
3554
3750
  } | {
@@ -3652,6 +3848,16 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3652
3848
  };
3653
3849
  op: "get" | "add" | "remove";
3654
3850
  operation: "guardlist";
3851
+ } | {
3852
+ result: boolean | {
3853
+ serverMinInboxSizeLimit: number;
3854
+ serverMaxInboxSizeLimit: number;
3855
+ serverDefaultAllowStrangerMessages: boolean;
3856
+ allowStrangerMessages?: boolean | undefined;
3857
+ maxInboxSize?: number | undefined;
3858
+ };
3859
+ op: "set" | "get";
3860
+ operation: "settings";
3655
3861
  };
3656
3862
  }>;
3657
3863
  export type MessengerOperationInput = z.infer<typeof MessengerOperationInputSchema>;