wowok_agent 2.1.9 → 2.1.18

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,34 +1,3658 @@
1
1
  import { z } from "zod";
2
- export declare const MessageStatusSchema: any;
3
- export declare const MessageDirectionSchema: any;
4
- export declare const MessageTypeSchema: any;
5
- export declare const MessageContentTypeSchema: any;
6
- export declare const MessageTimeFieldSchema: any;
7
- export declare const RangeTypeSchema: any;
8
- export declare const ZipMetadataSchema: any;
9
- export declare const MessageSchema: any;
10
- export declare const ConversationInfoSchema: any;
11
- export declare const MessageFilterSchema: any;
12
- export declare const SendMessageOptionsSchema: any;
13
- export declare const SendFileOptionsSchema: any;
14
- export declare const SendMessageResultSchema: any;
15
- export declare const TimeRangeSchema: any;
16
- export declare const MessageIdRangeSchema: any;
17
- export declare const SeqIndexRangeSchema: any;
18
- export declare const WtsRangeSchema: any;
19
- export declare const WtsGenerationParamsSchema: any;
20
- export declare const WtsFileResultSchema: any;
21
- export declare const WtsSignatureVerificationSchema: any;
22
- export declare const WtsVerificationResultSchema: any;
23
- export declare const WtsToHtmlOptionsSchema: any;
24
- export declare const AddressExistenceSchema: any;
25
- export declare const GuardListItemSchema: any;
26
- export declare const ListOperationResponseSchema: any;
27
- export declare const BlacklistOperationSchema: any;
28
- export declare const FriendslistOperationSchema: any;
29
- export declare const GuardParamSchema: any;
30
- export declare const GuardlistOperationSchema: any;
31
- export declare const MessengerOperationInputSchema: any;
32
- export declare const MessengerOperationOutputSchema: any;
2
+ export declare const MessageStatusSchema: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
3
+ export declare const MessageDirectionSchema: z.ZodEnum<["sent", "received"]>;
4
+ export declare const MessageTypeSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
5
+ export declare const MessageContentTypeSchema: z.ZodEnum<["text", "zip", "wts", "wip"]>;
6
+ export declare const MessageTimeFieldSchema: z.ZodEnum<["createdAt", "receivedAt", "serverTimestamp"]>;
7
+ export declare const RangeTypeSchema: z.ZodEnum<["time", "messageId", "seqIndex"]>;
8
+ export declare const ZipMetadataSchema: z.ZodObject<{
9
+ fileName: z.ZodString;
10
+ fileSize: z.ZodNumber;
11
+ fileHash: z.ZodString;
12
+ contentType: z.ZodEnum<["text", "zip", "wts", "wip"]>;
13
+ localCachePath: z.ZodOptional<z.ZodString>;
14
+ downloadedAt: z.ZodOptional<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ fileName: string;
17
+ fileSize: number;
18
+ fileHash: string;
19
+ contentType: "text" | "wip" | "zip" | "wts";
20
+ localCachePath?: string | undefined;
21
+ downloadedAt?: number | undefined;
22
+ }, {
23
+ fileName: string;
24
+ fileSize: number;
25
+ fileHash: string;
26
+ contentType: "text" | "wip" | "zip" | "wts";
27
+ localCachePath?: string | undefined;
28
+ downloadedAt?: number | undefined;
29
+ }>;
30
+ export declare const MessageSchema: z.ZodObject<{
31
+ messageId: z.ZodString;
32
+ fromAddress: z.ZodString;
33
+ toAddress: z.ZodString;
34
+ plaintextHash: z.ZodString;
35
+ plaintext: z.ZodOptional<z.ZodString>;
36
+ guardAddress: z.ZodOptional<z.ZodString>;
37
+ passportAddress: z.ZodOptional<z.ZodString>;
38
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
39
+ direction: z.ZodEnum<["sent", "received"]>;
40
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
41
+ msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
42
+ leafIndex: z.ZodOptional<z.ZodNumber>;
43
+ prevRoot: z.ZodOptional<z.ZodString>;
44
+ newRoot: z.ZodOptional<z.ZodString>;
45
+ serverSignature: z.ZodOptional<z.ZodString>;
46
+ serverTimestamp: z.ZodOptional<z.ZodNumber>;
47
+ serverPublicKey: z.ZodOptional<z.ZodString>;
48
+ arkConfirmed: z.ZodOptional<z.ZodObject<{
49
+ recipient: z.ZodString;
50
+ recipientPublicKey: z.ZodString;
51
+ signature: z.ZodString;
52
+ timestamp: z.ZodNumber;
53
+ }, "strip", z.ZodTypeAny, {
54
+ signature: string;
55
+ recipient: string;
56
+ recipientPublicKey: string;
57
+ timestamp: number;
58
+ }, {
59
+ signature: string;
60
+ recipient: string;
61
+ recipientPublicKey: string;
62
+ timestamp: number;
63
+ }>>;
64
+ createdAt: z.ZodNumber;
65
+ receivedAt: z.ZodOptional<z.ZodNumber>;
66
+ zipMetadata: z.ZodOptional<z.ZodObject<{
67
+ fileName: z.ZodString;
68
+ fileSize: z.ZodNumber;
69
+ fileHash: z.ZodString;
70
+ contentType: z.ZodEnum<["text", "zip", "wts", "wip"]>;
71
+ localCachePath: z.ZodOptional<z.ZodString>;
72
+ downloadedAt: z.ZodOptional<z.ZodNumber>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ fileName: string;
75
+ fileSize: number;
76
+ fileHash: string;
77
+ contentType: "text" | "wip" | "zip" | "wts";
78
+ localCachePath?: string | undefined;
79
+ downloadedAt?: number | undefined;
80
+ }, {
81
+ fileName: string;
82
+ fileSize: number;
83
+ fileHash: string;
84
+ contentType: "text" | "wip" | "zip" | "wts";
85
+ localCachePath?: string | undefined;
86
+ downloadedAt?: number | undefined;
87
+ }>>;
88
+ proof: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
91
+ createdAt: number;
92
+ messageId: string;
93
+ fromAddress: string;
94
+ toAddress: string;
95
+ plaintextHash: string;
96
+ direction: "received" | "sent";
97
+ msgType: 1 | 3;
98
+ proof?: string | undefined;
99
+ receivedAt?: number | undefined;
100
+ serverTimestamp?: number | undefined;
101
+ plaintext?: string | undefined;
102
+ guardAddress?: string | undefined;
103
+ passportAddress?: string | undefined;
104
+ lastReceivedLeafIndex?: number | undefined;
105
+ leafIndex?: number | undefined;
106
+ prevRoot?: string | undefined;
107
+ newRoot?: string | undefined;
108
+ serverSignature?: string | undefined;
109
+ serverPublicKey?: string | undefined;
110
+ arkConfirmed?: {
111
+ signature: string;
112
+ recipient: string;
113
+ recipientPublicKey: string;
114
+ timestamp: number;
115
+ } | undefined;
116
+ zipMetadata?: {
117
+ fileName: string;
118
+ fileSize: number;
119
+ fileHash: string;
120
+ contentType: "text" | "wip" | "zip" | "wts";
121
+ localCachePath?: string | undefined;
122
+ downloadedAt?: number | undefined;
123
+ } | undefined;
124
+ }, {
125
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
126
+ createdAt: number;
127
+ messageId: string;
128
+ fromAddress: string;
129
+ toAddress: string;
130
+ plaintextHash: string;
131
+ direction: "received" | "sent";
132
+ msgType: 1 | 3;
133
+ proof?: string | undefined;
134
+ receivedAt?: number | undefined;
135
+ serverTimestamp?: number | undefined;
136
+ plaintext?: string | undefined;
137
+ guardAddress?: string | undefined;
138
+ passportAddress?: string | undefined;
139
+ lastReceivedLeafIndex?: number | undefined;
140
+ leafIndex?: number | undefined;
141
+ prevRoot?: string | undefined;
142
+ newRoot?: string | undefined;
143
+ serverSignature?: string | undefined;
144
+ serverPublicKey?: string | undefined;
145
+ arkConfirmed?: {
146
+ signature: string;
147
+ recipient: string;
148
+ recipientPublicKey: string;
149
+ timestamp: number;
150
+ } | undefined;
151
+ zipMetadata?: {
152
+ fileName: string;
153
+ fileSize: number;
154
+ fileHash: string;
155
+ contentType: "text" | "wip" | "zip" | "wts";
156
+ localCachePath?: string | undefined;
157
+ downloadedAt?: number | undefined;
158
+ } | undefined;
159
+ }>;
160
+ export declare const ConversationInfoSchema: z.ZodObject<{
161
+ peerAddress: z.ZodString;
162
+ lastMessageAt: z.ZodNumber;
163
+ messageCount: z.ZodNumber;
164
+ unreadCount: z.ZodNumber;
165
+ lastMessagePreview: z.ZodOptional<z.ZodString>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ peerAddress: string;
168
+ lastMessageAt: number;
169
+ messageCount: number;
170
+ unreadCount: number;
171
+ lastMessagePreview?: string | undefined;
172
+ }, {
173
+ peerAddress: string;
174
+ lastMessageAt: number;
175
+ messageCount: number;
176
+ unreadCount: number;
177
+ lastMessagePreview?: string | undefined;
178
+ }>;
179
+ export declare const MessageFilterSchema: z.ZodObject<{
180
+ direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
181
+ status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>>;
182
+ peerAddress: z.ZodOptional<z.ZodObject<{
183
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
184
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ name_or_address?: string | undefined;
187
+ local_mark_first?: boolean | undefined;
188
+ }, {
189
+ name_or_address?: string | undefined;
190
+ local_mark_first?: boolean | undefined;
191
+ }>>;
192
+ msgType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>>;
193
+ contentType: z.ZodOptional<z.ZodEnum<["text", "zip", "wts", "wip"]>>;
194
+ decryptedOnly: z.ZodOptional<z.ZodBoolean>;
195
+ confirmedOnly: z.ZodOptional<z.ZodBoolean>;
196
+ keyword: z.ZodOptional<z.ZodString>;
197
+ sortOrder: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
198
+ limit: z.ZodOptional<z.ZodNumber>;
199
+ offset: z.ZodOptional<z.ZodNumber>;
200
+ timeField: z.ZodOptional<z.ZodEnum<["createdAt", "receivedAt", "serverTimestamp"]>>;
201
+ startTime: z.ZodOptional<z.ZodNumber>;
202
+ endTime: z.ZodOptional<z.ZodNumber>;
203
+ createdAtStart: z.ZodOptional<z.ZodNumber>;
204
+ createdAtEnd: z.ZodOptional<z.ZodNumber>;
205
+ receivedAtStart: z.ZodOptional<z.ZodNumber>;
206
+ receivedAtEnd: z.ZodOptional<z.ZodNumber>;
207
+ serverTimestampStart: z.ZodOptional<z.ZodNumber>;
208
+ serverTimestampEnd: z.ZodOptional<z.ZodNumber>;
209
+ arkConfirmedOnly: z.ZodOptional<z.ZodBoolean>;
210
+ arkTimestampStart: z.ZodOptional<z.ZodNumber>;
211
+ arkTimestampEnd: z.ZodOptional<z.ZodNumber>;
212
+ proofedOnly: z.ZodOptional<z.ZodBoolean>;
213
+ hasLastReceivedIndexOnly: z.ZodOptional<z.ZodBoolean>;
214
+ lastReceivedIndexMin: z.ZodOptional<z.ZodNumber>;
215
+ lastReceivedIndexMax: z.ZodOptional<z.ZodNumber>;
216
+ listFilterMode: z.ZodOptional<z.ZodEnum<["friends", "guard", "stranger", "any"]>>;
217
+ customListFilter: z.ZodOptional<z.ZodObject<{
218
+ includeAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
219
+ excludeAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
220
+ relation: z.ZodOptional<z.ZodEnum<["union", "intersection"]>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ includeAddresses?: string[] | undefined;
223
+ excludeAddresses?: string[] | undefined;
224
+ relation?: "union" | "intersection" | undefined;
225
+ }, {
226
+ includeAddresses?: string[] | undefined;
227
+ excludeAddresses?: string[] | undefined;
228
+ relation?: "union" | "intersection" | undefined;
229
+ }>>;
230
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
233
+ limit?: number | undefined;
234
+ account?: string | undefined;
235
+ contentType?: "text" | "wip" | "zip" | "wts" | undefined;
236
+ direction?: "received" | "sent" | undefined;
237
+ msgType?: 1 | 3 | undefined;
238
+ peerAddress?: {
239
+ name_or_address?: string | undefined;
240
+ local_mark_first?: boolean | undefined;
241
+ } | undefined;
242
+ decryptedOnly?: boolean | undefined;
243
+ confirmedOnly?: boolean | undefined;
244
+ keyword?: string | undefined;
245
+ sortOrder?: "asc" | "desc" | undefined;
246
+ offset?: number | undefined;
247
+ timeField?: "createdAt" | "receivedAt" | "serverTimestamp" | undefined;
248
+ startTime?: number | undefined;
249
+ endTime?: number | undefined;
250
+ createdAtStart?: number | undefined;
251
+ createdAtEnd?: number | undefined;
252
+ receivedAtStart?: number | undefined;
253
+ receivedAtEnd?: number | undefined;
254
+ serverTimestampStart?: number | undefined;
255
+ serverTimestampEnd?: number | undefined;
256
+ arkConfirmedOnly?: boolean | undefined;
257
+ arkTimestampStart?: number | undefined;
258
+ arkTimestampEnd?: number | undefined;
259
+ proofedOnly?: boolean | undefined;
260
+ hasLastReceivedIndexOnly?: boolean | undefined;
261
+ lastReceivedIndexMin?: number | undefined;
262
+ lastReceivedIndexMax?: number | undefined;
263
+ listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
264
+ customListFilter?: {
265
+ includeAddresses?: string[] | undefined;
266
+ excludeAddresses?: string[] | undefined;
267
+ relation?: "union" | "intersection" | undefined;
268
+ } | undefined;
269
+ }, {
270
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
271
+ limit?: number | undefined;
272
+ account?: string | undefined;
273
+ contentType?: "text" | "wip" | "zip" | "wts" | undefined;
274
+ direction?: "received" | "sent" | undefined;
275
+ msgType?: 1 | 3 | undefined;
276
+ peerAddress?: {
277
+ name_or_address?: string | undefined;
278
+ local_mark_first?: boolean | undefined;
279
+ } | undefined;
280
+ decryptedOnly?: boolean | undefined;
281
+ confirmedOnly?: boolean | undefined;
282
+ keyword?: string | undefined;
283
+ sortOrder?: "asc" | "desc" | undefined;
284
+ offset?: number | undefined;
285
+ timeField?: "createdAt" | "receivedAt" | "serverTimestamp" | undefined;
286
+ startTime?: number | undefined;
287
+ endTime?: number | undefined;
288
+ createdAtStart?: number | undefined;
289
+ createdAtEnd?: number | undefined;
290
+ receivedAtStart?: number | undefined;
291
+ receivedAtEnd?: number | undefined;
292
+ serverTimestampStart?: number | undefined;
293
+ serverTimestampEnd?: number | undefined;
294
+ arkConfirmedOnly?: boolean | undefined;
295
+ arkTimestampStart?: number | undefined;
296
+ arkTimestampEnd?: number | undefined;
297
+ proofedOnly?: boolean | undefined;
298
+ hasLastReceivedIndexOnly?: boolean | undefined;
299
+ lastReceivedIndexMin?: number | undefined;
300
+ lastReceivedIndexMax?: number | undefined;
301
+ listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
302
+ customListFilter?: {
303
+ includeAddresses?: string[] | undefined;
304
+ excludeAddresses?: string[] | undefined;
305
+ relation?: "union" | "intersection" | undefined;
306
+ } | undefined;
307
+ }>;
308
+ export declare const SendMessageOptionsSchema: z.ZodObject<{
309
+ guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
310
+ passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
311
+ force: z.ZodOptional<z.ZodBoolean>;
312
+ new_messenger_name: z.ZodOptional<z.ZodString>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ guardAddress?: string | undefined;
315
+ passportAddress?: string | undefined;
316
+ force?: boolean | undefined;
317
+ new_messenger_name?: string | undefined;
318
+ }, {
319
+ guardAddress?: string | undefined;
320
+ passportAddress?: string | undefined;
321
+ force?: boolean | undefined;
322
+ new_messenger_name?: string | undefined;
323
+ }>;
324
+ export declare const SendFileOptionsSchema: z.ZodObject<{
325
+ fileName: z.ZodOptional<z.ZodString>;
326
+ contentType: z.ZodOptional<z.ZodEnum<["wts", "wip", "zip"]>>;
327
+ guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
328
+ passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
329
+ force: z.ZodOptional<z.ZodBoolean>;
330
+ new_messenger_name: z.ZodOptional<z.ZodString>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ fileName?: string | undefined;
333
+ contentType?: "wip" | "zip" | "wts" | undefined;
334
+ guardAddress?: string | undefined;
335
+ passportAddress?: string | undefined;
336
+ force?: boolean | undefined;
337
+ new_messenger_name?: string | undefined;
338
+ }, {
339
+ fileName?: string | undefined;
340
+ contentType?: "wip" | "zip" | "wts" | undefined;
341
+ guardAddress?: string | undefined;
342
+ passportAddress?: string | undefined;
343
+ force?: boolean | undefined;
344
+ new_messenger_name?: string | undefined;
345
+ }>;
346
+ export declare const SendMessageResultSchema: z.ZodObject<{
347
+ messageId: z.ZodString;
348
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
349
+ merkleData: z.ZodOptional<z.ZodObject<{
350
+ leafIndex: z.ZodNumber;
351
+ prevRoot: z.ZodString;
352
+ newRoot: z.ZodString;
353
+ serverSignature: z.ZodString;
354
+ serverTimestamp: z.ZodNumber;
355
+ serverPublicKey: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ serverTimestamp: number;
358
+ leafIndex: number;
359
+ prevRoot: string;
360
+ newRoot: string;
361
+ serverSignature: string;
362
+ serverPublicKey: string;
363
+ }, {
364
+ serverTimestamp: number;
365
+ leafIndex: number;
366
+ prevRoot: string;
367
+ newRoot: string;
368
+ serverSignature: string;
369
+ serverPublicKey: string;
370
+ }>>;
371
+ guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
374
+ messageId: string;
375
+ merkleData?: {
376
+ serverTimestamp: number;
377
+ leafIndex: number;
378
+ prevRoot: string;
379
+ newRoot: string;
380
+ serverSignature: string;
381
+ serverPublicKey: string;
382
+ } | undefined;
383
+ guardList?: string[] | undefined;
384
+ }, {
385
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
386
+ messageId: string;
387
+ merkleData?: {
388
+ serverTimestamp: number;
389
+ leafIndex: number;
390
+ prevRoot: string;
391
+ newRoot: string;
392
+ serverSignature: string;
393
+ serverPublicKey: string;
394
+ } | undefined;
395
+ guardList?: string[] | undefined;
396
+ }>;
397
+ export declare const TimeRangeSchema: z.ZodObject<{} & {
398
+ type: z.ZodLiteral<"time">;
399
+ start: z.ZodNumber;
400
+ end: z.ZodNumber;
401
+ }, "strip", z.ZodTypeAny, {
402
+ type: "time";
403
+ start: number;
404
+ end: number;
405
+ }, {
406
+ type: "time";
407
+ start: number;
408
+ end: number;
409
+ }>;
410
+ export declare const MessageIdRangeSchema: z.ZodObject<{} & {
411
+ type: z.ZodLiteral<"messageId">;
412
+ start: z.ZodString;
413
+ end: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ type: "messageId";
416
+ start: string;
417
+ end: string;
418
+ }, {
419
+ type: "messageId";
420
+ start: string;
421
+ end: string;
422
+ }>;
423
+ export declare const SeqIndexRangeSchema: z.ZodObject<{} & {
424
+ type: z.ZodLiteral<"seqIndex">;
425
+ start: z.ZodNumber;
426
+ end: z.ZodNumber;
427
+ }, "strip", z.ZodTypeAny, {
428
+ type: "seqIndex";
429
+ start: number;
430
+ end: number;
431
+ }, {
432
+ type: "seqIndex";
433
+ start: number;
434
+ end: number;
435
+ }>;
436
+ export declare const WtsRangeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
437
+ type: z.ZodLiteral<"time">;
438
+ start: z.ZodNumber;
439
+ end: z.ZodNumber;
440
+ }, "strip", z.ZodTypeAny, {
441
+ type: "time";
442
+ start: number;
443
+ end: number;
444
+ }, {
445
+ type: "time";
446
+ start: number;
447
+ end: number;
448
+ }>, z.ZodObject<{} & {
449
+ type: z.ZodLiteral<"messageId">;
450
+ start: z.ZodString;
451
+ end: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ type: "messageId";
454
+ start: string;
455
+ end: string;
456
+ }, {
457
+ type: "messageId";
458
+ start: string;
459
+ end: string;
460
+ }>, z.ZodObject<{} & {
461
+ type: z.ZodLiteral<"seqIndex">;
462
+ start: z.ZodNumber;
463
+ end: z.ZodNumber;
464
+ }, "strip", z.ZodTypeAny, {
465
+ type: "seqIndex";
466
+ start: number;
467
+ end: number;
468
+ }, {
469
+ type: "seqIndex";
470
+ start: number;
471
+ end: number;
472
+ }>]>;
473
+ export declare const WtsGenerationParamsSchema: z.ZodObject<{
474
+ myAccount: z.ZodEffects<z.ZodString, string, string>;
475
+ peerAccount: z.ZodObject<{
476
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
477
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
478
+ }, "strict", z.ZodTypeAny, {
479
+ name_or_address?: string | undefined;
480
+ local_mark_first?: boolean | undefined;
481
+ }, {
482
+ name_or_address?: string | undefined;
483
+ local_mark_first?: boolean | undefined;
484
+ }>;
485
+ range: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
486
+ type: z.ZodLiteral<"time">;
487
+ start: z.ZodNumber;
488
+ end: z.ZodNumber;
489
+ }, "strip", z.ZodTypeAny, {
490
+ type: "time";
491
+ start: number;
492
+ end: number;
493
+ }, {
494
+ type: "time";
495
+ start: number;
496
+ end: number;
497
+ }>, z.ZodObject<{} & {
498
+ type: z.ZodLiteral<"messageId">;
499
+ start: z.ZodString;
500
+ end: z.ZodString;
501
+ }, "strip", z.ZodTypeAny, {
502
+ type: "messageId";
503
+ start: string;
504
+ end: string;
505
+ }, {
506
+ type: "messageId";
507
+ start: string;
508
+ end: string;
509
+ }>, z.ZodObject<{} & {
510
+ type: z.ZodLiteral<"seqIndex">;
511
+ start: z.ZodNumber;
512
+ end: z.ZodNumber;
513
+ }, "strip", z.ZodTypeAny, {
514
+ type: "seqIndex";
515
+ start: number;
516
+ end: number;
517
+ }, {
518
+ type: "seqIndex";
519
+ start: number;
520
+ end: number;
521
+ }>]>>;
522
+ excludePlaintext: z.ZodOptional<z.ZodBoolean>;
523
+ outputDir: z.ZodString;
524
+ }, "strip", z.ZodTypeAny, {
525
+ myAccount: string;
526
+ peerAccount: {
527
+ name_or_address?: string | undefined;
528
+ local_mark_first?: boolean | undefined;
529
+ };
530
+ outputDir: string;
531
+ range?: {
532
+ type: "time";
533
+ start: number;
534
+ end: number;
535
+ } | {
536
+ type: "messageId";
537
+ start: string;
538
+ end: string;
539
+ } | {
540
+ type: "seqIndex";
541
+ start: number;
542
+ end: number;
543
+ } | undefined;
544
+ excludePlaintext?: boolean | undefined;
545
+ }, {
546
+ myAccount: string;
547
+ peerAccount: {
548
+ name_or_address?: string | undefined;
549
+ local_mark_first?: boolean | undefined;
550
+ };
551
+ outputDir: string;
552
+ range?: {
553
+ type: "time";
554
+ start: number;
555
+ end: number;
556
+ } | {
557
+ type: "messageId";
558
+ start: string;
559
+ end: string;
560
+ } | {
561
+ type: "seqIndex";
562
+ start: number;
563
+ end: number;
564
+ } | undefined;
565
+ excludePlaintext?: boolean | undefined;
566
+ }>;
567
+ export declare const WtsFileResultSchema: z.ZodObject<{
568
+ files: z.ZodArray<z.ZodString, "many">;
569
+ totalMessageCount: z.ZodNumber;
570
+ timeRange: z.ZodObject<{
571
+ start: z.ZodNumber;
572
+ end: z.ZodNumber;
573
+ }, "strip", z.ZodTypeAny, {
574
+ start: number;
575
+ end: number;
576
+ }, {
577
+ start: number;
578
+ end: number;
579
+ }>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ files: string[];
582
+ totalMessageCount: number;
583
+ timeRange: {
584
+ start: number;
585
+ end: number;
586
+ };
587
+ }, {
588
+ files: string[];
589
+ totalMessageCount: number;
590
+ timeRange: {
591
+ start: number;
592
+ end: number;
593
+ };
594
+ }>;
595
+ export declare const WtsSignatureVerificationSchema: z.ZodObject<{
596
+ publicKey: z.ZodString;
597
+ address: z.ZodOptional<z.ZodString>;
598
+ valid: z.ZodBoolean;
599
+ }, "strip", z.ZodTypeAny, {
600
+ valid: boolean;
601
+ publicKey: string;
602
+ address?: string | undefined;
603
+ }, {
604
+ valid: boolean;
605
+ publicKey: string;
606
+ address?: string | undefined;
607
+ }>;
608
+ export declare const WtsVerificationResultSchema: z.ZodObject<{
609
+ valid: z.ZodBoolean;
610
+ error: z.ZodOptional<z.ZodString>;
611
+ hashValid: z.ZodOptional<z.ZodBoolean>;
612
+ hasSignature: z.ZodOptional<z.ZodBoolean>;
613
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
614
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
+ publicKey: z.ZodString;
616
+ address: z.ZodOptional<z.ZodString>;
617
+ valid: z.ZodBoolean;
618
+ }, "strip", z.ZodTypeAny, {
619
+ valid: boolean;
620
+ publicKey: string;
621
+ address?: string | undefined;
622
+ }, {
623
+ valid: boolean;
624
+ publicKey: string;
625
+ address?: string | undefined;
626
+ }>, "many">>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ valid: boolean;
629
+ error?: string | undefined;
630
+ hashValid?: boolean | undefined;
631
+ signatureValid?: boolean | undefined;
632
+ hasSignature?: boolean | undefined;
633
+ signatures?: {
634
+ valid: boolean;
635
+ publicKey: string;
636
+ address?: string | undefined;
637
+ }[] | undefined;
638
+ }, {
639
+ valid: boolean;
640
+ error?: string | undefined;
641
+ hashValid?: boolean | undefined;
642
+ signatureValid?: boolean | undefined;
643
+ hasSignature?: boolean | undefined;
644
+ signatures?: {
645
+ valid: boolean;
646
+ publicKey: string;
647
+ address?: string | undefined;
648
+ }[] | undefined;
649
+ }>;
650
+ export declare const WtsToHtmlOptionsSchema: z.ZodObject<{
651
+ title: z.ZodOptional<z.ZodString>;
652
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
653
+ outputPath: z.ZodOptional<z.ZodString>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ title?: string | undefined;
656
+ theme?: "light" | "dark" | undefined;
657
+ outputPath?: string | undefined;
658
+ }, {
659
+ title?: string | undefined;
660
+ theme?: "light" | "dark" | undefined;
661
+ outputPath?: string | undefined;
662
+ }>;
663
+ export declare const AddressExistenceSchema: z.ZodObject<{
664
+ address: z.ZodString;
665
+ exists: z.ZodBoolean;
666
+ }, "strip", z.ZodTypeAny, {
667
+ address: string;
668
+ exists: boolean;
669
+ }, {
670
+ address: string;
671
+ exists: boolean;
672
+ }>;
673
+ export declare const GuardListItemSchema: z.ZodObject<{
674
+ guardAddress: z.ZodString;
675
+ passportValiditySeconds: z.ZodNumber;
676
+ }, "strip", z.ZodTypeAny, {
677
+ guardAddress: string;
678
+ passportValiditySeconds: number;
679
+ }, {
680
+ guardAddress: string;
681
+ passportValiditySeconds: number;
682
+ }>;
683
+ export declare const ListOperationResponseSchema: z.ZodObject<{
684
+ success: z.ZodBoolean;
685
+ operation: z.ZodString;
686
+ modifiedCount: z.ZodNumber;
687
+ currentCount: z.ZodNumber;
688
+ maxCount: z.ZodNumber;
689
+ invalidAddresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
690
+ existResults: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
691
+ address: z.ZodString;
692
+ exists: z.ZodBoolean;
693
+ }, "strip", z.ZodTypeAny, {
694
+ address: string;
695
+ exists: boolean;
696
+ }, {
697
+ address: string;
698
+ exists: boolean;
699
+ }>, "many">>>;
700
+ message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
701
+ currentList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
702
+ currentGuardList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
703
+ guardAddress: z.ZodString;
704
+ passportValiditySeconds: z.ZodNumber;
705
+ }, "strip", z.ZodTypeAny, {
706
+ guardAddress: string;
707
+ passportValiditySeconds: number;
708
+ }, {
709
+ guardAddress: string;
710
+ passportValiditySeconds: number;
711
+ }>, "many">>>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ success: boolean;
714
+ operation: string;
715
+ modifiedCount: number;
716
+ currentCount: number;
717
+ maxCount: number;
718
+ message?: string | null | undefined;
719
+ invalidAddresses?: string[] | null | undefined;
720
+ existResults?: {
721
+ address: string;
722
+ exists: boolean;
723
+ }[] | null | undefined;
724
+ currentList?: string[] | null | undefined;
725
+ currentGuardList?: {
726
+ guardAddress: string;
727
+ passportValiditySeconds: number;
728
+ }[] | null | undefined;
729
+ }, {
730
+ success: boolean;
731
+ operation: string;
732
+ modifiedCount: number;
733
+ currentCount: number;
734
+ maxCount: number;
735
+ message?: string | null | undefined;
736
+ invalidAddresses?: string[] | null | undefined;
737
+ existResults?: {
738
+ address: string;
739
+ exists: boolean;
740
+ }[] | null | undefined;
741
+ currentList?: string[] | null | undefined;
742
+ currentGuardList?: {
743
+ guardAddress: string;
744
+ passportValiditySeconds: number;
745
+ }[] | null | undefined;
746
+ }>;
747
+ export declare const BlacklistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
748
+ op: z.ZodLiteral<"add">;
749
+ users: z.ZodObject<{
750
+ entities: z.ZodArray<z.ZodObject<{
751
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
752
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
753
+ }, "strict", z.ZodTypeAny, {
754
+ name_or_address?: string | undefined;
755
+ local_mark_first?: boolean | undefined;
756
+ }, {
757
+ name_or_address?: string | undefined;
758
+ local_mark_first?: boolean | undefined;
759
+ }>, "many">;
760
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
761
+ }, "strict", z.ZodTypeAny, {
762
+ entities: {
763
+ name_or_address?: string | undefined;
764
+ local_mark_first?: boolean | undefined;
765
+ }[];
766
+ check_all_founded?: boolean | undefined;
767
+ }, {
768
+ entities: {
769
+ name_or_address?: string | undefined;
770
+ local_mark_first?: boolean | undefined;
771
+ }[];
772
+ check_all_founded?: boolean | undefined;
773
+ }>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ op: "add";
776
+ users: {
777
+ entities: {
778
+ name_or_address?: string | undefined;
779
+ local_mark_first?: boolean | undefined;
780
+ }[];
781
+ check_all_founded?: boolean | undefined;
782
+ };
783
+ }, {
784
+ op: "add";
785
+ users: {
786
+ entities: {
787
+ name_or_address?: string | undefined;
788
+ local_mark_first?: boolean | undefined;
789
+ }[];
790
+ check_all_founded?: boolean | undefined;
791
+ };
792
+ }>, z.ZodObject<{
793
+ op: z.ZodLiteral<"remove">;
794
+ users: z.ZodObject<{
795
+ entities: z.ZodArray<z.ZodObject<{
796
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
797
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
798
+ }, "strict", z.ZodTypeAny, {
799
+ name_or_address?: string | undefined;
800
+ local_mark_first?: boolean | undefined;
801
+ }, {
802
+ name_or_address?: string | undefined;
803
+ local_mark_first?: boolean | undefined;
804
+ }>, "many">;
805
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
806
+ }, "strict", z.ZodTypeAny, {
807
+ entities: {
808
+ name_or_address?: string | undefined;
809
+ local_mark_first?: boolean | undefined;
810
+ }[];
811
+ check_all_founded?: boolean | undefined;
812
+ }, {
813
+ entities: {
814
+ name_or_address?: string | undefined;
815
+ local_mark_first?: boolean | undefined;
816
+ }[];
817
+ check_all_founded?: boolean | undefined;
818
+ }>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ op: "remove";
821
+ users: {
822
+ entities: {
823
+ name_or_address?: string | undefined;
824
+ local_mark_first?: boolean | undefined;
825
+ }[];
826
+ check_all_founded?: boolean | undefined;
827
+ };
828
+ }, {
829
+ op: "remove";
830
+ users: {
831
+ entities: {
832
+ name_or_address?: string | undefined;
833
+ local_mark_first?: boolean | undefined;
834
+ }[];
835
+ check_all_founded?: boolean | undefined;
836
+ };
837
+ }>, z.ZodObject<{
838
+ op: z.ZodLiteral<"clear">;
839
+ }, "strip", z.ZodTypeAny, {
840
+ op: "clear";
841
+ }, {
842
+ op: "clear";
843
+ }>, z.ZodObject<{
844
+ op: z.ZodLiteral<"get">;
845
+ }, "strip", z.ZodTypeAny, {
846
+ op: "get";
847
+ }, {
848
+ op: "get";
849
+ }>, z.ZodObject<{
850
+ op: z.ZodLiteral<"exist">;
851
+ users: z.ZodObject<{
852
+ entities: z.ZodArray<z.ZodObject<{
853
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
854
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
855
+ }, "strict", z.ZodTypeAny, {
856
+ name_or_address?: string | undefined;
857
+ local_mark_first?: boolean | undefined;
858
+ }, {
859
+ name_or_address?: string | undefined;
860
+ local_mark_first?: boolean | undefined;
861
+ }>, "many">;
862
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
863
+ }, "strict", z.ZodTypeAny, {
864
+ entities: {
865
+ name_or_address?: string | undefined;
866
+ local_mark_first?: boolean | undefined;
867
+ }[];
868
+ check_all_founded?: boolean | undefined;
869
+ }, {
870
+ entities: {
871
+ name_or_address?: string | undefined;
872
+ local_mark_first?: boolean | undefined;
873
+ }[];
874
+ check_all_founded?: boolean | undefined;
875
+ }>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ op: "exist";
878
+ users: {
879
+ entities: {
880
+ name_or_address?: string | undefined;
881
+ local_mark_first?: boolean | undefined;
882
+ }[];
883
+ check_all_founded?: boolean | undefined;
884
+ };
885
+ }, {
886
+ op: "exist";
887
+ users: {
888
+ entities: {
889
+ name_or_address?: string | undefined;
890
+ local_mark_first?: boolean | undefined;
891
+ }[];
892
+ check_all_founded?: boolean | undefined;
893
+ };
894
+ }>]>;
895
+ export declare const FriendslistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
896
+ op: z.ZodLiteral<"add">;
897
+ users: z.ZodObject<{
898
+ entities: z.ZodArray<z.ZodObject<{
899
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
900
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
901
+ }, "strict", z.ZodTypeAny, {
902
+ name_or_address?: string | undefined;
903
+ local_mark_first?: boolean | undefined;
904
+ }, {
905
+ name_or_address?: string | undefined;
906
+ local_mark_first?: boolean | undefined;
907
+ }>, "many">;
908
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
909
+ }, "strict", z.ZodTypeAny, {
910
+ entities: {
911
+ name_or_address?: string | undefined;
912
+ local_mark_first?: boolean | undefined;
913
+ }[];
914
+ check_all_founded?: boolean | undefined;
915
+ }, {
916
+ entities: {
917
+ name_or_address?: string | undefined;
918
+ local_mark_first?: boolean | undefined;
919
+ }[];
920
+ check_all_founded?: boolean | undefined;
921
+ }>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ op: "add";
924
+ users: {
925
+ entities: {
926
+ name_or_address?: string | undefined;
927
+ local_mark_first?: boolean | undefined;
928
+ }[];
929
+ check_all_founded?: boolean | undefined;
930
+ };
931
+ }, {
932
+ op: "add";
933
+ users: {
934
+ entities: {
935
+ name_or_address?: string | undefined;
936
+ local_mark_first?: boolean | undefined;
937
+ }[];
938
+ check_all_founded?: boolean | undefined;
939
+ };
940
+ }>, z.ZodObject<{
941
+ op: z.ZodLiteral<"remove">;
942
+ users: z.ZodObject<{
943
+ entities: z.ZodArray<z.ZodObject<{
944
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
945
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
946
+ }, "strict", z.ZodTypeAny, {
947
+ name_or_address?: string | undefined;
948
+ local_mark_first?: boolean | undefined;
949
+ }, {
950
+ name_or_address?: string | undefined;
951
+ local_mark_first?: boolean | undefined;
952
+ }>, "many">;
953
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
954
+ }, "strict", z.ZodTypeAny, {
955
+ entities: {
956
+ name_or_address?: string | undefined;
957
+ local_mark_first?: boolean | undefined;
958
+ }[];
959
+ check_all_founded?: boolean | undefined;
960
+ }, {
961
+ entities: {
962
+ name_or_address?: string | undefined;
963
+ local_mark_first?: boolean | undefined;
964
+ }[];
965
+ check_all_founded?: boolean | undefined;
966
+ }>;
967
+ }, "strip", z.ZodTypeAny, {
968
+ op: "remove";
969
+ users: {
970
+ entities: {
971
+ name_or_address?: string | undefined;
972
+ local_mark_first?: boolean | undefined;
973
+ }[];
974
+ check_all_founded?: boolean | undefined;
975
+ };
976
+ }, {
977
+ op: "remove";
978
+ users: {
979
+ entities: {
980
+ name_or_address?: string | undefined;
981
+ local_mark_first?: boolean | undefined;
982
+ }[];
983
+ check_all_founded?: boolean | undefined;
984
+ };
985
+ }>, z.ZodObject<{
986
+ op: z.ZodLiteral<"clear">;
987
+ }, "strip", z.ZodTypeAny, {
988
+ op: "clear";
989
+ }, {
990
+ op: "clear";
991
+ }>, z.ZodObject<{
992
+ op: z.ZodLiteral<"get">;
993
+ }, "strip", z.ZodTypeAny, {
994
+ op: "get";
995
+ }, {
996
+ op: "get";
997
+ }>, z.ZodObject<{
998
+ op: z.ZodLiteral<"exist">;
999
+ users: z.ZodObject<{
1000
+ entities: z.ZodArray<z.ZodObject<{
1001
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1002
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1003
+ }, "strict", z.ZodTypeAny, {
1004
+ name_or_address?: string | undefined;
1005
+ local_mark_first?: boolean | undefined;
1006
+ }, {
1007
+ name_or_address?: string | undefined;
1008
+ local_mark_first?: boolean | undefined;
1009
+ }>, "many">;
1010
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
1011
+ }, "strict", z.ZodTypeAny, {
1012
+ entities: {
1013
+ name_or_address?: string | undefined;
1014
+ local_mark_first?: boolean | undefined;
1015
+ }[];
1016
+ check_all_founded?: boolean | undefined;
1017
+ }, {
1018
+ entities: {
1019
+ name_or_address?: string | undefined;
1020
+ local_mark_first?: boolean | undefined;
1021
+ }[];
1022
+ check_all_founded?: boolean | undefined;
1023
+ }>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ op: "exist";
1026
+ users: {
1027
+ entities: {
1028
+ name_or_address?: string | undefined;
1029
+ local_mark_first?: boolean | undefined;
1030
+ }[];
1031
+ check_all_founded?: boolean | undefined;
1032
+ };
1033
+ }, {
1034
+ op: "exist";
1035
+ users: {
1036
+ entities: {
1037
+ name_or_address?: string | undefined;
1038
+ local_mark_first?: boolean | undefined;
1039
+ }[];
1040
+ check_all_founded?: boolean | undefined;
1041
+ };
1042
+ }>]>;
1043
+ export declare const GuardParamSchema: z.ZodObject<{
1044
+ guard: z.ZodEffects<z.ZodString, string, string>;
1045
+ passportValiditySeconds: z.ZodNumber;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ guard: string;
1048
+ passportValiditySeconds: number;
1049
+ }, {
1050
+ guard: string;
1051
+ passportValiditySeconds: number;
1052
+ }>;
1053
+ export declare const GuardlistOperationSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1054
+ op: z.ZodLiteral<"add">;
1055
+ guards: z.ZodArray<z.ZodObject<{
1056
+ guard: z.ZodEffects<z.ZodString, string, string>;
1057
+ passportValiditySeconds: z.ZodNumber;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ guard: string;
1060
+ passportValiditySeconds: number;
1061
+ }, {
1062
+ guard: string;
1063
+ passportValiditySeconds: number;
1064
+ }>, "many">;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ op: "add";
1067
+ guards: {
1068
+ guard: string;
1069
+ passportValiditySeconds: number;
1070
+ }[];
1071
+ }, {
1072
+ op: "add";
1073
+ guards: {
1074
+ guard: string;
1075
+ passportValiditySeconds: number;
1076
+ }[];
1077
+ }>, z.ZodObject<{
1078
+ op: z.ZodLiteral<"remove">;
1079
+ guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ op: "remove";
1082
+ guards: string[];
1083
+ }, {
1084
+ op: "remove";
1085
+ guards: string[];
1086
+ }>, z.ZodObject<{
1087
+ op: z.ZodLiteral<"get">;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ op: "get";
1090
+ }, {
1091
+ op: "get";
1092
+ }>]>;
1093
+ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1094
+ operation: z.ZodLiteral<"watch_conversations">;
1095
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ operation: "watch_conversations";
1098
+ account?: string | undefined;
1099
+ }, {
1100
+ operation: "watch_conversations";
1101
+ account?: string | undefined;
1102
+ }>, z.ZodObject<{
1103
+ operation: z.ZodLiteral<"send_message">;
1104
+ from: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1105
+ to: z.ZodObject<{
1106
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1107
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1108
+ }, "strict", z.ZodTypeAny, {
1109
+ name_or_address?: string | undefined;
1110
+ local_mark_first?: boolean | undefined;
1111
+ }, {
1112
+ name_or_address?: string | undefined;
1113
+ local_mark_first?: boolean | undefined;
1114
+ }>;
1115
+ content: z.ZodString;
1116
+ options: z.ZodOptional<z.ZodObject<{
1117
+ guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1118
+ passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1119
+ force: z.ZodOptional<z.ZodBoolean>;
1120
+ new_messenger_name: z.ZodOptional<z.ZodString>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ guardAddress?: string | undefined;
1123
+ passportAddress?: string | undefined;
1124
+ force?: boolean | undefined;
1125
+ new_messenger_name?: string | undefined;
1126
+ }, {
1127
+ guardAddress?: string | undefined;
1128
+ passportAddress?: string | undefined;
1129
+ force?: boolean | undefined;
1130
+ new_messenger_name?: string | undefined;
1131
+ }>>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ content: string;
1134
+ to: {
1135
+ name_or_address?: string | undefined;
1136
+ local_mark_first?: boolean | undefined;
1137
+ };
1138
+ operation: "send_message";
1139
+ options?: {
1140
+ guardAddress?: string | undefined;
1141
+ passportAddress?: string | undefined;
1142
+ force?: boolean | undefined;
1143
+ new_messenger_name?: string | undefined;
1144
+ } | undefined;
1145
+ from?: string | undefined;
1146
+ }, {
1147
+ content: string;
1148
+ to: {
1149
+ name_or_address?: string | undefined;
1150
+ local_mark_first?: boolean | undefined;
1151
+ };
1152
+ operation: "send_message";
1153
+ options?: {
1154
+ guardAddress?: string | undefined;
1155
+ passportAddress?: string | undefined;
1156
+ force?: boolean | undefined;
1157
+ new_messenger_name?: string | undefined;
1158
+ } | undefined;
1159
+ from?: string | undefined;
1160
+ }>, z.ZodObject<{
1161
+ operation: z.ZodLiteral<"send_file">;
1162
+ from: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1163
+ to: z.ZodObject<{
1164
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1165
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1166
+ }, "strict", z.ZodTypeAny, {
1167
+ name_or_address?: string | undefined;
1168
+ local_mark_first?: boolean | undefined;
1169
+ }, {
1170
+ name_or_address?: string | undefined;
1171
+ local_mark_first?: boolean | undefined;
1172
+ }>;
1173
+ filePath: z.ZodString;
1174
+ options: z.ZodOptional<z.ZodObject<{
1175
+ fileName: z.ZodOptional<z.ZodString>;
1176
+ contentType: z.ZodOptional<z.ZodEnum<["wts", "wip", "zip"]>>;
1177
+ guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1178
+ passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1179
+ force: z.ZodOptional<z.ZodBoolean>;
1180
+ new_messenger_name: z.ZodOptional<z.ZodString>;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ fileName?: string | undefined;
1183
+ contentType?: "wip" | "zip" | "wts" | undefined;
1184
+ guardAddress?: string | undefined;
1185
+ passportAddress?: string | undefined;
1186
+ force?: boolean | undefined;
1187
+ new_messenger_name?: string | undefined;
1188
+ }, {
1189
+ fileName?: string | undefined;
1190
+ contentType?: "wip" | "zip" | "wts" | undefined;
1191
+ guardAddress?: string | undefined;
1192
+ passportAddress?: string | undefined;
1193
+ force?: boolean | undefined;
1194
+ new_messenger_name?: string | undefined;
1195
+ }>>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ filePath: string;
1198
+ to: {
1199
+ name_or_address?: string | undefined;
1200
+ local_mark_first?: boolean | undefined;
1201
+ };
1202
+ operation: "send_file";
1203
+ options?: {
1204
+ fileName?: string | undefined;
1205
+ contentType?: "wip" | "zip" | "wts" | undefined;
1206
+ guardAddress?: string | undefined;
1207
+ passportAddress?: string | undefined;
1208
+ force?: boolean | undefined;
1209
+ new_messenger_name?: string | undefined;
1210
+ } | undefined;
1211
+ from?: string | undefined;
1212
+ }, {
1213
+ filePath: string;
1214
+ to: {
1215
+ name_or_address?: string | undefined;
1216
+ local_mark_first?: boolean | undefined;
1217
+ };
1218
+ operation: "send_file";
1219
+ options?: {
1220
+ fileName?: string | undefined;
1221
+ contentType?: "wip" | "zip" | "wts" | undefined;
1222
+ guardAddress?: string | undefined;
1223
+ passportAddress?: string | undefined;
1224
+ force?: boolean | undefined;
1225
+ new_messenger_name?: string | undefined;
1226
+ } | undefined;
1227
+ from?: string | undefined;
1228
+ }>, z.ZodObject<{
1229
+ operation: z.ZodLiteral<"watch_messages">;
1230
+ filter: z.ZodOptional<z.ZodObject<{
1231
+ direction: z.ZodOptional<z.ZodEnum<["sent", "received"]>>;
1232
+ status: z.ZodOptional<z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>>;
1233
+ peerAddress: z.ZodOptional<z.ZodObject<{
1234
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1235
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1236
+ }, "strict", z.ZodTypeAny, {
1237
+ name_or_address?: string | undefined;
1238
+ local_mark_first?: boolean | undefined;
1239
+ }, {
1240
+ name_or_address?: string | undefined;
1241
+ local_mark_first?: boolean | undefined;
1242
+ }>>;
1243
+ msgType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>>;
1244
+ contentType: z.ZodOptional<z.ZodEnum<["text", "zip", "wts", "wip"]>>;
1245
+ decryptedOnly: z.ZodOptional<z.ZodBoolean>;
1246
+ confirmedOnly: z.ZodOptional<z.ZodBoolean>;
1247
+ keyword: z.ZodOptional<z.ZodString>;
1248
+ sortOrder: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1249
+ limit: z.ZodOptional<z.ZodNumber>;
1250
+ offset: z.ZodOptional<z.ZodNumber>;
1251
+ timeField: z.ZodOptional<z.ZodEnum<["createdAt", "receivedAt", "serverTimestamp"]>>;
1252
+ startTime: z.ZodOptional<z.ZodNumber>;
1253
+ endTime: z.ZodOptional<z.ZodNumber>;
1254
+ createdAtStart: z.ZodOptional<z.ZodNumber>;
1255
+ createdAtEnd: z.ZodOptional<z.ZodNumber>;
1256
+ receivedAtStart: z.ZodOptional<z.ZodNumber>;
1257
+ receivedAtEnd: z.ZodOptional<z.ZodNumber>;
1258
+ serverTimestampStart: z.ZodOptional<z.ZodNumber>;
1259
+ serverTimestampEnd: z.ZodOptional<z.ZodNumber>;
1260
+ arkConfirmedOnly: z.ZodOptional<z.ZodBoolean>;
1261
+ arkTimestampStart: z.ZodOptional<z.ZodNumber>;
1262
+ arkTimestampEnd: z.ZodOptional<z.ZodNumber>;
1263
+ proofedOnly: z.ZodOptional<z.ZodBoolean>;
1264
+ hasLastReceivedIndexOnly: z.ZodOptional<z.ZodBoolean>;
1265
+ lastReceivedIndexMin: z.ZodOptional<z.ZodNumber>;
1266
+ lastReceivedIndexMax: z.ZodOptional<z.ZodNumber>;
1267
+ listFilterMode: z.ZodOptional<z.ZodEnum<["friends", "guard", "stranger", "any"]>>;
1268
+ customListFilter: z.ZodOptional<z.ZodObject<{
1269
+ includeAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1270
+ excludeAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1271
+ relation: z.ZodOptional<z.ZodEnum<["union", "intersection"]>>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ includeAddresses?: string[] | undefined;
1274
+ excludeAddresses?: string[] | undefined;
1275
+ relation?: "union" | "intersection" | undefined;
1276
+ }, {
1277
+ includeAddresses?: string[] | undefined;
1278
+ excludeAddresses?: string[] | undefined;
1279
+ relation?: "union" | "intersection" | undefined;
1280
+ }>>;
1281
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1284
+ limit?: number | undefined;
1285
+ account?: string | undefined;
1286
+ contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1287
+ direction?: "received" | "sent" | undefined;
1288
+ msgType?: 1 | 3 | undefined;
1289
+ peerAddress?: {
1290
+ name_or_address?: string | undefined;
1291
+ local_mark_first?: boolean | undefined;
1292
+ } | undefined;
1293
+ decryptedOnly?: boolean | undefined;
1294
+ confirmedOnly?: boolean | undefined;
1295
+ keyword?: string | undefined;
1296
+ sortOrder?: "asc" | "desc" | undefined;
1297
+ offset?: number | undefined;
1298
+ timeField?: "createdAt" | "receivedAt" | "serverTimestamp" | undefined;
1299
+ startTime?: number | undefined;
1300
+ endTime?: number | undefined;
1301
+ createdAtStart?: number | undefined;
1302
+ createdAtEnd?: number | undefined;
1303
+ receivedAtStart?: number | undefined;
1304
+ receivedAtEnd?: number | undefined;
1305
+ serverTimestampStart?: number | undefined;
1306
+ serverTimestampEnd?: number | undefined;
1307
+ arkConfirmedOnly?: boolean | undefined;
1308
+ arkTimestampStart?: number | undefined;
1309
+ arkTimestampEnd?: number | undefined;
1310
+ proofedOnly?: boolean | undefined;
1311
+ hasLastReceivedIndexOnly?: boolean | undefined;
1312
+ lastReceivedIndexMin?: number | undefined;
1313
+ lastReceivedIndexMax?: number | undefined;
1314
+ listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1315
+ customListFilter?: {
1316
+ includeAddresses?: string[] | undefined;
1317
+ excludeAddresses?: string[] | undefined;
1318
+ relation?: "union" | "intersection" | undefined;
1319
+ } | undefined;
1320
+ }, {
1321
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1322
+ limit?: number | undefined;
1323
+ account?: string | undefined;
1324
+ contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1325
+ direction?: "received" | "sent" | undefined;
1326
+ msgType?: 1 | 3 | undefined;
1327
+ peerAddress?: {
1328
+ name_or_address?: string | undefined;
1329
+ local_mark_first?: boolean | undefined;
1330
+ } | undefined;
1331
+ decryptedOnly?: boolean | undefined;
1332
+ confirmedOnly?: boolean | undefined;
1333
+ keyword?: string | undefined;
1334
+ sortOrder?: "asc" | "desc" | undefined;
1335
+ offset?: number | undefined;
1336
+ timeField?: "createdAt" | "receivedAt" | "serverTimestamp" | undefined;
1337
+ startTime?: number | undefined;
1338
+ endTime?: number | undefined;
1339
+ createdAtStart?: number | undefined;
1340
+ createdAtEnd?: number | undefined;
1341
+ receivedAtStart?: number | undefined;
1342
+ receivedAtEnd?: number | undefined;
1343
+ serverTimestampStart?: number | undefined;
1344
+ serverTimestampEnd?: number | undefined;
1345
+ arkConfirmedOnly?: boolean | undefined;
1346
+ arkTimestampStart?: number | undefined;
1347
+ arkTimestampEnd?: number | undefined;
1348
+ proofedOnly?: boolean | undefined;
1349
+ hasLastReceivedIndexOnly?: boolean | undefined;
1350
+ lastReceivedIndexMin?: number | undefined;
1351
+ lastReceivedIndexMax?: number | undefined;
1352
+ listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1353
+ customListFilter?: {
1354
+ includeAddresses?: string[] | undefined;
1355
+ excludeAddresses?: string[] | undefined;
1356
+ relation?: "union" | "intersection" | undefined;
1357
+ } | undefined;
1358
+ }>>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ operation: "watch_messages";
1361
+ filter?: {
1362
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1363
+ limit?: number | undefined;
1364
+ account?: string | undefined;
1365
+ contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1366
+ direction?: "received" | "sent" | undefined;
1367
+ msgType?: 1 | 3 | undefined;
1368
+ peerAddress?: {
1369
+ name_or_address?: string | undefined;
1370
+ local_mark_first?: boolean | undefined;
1371
+ } | undefined;
1372
+ decryptedOnly?: boolean | undefined;
1373
+ confirmedOnly?: boolean | undefined;
1374
+ keyword?: string | undefined;
1375
+ sortOrder?: "asc" | "desc" | undefined;
1376
+ offset?: number | undefined;
1377
+ timeField?: "createdAt" | "receivedAt" | "serverTimestamp" | undefined;
1378
+ startTime?: number | undefined;
1379
+ endTime?: number | undefined;
1380
+ createdAtStart?: number | undefined;
1381
+ createdAtEnd?: number | undefined;
1382
+ receivedAtStart?: number | undefined;
1383
+ receivedAtEnd?: number | undefined;
1384
+ serverTimestampStart?: number | undefined;
1385
+ serverTimestampEnd?: number | undefined;
1386
+ arkConfirmedOnly?: boolean | undefined;
1387
+ arkTimestampStart?: number | undefined;
1388
+ arkTimestampEnd?: number | undefined;
1389
+ proofedOnly?: boolean | undefined;
1390
+ hasLastReceivedIndexOnly?: boolean | undefined;
1391
+ lastReceivedIndexMin?: number | undefined;
1392
+ lastReceivedIndexMax?: number | undefined;
1393
+ listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1394
+ customListFilter?: {
1395
+ includeAddresses?: string[] | undefined;
1396
+ excludeAddresses?: string[] | undefined;
1397
+ relation?: "union" | "intersection" | undefined;
1398
+ } | undefined;
1399
+ } | undefined;
1400
+ }, {
1401
+ operation: "watch_messages";
1402
+ filter?: {
1403
+ status?: "pending" | "confirmed" | "read" | "failed" | "rejected" | undefined;
1404
+ limit?: number | undefined;
1405
+ account?: string | undefined;
1406
+ contentType?: "text" | "wip" | "zip" | "wts" | undefined;
1407
+ direction?: "received" | "sent" | undefined;
1408
+ msgType?: 1 | 3 | undefined;
1409
+ peerAddress?: {
1410
+ name_or_address?: string | undefined;
1411
+ local_mark_first?: boolean | undefined;
1412
+ } | undefined;
1413
+ decryptedOnly?: boolean | undefined;
1414
+ confirmedOnly?: boolean | undefined;
1415
+ keyword?: string | undefined;
1416
+ sortOrder?: "asc" | "desc" | undefined;
1417
+ offset?: number | undefined;
1418
+ timeField?: "createdAt" | "receivedAt" | "serverTimestamp" | undefined;
1419
+ startTime?: number | undefined;
1420
+ endTime?: number | undefined;
1421
+ createdAtStart?: number | undefined;
1422
+ createdAtEnd?: number | undefined;
1423
+ receivedAtStart?: number | undefined;
1424
+ receivedAtEnd?: number | undefined;
1425
+ serverTimestampStart?: number | undefined;
1426
+ serverTimestampEnd?: number | undefined;
1427
+ arkConfirmedOnly?: boolean | undefined;
1428
+ arkTimestampStart?: number | undefined;
1429
+ arkTimestampEnd?: number | undefined;
1430
+ proofedOnly?: boolean | undefined;
1431
+ hasLastReceivedIndexOnly?: boolean | undefined;
1432
+ lastReceivedIndexMin?: number | undefined;
1433
+ lastReceivedIndexMax?: number | undefined;
1434
+ listFilterMode?: "guard" | "friends" | "stranger" | "any" | undefined;
1435
+ customListFilter?: {
1436
+ includeAddresses?: string[] | undefined;
1437
+ excludeAddresses?: string[] | undefined;
1438
+ relation?: "union" | "intersection" | undefined;
1439
+ } | undefined;
1440
+ } | undefined;
1441
+ }>, z.ZodObject<{
1442
+ operation: z.ZodLiteral<"extract_zip_messages">;
1443
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1444
+ messages: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1445
+ messageId: z.ZodString;
1446
+ fromAddress: z.ZodString;
1447
+ toAddress: z.ZodString;
1448
+ plaintextHash: z.ZodString;
1449
+ plaintext: z.ZodOptional<z.ZodString>;
1450
+ guardAddress: z.ZodOptional<z.ZodString>;
1451
+ passportAddress: z.ZodOptional<z.ZodString>;
1452
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
1453
+ direction: z.ZodEnum<["sent", "received"]>;
1454
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
1455
+ msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
1456
+ leafIndex: z.ZodOptional<z.ZodNumber>;
1457
+ prevRoot: z.ZodOptional<z.ZodString>;
1458
+ newRoot: z.ZodOptional<z.ZodString>;
1459
+ serverSignature: z.ZodOptional<z.ZodString>;
1460
+ serverTimestamp: z.ZodOptional<z.ZodNumber>;
1461
+ serverPublicKey: z.ZodOptional<z.ZodString>;
1462
+ arkConfirmed: z.ZodOptional<z.ZodObject<{
1463
+ recipient: z.ZodString;
1464
+ recipientPublicKey: z.ZodString;
1465
+ signature: z.ZodString;
1466
+ timestamp: z.ZodNumber;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ signature: string;
1469
+ recipient: string;
1470
+ recipientPublicKey: string;
1471
+ timestamp: number;
1472
+ }, {
1473
+ signature: string;
1474
+ recipient: string;
1475
+ recipientPublicKey: string;
1476
+ timestamp: number;
1477
+ }>>;
1478
+ createdAt: z.ZodNumber;
1479
+ receivedAt: z.ZodOptional<z.ZodNumber>;
1480
+ zipMetadata: z.ZodOptional<z.ZodObject<{
1481
+ fileName: z.ZodString;
1482
+ fileSize: z.ZodNumber;
1483
+ fileHash: z.ZodString;
1484
+ contentType: z.ZodEnum<["text", "zip", "wts", "wip"]>;
1485
+ localCachePath: z.ZodOptional<z.ZodString>;
1486
+ downloadedAt: z.ZodOptional<z.ZodNumber>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ fileName: string;
1489
+ fileSize: number;
1490
+ fileHash: string;
1491
+ contentType: "text" | "wip" | "zip" | "wts";
1492
+ localCachePath?: string | undefined;
1493
+ downloadedAt?: number | undefined;
1494
+ }, {
1495
+ fileName: string;
1496
+ fileSize: number;
1497
+ fileHash: string;
1498
+ contentType: "text" | "wip" | "zip" | "wts";
1499
+ localCachePath?: string | undefined;
1500
+ downloadedAt?: number | undefined;
1501
+ }>>;
1502
+ proof: z.ZodOptional<z.ZodString>;
1503
+ }, "strip", z.ZodTypeAny, {
1504
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1505
+ createdAt: number;
1506
+ messageId: string;
1507
+ fromAddress: string;
1508
+ toAddress: string;
1509
+ plaintextHash: string;
1510
+ direction: "received" | "sent";
1511
+ msgType: 1 | 3;
1512
+ proof?: string | undefined;
1513
+ receivedAt?: number | undefined;
1514
+ serverTimestamp?: number | undefined;
1515
+ plaintext?: string | undefined;
1516
+ guardAddress?: string | undefined;
1517
+ passportAddress?: string | undefined;
1518
+ lastReceivedLeafIndex?: number | undefined;
1519
+ leafIndex?: number | undefined;
1520
+ prevRoot?: string | undefined;
1521
+ newRoot?: string | undefined;
1522
+ serverSignature?: string | undefined;
1523
+ serverPublicKey?: string | undefined;
1524
+ arkConfirmed?: {
1525
+ signature: string;
1526
+ recipient: string;
1527
+ recipientPublicKey: string;
1528
+ timestamp: number;
1529
+ } | undefined;
1530
+ zipMetadata?: {
1531
+ fileName: string;
1532
+ fileSize: number;
1533
+ fileHash: string;
1534
+ contentType: "text" | "wip" | "zip" | "wts";
1535
+ localCachePath?: string | undefined;
1536
+ downloadedAt?: number | undefined;
1537
+ } | undefined;
1538
+ }, {
1539
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1540
+ createdAt: number;
1541
+ messageId: string;
1542
+ fromAddress: string;
1543
+ toAddress: string;
1544
+ plaintextHash: string;
1545
+ direction: "received" | "sent";
1546
+ msgType: 1 | 3;
1547
+ proof?: string | undefined;
1548
+ receivedAt?: number | undefined;
1549
+ serverTimestamp?: number | undefined;
1550
+ plaintext?: string | undefined;
1551
+ guardAddress?: string | undefined;
1552
+ passportAddress?: string | undefined;
1553
+ lastReceivedLeafIndex?: number | undefined;
1554
+ leafIndex?: number | undefined;
1555
+ prevRoot?: string | undefined;
1556
+ newRoot?: string | undefined;
1557
+ serverSignature?: string | undefined;
1558
+ serverPublicKey?: string | undefined;
1559
+ arkConfirmed?: {
1560
+ signature: string;
1561
+ recipient: string;
1562
+ recipientPublicKey: string;
1563
+ timestamp: number;
1564
+ } | undefined;
1565
+ zipMetadata?: {
1566
+ fileName: string;
1567
+ fileSize: number;
1568
+ fileHash: string;
1569
+ contentType: "text" | "wip" | "zip" | "wts";
1570
+ localCachePath?: string | undefined;
1571
+ downloadedAt?: number | undefined;
1572
+ } | undefined;
1573
+ }>]>, "many">;
1574
+ outputDir: z.ZodString;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ operation: "extract_zip_messages";
1577
+ outputDir: string;
1578
+ messages: (string | {
1579
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1580
+ createdAt: number;
1581
+ messageId: string;
1582
+ fromAddress: string;
1583
+ toAddress: string;
1584
+ plaintextHash: string;
1585
+ direction: "received" | "sent";
1586
+ msgType: 1 | 3;
1587
+ proof?: string | undefined;
1588
+ receivedAt?: number | undefined;
1589
+ serverTimestamp?: number | undefined;
1590
+ plaintext?: string | undefined;
1591
+ guardAddress?: string | undefined;
1592
+ passportAddress?: string | undefined;
1593
+ lastReceivedLeafIndex?: number | undefined;
1594
+ leafIndex?: number | undefined;
1595
+ prevRoot?: string | undefined;
1596
+ newRoot?: string | undefined;
1597
+ serverSignature?: string | undefined;
1598
+ serverPublicKey?: string | undefined;
1599
+ arkConfirmed?: {
1600
+ signature: string;
1601
+ recipient: string;
1602
+ recipientPublicKey: string;
1603
+ timestamp: number;
1604
+ } | undefined;
1605
+ zipMetadata?: {
1606
+ fileName: string;
1607
+ fileSize: number;
1608
+ fileHash: string;
1609
+ contentType: "text" | "wip" | "zip" | "wts";
1610
+ localCachePath?: string | undefined;
1611
+ downloadedAt?: number | undefined;
1612
+ } | undefined;
1613
+ })[];
1614
+ account?: string | undefined;
1615
+ }, {
1616
+ operation: "extract_zip_messages";
1617
+ outputDir: string;
1618
+ messages: (string | {
1619
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
1620
+ createdAt: number;
1621
+ messageId: string;
1622
+ fromAddress: string;
1623
+ toAddress: string;
1624
+ plaintextHash: string;
1625
+ direction: "received" | "sent";
1626
+ msgType: 1 | 3;
1627
+ proof?: string | undefined;
1628
+ receivedAt?: number | undefined;
1629
+ serverTimestamp?: number | undefined;
1630
+ plaintext?: string | undefined;
1631
+ guardAddress?: string | undefined;
1632
+ passportAddress?: string | undefined;
1633
+ lastReceivedLeafIndex?: number | undefined;
1634
+ leafIndex?: number | undefined;
1635
+ prevRoot?: string | undefined;
1636
+ newRoot?: string | undefined;
1637
+ serverSignature?: string | undefined;
1638
+ serverPublicKey?: string | undefined;
1639
+ arkConfirmed?: {
1640
+ signature: string;
1641
+ recipient: string;
1642
+ recipientPublicKey: string;
1643
+ timestamp: number;
1644
+ } | undefined;
1645
+ zipMetadata?: {
1646
+ fileName: string;
1647
+ fileSize: number;
1648
+ fileHash: string;
1649
+ contentType: "text" | "wip" | "zip" | "wts";
1650
+ localCachePath?: string | undefined;
1651
+ downloadedAt?: number | undefined;
1652
+ } | undefined;
1653
+ })[];
1654
+ account?: string | undefined;
1655
+ }>, z.ZodObject<{
1656
+ operation: z.ZodLiteral<"generate_wts">;
1657
+ params: z.ZodObject<{
1658
+ myAccount: z.ZodEffects<z.ZodString, string, string>;
1659
+ peerAccount: z.ZodObject<{
1660
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1661
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ name_or_address?: string | undefined;
1664
+ local_mark_first?: boolean | undefined;
1665
+ }, {
1666
+ name_or_address?: string | undefined;
1667
+ local_mark_first?: boolean | undefined;
1668
+ }>;
1669
+ range: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{} & {
1670
+ type: z.ZodLiteral<"time">;
1671
+ start: z.ZodNumber;
1672
+ end: z.ZodNumber;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ type: "time";
1675
+ start: number;
1676
+ end: number;
1677
+ }, {
1678
+ type: "time";
1679
+ start: number;
1680
+ end: number;
1681
+ }>, z.ZodObject<{} & {
1682
+ type: z.ZodLiteral<"messageId">;
1683
+ start: z.ZodString;
1684
+ end: z.ZodString;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ type: "messageId";
1687
+ start: string;
1688
+ end: string;
1689
+ }, {
1690
+ type: "messageId";
1691
+ start: string;
1692
+ end: string;
1693
+ }>, z.ZodObject<{} & {
1694
+ type: z.ZodLiteral<"seqIndex">;
1695
+ start: z.ZodNumber;
1696
+ end: z.ZodNumber;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ type: "seqIndex";
1699
+ start: number;
1700
+ end: number;
1701
+ }, {
1702
+ type: "seqIndex";
1703
+ start: number;
1704
+ end: number;
1705
+ }>]>>;
1706
+ excludePlaintext: z.ZodOptional<z.ZodBoolean>;
1707
+ outputDir: z.ZodString;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ myAccount: string;
1710
+ peerAccount: {
1711
+ name_or_address?: string | undefined;
1712
+ local_mark_first?: boolean | undefined;
1713
+ };
1714
+ outputDir: string;
1715
+ range?: {
1716
+ type: "time";
1717
+ start: number;
1718
+ end: number;
1719
+ } | {
1720
+ type: "messageId";
1721
+ start: string;
1722
+ end: string;
1723
+ } | {
1724
+ type: "seqIndex";
1725
+ start: number;
1726
+ end: number;
1727
+ } | undefined;
1728
+ excludePlaintext?: boolean | undefined;
1729
+ }, {
1730
+ myAccount: string;
1731
+ peerAccount: {
1732
+ name_or_address?: string | undefined;
1733
+ local_mark_first?: boolean | undefined;
1734
+ };
1735
+ outputDir: string;
1736
+ range?: {
1737
+ type: "time";
1738
+ start: number;
1739
+ end: number;
1740
+ } | {
1741
+ type: "messageId";
1742
+ start: string;
1743
+ end: string;
1744
+ } | {
1745
+ type: "seqIndex";
1746
+ start: number;
1747
+ end: number;
1748
+ } | undefined;
1749
+ excludePlaintext?: boolean | undefined;
1750
+ }>;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ params: {
1753
+ myAccount: string;
1754
+ peerAccount: {
1755
+ name_or_address?: string | undefined;
1756
+ local_mark_first?: boolean | undefined;
1757
+ };
1758
+ outputDir: string;
1759
+ range?: {
1760
+ type: "time";
1761
+ start: number;
1762
+ end: number;
1763
+ } | {
1764
+ type: "messageId";
1765
+ start: string;
1766
+ end: string;
1767
+ } | {
1768
+ type: "seqIndex";
1769
+ start: number;
1770
+ end: number;
1771
+ } | undefined;
1772
+ excludePlaintext?: boolean | undefined;
1773
+ };
1774
+ operation: "generate_wts";
1775
+ }, {
1776
+ params: {
1777
+ myAccount: string;
1778
+ peerAccount: {
1779
+ name_or_address?: string | undefined;
1780
+ local_mark_first?: boolean | undefined;
1781
+ };
1782
+ outputDir: string;
1783
+ range?: {
1784
+ type: "time";
1785
+ start: number;
1786
+ end: number;
1787
+ } | {
1788
+ type: "messageId";
1789
+ start: string;
1790
+ end: string;
1791
+ } | {
1792
+ type: "seqIndex";
1793
+ start: number;
1794
+ end: number;
1795
+ } | undefined;
1796
+ excludePlaintext?: boolean | undefined;
1797
+ };
1798
+ operation: "generate_wts";
1799
+ }>, z.ZodObject<{
1800
+ operation: z.ZodLiteral<"verify_wts">;
1801
+ wtsFilePath: z.ZodString;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ operation: "verify_wts";
1804
+ wtsFilePath: string;
1805
+ }, {
1806
+ operation: "verify_wts";
1807
+ wtsFilePath: string;
1808
+ }>, z.ZodObject<{
1809
+ operation: z.ZodLiteral<"sign_wts">;
1810
+ wtsFilePath: z.ZodString;
1811
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1812
+ outputPath: z.ZodOptional<z.ZodString>;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ operation: "sign_wts";
1815
+ wtsFilePath: string;
1816
+ account?: string | undefined;
1817
+ outputPath?: string | undefined;
1818
+ }, {
1819
+ operation: "sign_wts";
1820
+ wtsFilePath: string;
1821
+ account?: string | undefined;
1822
+ outputPath?: string | undefined;
1823
+ }>, z.ZodObject<{
1824
+ operation: z.ZodLiteral<"wts2html">;
1825
+ wtsPath: z.ZodString;
1826
+ options: z.ZodOptional<z.ZodObject<{
1827
+ title: z.ZodOptional<z.ZodString>;
1828
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
1829
+ outputPath: z.ZodOptional<z.ZodString>;
1830
+ }, "strip", z.ZodTypeAny, {
1831
+ title?: string | undefined;
1832
+ theme?: "light" | "dark" | undefined;
1833
+ outputPath?: string | undefined;
1834
+ }, {
1835
+ title?: string | undefined;
1836
+ theme?: "light" | "dark" | undefined;
1837
+ outputPath?: string | undefined;
1838
+ }>>;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ operation: "wts2html";
1841
+ wtsPath: string;
1842
+ options?: {
1843
+ title?: string | undefined;
1844
+ theme?: "light" | "dark" | undefined;
1845
+ outputPath?: string | undefined;
1846
+ } | undefined;
1847
+ }, {
1848
+ operation: "wts2html";
1849
+ wtsPath: string;
1850
+ options?: {
1851
+ title?: string | undefined;
1852
+ theme?: "light" | "dark" | undefined;
1853
+ outputPath?: string | undefined;
1854
+ } | undefined;
1855
+ }>, z.ZodObject<{
1856
+ operation: z.ZodLiteral<"proof_message">;
1857
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1858
+ messageId: z.ZodString;
1859
+ network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ operation: "proof_message";
1862
+ messageId: string;
1863
+ network?: import("wowok").ENTRYPOINT | undefined;
1864
+ account?: string | undefined;
1865
+ }, {
1866
+ operation: "proof_message";
1867
+ messageId: string;
1868
+ network?: import("wowok").ENTRYPOINT | undefined;
1869
+ account?: string | undefined;
1870
+ }>, z.ZodObject<{
1871
+ operation: z.ZodLiteral<"blacklist">;
1872
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1873
+ blacklist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1874
+ op: z.ZodLiteral<"add">;
1875
+ users: z.ZodObject<{
1876
+ entities: z.ZodArray<z.ZodObject<{
1877
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1878
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1879
+ }, "strict", z.ZodTypeAny, {
1880
+ name_or_address?: string | undefined;
1881
+ local_mark_first?: boolean | undefined;
1882
+ }, {
1883
+ name_or_address?: string | undefined;
1884
+ local_mark_first?: boolean | undefined;
1885
+ }>, "many">;
1886
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
1887
+ }, "strict", z.ZodTypeAny, {
1888
+ entities: {
1889
+ name_or_address?: string | undefined;
1890
+ local_mark_first?: boolean | undefined;
1891
+ }[];
1892
+ check_all_founded?: boolean | undefined;
1893
+ }, {
1894
+ entities: {
1895
+ name_or_address?: string | undefined;
1896
+ local_mark_first?: boolean | undefined;
1897
+ }[];
1898
+ check_all_founded?: boolean | undefined;
1899
+ }>;
1900
+ }, "strip", z.ZodTypeAny, {
1901
+ op: "add";
1902
+ users: {
1903
+ entities: {
1904
+ name_or_address?: string | undefined;
1905
+ local_mark_first?: boolean | undefined;
1906
+ }[];
1907
+ check_all_founded?: boolean | undefined;
1908
+ };
1909
+ }, {
1910
+ op: "add";
1911
+ users: {
1912
+ entities: {
1913
+ name_or_address?: string | undefined;
1914
+ local_mark_first?: boolean | undefined;
1915
+ }[];
1916
+ check_all_founded?: boolean | undefined;
1917
+ };
1918
+ }>, z.ZodObject<{
1919
+ op: z.ZodLiteral<"remove">;
1920
+ users: z.ZodObject<{
1921
+ entities: z.ZodArray<z.ZodObject<{
1922
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1923
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1924
+ }, "strict", z.ZodTypeAny, {
1925
+ name_or_address?: string | undefined;
1926
+ local_mark_first?: boolean | undefined;
1927
+ }, {
1928
+ name_or_address?: string | undefined;
1929
+ local_mark_first?: boolean | undefined;
1930
+ }>, "many">;
1931
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
1932
+ }, "strict", z.ZodTypeAny, {
1933
+ entities: {
1934
+ name_or_address?: string | undefined;
1935
+ local_mark_first?: boolean | undefined;
1936
+ }[];
1937
+ check_all_founded?: boolean | undefined;
1938
+ }, {
1939
+ entities: {
1940
+ name_or_address?: string | undefined;
1941
+ local_mark_first?: boolean | undefined;
1942
+ }[];
1943
+ check_all_founded?: boolean | undefined;
1944
+ }>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ op: "remove";
1947
+ users: {
1948
+ entities: {
1949
+ name_or_address?: string | undefined;
1950
+ local_mark_first?: boolean | undefined;
1951
+ }[];
1952
+ check_all_founded?: boolean | undefined;
1953
+ };
1954
+ }, {
1955
+ op: "remove";
1956
+ users: {
1957
+ entities: {
1958
+ name_or_address?: string | undefined;
1959
+ local_mark_first?: boolean | undefined;
1960
+ }[];
1961
+ check_all_founded?: boolean | undefined;
1962
+ };
1963
+ }>, z.ZodObject<{
1964
+ op: z.ZodLiteral<"clear">;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ op: "clear";
1967
+ }, {
1968
+ op: "clear";
1969
+ }>, z.ZodObject<{
1970
+ op: z.ZodLiteral<"get">;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ op: "get";
1973
+ }, {
1974
+ op: "get";
1975
+ }>, z.ZodObject<{
1976
+ op: z.ZodLiteral<"exist">;
1977
+ users: z.ZodObject<{
1978
+ entities: z.ZodArray<z.ZodObject<{
1979
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1980
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
1981
+ }, "strict", z.ZodTypeAny, {
1982
+ name_or_address?: string | undefined;
1983
+ local_mark_first?: boolean | undefined;
1984
+ }, {
1985
+ name_or_address?: string | undefined;
1986
+ local_mark_first?: boolean | undefined;
1987
+ }>, "many">;
1988
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
1989
+ }, "strict", z.ZodTypeAny, {
1990
+ entities: {
1991
+ name_or_address?: string | undefined;
1992
+ local_mark_first?: boolean | undefined;
1993
+ }[];
1994
+ check_all_founded?: boolean | undefined;
1995
+ }, {
1996
+ entities: {
1997
+ name_or_address?: string | undefined;
1998
+ local_mark_first?: boolean | undefined;
1999
+ }[];
2000
+ check_all_founded?: boolean | undefined;
2001
+ }>;
2002
+ }, "strip", z.ZodTypeAny, {
2003
+ op: "exist";
2004
+ users: {
2005
+ entities: {
2006
+ name_or_address?: string | undefined;
2007
+ local_mark_first?: boolean | undefined;
2008
+ }[];
2009
+ check_all_founded?: boolean | undefined;
2010
+ };
2011
+ }, {
2012
+ op: "exist";
2013
+ users: {
2014
+ entities: {
2015
+ name_or_address?: string | undefined;
2016
+ local_mark_first?: boolean | undefined;
2017
+ }[];
2018
+ check_all_founded?: boolean | undefined;
2019
+ };
2020
+ }>]>;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ operation: "blacklist";
2023
+ blacklist: {
2024
+ op: "add";
2025
+ users: {
2026
+ entities: {
2027
+ name_or_address?: string | undefined;
2028
+ local_mark_first?: boolean | undefined;
2029
+ }[];
2030
+ check_all_founded?: boolean | undefined;
2031
+ };
2032
+ } | {
2033
+ op: "remove";
2034
+ users: {
2035
+ entities: {
2036
+ name_or_address?: string | undefined;
2037
+ local_mark_first?: boolean | undefined;
2038
+ }[];
2039
+ check_all_founded?: boolean | undefined;
2040
+ };
2041
+ } | {
2042
+ op: "clear";
2043
+ } | {
2044
+ op: "get";
2045
+ } | {
2046
+ op: "exist";
2047
+ users: {
2048
+ entities: {
2049
+ name_or_address?: string | undefined;
2050
+ local_mark_first?: boolean | undefined;
2051
+ }[];
2052
+ check_all_founded?: boolean | undefined;
2053
+ };
2054
+ };
2055
+ account?: string | undefined;
2056
+ }, {
2057
+ operation: "blacklist";
2058
+ blacklist: {
2059
+ op: "add";
2060
+ users: {
2061
+ entities: {
2062
+ name_or_address?: string | undefined;
2063
+ local_mark_first?: boolean | undefined;
2064
+ }[];
2065
+ check_all_founded?: boolean | undefined;
2066
+ };
2067
+ } | {
2068
+ op: "remove";
2069
+ users: {
2070
+ entities: {
2071
+ name_or_address?: string | undefined;
2072
+ local_mark_first?: boolean | undefined;
2073
+ }[];
2074
+ check_all_founded?: boolean | undefined;
2075
+ };
2076
+ } | {
2077
+ op: "clear";
2078
+ } | {
2079
+ op: "get";
2080
+ } | {
2081
+ op: "exist";
2082
+ users: {
2083
+ entities: {
2084
+ name_or_address?: string | undefined;
2085
+ local_mark_first?: boolean | undefined;
2086
+ }[];
2087
+ check_all_founded?: boolean | undefined;
2088
+ };
2089
+ };
2090
+ account?: string | undefined;
2091
+ }>, z.ZodObject<{
2092
+ operation: z.ZodLiteral<"friendslist">;
2093
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2094
+ friendslist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
2095
+ op: z.ZodLiteral<"add">;
2096
+ users: z.ZodObject<{
2097
+ entities: z.ZodArray<z.ZodObject<{
2098
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2099
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
2100
+ }, "strict", z.ZodTypeAny, {
2101
+ name_or_address?: string | undefined;
2102
+ local_mark_first?: boolean | undefined;
2103
+ }, {
2104
+ name_or_address?: string | undefined;
2105
+ local_mark_first?: boolean | undefined;
2106
+ }>, "many">;
2107
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
2108
+ }, "strict", z.ZodTypeAny, {
2109
+ entities: {
2110
+ name_or_address?: string | undefined;
2111
+ local_mark_first?: boolean | undefined;
2112
+ }[];
2113
+ check_all_founded?: boolean | undefined;
2114
+ }, {
2115
+ entities: {
2116
+ name_or_address?: string | undefined;
2117
+ local_mark_first?: boolean | undefined;
2118
+ }[];
2119
+ check_all_founded?: boolean | undefined;
2120
+ }>;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ op: "add";
2123
+ users: {
2124
+ entities: {
2125
+ name_or_address?: string | undefined;
2126
+ local_mark_first?: boolean | undefined;
2127
+ }[];
2128
+ check_all_founded?: boolean | undefined;
2129
+ };
2130
+ }, {
2131
+ op: "add";
2132
+ users: {
2133
+ entities: {
2134
+ name_or_address?: string | undefined;
2135
+ local_mark_first?: boolean | undefined;
2136
+ }[];
2137
+ check_all_founded?: boolean | undefined;
2138
+ };
2139
+ }>, z.ZodObject<{
2140
+ op: z.ZodLiteral<"remove">;
2141
+ users: z.ZodObject<{
2142
+ entities: z.ZodArray<z.ZodObject<{
2143
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2144
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
2145
+ }, "strict", z.ZodTypeAny, {
2146
+ name_or_address?: string | undefined;
2147
+ local_mark_first?: boolean | undefined;
2148
+ }, {
2149
+ name_or_address?: string | undefined;
2150
+ local_mark_first?: boolean | undefined;
2151
+ }>, "many">;
2152
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
2153
+ }, "strict", z.ZodTypeAny, {
2154
+ entities: {
2155
+ name_or_address?: string | undefined;
2156
+ local_mark_first?: boolean | undefined;
2157
+ }[];
2158
+ check_all_founded?: boolean | undefined;
2159
+ }, {
2160
+ entities: {
2161
+ name_or_address?: string | undefined;
2162
+ local_mark_first?: boolean | undefined;
2163
+ }[];
2164
+ check_all_founded?: boolean | undefined;
2165
+ }>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ op: "remove";
2168
+ users: {
2169
+ entities: {
2170
+ name_or_address?: string | undefined;
2171
+ local_mark_first?: boolean | undefined;
2172
+ }[];
2173
+ check_all_founded?: boolean | undefined;
2174
+ };
2175
+ }, {
2176
+ op: "remove";
2177
+ users: {
2178
+ entities: {
2179
+ name_or_address?: string | undefined;
2180
+ local_mark_first?: boolean | undefined;
2181
+ }[];
2182
+ check_all_founded?: boolean | undefined;
2183
+ };
2184
+ }>, z.ZodObject<{
2185
+ op: z.ZodLiteral<"clear">;
2186
+ }, "strip", z.ZodTypeAny, {
2187
+ op: "clear";
2188
+ }, {
2189
+ op: "clear";
2190
+ }>, z.ZodObject<{
2191
+ op: z.ZodLiteral<"get">;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ op: "get";
2194
+ }, {
2195
+ op: "get";
2196
+ }>, z.ZodObject<{
2197
+ op: z.ZodLiteral<"exist">;
2198
+ users: z.ZodObject<{
2199
+ entities: z.ZodArray<z.ZodObject<{
2200
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2201
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
2202
+ }, "strict", z.ZodTypeAny, {
2203
+ name_or_address?: string | undefined;
2204
+ local_mark_first?: boolean | undefined;
2205
+ }, {
2206
+ name_or_address?: string | undefined;
2207
+ local_mark_first?: boolean | undefined;
2208
+ }>, "many">;
2209
+ check_all_founded: z.ZodOptional<z.ZodBoolean>;
2210
+ }, "strict", z.ZodTypeAny, {
2211
+ entities: {
2212
+ name_or_address?: string | undefined;
2213
+ local_mark_first?: boolean | undefined;
2214
+ }[];
2215
+ check_all_founded?: boolean | undefined;
2216
+ }, {
2217
+ entities: {
2218
+ name_or_address?: string | undefined;
2219
+ local_mark_first?: boolean | undefined;
2220
+ }[];
2221
+ check_all_founded?: boolean | undefined;
2222
+ }>;
2223
+ }, "strip", z.ZodTypeAny, {
2224
+ op: "exist";
2225
+ users: {
2226
+ entities: {
2227
+ name_or_address?: string | undefined;
2228
+ local_mark_first?: boolean | undefined;
2229
+ }[];
2230
+ check_all_founded?: boolean | undefined;
2231
+ };
2232
+ }, {
2233
+ op: "exist";
2234
+ users: {
2235
+ entities: {
2236
+ name_or_address?: string | undefined;
2237
+ local_mark_first?: boolean | undefined;
2238
+ }[];
2239
+ check_all_founded?: boolean | undefined;
2240
+ };
2241
+ }>]>;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ operation: "friendslist";
2244
+ friendslist: {
2245
+ op: "add";
2246
+ users: {
2247
+ entities: {
2248
+ name_or_address?: string | undefined;
2249
+ local_mark_first?: boolean | undefined;
2250
+ }[];
2251
+ check_all_founded?: boolean | undefined;
2252
+ };
2253
+ } | {
2254
+ op: "remove";
2255
+ users: {
2256
+ entities: {
2257
+ name_or_address?: string | undefined;
2258
+ local_mark_first?: boolean | undefined;
2259
+ }[];
2260
+ check_all_founded?: boolean | undefined;
2261
+ };
2262
+ } | {
2263
+ op: "clear";
2264
+ } | {
2265
+ op: "get";
2266
+ } | {
2267
+ op: "exist";
2268
+ users: {
2269
+ entities: {
2270
+ name_or_address?: string | undefined;
2271
+ local_mark_first?: boolean | undefined;
2272
+ }[];
2273
+ check_all_founded?: boolean | undefined;
2274
+ };
2275
+ };
2276
+ account?: string | undefined;
2277
+ }, {
2278
+ operation: "friendslist";
2279
+ friendslist: {
2280
+ op: "add";
2281
+ users: {
2282
+ entities: {
2283
+ name_or_address?: string | undefined;
2284
+ local_mark_first?: boolean | undefined;
2285
+ }[];
2286
+ check_all_founded?: boolean | undefined;
2287
+ };
2288
+ } | {
2289
+ op: "remove";
2290
+ users: {
2291
+ entities: {
2292
+ name_or_address?: string | undefined;
2293
+ local_mark_first?: boolean | undefined;
2294
+ }[];
2295
+ check_all_founded?: boolean | undefined;
2296
+ };
2297
+ } | {
2298
+ op: "clear";
2299
+ } | {
2300
+ op: "get";
2301
+ } | {
2302
+ op: "exist";
2303
+ users: {
2304
+ entities: {
2305
+ name_or_address?: string | undefined;
2306
+ local_mark_first?: boolean | undefined;
2307
+ }[];
2308
+ check_all_founded?: boolean | undefined;
2309
+ };
2310
+ };
2311
+ account?: string | undefined;
2312
+ }>, z.ZodObject<{
2313
+ operation: z.ZodLiteral<"guardlist">;
2314
+ account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2315
+ guardlist: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
2316
+ op: z.ZodLiteral<"add">;
2317
+ guards: z.ZodArray<z.ZodObject<{
2318
+ guard: z.ZodEffects<z.ZodString, string, string>;
2319
+ passportValiditySeconds: z.ZodNumber;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ guard: string;
2322
+ passportValiditySeconds: number;
2323
+ }, {
2324
+ guard: string;
2325
+ passportValiditySeconds: number;
2326
+ }>, "many">;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ op: "add";
2329
+ guards: {
2330
+ guard: string;
2331
+ passportValiditySeconds: number;
2332
+ }[];
2333
+ }, {
2334
+ op: "add";
2335
+ guards: {
2336
+ guard: string;
2337
+ passportValiditySeconds: number;
2338
+ }[];
2339
+ }>, z.ZodObject<{
2340
+ op: z.ZodLiteral<"remove">;
2341
+ guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2342
+ }, "strip", z.ZodTypeAny, {
2343
+ op: "remove";
2344
+ guards: string[];
2345
+ }, {
2346
+ op: "remove";
2347
+ guards: string[];
2348
+ }>, z.ZodObject<{
2349
+ op: z.ZodLiteral<"get">;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ op: "get";
2352
+ }, {
2353
+ op: "get";
2354
+ }>]>;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ operation: "guardlist";
2357
+ guardlist: {
2358
+ op: "add";
2359
+ guards: {
2360
+ guard: string;
2361
+ passportValiditySeconds: number;
2362
+ }[];
2363
+ } | {
2364
+ op: "remove";
2365
+ guards: string[];
2366
+ } | {
2367
+ op: "get";
2368
+ };
2369
+ account?: string | undefined;
2370
+ }, {
2371
+ operation: "guardlist";
2372
+ guardlist: {
2373
+ op: "add";
2374
+ guards: {
2375
+ guard: string;
2376
+ passportValiditySeconds: number;
2377
+ }[];
2378
+ } | {
2379
+ op: "remove";
2380
+ guards: string[];
2381
+ } | {
2382
+ op: "get";
2383
+ };
2384
+ account?: string | undefined;
2385
+ }>]>;
2386
+ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2387
+ result: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
2388
+ operation: z.ZodLiteral<"watch_conversations">;
2389
+ result: z.ZodArray<z.ZodObject<{
2390
+ peerAddress: z.ZodString;
2391
+ lastMessageAt: z.ZodNumber;
2392
+ messageCount: z.ZodNumber;
2393
+ unreadCount: z.ZodNumber;
2394
+ lastMessagePreview: z.ZodOptional<z.ZodString>;
2395
+ }, "strip", z.ZodTypeAny, {
2396
+ peerAddress: string;
2397
+ lastMessageAt: number;
2398
+ messageCount: number;
2399
+ unreadCount: number;
2400
+ lastMessagePreview?: string | undefined;
2401
+ }, {
2402
+ peerAddress: string;
2403
+ lastMessageAt: number;
2404
+ messageCount: number;
2405
+ unreadCount: number;
2406
+ lastMessagePreview?: string | undefined;
2407
+ }>, "many">;
2408
+ }, "strip", z.ZodTypeAny, {
2409
+ result: {
2410
+ peerAddress: string;
2411
+ lastMessageAt: number;
2412
+ messageCount: number;
2413
+ unreadCount: number;
2414
+ lastMessagePreview?: string | undefined;
2415
+ }[];
2416
+ operation: "watch_conversations";
2417
+ }, {
2418
+ result: {
2419
+ peerAddress: string;
2420
+ lastMessageAt: number;
2421
+ messageCount: number;
2422
+ unreadCount: number;
2423
+ lastMessagePreview?: string | undefined;
2424
+ }[];
2425
+ operation: "watch_conversations";
2426
+ }>, z.ZodObject<{
2427
+ operation: z.ZodLiteral<"send_message">;
2428
+ result: z.ZodObject<{
2429
+ messageId: z.ZodString;
2430
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2431
+ merkleData: z.ZodOptional<z.ZodObject<{
2432
+ leafIndex: z.ZodNumber;
2433
+ prevRoot: z.ZodString;
2434
+ newRoot: z.ZodString;
2435
+ serverSignature: z.ZodString;
2436
+ serverTimestamp: z.ZodNumber;
2437
+ serverPublicKey: z.ZodString;
2438
+ }, "strip", z.ZodTypeAny, {
2439
+ serverTimestamp: number;
2440
+ leafIndex: number;
2441
+ prevRoot: string;
2442
+ newRoot: string;
2443
+ serverSignature: string;
2444
+ serverPublicKey: string;
2445
+ }, {
2446
+ serverTimestamp: number;
2447
+ leafIndex: number;
2448
+ prevRoot: string;
2449
+ newRoot: string;
2450
+ serverSignature: string;
2451
+ serverPublicKey: string;
2452
+ }>>;
2453
+ guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2454
+ }, "strip", z.ZodTypeAny, {
2455
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2456
+ messageId: string;
2457
+ merkleData?: {
2458
+ serverTimestamp: number;
2459
+ leafIndex: number;
2460
+ prevRoot: string;
2461
+ newRoot: string;
2462
+ serverSignature: string;
2463
+ serverPublicKey: string;
2464
+ } | undefined;
2465
+ guardList?: string[] | undefined;
2466
+ }, {
2467
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2468
+ messageId: string;
2469
+ merkleData?: {
2470
+ serverTimestamp: number;
2471
+ leafIndex: number;
2472
+ prevRoot: string;
2473
+ newRoot: string;
2474
+ serverSignature: string;
2475
+ serverPublicKey: string;
2476
+ } | undefined;
2477
+ guardList?: string[] | undefined;
2478
+ }>;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ result: {
2481
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2482
+ messageId: string;
2483
+ merkleData?: {
2484
+ serverTimestamp: number;
2485
+ leafIndex: number;
2486
+ prevRoot: string;
2487
+ newRoot: string;
2488
+ serverSignature: string;
2489
+ serverPublicKey: string;
2490
+ } | undefined;
2491
+ guardList?: string[] | undefined;
2492
+ };
2493
+ operation: "send_message";
2494
+ }, {
2495
+ result: {
2496
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2497
+ messageId: string;
2498
+ merkleData?: {
2499
+ serverTimestamp: number;
2500
+ leafIndex: number;
2501
+ prevRoot: string;
2502
+ newRoot: string;
2503
+ serverSignature: string;
2504
+ serverPublicKey: string;
2505
+ } | undefined;
2506
+ guardList?: string[] | undefined;
2507
+ };
2508
+ operation: "send_message";
2509
+ }>, z.ZodObject<{
2510
+ operation: z.ZodLiteral<"send_file">;
2511
+ result: z.ZodObject<{
2512
+ messageId: z.ZodString;
2513
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2514
+ merkleData: z.ZodOptional<z.ZodObject<{
2515
+ leafIndex: z.ZodNumber;
2516
+ prevRoot: z.ZodString;
2517
+ newRoot: z.ZodString;
2518
+ serverSignature: z.ZodString;
2519
+ serverTimestamp: z.ZodNumber;
2520
+ serverPublicKey: z.ZodString;
2521
+ }, "strip", z.ZodTypeAny, {
2522
+ serverTimestamp: number;
2523
+ leafIndex: number;
2524
+ prevRoot: string;
2525
+ newRoot: string;
2526
+ serverSignature: string;
2527
+ serverPublicKey: string;
2528
+ }, {
2529
+ serverTimestamp: number;
2530
+ leafIndex: number;
2531
+ prevRoot: string;
2532
+ newRoot: string;
2533
+ serverSignature: string;
2534
+ serverPublicKey: string;
2535
+ }>>;
2536
+ guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2537
+ }, "strip", z.ZodTypeAny, {
2538
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2539
+ messageId: string;
2540
+ merkleData?: {
2541
+ serverTimestamp: number;
2542
+ leafIndex: number;
2543
+ prevRoot: string;
2544
+ newRoot: string;
2545
+ serverSignature: string;
2546
+ serverPublicKey: string;
2547
+ } | undefined;
2548
+ guardList?: string[] | undefined;
2549
+ }, {
2550
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2551
+ messageId: string;
2552
+ merkleData?: {
2553
+ serverTimestamp: number;
2554
+ leafIndex: number;
2555
+ prevRoot: string;
2556
+ newRoot: string;
2557
+ serverSignature: string;
2558
+ serverPublicKey: string;
2559
+ } | undefined;
2560
+ guardList?: string[] | undefined;
2561
+ }>;
2562
+ }, "strip", z.ZodTypeAny, {
2563
+ result: {
2564
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2565
+ messageId: string;
2566
+ merkleData?: {
2567
+ serverTimestamp: number;
2568
+ leafIndex: number;
2569
+ prevRoot: string;
2570
+ newRoot: string;
2571
+ serverSignature: string;
2572
+ serverPublicKey: string;
2573
+ } | undefined;
2574
+ guardList?: string[] | undefined;
2575
+ };
2576
+ operation: "send_file";
2577
+ }, {
2578
+ result: {
2579
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2580
+ messageId: string;
2581
+ merkleData?: {
2582
+ serverTimestamp: number;
2583
+ leafIndex: number;
2584
+ prevRoot: string;
2585
+ newRoot: string;
2586
+ serverSignature: string;
2587
+ serverPublicKey: string;
2588
+ } | undefined;
2589
+ guardList?: string[] | undefined;
2590
+ };
2591
+ operation: "send_file";
2592
+ }>, z.ZodObject<{
2593
+ operation: z.ZodLiteral<"watch_messages">;
2594
+ result: z.ZodArray<z.ZodObject<{
2595
+ messageId: z.ZodString;
2596
+ fromAddress: z.ZodString;
2597
+ toAddress: z.ZodString;
2598
+ plaintextHash: z.ZodString;
2599
+ plaintext: z.ZodOptional<z.ZodString>;
2600
+ guardAddress: z.ZodOptional<z.ZodString>;
2601
+ passportAddress: z.ZodOptional<z.ZodString>;
2602
+ lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
2603
+ direction: z.ZodEnum<["sent", "received"]>;
2604
+ status: z.ZodEnum<["pending", "confirmed", "read", "failed", "rejected"]>;
2605
+ msgType: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<3>]>;
2606
+ leafIndex: z.ZodOptional<z.ZodNumber>;
2607
+ prevRoot: z.ZodOptional<z.ZodString>;
2608
+ newRoot: z.ZodOptional<z.ZodString>;
2609
+ serverSignature: z.ZodOptional<z.ZodString>;
2610
+ serverTimestamp: z.ZodOptional<z.ZodNumber>;
2611
+ serverPublicKey: z.ZodOptional<z.ZodString>;
2612
+ arkConfirmed: z.ZodOptional<z.ZodObject<{
2613
+ recipient: z.ZodString;
2614
+ recipientPublicKey: z.ZodString;
2615
+ signature: z.ZodString;
2616
+ timestamp: z.ZodNumber;
2617
+ }, "strip", z.ZodTypeAny, {
2618
+ signature: string;
2619
+ recipient: string;
2620
+ recipientPublicKey: string;
2621
+ timestamp: number;
2622
+ }, {
2623
+ signature: string;
2624
+ recipient: string;
2625
+ recipientPublicKey: string;
2626
+ timestamp: number;
2627
+ }>>;
2628
+ createdAt: z.ZodNumber;
2629
+ receivedAt: z.ZodOptional<z.ZodNumber>;
2630
+ zipMetadata: z.ZodOptional<z.ZodObject<{
2631
+ fileName: z.ZodString;
2632
+ fileSize: z.ZodNumber;
2633
+ fileHash: z.ZodString;
2634
+ contentType: z.ZodEnum<["text", "zip", "wts", "wip"]>;
2635
+ localCachePath: z.ZodOptional<z.ZodString>;
2636
+ downloadedAt: z.ZodOptional<z.ZodNumber>;
2637
+ }, "strip", z.ZodTypeAny, {
2638
+ fileName: string;
2639
+ fileSize: number;
2640
+ fileHash: string;
2641
+ contentType: "text" | "wip" | "zip" | "wts";
2642
+ localCachePath?: string | undefined;
2643
+ downloadedAt?: number | undefined;
2644
+ }, {
2645
+ fileName: string;
2646
+ fileSize: number;
2647
+ fileHash: string;
2648
+ contentType: "text" | "wip" | "zip" | "wts";
2649
+ localCachePath?: string | undefined;
2650
+ downloadedAt?: number | undefined;
2651
+ }>>;
2652
+ proof: z.ZodOptional<z.ZodString>;
2653
+ }, "strip", z.ZodTypeAny, {
2654
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2655
+ createdAt: number;
2656
+ messageId: string;
2657
+ fromAddress: string;
2658
+ toAddress: string;
2659
+ plaintextHash: string;
2660
+ direction: "received" | "sent";
2661
+ msgType: 1 | 3;
2662
+ proof?: string | undefined;
2663
+ receivedAt?: number | undefined;
2664
+ serverTimestamp?: number | undefined;
2665
+ plaintext?: string | undefined;
2666
+ guardAddress?: string | undefined;
2667
+ passportAddress?: string | undefined;
2668
+ lastReceivedLeafIndex?: number | undefined;
2669
+ leafIndex?: number | undefined;
2670
+ prevRoot?: string | undefined;
2671
+ newRoot?: string | undefined;
2672
+ serverSignature?: string | undefined;
2673
+ serverPublicKey?: string | undefined;
2674
+ arkConfirmed?: {
2675
+ signature: string;
2676
+ recipient: string;
2677
+ recipientPublicKey: string;
2678
+ timestamp: number;
2679
+ } | undefined;
2680
+ zipMetadata?: {
2681
+ fileName: string;
2682
+ fileSize: number;
2683
+ fileHash: string;
2684
+ contentType: "text" | "wip" | "zip" | "wts";
2685
+ localCachePath?: string | undefined;
2686
+ downloadedAt?: number | undefined;
2687
+ } | undefined;
2688
+ }, {
2689
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2690
+ createdAt: number;
2691
+ messageId: string;
2692
+ fromAddress: string;
2693
+ toAddress: string;
2694
+ plaintextHash: string;
2695
+ direction: "received" | "sent";
2696
+ msgType: 1 | 3;
2697
+ proof?: string | undefined;
2698
+ receivedAt?: number | undefined;
2699
+ serverTimestamp?: number | undefined;
2700
+ plaintext?: string | undefined;
2701
+ guardAddress?: string | undefined;
2702
+ passportAddress?: string | undefined;
2703
+ lastReceivedLeafIndex?: number | undefined;
2704
+ leafIndex?: number | undefined;
2705
+ prevRoot?: string | undefined;
2706
+ newRoot?: string | undefined;
2707
+ serverSignature?: string | undefined;
2708
+ serverPublicKey?: string | undefined;
2709
+ arkConfirmed?: {
2710
+ signature: string;
2711
+ recipient: string;
2712
+ recipientPublicKey: string;
2713
+ timestamp: number;
2714
+ } | undefined;
2715
+ zipMetadata?: {
2716
+ fileName: string;
2717
+ fileSize: number;
2718
+ fileHash: string;
2719
+ contentType: "text" | "wip" | "zip" | "wts";
2720
+ localCachePath?: string | undefined;
2721
+ downloadedAt?: number | undefined;
2722
+ } | undefined;
2723
+ }>, "many">;
2724
+ }, "strip", z.ZodTypeAny, {
2725
+ result: {
2726
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2727
+ createdAt: number;
2728
+ messageId: string;
2729
+ fromAddress: string;
2730
+ toAddress: string;
2731
+ plaintextHash: string;
2732
+ direction: "received" | "sent";
2733
+ msgType: 1 | 3;
2734
+ proof?: string | undefined;
2735
+ receivedAt?: number | undefined;
2736
+ serverTimestamp?: number | undefined;
2737
+ plaintext?: string | undefined;
2738
+ guardAddress?: string | undefined;
2739
+ passportAddress?: string | undefined;
2740
+ lastReceivedLeafIndex?: number | undefined;
2741
+ leafIndex?: number | undefined;
2742
+ prevRoot?: string | undefined;
2743
+ newRoot?: string | undefined;
2744
+ serverSignature?: string | undefined;
2745
+ serverPublicKey?: string | undefined;
2746
+ arkConfirmed?: {
2747
+ signature: string;
2748
+ recipient: string;
2749
+ recipientPublicKey: string;
2750
+ timestamp: number;
2751
+ } | undefined;
2752
+ zipMetadata?: {
2753
+ fileName: string;
2754
+ fileSize: number;
2755
+ fileHash: string;
2756
+ contentType: "text" | "wip" | "zip" | "wts";
2757
+ localCachePath?: string | undefined;
2758
+ downloadedAt?: number | undefined;
2759
+ } | undefined;
2760
+ }[];
2761
+ operation: "watch_messages";
2762
+ }, {
2763
+ result: {
2764
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
2765
+ createdAt: number;
2766
+ messageId: string;
2767
+ fromAddress: string;
2768
+ toAddress: string;
2769
+ plaintextHash: string;
2770
+ direction: "received" | "sent";
2771
+ msgType: 1 | 3;
2772
+ proof?: string | undefined;
2773
+ receivedAt?: number | undefined;
2774
+ serverTimestamp?: number | undefined;
2775
+ plaintext?: string | undefined;
2776
+ guardAddress?: string | undefined;
2777
+ passportAddress?: string | undefined;
2778
+ lastReceivedLeafIndex?: number | undefined;
2779
+ leafIndex?: number | undefined;
2780
+ prevRoot?: string | undefined;
2781
+ newRoot?: string | undefined;
2782
+ serverSignature?: string | undefined;
2783
+ serverPublicKey?: string | undefined;
2784
+ arkConfirmed?: {
2785
+ signature: string;
2786
+ recipient: string;
2787
+ recipientPublicKey: string;
2788
+ timestamp: number;
2789
+ } | undefined;
2790
+ zipMetadata?: {
2791
+ fileName: string;
2792
+ fileSize: number;
2793
+ fileHash: string;
2794
+ contentType: "text" | "wip" | "zip" | "wts";
2795
+ localCachePath?: string | undefined;
2796
+ downloadedAt?: number | undefined;
2797
+ } | undefined;
2798
+ }[];
2799
+ operation: "watch_messages";
2800
+ }>, z.ZodObject<{
2801
+ operation: z.ZodLiteral<"extract_zip_messages">;
2802
+ result: z.ZodArray<z.ZodString, "many">;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ result: string[];
2805
+ operation: "extract_zip_messages";
2806
+ }, {
2807
+ result: string[];
2808
+ operation: "extract_zip_messages";
2809
+ }>, z.ZodObject<{
2810
+ operation: z.ZodLiteral<"generate_wts">;
2811
+ result: z.ZodObject<{
2812
+ files: z.ZodArray<z.ZodString, "many">;
2813
+ totalMessageCount: z.ZodNumber;
2814
+ timeRange: z.ZodObject<{
2815
+ start: z.ZodNumber;
2816
+ end: z.ZodNumber;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ start: number;
2819
+ end: number;
2820
+ }, {
2821
+ start: number;
2822
+ end: number;
2823
+ }>;
2824
+ }, "strip", z.ZodTypeAny, {
2825
+ files: string[];
2826
+ totalMessageCount: number;
2827
+ timeRange: {
2828
+ start: number;
2829
+ end: number;
2830
+ };
2831
+ }, {
2832
+ files: string[];
2833
+ totalMessageCount: number;
2834
+ timeRange: {
2835
+ start: number;
2836
+ end: number;
2837
+ };
2838
+ }>;
2839
+ }, "strip", z.ZodTypeAny, {
2840
+ result: {
2841
+ files: string[];
2842
+ totalMessageCount: number;
2843
+ timeRange: {
2844
+ start: number;
2845
+ end: number;
2846
+ };
2847
+ };
2848
+ operation: "generate_wts";
2849
+ }, {
2850
+ result: {
2851
+ files: string[];
2852
+ totalMessageCount: number;
2853
+ timeRange: {
2854
+ start: number;
2855
+ end: number;
2856
+ };
2857
+ };
2858
+ operation: "generate_wts";
2859
+ }>, z.ZodObject<{
2860
+ operation: z.ZodLiteral<"verify_wts">;
2861
+ result: z.ZodObject<{
2862
+ valid: z.ZodBoolean;
2863
+ error: z.ZodOptional<z.ZodString>;
2864
+ hashValid: z.ZodOptional<z.ZodBoolean>;
2865
+ hasSignature: z.ZodOptional<z.ZodBoolean>;
2866
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
2867
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2868
+ publicKey: z.ZodString;
2869
+ address: z.ZodOptional<z.ZodString>;
2870
+ valid: z.ZodBoolean;
2871
+ }, "strip", z.ZodTypeAny, {
2872
+ valid: boolean;
2873
+ publicKey: string;
2874
+ address?: string | undefined;
2875
+ }, {
2876
+ valid: boolean;
2877
+ publicKey: string;
2878
+ address?: string | undefined;
2879
+ }>, "many">>;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ valid: boolean;
2882
+ error?: string | undefined;
2883
+ hashValid?: boolean | undefined;
2884
+ signatureValid?: boolean | undefined;
2885
+ hasSignature?: boolean | undefined;
2886
+ signatures?: {
2887
+ valid: boolean;
2888
+ publicKey: string;
2889
+ address?: string | undefined;
2890
+ }[] | undefined;
2891
+ }, {
2892
+ valid: boolean;
2893
+ error?: string | undefined;
2894
+ hashValid?: boolean | undefined;
2895
+ signatureValid?: boolean | undefined;
2896
+ hasSignature?: boolean | undefined;
2897
+ signatures?: {
2898
+ valid: boolean;
2899
+ publicKey: string;
2900
+ address?: string | undefined;
2901
+ }[] | undefined;
2902
+ }>;
2903
+ }, "strip", z.ZodTypeAny, {
2904
+ result: {
2905
+ valid: boolean;
2906
+ error?: string | undefined;
2907
+ hashValid?: boolean | undefined;
2908
+ signatureValid?: boolean | undefined;
2909
+ hasSignature?: boolean | undefined;
2910
+ signatures?: {
2911
+ valid: boolean;
2912
+ publicKey: string;
2913
+ address?: string | undefined;
2914
+ }[] | undefined;
2915
+ };
2916
+ operation: "verify_wts";
2917
+ }, {
2918
+ result: {
2919
+ valid: boolean;
2920
+ error?: string | undefined;
2921
+ hashValid?: boolean | undefined;
2922
+ signatureValid?: boolean | undefined;
2923
+ hasSignature?: boolean | undefined;
2924
+ signatures?: {
2925
+ valid: boolean;
2926
+ publicKey: string;
2927
+ address?: string | undefined;
2928
+ }[] | undefined;
2929
+ };
2930
+ operation: "verify_wts";
2931
+ }>, z.ZodObject<{
2932
+ operation: z.ZodLiteral<"sign_wts">;
2933
+ result: z.ZodString;
2934
+ }, "strip", z.ZodTypeAny, {
2935
+ result: string;
2936
+ operation: "sign_wts";
2937
+ }, {
2938
+ result: string;
2939
+ operation: "sign_wts";
2940
+ }>, z.ZodObject<{
2941
+ operation: z.ZodLiteral<"wts2html">;
2942
+ result: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2943
+ }, "strip", z.ZodTypeAny, {
2944
+ result: string | string[];
2945
+ operation: "wts2html";
2946
+ }, {
2947
+ result: string | string[];
2948
+ operation: "wts2html";
2949
+ }>, z.ZodObject<{
2950
+ operation: z.ZodLiteral<"proof_message">;
2951
+ result: z.ZodObject<{
2952
+ proofAddress: z.ZodString;
2953
+ }, "strip", z.ZodTypeAny, {
2954
+ proofAddress: string;
2955
+ }, {
2956
+ proofAddress: string;
2957
+ }>;
2958
+ }, "strip", z.ZodTypeAny, {
2959
+ result: {
2960
+ proofAddress: string;
2961
+ };
2962
+ operation: "proof_message";
2963
+ }, {
2964
+ result: {
2965
+ proofAddress: string;
2966
+ };
2967
+ operation: "proof_message";
2968
+ }>, z.ZodObject<{
2969
+ operation: z.ZodLiteral<"blacklist">;
2970
+ op: z.ZodEnum<["add", "remove", "clear", "get", "exist"]>;
2971
+ result: z.ZodUnion<[z.ZodObject<{
2972
+ success: z.ZodBoolean;
2973
+ operation: z.ZodString;
2974
+ modifiedCount: z.ZodNumber;
2975
+ currentCount: z.ZodNumber;
2976
+ maxCount: z.ZodNumber;
2977
+ invalidAddresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2978
+ existResults: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2979
+ address: z.ZodString;
2980
+ exists: z.ZodBoolean;
2981
+ }, "strip", z.ZodTypeAny, {
2982
+ address: string;
2983
+ exists: boolean;
2984
+ }, {
2985
+ address: string;
2986
+ exists: boolean;
2987
+ }>, "many">>>;
2988
+ message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2989
+ currentList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2990
+ currentGuardList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2991
+ guardAddress: z.ZodString;
2992
+ passportValiditySeconds: z.ZodNumber;
2993
+ }, "strip", z.ZodTypeAny, {
2994
+ guardAddress: string;
2995
+ passportValiditySeconds: number;
2996
+ }, {
2997
+ guardAddress: string;
2998
+ passportValiditySeconds: number;
2999
+ }>, "many">>>;
3000
+ }, "strip", z.ZodTypeAny, {
3001
+ success: boolean;
3002
+ operation: string;
3003
+ modifiedCount: number;
3004
+ currentCount: number;
3005
+ maxCount: number;
3006
+ message?: string | null | undefined;
3007
+ invalidAddresses?: string[] | null | undefined;
3008
+ existResults?: {
3009
+ address: string;
3010
+ exists: boolean;
3011
+ }[] | null | undefined;
3012
+ currentList?: string[] | null | undefined;
3013
+ currentGuardList?: {
3014
+ guardAddress: string;
3015
+ passportValiditySeconds: number;
3016
+ }[] | null | undefined;
3017
+ }, {
3018
+ success: boolean;
3019
+ operation: string;
3020
+ modifiedCount: number;
3021
+ currentCount: number;
3022
+ maxCount: number;
3023
+ message?: string | null | undefined;
3024
+ invalidAddresses?: string[] | null | undefined;
3025
+ existResults?: {
3026
+ address: string;
3027
+ exists: boolean;
3028
+ }[] | null | undefined;
3029
+ currentList?: string[] | null | undefined;
3030
+ currentGuardList?: {
3031
+ guardAddress: string;
3032
+ passportValiditySeconds: number;
3033
+ }[] | null | undefined;
3034
+ }>, z.ZodArray<z.ZodString, "many">]>;
3035
+ }, "strip", z.ZodTypeAny, {
3036
+ result: string[] | {
3037
+ success: boolean;
3038
+ operation: string;
3039
+ modifiedCount: number;
3040
+ currentCount: number;
3041
+ maxCount: number;
3042
+ message?: string | null | undefined;
3043
+ invalidAddresses?: string[] | null | undefined;
3044
+ existResults?: {
3045
+ address: string;
3046
+ exists: boolean;
3047
+ }[] | null | undefined;
3048
+ currentList?: string[] | null | undefined;
3049
+ currentGuardList?: {
3050
+ guardAddress: string;
3051
+ passportValiditySeconds: number;
3052
+ }[] | null | undefined;
3053
+ };
3054
+ op: "get" | "add" | "remove" | "clear" | "exist";
3055
+ operation: "blacklist";
3056
+ }, {
3057
+ result: string[] | {
3058
+ success: boolean;
3059
+ operation: string;
3060
+ modifiedCount: number;
3061
+ currentCount: number;
3062
+ maxCount: number;
3063
+ message?: string | null | undefined;
3064
+ invalidAddresses?: string[] | null | undefined;
3065
+ existResults?: {
3066
+ address: string;
3067
+ exists: boolean;
3068
+ }[] | null | undefined;
3069
+ currentList?: string[] | null | undefined;
3070
+ currentGuardList?: {
3071
+ guardAddress: string;
3072
+ passportValiditySeconds: number;
3073
+ }[] | null | undefined;
3074
+ };
3075
+ op: "get" | "add" | "remove" | "clear" | "exist";
3076
+ operation: "blacklist";
3077
+ }>, z.ZodObject<{
3078
+ operation: z.ZodLiteral<"friendslist">;
3079
+ op: z.ZodEnum<["add", "remove", "clear", "get", "exist"]>;
3080
+ result: z.ZodUnion<[z.ZodObject<{
3081
+ success: z.ZodBoolean;
3082
+ operation: z.ZodString;
3083
+ modifiedCount: z.ZodNumber;
3084
+ currentCount: z.ZodNumber;
3085
+ maxCount: z.ZodNumber;
3086
+ invalidAddresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3087
+ existResults: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3088
+ address: z.ZodString;
3089
+ exists: z.ZodBoolean;
3090
+ }, "strip", z.ZodTypeAny, {
3091
+ address: string;
3092
+ exists: boolean;
3093
+ }, {
3094
+ address: string;
3095
+ exists: boolean;
3096
+ }>, "many">>>;
3097
+ message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3098
+ currentList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3099
+ currentGuardList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3100
+ guardAddress: z.ZodString;
3101
+ passportValiditySeconds: z.ZodNumber;
3102
+ }, "strip", z.ZodTypeAny, {
3103
+ guardAddress: string;
3104
+ passportValiditySeconds: number;
3105
+ }, {
3106
+ guardAddress: string;
3107
+ passportValiditySeconds: number;
3108
+ }>, "many">>>;
3109
+ }, "strip", z.ZodTypeAny, {
3110
+ success: boolean;
3111
+ operation: string;
3112
+ modifiedCount: number;
3113
+ currentCount: number;
3114
+ maxCount: number;
3115
+ message?: string | null | undefined;
3116
+ invalidAddresses?: string[] | null | undefined;
3117
+ existResults?: {
3118
+ address: string;
3119
+ exists: boolean;
3120
+ }[] | null | undefined;
3121
+ currentList?: string[] | null | undefined;
3122
+ currentGuardList?: {
3123
+ guardAddress: string;
3124
+ passportValiditySeconds: number;
3125
+ }[] | null | undefined;
3126
+ }, {
3127
+ success: boolean;
3128
+ operation: string;
3129
+ modifiedCount: number;
3130
+ currentCount: number;
3131
+ maxCount: number;
3132
+ message?: string | null | undefined;
3133
+ invalidAddresses?: string[] | null | undefined;
3134
+ existResults?: {
3135
+ address: string;
3136
+ exists: boolean;
3137
+ }[] | null | undefined;
3138
+ currentList?: string[] | null | undefined;
3139
+ currentGuardList?: {
3140
+ guardAddress: string;
3141
+ passportValiditySeconds: number;
3142
+ }[] | null | undefined;
3143
+ }>, z.ZodArray<z.ZodString, "many">]>;
3144
+ }, "strip", z.ZodTypeAny, {
3145
+ result: string[] | {
3146
+ success: boolean;
3147
+ operation: string;
3148
+ modifiedCount: number;
3149
+ currentCount: number;
3150
+ maxCount: number;
3151
+ message?: string | null | undefined;
3152
+ invalidAddresses?: string[] | null | undefined;
3153
+ existResults?: {
3154
+ address: string;
3155
+ exists: boolean;
3156
+ }[] | null | undefined;
3157
+ currentList?: string[] | null | undefined;
3158
+ currentGuardList?: {
3159
+ guardAddress: string;
3160
+ passportValiditySeconds: number;
3161
+ }[] | null | undefined;
3162
+ };
3163
+ op: "get" | "add" | "remove" | "clear" | "exist";
3164
+ operation: "friendslist";
3165
+ }, {
3166
+ result: string[] | {
3167
+ success: boolean;
3168
+ operation: string;
3169
+ modifiedCount: number;
3170
+ currentCount: number;
3171
+ maxCount: number;
3172
+ message?: string | null | undefined;
3173
+ invalidAddresses?: string[] | null | undefined;
3174
+ existResults?: {
3175
+ address: string;
3176
+ exists: boolean;
3177
+ }[] | null | undefined;
3178
+ currentList?: string[] | null | undefined;
3179
+ currentGuardList?: {
3180
+ guardAddress: string;
3181
+ passportValiditySeconds: number;
3182
+ }[] | null | undefined;
3183
+ };
3184
+ op: "get" | "add" | "remove" | "clear" | "exist";
3185
+ operation: "friendslist";
3186
+ }>, z.ZodObject<{
3187
+ operation: z.ZodLiteral<"guardlist">;
3188
+ op: z.ZodEnum<["add", "remove", "get"]>;
3189
+ result: z.ZodObject<{
3190
+ success: z.ZodBoolean;
3191
+ operation: z.ZodString;
3192
+ modifiedCount: z.ZodNumber;
3193
+ currentCount: z.ZodNumber;
3194
+ maxCount: z.ZodNumber;
3195
+ invalidAddresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3196
+ existResults: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3197
+ address: z.ZodString;
3198
+ exists: z.ZodBoolean;
3199
+ }, "strip", z.ZodTypeAny, {
3200
+ address: string;
3201
+ exists: boolean;
3202
+ }, {
3203
+ address: string;
3204
+ exists: boolean;
3205
+ }>, "many">>>;
3206
+ message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3207
+ currentList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
3208
+ currentGuardList: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3209
+ guardAddress: z.ZodString;
3210
+ passportValiditySeconds: z.ZodNumber;
3211
+ }, "strip", z.ZodTypeAny, {
3212
+ guardAddress: string;
3213
+ passportValiditySeconds: number;
3214
+ }, {
3215
+ guardAddress: string;
3216
+ passportValiditySeconds: number;
3217
+ }>, "many">>>;
3218
+ }, "strip", z.ZodTypeAny, {
3219
+ success: boolean;
3220
+ operation: string;
3221
+ modifiedCount: number;
3222
+ currentCount: number;
3223
+ maxCount: number;
3224
+ message?: string | null | undefined;
3225
+ invalidAddresses?: string[] | null | undefined;
3226
+ existResults?: {
3227
+ address: string;
3228
+ exists: boolean;
3229
+ }[] | null | undefined;
3230
+ currentList?: string[] | null | undefined;
3231
+ currentGuardList?: {
3232
+ guardAddress: string;
3233
+ passportValiditySeconds: number;
3234
+ }[] | null | undefined;
3235
+ }, {
3236
+ success: boolean;
3237
+ operation: string;
3238
+ modifiedCount: number;
3239
+ currentCount: number;
3240
+ maxCount: number;
3241
+ message?: string | null | undefined;
3242
+ invalidAddresses?: string[] | null | undefined;
3243
+ existResults?: {
3244
+ address: string;
3245
+ exists: boolean;
3246
+ }[] | null | undefined;
3247
+ currentList?: string[] | null | undefined;
3248
+ currentGuardList?: {
3249
+ guardAddress: string;
3250
+ passportValiditySeconds: number;
3251
+ }[] | null | undefined;
3252
+ }>;
3253
+ }, "strip", z.ZodTypeAny, {
3254
+ result: {
3255
+ success: boolean;
3256
+ operation: string;
3257
+ modifiedCount: number;
3258
+ currentCount: number;
3259
+ maxCount: number;
3260
+ message?: string | null | undefined;
3261
+ invalidAddresses?: string[] | null | undefined;
3262
+ existResults?: {
3263
+ address: string;
3264
+ exists: boolean;
3265
+ }[] | null | undefined;
3266
+ currentList?: string[] | null | undefined;
3267
+ currentGuardList?: {
3268
+ guardAddress: string;
3269
+ passportValiditySeconds: number;
3270
+ }[] | null | undefined;
3271
+ };
3272
+ op: "get" | "add" | "remove";
3273
+ operation: "guardlist";
3274
+ }, {
3275
+ result: {
3276
+ success: boolean;
3277
+ operation: string;
3278
+ modifiedCount: number;
3279
+ currentCount: number;
3280
+ maxCount: number;
3281
+ message?: string | null | undefined;
3282
+ invalidAddresses?: string[] | null | undefined;
3283
+ existResults?: {
3284
+ address: string;
3285
+ exists: boolean;
3286
+ }[] | null | undefined;
3287
+ currentList?: string[] | null | undefined;
3288
+ currentGuardList?: {
3289
+ guardAddress: string;
3290
+ passportValiditySeconds: number;
3291
+ }[] | null | undefined;
3292
+ };
3293
+ op: "get" | "add" | "remove";
3294
+ operation: "guardlist";
3295
+ }>]>;
3296
+ }, "strip", z.ZodTypeAny, {
3297
+ result: {
3298
+ result: {
3299
+ peerAddress: string;
3300
+ lastMessageAt: number;
3301
+ messageCount: number;
3302
+ unreadCount: number;
3303
+ lastMessagePreview?: string | undefined;
3304
+ }[];
3305
+ operation: "watch_conversations";
3306
+ } | {
3307
+ result: {
3308
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3309
+ messageId: string;
3310
+ merkleData?: {
3311
+ serverTimestamp: number;
3312
+ leafIndex: number;
3313
+ prevRoot: string;
3314
+ newRoot: string;
3315
+ serverSignature: string;
3316
+ serverPublicKey: string;
3317
+ } | undefined;
3318
+ guardList?: string[] | undefined;
3319
+ };
3320
+ operation: "send_message";
3321
+ } | {
3322
+ result: {
3323
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3324
+ messageId: string;
3325
+ merkleData?: {
3326
+ serverTimestamp: number;
3327
+ leafIndex: number;
3328
+ prevRoot: string;
3329
+ newRoot: string;
3330
+ serverSignature: string;
3331
+ serverPublicKey: string;
3332
+ } | undefined;
3333
+ guardList?: string[] | undefined;
3334
+ };
3335
+ operation: "send_file";
3336
+ } | {
3337
+ result: {
3338
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3339
+ createdAt: number;
3340
+ messageId: string;
3341
+ fromAddress: string;
3342
+ toAddress: string;
3343
+ plaintextHash: string;
3344
+ direction: "received" | "sent";
3345
+ msgType: 1 | 3;
3346
+ proof?: string | undefined;
3347
+ receivedAt?: number | undefined;
3348
+ serverTimestamp?: number | undefined;
3349
+ plaintext?: string | undefined;
3350
+ guardAddress?: string | undefined;
3351
+ passportAddress?: string | undefined;
3352
+ lastReceivedLeafIndex?: number | undefined;
3353
+ leafIndex?: number | undefined;
3354
+ prevRoot?: string | undefined;
3355
+ newRoot?: string | undefined;
3356
+ serverSignature?: string | undefined;
3357
+ serverPublicKey?: string | undefined;
3358
+ arkConfirmed?: {
3359
+ signature: string;
3360
+ recipient: string;
3361
+ recipientPublicKey: string;
3362
+ timestamp: number;
3363
+ } | undefined;
3364
+ zipMetadata?: {
3365
+ fileName: string;
3366
+ fileSize: number;
3367
+ fileHash: string;
3368
+ contentType: "text" | "wip" | "zip" | "wts";
3369
+ localCachePath?: string | undefined;
3370
+ downloadedAt?: number | undefined;
3371
+ } | undefined;
3372
+ }[];
3373
+ operation: "watch_messages";
3374
+ } | {
3375
+ result: string[];
3376
+ operation: "extract_zip_messages";
3377
+ } | {
3378
+ result: {
3379
+ files: string[];
3380
+ totalMessageCount: number;
3381
+ timeRange: {
3382
+ start: number;
3383
+ end: number;
3384
+ };
3385
+ };
3386
+ operation: "generate_wts";
3387
+ } | {
3388
+ result: {
3389
+ valid: boolean;
3390
+ error?: string | undefined;
3391
+ hashValid?: boolean | undefined;
3392
+ signatureValid?: boolean | undefined;
3393
+ hasSignature?: boolean | undefined;
3394
+ signatures?: {
3395
+ valid: boolean;
3396
+ publicKey: string;
3397
+ address?: string | undefined;
3398
+ }[] | undefined;
3399
+ };
3400
+ operation: "verify_wts";
3401
+ } | {
3402
+ result: string;
3403
+ operation: "sign_wts";
3404
+ } | {
3405
+ result: string | string[];
3406
+ operation: "wts2html";
3407
+ } | {
3408
+ result: {
3409
+ proofAddress: string;
3410
+ };
3411
+ operation: "proof_message";
3412
+ } | {
3413
+ result: string[] | {
3414
+ success: boolean;
3415
+ operation: string;
3416
+ modifiedCount: number;
3417
+ currentCount: number;
3418
+ maxCount: number;
3419
+ message?: string | null | undefined;
3420
+ invalidAddresses?: string[] | null | undefined;
3421
+ existResults?: {
3422
+ address: string;
3423
+ exists: boolean;
3424
+ }[] | null | undefined;
3425
+ currentList?: string[] | null | undefined;
3426
+ currentGuardList?: {
3427
+ guardAddress: string;
3428
+ passportValiditySeconds: number;
3429
+ }[] | null | undefined;
3430
+ };
3431
+ op: "get" | "add" | "remove" | "clear" | "exist";
3432
+ operation: "blacklist";
3433
+ } | {
3434
+ result: string[] | {
3435
+ success: boolean;
3436
+ operation: string;
3437
+ modifiedCount: number;
3438
+ currentCount: number;
3439
+ maxCount: number;
3440
+ message?: string | null | undefined;
3441
+ invalidAddresses?: string[] | null | undefined;
3442
+ existResults?: {
3443
+ address: string;
3444
+ exists: boolean;
3445
+ }[] | null | undefined;
3446
+ currentList?: string[] | null | undefined;
3447
+ currentGuardList?: {
3448
+ guardAddress: string;
3449
+ passportValiditySeconds: number;
3450
+ }[] | null | undefined;
3451
+ };
3452
+ op: "get" | "add" | "remove" | "clear" | "exist";
3453
+ operation: "friendslist";
3454
+ } | {
3455
+ result: {
3456
+ success: boolean;
3457
+ operation: string;
3458
+ modifiedCount: number;
3459
+ currentCount: number;
3460
+ maxCount: number;
3461
+ message?: string | null | undefined;
3462
+ invalidAddresses?: string[] | null | undefined;
3463
+ existResults?: {
3464
+ address: string;
3465
+ exists: boolean;
3466
+ }[] | null | undefined;
3467
+ currentList?: string[] | null | undefined;
3468
+ currentGuardList?: {
3469
+ guardAddress: string;
3470
+ passportValiditySeconds: number;
3471
+ }[] | null | undefined;
3472
+ };
3473
+ op: "get" | "add" | "remove";
3474
+ operation: "guardlist";
3475
+ };
3476
+ }, {
3477
+ result: {
3478
+ result: {
3479
+ peerAddress: string;
3480
+ lastMessageAt: number;
3481
+ messageCount: number;
3482
+ unreadCount: number;
3483
+ lastMessagePreview?: string | undefined;
3484
+ }[];
3485
+ operation: "watch_conversations";
3486
+ } | {
3487
+ result: {
3488
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3489
+ messageId: string;
3490
+ merkleData?: {
3491
+ serverTimestamp: number;
3492
+ leafIndex: number;
3493
+ prevRoot: string;
3494
+ newRoot: string;
3495
+ serverSignature: string;
3496
+ serverPublicKey: string;
3497
+ } | undefined;
3498
+ guardList?: string[] | undefined;
3499
+ };
3500
+ operation: "send_message";
3501
+ } | {
3502
+ result: {
3503
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3504
+ messageId: string;
3505
+ merkleData?: {
3506
+ serverTimestamp: number;
3507
+ leafIndex: number;
3508
+ prevRoot: string;
3509
+ newRoot: string;
3510
+ serverSignature: string;
3511
+ serverPublicKey: string;
3512
+ } | undefined;
3513
+ guardList?: string[] | undefined;
3514
+ };
3515
+ operation: "send_file";
3516
+ } | {
3517
+ result: {
3518
+ status: "pending" | "confirmed" | "read" | "failed" | "rejected";
3519
+ createdAt: number;
3520
+ messageId: string;
3521
+ fromAddress: string;
3522
+ toAddress: string;
3523
+ plaintextHash: string;
3524
+ direction: "received" | "sent";
3525
+ msgType: 1 | 3;
3526
+ proof?: string | undefined;
3527
+ receivedAt?: number | undefined;
3528
+ serverTimestamp?: number | undefined;
3529
+ plaintext?: string | undefined;
3530
+ guardAddress?: string | undefined;
3531
+ passportAddress?: string | undefined;
3532
+ lastReceivedLeafIndex?: number | undefined;
3533
+ leafIndex?: number | undefined;
3534
+ prevRoot?: string | undefined;
3535
+ newRoot?: string | undefined;
3536
+ serverSignature?: string | undefined;
3537
+ serverPublicKey?: string | undefined;
3538
+ arkConfirmed?: {
3539
+ signature: string;
3540
+ recipient: string;
3541
+ recipientPublicKey: string;
3542
+ timestamp: number;
3543
+ } | undefined;
3544
+ zipMetadata?: {
3545
+ fileName: string;
3546
+ fileSize: number;
3547
+ fileHash: string;
3548
+ contentType: "text" | "wip" | "zip" | "wts";
3549
+ localCachePath?: string | undefined;
3550
+ downloadedAt?: number | undefined;
3551
+ } | undefined;
3552
+ }[];
3553
+ operation: "watch_messages";
3554
+ } | {
3555
+ result: string[];
3556
+ operation: "extract_zip_messages";
3557
+ } | {
3558
+ result: {
3559
+ files: string[];
3560
+ totalMessageCount: number;
3561
+ timeRange: {
3562
+ start: number;
3563
+ end: number;
3564
+ };
3565
+ };
3566
+ operation: "generate_wts";
3567
+ } | {
3568
+ result: {
3569
+ valid: boolean;
3570
+ error?: string | undefined;
3571
+ hashValid?: boolean | undefined;
3572
+ signatureValid?: boolean | undefined;
3573
+ hasSignature?: boolean | undefined;
3574
+ signatures?: {
3575
+ valid: boolean;
3576
+ publicKey: string;
3577
+ address?: string | undefined;
3578
+ }[] | undefined;
3579
+ };
3580
+ operation: "verify_wts";
3581
+ } | {
3582
+ result: string;
3583
+ operation: "sign_wts";
3584
+ } | {
3585
+ result: string | string[];
3586
+ operation: "wts2html";
3587
+ } | {
3588
+ result: {
3589
+ proofAddress: string;
3590
+ };
3591
+ operation: "proof_message";
3592
+ } | {
3593
+ result: string[] | {
3594
+ success: boolean;
3595
+ operation: string;
3596
+ modifiedCount: number;
3597
+ currentCount: number;
3598
+ maxCount: number;
3599
+ message?: string | null | undefined;
3600
+ invalidAddresses?: string[] | null | undefined;
3601
+ existResults?: {
3602
+ address: string;
3603
+ exists: boolean;
3604
+ }[] | null | undefined;
3605
+ currentList?: string[] | null | undefined;
3606
+ currentGuardList?: {
3607
+ guardAddress: string;
3608
+ passportValiditySeconds: number;
3609
+ }[] | null | undefined;
3610
+ };
3611
+ op: "get" | "add" | "remove" | "clear" | "exist";
3612
+ operation: "blacklist";
3613
+ } | {
3614
+ result: string[] | {
3615
+ success: boolean;
3616
+ operation: string;
3617
+ modifiedCount: number;
3618
+ currentCount: number;
3619
+ maxCount: number;
3620
+ message?: string | null | undefined;
3621
+ invalidAddresses?: string[] | null | undefined;
3622
+ existResults?: {
3623
+ address: string;
3624
+ exists: boolean;
3625
+ }[] | null | undefined;
3626
+ currentList?: string[] | null | undefined;
3627
+ currentGuardList?: {
3628
+ guardAddress: string;
3629
+ passportValiditySeconds: number;
3630
+ }[] | null | undefined;
3631
+ };
3632
+ op: "get" | "add" | "remove" | "clear" | "exist";
3633
+ operation: "friendslist";
3634
+ } | {
3635
+ result: {
3636
+ success: boolean;
3637
+ operation: string;
3638
+ modifiedCount: number;
3639
+ currentCount: number;
3640
+ maxCount: number;
3641
+ message?: string | null | undefined;
3642
+ invalidAddresses?: string[] | null | undefined;
3643
+ existResults?: {
3644
+ address: string;
3645
+ exists: boolean;
3646
+ }[] | null | undefined;
3647
+ currentList?: string[] | null | undefined;
3648
+ currentGuardList?: {
3649
+ guardAddress: string;
3650
+ passportValiditySeconds: number;
3651
+ }[] | null | undefined;
3652
+ };
3653
+ op: "get" | "add" | "remove";
3654
+ operation: "guardlist";
3655
+ };
3656
+ }>;
33
3657
  export type MessengerOperationInput = z.infer<typeof MessengerOperationInputSchema>;
34
3658
  export type MessengerOperationOutput = z.infer<typeof MessengerOperationOutputSchema>;