wowok_agent 2.1.20 → 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.
@@ -190,7 +190,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
190
190
  account: z.ZodOptional<z.ZodString>;
191
191
  direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
192
192
  status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
193
- peerAddress: z.ZodOptional<z.ZodObject<{
193
+ peerAddress: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
194
194
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
195
195
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
196
196
  }, "strict", z.ZodTypeAny, {
@@ -199,7 +199,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
199
199
  }, {
200
200
  name_or_address?: string | undefined;
201
201
  local_mark_first?: boolean | undefined;
202
- }>>;
202
+ }>]>>;
203
203
  msgType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>>;
204
204
  contentType: z.ZodOptional<z.ZodEnum<["text", "zip", "wts", "wip"]>>;
205
205
  decryptedOnly: z.ZodOptional<z.ZodBoolean>;
@@ -245,7 +245,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
245
245
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
246
246
  direction?: "received" | "sent" | undefined;
247
247
  msgType?: 1 | 3 | undefined;
248
- peerAddress?: {
248
+ peerAddress?: string | {
249
249
  name_or_address?: string | undefined;
250
250
  local_mark_first?: boolean | undefined;
251
251
  } | undefined;
@@ -283,7 +283,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
283
283
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
284
284
  direction?: "received" | "sent" | undefined;
285
285
  msgType?: 1 | 3 | undefined;
286
- peerAddress?: {
286
+ peerAddress?: string | {
287
287
  name_or_address?: string | undefined;
288
288
  local_mark_first?: boolean | undefined;
289
289
  } | undefined;
@@ -379,9 +379,11 @@ export declare const SendMessageResultSchema: z.ZodObject<{
379
379
  serverPublicKey: string;
380
380
  }>>;
381
381
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
382
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
382
383
  }, "strip", z.ZodTypeAny, {
383
384
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
384
385
  messageId: string;
386
+ lastReceivedLeafIndex?: number | undefined;
385
387
  merkleData?: {
386
388
  serverTimestamp: number;
387
389
  leafIndex: number;
@@ -394,6 +396,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
394
396
  }, {
395
397
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
396
398
  messageId: string;
399
+ lastReceivedLeafIndex?: number | undefined;
397
400
  merkleData?: {
398
401
  serverTimestamp: number;
399
402
  leafIndex: number;
@@ -482,7 +485,7 @@ export declare const WtsRangeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
482
485
  }>]>;
483
486
  export declare const WtsGenerationParamsSchema: z.ZodObject<{
484
487
  myAccount: z.ZodEffects<z.ZodString, string, string>;
485
- peerAccount: z.ZodObject<{
488
+ peerAccount: z.ZodUnion<[z.ZodString, z.ZodObject<{
486
489
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
487
490
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
488
491
  }, "strict", z.ZodTypeAny, {
@@ -491,7 +494,7 @@ export declare const WtsGenerationParamsSchema: z.ZodObject<{
491
494
  }, {
492
495
  name_or_address?: string | undefined;
493
496
  local_mark_first?: boolean | undefined;
494
- }>;
497
+ }>]>;
495
498
  range: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
496
499
  type: z.ZodLiteral<"time">;
497
500
  start: z.ZodNumber;
@@ -533,7 +536,7 @@ export declare const WtsGenerationParamsSchema: z.ZodObject<{
533
536
  outputDir: z.ZodString;
534
537
  }, "strip", z.ZodTypeAny, {
535
538
  myAccount: string;
536
- peerAccount: {
539
+ peerAccount: string | {
537
540
  name_or_address?: string | undefined;
538
541
  local_mark_first?: boolean | undefined;
539
542
  };
@@ -554,7 +557,7 @@ export declare const WtsGenerationParamsSchema: z.ZodObject<{
554
557
  excludePlaintext?: boolean | undefined;
555
558
  }, {
556
559
  myAccount: string;
557
- peerAccount: {
560
+ peerAccount: string | {
558
561
  name_or_address?: string | undefined;
559
562
  local_mark_first?: boolean | undefined;
560
563
  };
@@ -756,7 +759,7 @@ export declare const ListOperationResponseSchema: z.ZodObject<{
756
759
  }>;
757
760
  export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
758
761
  op: z.ZodLiteral<"add">;
759
- users: z.ZodObject<{
762
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
760
763
  entities: z.ZodArray<z.ZodObject<{
761
764
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
762
765
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -780,7 +783,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
780
783
  local_mark_first?: boolean | undefined;
781
784
  }[];
782
785
  check_all_founded?: boolean | undefined;
783
- }>;
786
+ }>]>;
784
787
  }, "strip", z.ZodTypeAny, {
785
788
  op: "add";
786
789
  users: {
@@ -789,7 +792,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
789
792
  local_mark_first?: boolean | undefined;
790
793
  }[];
791
794
  check_all_founded?: boolean | undefined;
792
- };
795
+ } | string[];
793
796
  }, {
794
797
  op: "add";
795
798
  users: {
@@ -798,10 +801,10 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
798
801
  local_mark_first?: boolean | undefined;
799
802
  }[];
800
803
  check_all_founded?: boolean | undefined;
801
- };
804
+ } | string[];
802
805
  }>, z.ZodObject<{
803
806
  op: z.ZodLiteral<"remove">;
804
- users: z.ZodObject<{
807
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
805
808
  entities: z.ZodArray<z.ZodObject<{
806
809
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
807
810
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -825,7 +828,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
825
828
  local_mark_first?: boolean | undefined;
826
829
  }[];
827
830
  check_all_founded?: boolean | undefined;
828
- }>;
831
+ }>]>;
829
832
  }, "strip", z.ZodTypeAny, {
830
833
  op: "remove";
831
834
  users: {
@@ -834,7 +837,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
834
837
  local_mark_first?: boolean | undefined;
835
838
  }[];
836
839
  check_all_founded?: boolean | undefined;
837
- };
840
+ } | string[];
838
841
  }, {
839
842
  op: "remove";
840
843
  users: {
@@ -843,7 +846,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
843
846
  local_mark_first?: boolean | undefined;
844
847
  }[];
845
848
  check_all_founded?: boolean | undefined;
846
- };
849
+ } | string[];
847
850
  }>, z.ZodObject<{
848
851
  op: z.ZodLiteral<"clear">;
849
852
  }, "strip", z.ZodTypeAny, {
@@ -858,7 +861,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
858
861
  op: "get";
859
862
  }>, z.ZodObject<{
860
863
  op: z.ZodLiteral<"exist">;
861
- users: z.ZodObject<{
864
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
862
865
  entities: z.ZodArray<z.ZodObject<{
863
866
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
864
867
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -882,7 +885,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
882
885
  local_mark_first?: boolean | undefined;
883
886
  }[];
884
887
  check_all_founded?: boolean | undefined;
885
- }>;
888
+ }>]>;
886
889
  }, "strip", z.ZodTypeAny, {
887
890
  op: "exist";
888
891
  users: {
@@ -891,7 +894,7 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
891
894
  local_mark_first?: boolean | undefined;
892
895
  }[];
893
896
  check_all_founded?: boolean | undefined;
894
- };
897
+ } | string[];
895
898
  }, {
896
899
  op: "exist";
897
900
  users: {
@@ -900,11 +903,11 @@ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
900
903
  local_mark_first?: boolean | undefined;
901
904
  }[];
902
905
  check_all_founded?: boolean | undefined;
903
- };
906
+ } | string[];
904
907
  }>]>;
905
908
  export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
906
909
  op: z.ZodLiteral<"add">;
907
- users: z.ZodObject<{
910
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
908
911
  entities: z.ZodArray<z.ZodObject<{
909
912
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
910
913
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -928,7 +931,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
928
931
  local_mark_first?: boolean | undefined;
929
932
  }[];
930
933
  check_all_founded?: boolean | undefined;
931
- }>;
934
+ }>]>;
932
935
  }, "strip", z.ZodTypeAny, {
933
936
  op: "add";
934
937
  users: {
@@ -937,7 +940,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
937
940
  local_mark_first?: boolean | undefined;
938
941
  }[];
939
942
  check_all_founded?: boolean | undefined;
940
- };
943
+ } | string[];
941
944
  }, {
942
945
  op: "add";
943
946
  users: {
@@ -946,10 +949,10 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
946
949
  local_mark_first?: boolean | undefined;
947
950
  }[];
948
951
  check_all_founded?: boolean | undefined;
949
- };
952
+ } | string[];
950
953
  }>, z.ZodObject<{
951
954
  op: z.ZodLiteral<"remove">;
952
- users: z.ZodObject<{
955
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
953
956
  entities: z.ZodArray<z.ZodObject<{
954
957
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
955
958
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -973,7 +976,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
973
976
  local_mark_first?: boolean | undefined;
974
977
  }[];
975
978
  check_all_founded?: boolean | undefined;
976
- }>;
979
+ }>]>;
977
980
  }, "strip", z.ZodTypeAny, {
978
981
  op: "remove";
979
982
  users: {
@@ -982,7 +985,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
982
985
  local_mark_first?: boolean | undefined;
983
986
  }[];
984
987
  check_all_founded?: boolean | undefined;
985
- };
988
+ } | string[];
986
989
  }, {
987
990
  op: "remove";
988
991
  users: {
@@ -991,7 +994,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
991
994
  local_mark_first?: boolean | undefined;
992
995
  }[];
993
996
  check_all_founded?: boolean | undefined;
994
- };
997
+ } | string[];
995
998
  }>, z.ZodObject<{
996
999
  op: z.ZodLiteral<"clear">;
997
1000
  }, "strip", z.ZodTypeAny, {
@@ -1006,7 +1009,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1006
1009
  op: "get";
1007
1010
  }>, z.ZodObject<{
1008
1011
  op: z.ZodLiteral<"exist">;
1009
- users: z.ZodObject<{
1012
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1010
1013
  entities: z.ZodArray<z.ZodObject<{
1011
1014
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1012
1015
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1030,7 +1033,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1030
1033
  local_mark_first?: boolean | undefined;
1031
1034
  }[];
1032
1035
  check_all_founded?: boolean | undefined;
1033
- }>;
1036
+ }>]>;
1034
1037
  }, "strip", z.ZodTypeAny, {
1035
1038
  op: "exist";
1036
1039
  users: {
@@ -1039,7 +1042,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1039
1042
  local_mark_first?: boolean | undefined;
1040
1043
  }[];
1041
1044
  check_all_founded?: boolean | undefined;
1042
- };
1045
+ } | string[];
1043
1046
  }, {
1044
1047
  op: "exist";
1045
1048
  users: {
@@ -1048,7 +1051,7 @@ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [
1048
1051
  local_mark_first?: boolean | undefined;
1049
1052
  }[];
1050
1053
  check_all_founded?: boolean | undefined;
1051
- };
1054
+ } | string[];
1052
1055
  }>]>;
1053
1056
  export declare const GuardParamSchema: z.ZodObject<{
1054
1057
  guard: z.ZodEffects<z.ZodString, string, string>;
@@ -1100,6 +1103,44 @@ export declare const GuardlistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.
1100
1103
  }, {
1101
1104
  op: "get";
1102
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
+ }>;
1103
1144
  export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1104
1145
  operation: z.ZodLiteral<"watch_conversations">;
1105
1146
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -1112,7 +1153,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1112
1153
  }>, z.ZodObject<{
1113
1154
  operation: z.ZodLiteral<"send_message">;
1114
1155
  from: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1115
- to: z.ZodObject<{
1156
+ to: z.ZodUnion<[z.ZodString, z.ZodObject<{
1116
1157
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1117
1158
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1118
1159
  }, "strict", z.ZodTypeAny, {
@@ -1121,7 +1162,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1121
1162
  }, {
1122
1163
  name_or_address?: string | undefined;
1123
1164
  local_mark_first?: boolean | undefined;
1124
- }>;
1165
+ }>]>;
1125
1166
  content: z.ZodString;
1126
1167
  options: z.ZodOptional<z.ZodObject<{
1127
1168
  guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -1141,7 +1182,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1141
1182
  }>>;
1142
1183
  }, "strip", z.ZodTypeAny, {
1143
1184
  content: string;
1144
- to: {
1185
+ to: string | {
1145
1186
  name_or_address?: string | undefined;
1146
1187
  local_mark_first?: boolean | undefined;
1147
1188
  };
@@ -1155,7 +1196,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1155
1196
  from?: string | undefined;
1156
1197
  }, {
1157
1198
  content: string;
1158
- to: {
1199
+ to: string | {
1159
1200
  name_or_address?: string | undefined;
1160
1201
  local_mark_first?: boolean | undefined;
1161
1202
  };
@@ -1170,7 +1211,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1170
1211
  }>, z.ZodObject<{
1171
1212
  operation: z.ZodLiteral<"send_file">;
1172
1213
  from: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1173
- to: z.ZodObject<{
1214
+ to: z.ZodUnion<[z.ZodString, z.ZodObject<{
1174
1215
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1175
1216
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1176
1217
  }, "strict", z.ZodTypeAny, {
@@ -1179,7 +1220,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1179
1220
  }, {
1180
1221
  name_or_address?: string | undefined;
1181
1222
  local_mark_first?: boolean | undefined;
1182
- }>;
1223
+ }>]>;
1183
1224
  filePath: z.ZodString;
1184
1225
  options: z.ZodOptional<z.ZodObject<{
1185
1226
  fileName: z.ZodOptional<z.ZodString>;
@@ -1205,7 +1246,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1205
1246
  }>>;
1206
1247
  }, "strip", z.ZodTypeAny, {
1207
1248
  filePath: string;
1208
- to: {
1249
+ to: string | {
1209
1250
  name_or_address?: string | undefined;
1210
1251
  local_mark_first?: boolean | undefined;
1211
1252
  };
@@ -1221,7 +1262,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1221
1262
  from?: string | undefined;
1222
1263
  }, {
1223
1264
  filePath: string;
1224
- to: {
1265
+ to: string | {
1225
1266
  name_or_address?: string | undefined;
1226
1267
  local_mark_first?: boolean | undefined;
1227
1268
  };
@@ -1242,7 +1283,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1242
1283
  account: z.ZodOptional<z.ZodString>;
1243
1284
  direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
1244
1285
  status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]>>;
1245
- peerAddress: z.ZodOptional<z.ZodObject<{
1286
+ peerAddress: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1246
1287
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1247
1288
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1248
1289
  }, "strict", z.ZodTypeAny, {
@@ -1251,7 +1292,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1251
1292
  }, {
1252
1293
  name_or_address?: string | undefined;
1253
1294
  local_mark_first?: boolean | undefined;
1254
- }>>;
1295
+ }>]>>;
1255
1296
  msgType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>>;
1256
1297
  contentType: z.ZodOptional<z.ZodEnum<["text", "zip", "wts", "wip"]>>;
1257
1298
  decryptedOnly: z.ZodOptional<z.ZodBoolean>;
@@ -1297,7 +1338,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1297
1338
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1298
1339
  direction?: "received" | "sent" | undefined;
1299
1340
  msgType?: 1 | 3 | undefined;
1300
- peerAddress?: {
1341
+ peerAddress?: string | {
1301
1342
  name_or_address?: string | undefined;
1302
1343
  local_mark_first?: boolean | undefined;
1303
1344
  } | undefined;
@@ -1335,7 +1376,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1335
1376
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1336
1377
  direction?: "received" | "sent" | undefined;
1337
1378
  msgType?: 1 | 3 | undefined;
1338
- peerAddress?: {
1379
+ peerAddress?: string | {
1339
1380
  name_or_address?: string | undefined;
1340
1381
  local_mark_first?: boolean | undefined;
1341
1382
  } | undefined;
@@ -1376,7 +1417,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1376
1417
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1377
1418
  direction?: "received" | "sent" | undefined;
1378
1419
  msgType?: 1 | 3 | undefined;
1379
- peerAddress?: {
1420
+ peerAddress?: string | {
1380
1421
  name_or_address?: string | undefined;
1381
1422
  local_mark_first?: boolean | undefined;
1382
1423
  } | undefined;
@@ -1417,7 +1458,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1417
1458
  contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1418
1459
  direction?: "received" | "sent" | undefined;
1419
1460
  msgType?: 1 | 3 | undefined;
1420
- peerAddress?: {
1461
+ peerAddress?: string | {
1421
1462
  name_or_address?: string | undefined;
1422
1463
  local_mark_first?: boolean | undefined;
1423
1464
  } | undefined;
@@ -1682,7 +1723,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1682
1723
  operation: z.ZodLiteral<"generate_wts">;
1683
1724
  params: z.ZodObject<{
1684
1725
  myAccount: z.ZodEffects<z.ZodString, string, string>;
1685
- peerAccount: z.ZodObject<{
1726
+ peerAccount: z.ZodUnion<[z.ZodString, z.ZodObject<{
1686
1727
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1687
1728
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
1688
1729
  }, "strict", z.ZodTypeAny, {
@@ -1691,7 +1732,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1691
1732
  }, {
1692
1733
  name_or_address?: string | undefined;
1693
1734
  local_mark_first?: boolean | undefined;
1694
- }>;
1735
+ }>]>;
1695
1736
  range: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
1696
1737
  type: z.ZodLiteral<"time">;
1697
1738
  start: z.ZodNumber;
@@ -1733,7 +1774,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1733
1774
  outputDir: z.ZodString;
1734
1775
  }, "strip", z.ZodTypeAny, {
1735
1776
  myAccount: string;
1736
- peerAccount: {
1777
+ peerAccount: string | {
1737
1778
  name_or_address?: string | undefined;
1738
1779
  local_mark_first?: boolean | undefined;
1739
1780
  };
@@ -1754,7 +1795,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1754
1795
  excludePlaintext?: boolean | undefined;
1755
1796
  }, {
1756
1797
  myAccount: string;
1757
- peerAccount: {
1798
+ peerAccount: string | {
1758
1799
  name_or_address?: string | undefined;
1759
1800
  local_mark_first?: boolean | undefined;
1760
1801
  };
@@ -1777,7 +1818,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1777
1818
  }, "strip", z.ZodTypeAny, {
1778
1819
  params: {
1779
1820
  myAccount: string;
1780
- peerAccount: {
1821
+ peerAccount: string | {
1781
1822
  name_or_address?: string | undefined;
1782
1823
  local_mark_first?: boolean | undefined;
1783
1824
  };
@@ -1801,7 +1842,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1801
1842
  }, {
1802
1843
  params: {
1803
1844
  myAccount: string;
1804
- peerAccount: {
1845
+ peerAccount: string | {
1805
1846
  name_or_address?: string | undefined;
1806
1847
  local_mark_first?: boolean | undefined;
1807
1848
  };
@@ -1898,7 +1939,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1898
1939
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1899
1940
  blacklist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1900
1941
  op: z.ZodLiteral<"add">;
1901
- users: z.ZodObject<{
1942
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1902
1943
  entities: z.ZodArray<z.ZodObject<{
1903
1944
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1904
1945
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1922,7 +1963,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1922
1963
  local_mark_first?: boolean | undefined;
1923
1964
  }[];
1924
1965
  check_all_founded?: boolean | undefined;
1925
- }>;
1966
+ }>]>;
1926
1967
  }, "strip", z.ZodTypeAny, {
1927
1968
  op: "add";
1928
1969
  users: {
@@ -1931,7 +1972,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1931
1972
  local_mark_first?: boolean | undefined;
1932
1973
  }[];
1933
1974
  check_all_founded?: boolean | undefined;
1934
- };
1975
+ } | string[];
1935
1976
  }, {
1936
1977
  op: "add";
1937
1978
  users: {
@@ -1940,10 +1981,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1940
1981
  local_mark_first?: boolean | undefined;
1941
1982
  }[];
1942
1983
  check_all_founded?: boolean | undefined;
1943
- };
1984
+ } | string[];
1944
1985
  }>, z.ZodObject<{
1945
1986
  op: z.ZodLiteral<"remove">;
1946
- users: z.ZodObject<{
1987
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
1947
1988
  entities: z.ZodArray<z.ZodObject<{
1948
1989
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1949
1990
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -1967,7 +2008,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1967
2008
  local_mark_first?: boolean | undefined;
1968
2009
  }[];
1969
2010
  check_all_founded?: boolean | undefined;
1970
- }>;
2011
+ }>]>;
1971
2012
  }, "strip", z.ZodTypeAny, {
1972
2013
  op: "remove";
1973
2014
  users: {
@@ -1976,7 +2017,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1976
2017
  local_mark_first?: boolean | undefined;
1977
2018
  }[];
1978
2019
  check_all_founded?: boolean | undefined;
1979
- };
2020
+ } | string[];
1980
2021
  }, {
1981
2022
  op: "remove";
1982
2023
  users: {
@@ -1985,7 +2026,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1985
2026
  local_mark_first?: boolean | undefined;
1986
2027
  }[];
1987
2028
  check_all_founded?: boolean | undefined;
1988
- };
2029
+ } | string[];
1989
2030
  }>, z.ZodObject<{
1990
2031
  op: z.ZodLiteral<"clear">;
1991
2032
  }, "strip", z.ZodTypeAny, {
@@ -2000,7 +2041,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2000
2041
  op: "get";
2001
2042
  }>, z.ZodObject<{
2002
2043
  op: z.ZodLiteral<"exist">;
2003
- users: z.ZodObject<{
2044
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2004
2045
  entities: z.ZodArray<z.ZodObject<{
2005
2046
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2006
2047
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2024,7 +2065,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2024
2065
  local_mark_first?: boolean | undefined;
2025
2066
  }[];
2026
2067
  check_all_founded?: boolean | undefined;
2027
- }>;
2068
+ }>]>;
2028
2069
  }, "strip", z.ZodTypeAny, {
2029
2070
  op: "exist";
2030
2071
  users: {
@@ -2033,7 +2074,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2033
2074
  local_mark_first?: boolean | undefined;
2034
2075
  }[];
2035
2076
  check_all_founded?: boolean | undefined;
2036
- };
2077
+ } | string[];
2037
2078
  }, {
2038
2079
  op: "exist";
2039
2080
  users: {
@@ -2042,7 +2083,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2042
2083
  local_mark_first?: boolean | undefined;
2043
2084
  }[];
2044
2085
  check_all_founded?: boolean | undefined;
2045
- };
2086
+ } | string[];
2046
2087
  }>]>;
2047
2088
  }, "strip", z.ZodTypeAny, {
2048
2089
  operation: "blacklist";
@@ -2054,7 +2095,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2054
2095
  local_mark_first?: boolean | undefined;
2055
2096
  }[];
2056
2097
  check_all_founded?: boolean | undefined;
2057
- };
2098
+ } | string[];
2058
2099
  } | {
2059
2100
  op: "remove";
2060
2101
  users: {
@@ -2063,7 +2104,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2063
2104
  local_mark_first?: boolean | undefined;
2064
2105
  }[];
2065
2106
  check_all_founded?: boolean | undefined;
2066
- };
2107
+ } | string[];
2067
2108
  } | {
2068
2109
  op: "clear";
2069
2110
  } | {
@@ -2076,7 +2117,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2076
2117
  local_mark_first?: boolean | undefined;
2077
2118
  }[];
2078
2119
  check_all_founded?: boolean | undefined;
2079
- };
2120
+ } | string[];
2080
2121
  };
2081
2122
  account?: string | undefined;
2082
2123
  }, {
@@ -2089,7 +2130,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2089
2130
  local_mark_first?: boolean | undefined;
2090
2131
  }[];
2091
2132
  check_all_founded?: boolean | undefined;
2092
- };
2133
+ } | string[];
2093
2134
  } | {
2094
2135
  op: "remove";
2095
2136
  users: {
@@ -2098,7 +2139,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2098
2139
  local_mark_first?: boolean | undefined;
2099
2140
  }[];
2100
2141
  check_all_founded?: boolean | undefined;
2101
- };
2142
+ } | string[];
2102
2143
  } | {
2103
2144
  op: "clear";
2104
2145
  } | {
@@ -2111,7 +2152,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2111
2152
  local_mark_first?: boolean | undefined;
2112
2153
  }[];
2113
2154
  check_all_founded?: boolean | undefined;
2114
- };
2155
+ } | string[];
2115
2156
  };
2116
2157
  account?: string | undefined;
2117
2158
  }>, z.ZodObject<{
@@ -2119,7 +2160,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2119
2160
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2120
2161
  friendslist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
2121
2162
  op: z.ZodLiteral<"add">;
2122
- users: z.ZodObject<{
2163
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2123
2164
  entities: z.ZodArray<z.ZodObject<{
2124
2165
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2125
2166
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2143,7 +2184,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2143
2184
  local_mark_first?: boolean | undefined;
2144
2185
  }[];
2145
2186
  check_all_founded?: boolean | undefined;
2146
- }>;
2187
+ }>]>;
2147
2188
  }, "strip", z.ZodTypeAny, {
2148
2189
  op: "add";
2149
2190
  users: {
@@ -2152,7 +2193,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2152
2193
  local_mark_first?: boolean | undefined;
2153
2194
  }[];
2154
2195
  check_all_founded?: boolean | undefined;
2155
- };
2196
+ } | string[];
2156
2197
  }, {
2157
2198
  op: "add";
2158
2199
  users: {
@@ -2161,10 +2202,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2161
2202
  local_mark_first?: boolean | undefined;
2162
2203
  }[];
2163
2204
  check_all_founded?: boolean | undefined;
2164
- };
2205
+ } | string[];
2165
2206
  }>, z.ZodObject<{
2166
2207
  op: z.ZodLiteral<"remove">;
2167
- users: z.ZodObject<{
2208
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2168
2209
  entities: z.ZodArray<z.ZodObject<{
2169
2210
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2170
2211
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2188,7 +2229,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2188
2229
  local_mark_first?: boolean | undefined;
2189
2230
  }[];
2190
2231
  check_all_founded?: boolean | undefined;
2191
- }>;
2232
+ }>]>;
2192
2233
  }, "strip", z.ZodTypeAny, {
2193
2234
  op: "remove";
2194
2235
  users: {
@@ -2197,7 +2238,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2197
2238
  local_mark_first?: boolean | undefined;
2198
2239
  }[];
2199
2240
  check_all_founded?: boolean | undefined;
2200
- };
2241
+ } | string[];
2201
2242
  }, {
2202
2243
  op: "remove";
2203
2244
  users: {
@@ -2206,7 +2247,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2206
2247
  local_mark_first?: boolean | undefined;
2207
2248
  }[];
2208
2249
  check_all_founded?: boolean | undefined;
2209
- };
2250
+ } | string[];
2210
2251
  }>, z.ZodObject<{
2211
2252
  op: z.ZodLiteral<"clear">;
2212
2253
  }, "strip", z.ZodTypeAny, {
@@ -2221,7 +2262,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2221
2262
  op: "get";
2222
2263
  }>, z.ZodObject<{
2223
2264
  op: z.ZodLiteral<"exist">;
2224
- users: z.ZodObject<{
2265
+ users: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
2225
2266
  entities: z.ZodArray<z.ZodObject<{
2226
2267
  name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2227
2268
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
@@ -2245,7 +2286,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2245
2286
  local_mark_first?: boolean | undefined;
2246
2287
  }[];
2247
2288
  check_all_founded?: boolean | undefined;
2248
- }>;
2289
+ }>]>;
2249
2290
  }, "strip", z.ZodTypeAny, {
2250
2291
  op: "exist";
2251
2292
  users: {
@@ -2254,7 +2295,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2254
2295
  local_mark_first?: boolean | undefined;
2255
2296
  }[];
2256
2297
  check_all_founded?: boolean | undefined;
2257
- };
2298
+ } | string[];
2258
2299
  }, {
2259
2300
  op: "exist";
2260
2301
  users: {
@@ -2263,7 +2304,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2263
2304
  local_mark_first?: boolean | undefined;
2264
2305
  }[];
2265
2306
  check_all_founded?: boolean | undefined;
2266
- };
2307
+ } | string[];
2267
2308
  }>]>;
2268
2309
  }, "strip", z.ZodTypeAny, {
2269
2310
  operation: "friendslist";
@@ -2275,7 +2316,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2275
2316
  local_mark_first?: boolean | undefined;
2276
2317
  }[];
2277
2318
  check_all_founded?: boolean | undefined;
2278
- };
2319
+ } | string[];
2279
2320
  } | {
2280
2321
  op: "remove";
2281
2322
  users: {
@@ -2284,7 +2325,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2284
2325
  local_mark_first?: boolean | undefined;
2285
2326
  }[];
2286
2327
  check_all_founded?: boolean | undefined;
2287
- };
2328
+ } | string[];
2288
2329
  } | {
2289
2330
  op: "clear";
2290
2331
  } | {
@@ -2297,7 +2338,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2297
2338
  local_mark_first?: boolean | undefined;
2298
2339
  }[];
2299
2340
  check_all_founded?: boolean | undefined;
2300
- };
2341
+ } | string[];
2301
2342
  };
2302
2343
  account?: string | undefined;
2303
2344
  }, {
@@ -2310,7 +2351,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2310
2351
  local_mark_first?: boolean | undefined;
2311
2352
  }[];
2312
2353
  check_all_founded?: boolean | undefined;
2313
- };
2354
+ } | string[];
2314
2355
  } | {
2315
2356
  op: "remove";
2316
2357
  users: {
@@ -2319,7 +2360,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2319
2360
  local_mark_first?: boolean | undefined;
2320
2361
  }[];
2321
2362
  check_all_founded?: boolean | undefined;
2322
- };
2363
+ } | string[];
2323
2364
  } | {
2324
2365
  op: "clear";
2325
2366
  } | {
@@ -2332,7 +2373,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2332
2373
  local_mark_first?: boolean | undefined;
2333
2374
  }[];
2334
2375
  check_all_founded?: boolean | undefined;
2335
- };
2376
+ } | string[];
2336
2377
  };
2337
2378
  account?: string | undefined;
2338
2379
  }>, z.ZodObject<{
@@ -2408,6 +2449,48 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2408
2449
  op: "get";
2409
2450
  };
2410
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;
2411
2494
  }>]>;
2412
2495
  export declare const MessengerOperationOutputSchema: z.ZodObject<{
2413
2496
  result: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
@@ -2477,9 +2560,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2477
2560
  serverPublicKey: string;
2478
2561
  }>>;
2479
2562
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2563
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2480
2564
  }, "strip", z.ZodTypeAny, {
2481
2565
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2482
2566
  messageId: string;
2567
+ lastReceivedLeafIndex?: number | undefined;
2483
2568
  merkleData?: {
2484
2569
  serverTimestamp: number;
2485
2570
  leafIndex: number;
@@ -2492,6 +2577,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2492
2577
  }, {
2493
2578
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2494
2579
  messageId: string;
2580
+ lastReceivedLeafIndex?: number | undefined;
2495
2581
  merkleData?: {
2496
2582
  serverTimestamp: number;
2497
2583
  leafIndex: number;
@@ -2506,6 +2592,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2506
2592
  result: {
2507
2593
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2508
2594
  messageId: string;
2595
+ lastReceivedLeafIndex?: number | undefined;
2509
2596
  merkleData?: {
2510
2597
  serverTimestamp: number;
2511
2598
  leafIndex: number;
@@ -2521,6 +2608,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2521
2608
  result: {
2522
2609
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2523
2610
  messageId: string;
2611
+ lastReceivedLeafIndex?: number | undefined;
2524
2612
  merkleData?: {
2525
2613
  serverTimestamp: number;
2526
2614
  leafIndex: number;
@@ -2560,9 +2648,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2560
2648
  serverPublicKey: string;
2561
2649
  }>>;
2562
2650
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2651
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2563
2652
  }, "strip", z.ZodTypeAny, {
2564
2653
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2565
2654
  messageId: string;
2655
+ lastReceivedLeafIndex?: number | undefined;
2566
2656
  merkleData?: {
2567
2657
  serverTimestamp: number;
2568
2658
  leafIndex: number;
@@ -2575,6 +2665,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2575
2665
  }, {
2576
2666
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2577
2667
  messageId: string;
2668
+ lastReceivedLeafIndex?: number | undefined;
2578
2669
  merkleData?: {
2579
2670
  serverTimestamp: number;
2580
2671
  leafIndex: number;
@@ -2589,6 +2680,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2589
2680
  result: {
2590
2681
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2591
2682
  messageId: string;
2683
+ lastReceivedLeafIndex?: number | undefined;
2592
2684
  merkleData?: {
2593
2685
  serverTimestamp: number;
2594
2686
  leafIndex: number;
@@ -2604,6 +2696,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2604
2696
  result: {
2605
2697
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
2606
2698
  messageId: string;
2699
+ lastReceivedLeafIndex?: number | undefined;
2607
2700
  merkleData?: {
2608
2701
  serverTimestamp: number;
2609
2702
  leafIndex: number;
@@ -3333,6 +3426,48 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3333
3426
  };
3334
3427
  op: "get" | "add" | "remove";
3335
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";
3336
3471
  }>]>;
3337
3472
  }, "strip", z.ZodTypeAny, {
3338
3473
  result: {
@@ -3348,6 +3483,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3348
3483
  result: {
3349
3484
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3350
3485
  messageId: string;
3486
+ lastReceivedLeafIndex?: number | undefined;
3351
3487
  merkleData?: {
3352
3488
  serverTimestamp: number;
3353
3489
  leafIndex: number;
@@ -3363,6 +3499,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3363
3499
  result: {
3364
3500
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3365
3501
  messageId: string;
3502
+ lastReceivedLeafIndex?: number | undefined;
3366
3503
  merkleData?: {
3367
3504
  serverTimestamp: number;
3368
3505
  leafIndex: number;
@@ -3516,6 +3653,16 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3516
3653
  };
3517
3654
  op: "get" | "add" | "remove";
3518
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";
3519
3666
  };
3520
3667
  }, {
3521
3668
  result: {
@@ -3531,6 +3678,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3531
3678
  result: {
3532
3679
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3533
3680
  messageId: string;
3681
+ lastReceivedLeafIndex?: number | undefined;
3534
3682
  merkleData?: {
3535
3683
  serverTimestamp: number;
3536
3684
  leafIndex: number;
@@ -3546,6 +3694,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3546
3694
  result: {
3547
3695
  status: "pending" | "confirmed" | "read" | "failed" | "rejected" | "decrypted" | "decrypt_failed";
3548
3696
  messageId: string;
3697
+ lastReceivedLeafIndex?: number | undefined;
3549
3698
  merkleData?: {
3550
3699
  serverTimestamp: number;
3551
3700
  leafIndex: number;
@@ -3699,6 +3848,16 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3699
3848
  };
3700
3849
  op: "get" | "add" | "remove";
3701
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";
3702
3861
  };
3703
3862
  }>;
3704
3863
  export type MessengerOperationInput = z.infer<typeof MessengerOperationInputSchema>;