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,781 @@
1
+ import { z } from "zod";
2
+ export declare const WipConstraints: {
3
+ readonly maxImageSize: number;
4
+ readonly maxTotalSize: number;
5
+ readonly maxImageCount: 10;
6
+ readonly maxTextLength: 10000;
7
+ readonly schemaUrl: "https://schema.wip.wowok.net/v1";
8
+ readonly version: "1.0.0";
9
+ };
10
+ export declare const TextFormatSchema: z.ZodUnion<[z.ZodLiteral<"plain">, z.ZodLiteral<"markdown">, z.ZodLiteral<"html">]>;
11
+ export declare const ImageMimeTypeSchema: z.ZodUnion<[z.ZodLiteral<"image/png">, z.ZodLiteral<"image/jpeg">, z.ZodLiteral<"image/gif">, z.ZodLiteral<"image/webp">]>;
12
+ export declare const HashAlgorithmSchema: z.ZodLiteral<"sha256">;
13
+ export declare const SignatureAlgorithmSchema: z.ZodLiteral<"Ed25519">;
14
+ export declare const WipContentSchema: z.ZodObject<{
15
+ text: z.ZodString;
16
+ format: z.ZodUnion<[z.ZodLiteral<"plain">, z.ZodLiteral<"markdown">, z.ZodLiteral<"html">]>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ text: string;
19
+ format: "plain" | "markdown" | "html";
20
+ }, {
21
+ text: string;
22
+ format: "plain" | "markdown" | "html";
23
+ }>;
24
+ export declare const WipMediaSchema: z.ZodObject<{
25
+ id: z.ZodString;
26
+ type: z.ZodUnion<[z.ZodLiteral<"image/png">, z.ZodLiteral<"image/jpeg">, z.ZodLiteral<"image/gif">, z.ZodLiteral<"image/webp">]>;
27
+ data: z.ZodString;
28
+ filename: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
31
+ id: string;
32
+ data: string;
33
+ filename?: string | undefined;
34
+ }, {
35
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
36
+ id: string;
37
+ data: string;
38
+ filename?: string | undefined;
39
+ }>;
40
+ export declare const WipPayloadSchema: z.ZodObject<{
41
+ content: z.ZodObject<{
42
+ text: z.ZodString;
43
+ format: z.ZodUnion<[z.ZodLiteral<"plain">, z.ZodLiteral<"markdown">, z.ZodLiteral<"html">]>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ text: string;
46
+ format: "plain" | "markdown" | "html";
47
+ }, {
48
+ text: string;
49
+ format: "plain" | "markdown" | "html";
50
+ }>;
51
+ media: z.ZodArray<z.ZodObject<{
52
+ id: z.ZodString;
53
+ type: z.ZodUnion<[z.ZodLiteral<"image/png">, z.ZodLiteral<"image/jpeg">, z.ZodLiteral<"image/gif">, z.ZodLiteral<"image/webp">]>;
54
+ data: z.ZodString;
55
+ filename: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
58
+ id: string;
59
+ data: string;
60
+ filename?: string | undefined;
61
+ }, {
62
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
63
+ id: string;
64
+ data: string;
65
+ filename?: string | undefined;
66
+ }>, "many">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ content: {
69
+ text: string;
70
+ format: "plain" | "markdown" | "html";
71
+ };
72
+ media: {
73
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
74
+ id: string;
75
+ data: string;
76
+ filename?: string | undefined;
77
+ }[];
78
+ }, {
79
+ content: {
80
+ text: string;
81
+ format: "plain" | "markdown" | "html";
82
+ };
83
+ media: {
84
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
85
+ id: string;
86
+ data: string;
87
+ filename?: string | undefined;
88
+ }[];
89
+ }>;
90
+ export declare const WipSignatureSchema: z.ZodObject<{
91
+ value: z.ZodString;
92
+ publicKey: z.ZodString;
93
+ algorithm: z.ZodLiteral<"Ed25519">;
94
+ address: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ value: string;
97
+ publicKey: string;
98
+ algorithm: "Ed25519";
99
+ address?: string | undefined;
100
+ }, {
101
+ value: string;
102
+ publicKey: string;
103
+ algorithm: "Ed25519";
104
+ address?: string | undefined;
105
+ }>;
106
+ export declare const WipSignatureArraySchema: z.ZodUnion<[z.ZodObject<{
107
+ value: z.ZodString;
108
+ publicKey: z.ZodString;
109
+ algorithm: z.ZodLiteral<"Ed25519">;
110
+ address: z.ZodOptional<z.ZodString>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ value: string;
113
+ publicKey: string;
114
+ algorithm: "Ed25519";
115
+ address?: string | undefined;
116
+ }, {
117
+ value: string;
118
+ publicKey: string;
119
+ algorithm: "Ed25519";
120
+ address?: string | undefined;
121
+ }>, z.ZodArray<z.ZodObject<{
122
+ value: z.ZodString;
123
+ publicKey: z.ZodString;
124
+ algorithm: z.ZodLiteral<"Ed25519">;
125
+ address: z.ZodOptional<z.ZodString>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ value: string;
128
+ publicKey: string;
129
+ algorithm: "Ed25519";
130
+ address?: string | undefined;
131
+ }, {
132
+ value: string;
133
+ publicKey: string;
134
+ algorithm: "Ed25519";
135
+ address?: string | undefined;
136
+ }>, "many">]>;
137
+ export declare const WipMetaSchema: z.ZodObject<{
138
+ type: z.ZodLiteral<"wip">;
139
+ version: z.ZodString;
140
+ created: z.ZodString;
141
+ hash: z.ZodString;
142
+ algorithm: z.ZodLiteral<"sha256">;
143
+ signature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
144
+ value: z.ZodString;
145
+ publicKey: z.ZodString;
146
+ algorithm: z.ZodLiteral<"Ed25519">;
147
+ address: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ value: string;
150
+ publicKey: string;
151
+ algorithm: "Ed25519";
152
+ address?: string | undefined;
153
+ }, {
154
+ value: string;
155
+ publicKey: string;
156
+ algorithm: "Ed25519";
157
+ address?: string | undefined;
158
+ }>, z.ZodArray<z.ZodObject<{
159
+ value: z.ZodString;
160
+ publicKey: z.ZodString;
161
+ algorithm: z.ZodLiteral<"Ed25519">;
162
+ address: z.ZodOptional<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ value: string;
165
+ publicKey: string;
166
+ algorithm: "Ed25519";
167
+ address?: string | undefined;
168
+ }, {
169
+ value: string;
170
+ publicKey: string;
171
+ algorithm: "Ed25519";
172
+ address?: string | undefined;
173
+ }>, "many">]>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "wip";
176
+ version: string;
177
+ algorithm: "sha256";
178
+ created: string;
179
+ hash: string;
180
+ signature?: {
181
+ value: string;
182
+ publicKey: string;
183
+ algorithm: "Ed25519";
184
+ address?: string | undefined;
185
+ } | {
186
+ value: string;
187
+ publicKey: string;
188
+ algorithm: "Ed25519";
189
+ address?: string | undefined;
190
+ }[] | undefined;
191
+ }, {
192
+ type: "wip";
193
+ version: string;
194
+ algorithm: "sha256";
195
+ created: string;
196
+ hash: string;
197
+ signature?: {
198
+ value: string;
199
+ publicKey: string;
200
+ algorithm: "Ed25519";
201
+ address?: string | undefined;
202
+ } | {
203
+ value: string;
204
+ publicKey: string;
205
+ algorithm: "Ed25519";
206
+ address?: string | undefined;
207
+ }[] | undefined;
208
+ }>;
209
+ export declare const WipFileSchema: z.ZodObject<{
210
+ wip: z.ZodString;
211
+ payload: z.ZodObject<{
212
+ content: z.ZodObject<{
213
+ text: z.ZodString;
214
+ format: z.ZodUnion<[z.ZodLiteral<"plain">, z.ZodLiteral<"markdown">, z.ZodLiteral<"html">]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ text: string;
217
+ format: "plain" | "markdown" | "html";
218
+ }, {
219
+ text: string;
220
+ format: "plain" | "markdown" | "html";
221
+ }>;
222
+ media: z.ZodArray<z.ZodObject<{
223
+ id: z.ZodString;
224
+ type: z.ZodUnion<[z.ZodLiteral<"image/png">, z.ZodLiteral<"image/jpeg">, z.ZodLiteral<"image/gif">, z.ZodLiteral<"image/webp">]>;
225
+ data: z.ZodString;
226
+ filename: z.ZodOptional<z.ZodString>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
229
+ id: string;
230
+ data: string;
231
+ filename?: string | undefined;
232
+ }, {
233
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
234
+ id: string;
235
+ data: string;
236
+ filename?: string | undefined;
237
+ }>, "many">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ content: {
240
+ text: string;
241
+ format: "plain" | "markdown" | "html";
242
+ };
243
+ media: {
244
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
245
+ id: string;
246
+ data: string;
247
+ filename?: string | undefined;
248
+ }[];
249
+ }, {
250
+ content: {
251
+ text: string;
252
+ format: "plain" | "markdown" | "html";
253
+ };
254
+ media: {
255
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
256
+ id: string;
257
+ data: string;
258
+ filename?: string | undefined;
259
+ }[];
260
+ }>;
261
+ meta: z.ZodObject<{
262
+ type: z.ZodLiteral<"wip">;
263
+ version: z.ZodString;
264
+ created: z.ZodString;
265
+ hash: z.ZodString;
266
+ algorithm: z.ZodLiteral<"sha256">;
267
+ signature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
268
+ value: z.ZodString;
269
+ publicKey: z.ZodString;
270
+ algorithm: z.ZodLiteral<"Ed25519">;
271
+ address: z.ZodOptional<z.ZodString>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ value: string;
274
+ publicKey: string;
275
+ algorithm: "Ed25519";
276
+ address?: string | undefined;
277
+ }, {
278
+ value: string;
279
+ publicKey: string;
280
+ algorithm: "Ed25519";
281
+ address?: string | undefined;
282
+ }>, z.ZodArray<z.ZodObject<{
283
+ value: z.ZodString;
284
+ publicKey: z.ZodString;
285
+ algorithm: z.ZodLiteral<"Ed25519">;
286
+ address: z.ZodOptional<z.ZodString>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ value: string;
289
+ publicKey: string;
290
+ algorithm: "Ed25519";
291
+ address?: string | undefined;
292
+ }, {
293
+ value: string;
294
+ publicKey: string;
295
+ algorithm: "Ed25519";
296
+ address?: string | undefined;
297
+ }>, "many">]>>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ type: "wip";
300
+ version: string;
301
+ algorithm: "sha256";
302
+ created: string;
303
+ hash: string;
304
+ signature?: {
305
+ value: string;
306
+ publicKey: string;
307
+ algorithm: "Ed25519";
308
+ address?: string | undefined;
309
+ } | {
310
+ value: string;
311
+ publicKey: string;
312
+ algorithm: "Ed25519";
313
+ address?: string | undefined;
314
+ }[] | undefined;
315
+ }, {
316
+ type: "wip";
317
+ version: string;
318
+ algorithm: "sha256";
319
+ created: string;
320
+ hash: string;
321
+ signature?: {
322
+ value: string;
323
+ publicKey: string;
324
+ algorithm: "Ed25519";
325
+ address?: string | undefined;
326
+ } | {
327
+ value: string;
328
+ publicKey: string;
329
+ algorithm: "Ed25519";
330
+ address?: string | undefined;
331
+ }[] | undefined;
332
+ }>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ wip: string;
335
+ payload: {
336
+ content: {
337
+ text: string;
338
+ format: "plain" | "markdown" | "html";
339
+ };
340
+ media: {
341
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
342
+ id: string;
343
+ data: string;
344
+ filename?: string | undefined;
345
+ }[];
346
+ };
347
+ meta: {
348
+ type: "wip";
349
+ version: string;
350
+ algorithm: "sha256";
351
+ created: string;
352
+ hash: string;
353
+ signature?: {
354
+ value: string;
355
+ publicKey: string;
356
+ algorithm: "Ed25519";
357
+ address?: string | undefined;
358
+ } | {
359
+ value: string;
360
+ publicKey: string;
361
+ algorithm: "Ed25519";
362
+ address?: string | undefined;
363
+ }[] | undefined;
364
+ };
365
+ }, {
366
+ wip: string;
367
+ payload: {
368
+ content: {
369
+ text: string;
370
+ format: "plain" | "markdown" | "html";
371
+ };
372
+ media: {
373
+ type: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
374
+ id: string;
375
+ data: string;
376
+ filename?: string | undefined;
377
+ }[];
378
+ };
379
+ meta: {
380
+ type: "wip";
381
+ version: string;
382
+ algorithm: "sha256";
383
+ created: string;
384
+ hash: string;
385
+ signature?: {
386
+ value: string;
387
+ publicKey: string;
388
+ algorithm: "Ed25519";
389
+ address?: string | undefined;
390
+ } | {
391
+ value: string;
392
+ publicKey: string;
393
+ algorithm: "Ed25519";
394
+ address?: string | undefined;
395
+ }[] | undefined;
396
+ };
397
+ }>;
398
+ export declare const ImageSourceSchema: z.ZodObject<{
399
+ source: z.ZodString;
400
+ id: z.ZodOptional<z.ZodString>;
401
+ filename: z.ZodOptional<z.ZodString>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ source: string;
404
+ id?: string | undefined;
405
+ filename?: string | undefined;
406
+ }, {
407
+ source: string;
408
+ id?: string | undefined;
409
+ filename?: string | undefined;
410
+ }>;
411
+ export declare const WipGenerationOptionsSchema: z.ZodObject<{
412
+ markdown_text: z.ZodString;
413
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ source: z.ZodString;
415
+ id: z.ZodOptional<z.ZodString>;
416
+ filename: z.ZodOptional<z.ZodString>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ source: string;
419
+ id?: string | undefined;
420
+ filename?: string | undefined;
421
+ }, {
422
+ source: string;
423
+ id?: string | undefined;
424
+ filename?: string | undefined;
425
+ }>, "many">>;
426
+ account: z.ZodOptional<z.ZodString>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ markdown_text: string;
429
+ images?: {
430
+ source: string;
431
+ id?: string | undefined;
432
+ filename?: string | undefined;
433
+ }[] | undefined;
434
+ account?: string | undefined;
435
+ }, {
436
+ markdown_text: string;
437
+ images?: {
438
+ source: string;
439
+ id?: string | undefined;
440
+ filename?: string | undefined;
441
+ }[] | undefined;
442
+ account?: string | undefined;
443
+ }>;
444
+ export declare const WipSignatureVerificationSchema: z.ZodObject<{
445
+ publicKey: z.ZodString;
446
+ address: z.ZodOptional<z.ZodString>;
447
+ valid: z.ZodBoolean;
448
+ }, "strip", z.ZodTypeAny, {
449
+ valid: boolean;
450
+ publicKey: string;
451
+ address?: string | undefined;
452
+ }, {
453
+ valid: boolean;
454
+ publicKey: string;
455
+ address?: string | undefined;
456
+ }>;
457
+ export declare const WipVerificationResultSchema: z.ZodObject<{
458
+ valid: z.ZodBoolean;
459
+ error: z.ZodOptional<z.ZodString>;
460
+ hashValid: z.ZodBoolean;
461
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
462
+ hasSignature: z.ZodBoolean;
463
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
464
+ publicKey: z.ZodString;
465
+ address: z.ZodOptional<z.ZodString>;
466
+ valid: z.ZodBoolean;
467
+ }, "strip", z.ZodTypeAny, {
468
+ valid: boolean;
469
+ publicKey: string;
470
+ address?: string | undefined;
471
+ }, {
472
+ valid: boolean;
473
+ publicKey: string;
474
+ address?: string | undefined;
475
+ }>, "many">>;
476
+ }, "strip", z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.objectOutputType<{
477
+ valid: z.ZodBoolean;
478
+ error: z.ZodOptional<z.ZodString>;
479
+ hashValid: z.ZodBoolean;
480
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
481
+ hasSignature: z.ZodBoolean;
482
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
483
+ publicKey: z.ZodString;
484
+ address: z.ZodOptional<z.ZodString>;
485
+ valid: z.ZodBoolean;
486
+ }, "strip", z.ZodTypeAny, {
487
+ valid: boolean;
488
+ publicKey: string;
489
+ address?: string | undefined;
490
+ }, {
491
+ valid: boolean;
492
+ publicKey: string;
493
+ address?: string | undefined;
494
+ }>, "many">>;
495
+ }, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, "strip">, z.objectInputType<{
496
+ valid: z.ZodBoolean;
497
+ error: z.ZodOptional<z.ZodString>;
498
+ hashValid: z.ZodBoolean;
499
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
500
+ hasSignature: z.ZodBoolean;
501
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
+ publicKey: z.ZodString;
503
+ address: z.ZodOptional<z.ZodString>;
504
+ valid: z.ZodBoolean;
505
+ }, "strip", z.ZodTypeAny, {
506
+ valid: boolean;
507
+ publicKey: string;
508
+ address?: string | undefined;
509
+ }, {
510
+ valid: boolean;
511
+ publicKey: string;
512
+ address?: string | undefined;
513
+ }>, "many">>;
514
+ }, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, "strip">>;
515
+ export declare const WipToHtmlOptionsSchema: z.ZodObject<{
516
+ title: z.ZodOptional<z.ZodString>;
517
+ theme: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
518
+ outputPath: z.ZodOptional<z.ZodString>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ title?: string | undefined;
521
+ theme?: "light" | "dark" | undefined;
522
+ outputPath?: string | undefined;
523
+ }, {
524
+ title?: string | undefined;
525
+ theme?: "light" | "dark" | undefined;
526
+ outputPath?: string | undefined;
527
+ }>;
528
+ export declare const GenerateWip_InputSchema: z.ZodObject<{
529
+ options: z.ZodObject<{
530
+ markdown_text: z.ZodString;
531
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
532
+ source: z.ZodString;
533
+ id: z.ZodOptional<z.ZodString>;
534
+ filename: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ source: string;
537
+ id?: string | undefined;
538
+ filename?: string | undefined;
539
+ }, {
540
+ source: string;
541
+ id?: string | undefined;
542
+ filename?: string | undefined;
543
+ }>, "many">>;
544
+ account: z.ZodOptional<z.ZodString>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ markdown_text: string;
547
+ images?: {
548
+ source: string;
549
+ id?: string | undefined;
550
+ filename?: string | undefined;
551
+ }[] | undefined;
552
+ account?: string | undefined;
553
+ }, {
554
+ markdown_text: string;
555
+ images?: {
556
+ source: string;
557
+ id?: string | undefined;
558
+ filename?: string | undefined;
559
+ }[] | undefined;
560
+ account?: string | undefined;
561
+ }>;
562
+ outputPath: z.ZodString;
563
+ }, "strip", z.ZodTypeAny, {
564
+ options: {
565
+ markdown_text: string;
566
+ images?: {
567
+ source: string;
568
+ id?: string | undefined;
569
+ filename?: string | undefined;
570
+ }[] | undefined;
571
+ account?: string | undefined;
572
+ };
573
+ outputPath: string;
574
+ }, {
575
+ options: {
576
+ markdown_text: string;
577
+ images?: {
578
+ source: string;
579
+ id?: string | undefined;
580
+ filename?: string | undefined;
581
+ }[] | undefined;
582
+ account?: string | undefined;
583
+ };
584
+ outputPath: string;
585
+ }>;
586
+ export declare const VerifyWip_InputSchema: z.ZodObject<{
587
+ wipFilePath: z.ZodString;
588
+ hash_equal: z.ZodOptional<z.ZodString>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ wipFilePath: string;
591
+ hash_equal?: string | undefined;
592
+ }, {
593
+ wipFilePath: string;
594
+ hash_equal?: string | undefined;
595
+ }>;
596
+ export declare const SignWip_InputSchema: z.ZodObject<{
597
+ wipFilePath: z.ZodString;
598
+ account: z.ZodOptional<z.ZodString>;
599
+ outputPath: z.ZodOptional<z.ZodString>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ wipFilePath: string;
602
+ account?: string | undefined;
603
+ outputPath?: string | undefined;
604
+ }, {
605
+ wipFilePath: string;
606
+ account?: string | undefined;
607
+ outputPath?: string | undefined;
608
+ }>;
609
+ export declare const Wip2Html_InputSchema: z.ZodObject<{
610
+ wipPath: z.ZodString;
611
+ options: z.ZodOptional<z.ZodObject<{
612
+ title: z.ZodOptional<z.ZodString>;
613
+ theme: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
614
+ outputPath: z.ZodOptional<z.ZodString>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ title?: string | undefined;
617
+ theme?: "light" | "dark" | undefined;
618
+ outputPath?: string | undefined;
619
+ }, {
620
+ title?: string | undefined;
621
+ theme?: "light" | "dark" | undefined;
622
+ outputPath?: string | undefined;
623
+ }>>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ wipPath: string;
626
+ options?: {
627
+ title?: string | undefined;
628
+ theme?: "light" | "dark" | undefined;
629
+ outputPath?: string | undefined;
630
+ } | undefined;
631
+ }, {
632
+ wipPath: string;
633
+ options?: {
634
+ title?: string | undefined;
635
+ theme?: "light" | "dark" | undefined;
636
+ outputPath?: string | undefined;
637
+ } | undefined;
638
+ }>;
639
+ export declare const GenerateWip_OutputSchema: z.ZodObject<{
640
+ filePath: z.ZodString;
641
+ }, "strip", z.ZodTypeAny, {
642
+ filePath: string;
643
+ }, {
644
+ filePath: string;
645
+ }>;
646
+ export declare const VerifyWip_OutputSchema: z.ZodObject<{
647
+ valid: z.ZodBoolean;
648
+ error: z.ZodOptional<z.ZodString>;
649
+ hashValid: z.ZodBoolean;
650
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
651
+ hasSignature: z.ZodBoolean;
652
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
653
+ publicKey: z.ZodString;
654
+ address: z.ZodOptional<z.ZodString>;
655
+ valid: z.ZodBoolean;
656
+ }, "strip", z.ZodTypeAny, {
657
+ valid: boolean;
658
+ publicKey: string;
659
+ address?: string | undefined;
660
+ }, {
661
+ valid: boolean;
662
+ publicKey: string;
663
+ address?: string | undefined;
664
+ }>, "many">>;
665
+ }, "strip", z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.objectOutputType<{
666
+ valid: z.ZodBoolean;
667
+ error: z.ZodOptional<z.ZodString>;
668
+ hashValid: z.ZodBoolean;
669
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
670
+ hasSignature: z.ZodBoolean;
671
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
672
+ publicKey: z.ZodString;
673
+ address: z.ZodOptional<z.ZodString>;
674
+ valid: z.ZodBoolean;
675
+ }, "strip", z.ZodTypeAny, {
676
+ valid: boolean;
677
+ publicKey: string;
678
+ address?: string | undefined;
679
+ }, {
680
+ valid: boolean;
681
+ publicKey: string;
682
+ address?: string | undefined;
683
+ }>, "many">>;
684
+ }, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, "strip">, z.objectInputType<{
685
+ valid: z.ZodBoolean;
686
+ error: z.ZodOptional<z.ZodString>;
687
+ hashValid: z.ZodBoolean;
688
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
689
+ hasSignature: z.ZodBoolean;
690
+ signatures: z.ZodOptional<z.ZodArray<z.ZodObject<{
691
+ publicKey: z.ZodString;
692
+ address: z.ZodOptional<z.ZodString>;
693
+ valid: z.ZodBoolean;
694
+ }, "strip", z.ZodTypeAny, {
695
+ valid: boolean;
696
+ publicKey: string;
697
+ address?: string | undefined;
698
+ }, {
699
+ valid: boolean;
700
+ publicKey: string;
701
+ address?: string | undefined;
702
+ }>, "many">>;
703
+ }, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, "strip">>;
704
+ export declare const SignWip_OutputSchema: z.ZodObject<{
705
+ filePath: z.ZodString;
706
+ }, "strip", z.ZodTypeAny, {
707
+ filePath: string;
708
+ }, {
709
+ filePath: string;
710
+ }>;
711
+ export declare const Wip2Html_OutputSchema: z.ZodObject<{
712
+ html: z.ZodOptional<z.ZodString>;
713
+ filePath: z.ZodOptional<z.ZodString>;
714
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ html?: string | undefined;
717
+ filePath?: string | undefined;
718
+ files?: string[] | undefined;
719
+ }, {
720
+ html?: string | undefined;
721
+ filePath?: string | undefined;
722
+ files?: string[] | undefined;
723
+ }>;
724
+ export declare const WipOperationOutputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
725
+ type: z.ZodLiteral<"generate">;
726
+ filePath: z.ZodString;
727
+ }, "strip", z.ZodTypeAny, {
728
+ type: "generate";
729
+ filePath: string;
730
+ }, {
731
+ type: "generate";
732
+ filePath: string;
733
+ }>, z.ZodObject<{
734
+ type: z.ZodLiteral<"verify">;
735
+ valid: z.ZodBoolean;
736
+ error: z.ZodOptional<z.ZodString>;
737
+ hashValid: z.ZodBoolean;
738
+ signatureValid: z.ZodOptional<z.ZodBoolean>;
739
+ hasSignature: z.ZodBoolean;
740
+ signatures: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ valid: boolean;
743
+ type: "verify";
744
+ hashValid: boolean;
745
+ hasSignature: boolean;
746
+ error?: string | undefined;
747
+ signatureValid?: boolean | undefined;
748
+ signatures?: any[] | undefined;
749
+ }, {
750
+ valid: boolean;
751
+ type: "verify";
752
+ hashValid: boolean;
753
+ hasSignature: boolean;
754
+ error?: string | undefined;
755
+ signatureValid?: boolean | undefined;
756
+ signatures?: any[] | undefined;
757
+ }>, z.ZodObject<{
758
+ type: z.ZodLiteral<"sign">;
759
+ filePath: z.ZodString;
760
+ }, "strip", z.ZodTypeAny, {
761
+ type: "sign";
762
+ filePath: string;
763
+ }, {
764
+ type: "sign";
765
+ filePath: string;
766
+ }>, z.ZodObject<{
767
+ type: z.ZodLiteral<"wip2html">;
768
+ html: z.ZodOptional<z.ZodString>;
769
+ filePath: z.ZodOptional<z.ZodString>;
770
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ type: "wip2html";
773
+ html?: string | undefined;
774
+ filePath?: string | undefined;
775
+ files?: string[] | undefined;
776
+ }, {
777
+ type: "wip2html";
778
+ html?: string | undefined;
779
+ filePath?: string | undefined;
780
+ files?: string[] | undefined;
781
+ }>]>;