wowok_agent 1.6.6 → 2.1.8

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.

Potentially problematic release.


This version of wowok_agent might be problematic. Click here for more details.

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