wowok_agent 2.1.9 → 2.1.17
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.
- package/README.md +2 -8
- package/dist/index.d.ts +14321 -3
- package/dist/index.js +50 -35
- package/dist/schema/call/allocation.d.ts +1426 -4
- package/dist/schema/call/arbitration.d.ts +1948 -13
- package/dist/schema/call/base.d.ts +7289 -20
- package/dist/schema/call/contact.d.ts +953 -4
- package/dist/schema/call/demand.d.ts +1248 -5
- package/dist/schema/call/guard.d.ts +943 -7
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +3952 -13
- package/dist/schema/call/order.d.ts +1048 -5
- package/dist/schema/call/payment.d.ts +400 -3
- package/dist/schema/call/permission.d.ts +2991 -13
- package/dist/schema/call/personal.d.ts +1458 -13
- package/dist/schema/call/progress.d.ts +907 -6
- package/dist/schema/call/proof.d.ts +316 -3
- package/dist/schema/call/repository.d.ts +2346 -15
- package/dist/schema/call/reward.d.ts +1238 -7
- package/dist/schema/call/service.d.ts +3654 -7
- package/dist/schema/call/treasury.d.ts +2459 -6
- package/dist/schema/common/index.d.ts +754 -33
- package/dist/schema/common/index.js +5 -1
- package/dist/schema/local/index.d.ts +7784 -54
- package/dist/schema/local/wip.d.ts +773 -25
- package/dist/schema/messenger/index.d.ts +3655 -31
- package/dist/schema/messenger/index.js +4 -4
- package/dist/schema/query/index.d.ts +47258 -128
- package/dist/schema/query/index.js +3 -61
- package/dist/schema/utils/guard-query-utils.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,7 +1,404 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const RevenueSchema:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const RevenueSchema: z.ZodObject<{
|
|
3
|
+
recipient: z.ZodObject<{
|
|
4
|
+
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
name_or_address?: string | undefined;
|
|
8
|
+
local_mark_first?: boolean | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
name_or_address?: string | undefined;
|
|
11
|
+
local_mark_first?: boolean | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
amount: z.ZodUnion<[z.ZodObject<{
|
|
14
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
balance: string | number;
|
|
17
|
+
}, {
|
|
18
|
+
balance: string | number;
|
|
19
|
+
}>, z.ZodObject<{
|
|
20
|
+
coin: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
coin: string;
|
|
23
|
+
}, {
|
|
24
|
+
coin: string;
|
|
25
|
+
}>]>;
|
|
26
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
amount: {
|
|
28
|
+
balance: string | number;
|
|
29
|
+
} | {
|
|
30
|
+
coin: string;
|
|
31
|
+
};
|
|
32
|
+
recipient: {
|
|
33
|
+
name_or_address?: string | undefined;
|
|
34
|
+
local_mark_first?: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
amount: {
|
|
38
|
+
balance: string | number;
|
|
39
|
+
} | {
|
|
40
|
+
coin: string;
|
|
41
|
+
};
|
|
42
|
+
recipient: {
|
|
43
|
+
name_or_address?: string | undefined;
|
|
44
|
+
local_mark_first?: boolean | undefined;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
export declare const CallPayment_DataSchema: z.ZodObject<{
|
|
48
|
+
object: z.ZodObject<{
|
|
49
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51
|
+
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
} & {
|
|
54
|
+
type_parameter: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
type_parameter: string;
|
|
57
|
+
name?: string | undefined;
|
|
58
|
+
replaceExistName?: boolean | undefined;
|
|
59
|
+
tags?: string[] | undefined;
|
|
60
|
+
onChain?: boolean | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
replaceExistName?: boolean | undefined;
|
|
64
|
+
tags?: string[] | undefined;
|
|
65
|
+
onChain?: boolean | undefined;
|
|
66
|
+
type_parameter?: string | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
revenue: z.ZodArray<z.ZodObject<{
|
|
69
|
+
recipient: z.ZodObject<{
|
|
70
|
+
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
71
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
}, "strict", z.ZodTypeAny, {
|
|
73
|
+
name_or_address?: string | undefined;
|
|
74
|
+
local_mark_first?: boolean | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
name_or_address?: string | undefined;
|
|
77
|
+
local_mark_first?: boolean | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
amount: z.ZodUnion<[z.ZodObject<{
|
|
80
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
balance: string | number;
|
|
83
|
+
}, {
|
|
84
|
+
balance: string | number;
|
|
85
|
+
}>, z.ZodObject<{
|
|
86
|
+
coin: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
coin: string;
|
|
89
|
+
}, {
|
|
90
|
+
coin: string;
|
|
91
|
+
}>]>;
|
|
92
|
+
}, "strict", z.ZodTypeAny, {
|
|
93
|
+
amount: {
|
|
94
|
+
balance: string | number;
|
|
95
|
+
} | {
|
|
96
|
+
coin: string;
|
|
97
|
+
};
|
|
98
|
+
recipient: {
|
|
99
|
+
name_or_address?: string | undefined;
|
|
100
|
+
local_mark_first?: boolean | undefined;
|
|
101
|
+
};
|
|
102
|
+
}, {
|
|
103
|
+
amount: {
|
|
104
|
+
balance: string | number;
|
|
105
|
+
} | {
|
|
106
|
+
coin: string;
|
|
107
|
+
};
|
|
108
|
+
recipient: {
|
|
109
|
+
name_or_address?: string | undefined;
|
|
110
|
+
local_mark_first?: boolean | undefined;
|
|
111
|
+
};
|
|
112
|
+
}>, "many">;
|
|
113
|
+
info: z.ZodObject<{
|
|
114
|
+
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
115
|
+
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
116
|
+
remark: z.ZodString;
|
|
117
|
+
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
index: string | number;
|
|
120
|
+
remark: string;
|
|
121
|
+
for_object?: string | null | undefined;
|
|
122
|
+
for_guard?: string | null | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
index: string | number;
|
|
125
|
+
remark: string;
|
|
126
|
+
for_object?: string | null | undefined;
|
|
127
|
+
for_guard?: string | null | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
}, "strict", z.ZodTypeAny, {
|
|
130
|
+
object: {
|
|
131
|
+
type_parameter: string;
|
|
132
|
+
name?: string | undefined;
|
|
133
|
+
replaceExistName?: boolean | undefined;
|
|
134
|
+
tags?: string[] | undefined;
|
|
135
|
+
onChain?: boolean | undefined;
|
|
136
|
+
};
|
|
137
|
+
info: {
|
|
138
|
+
index: string | number;
|
|
139
|
+
remark: string;
|
|
140
|
+
for_object?: string | null | undefined;
|
|
141
|
+
for_guard?: string | null | undefined;
|
|
142
|
+
};
|
|
143
|
+
revenue: {
|
|
144
|
+
amount: {
|
|
145
|
+
balance: string | number;
|
|
146
|
+
} | {
|
|
147
|
+
coin: string;
|
|
148
|
+
};
|
|
149
|
+
recipient: {
|
|
150
|
+
name_or_address?: string | undefined;
|
|
151
|
+
local_mark_first?: boolean | undefined;
|
|
152
|
+
};
|
|
153
|
+
}[];
|
|
154
|
+
}, {
|
|
155
|
+
object: {
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
replaceExistName?: boolean | undefined;
|
|
158
|
+
tags?: string[] | undefined;
|
|
159
|
+
onChain?: boolean | undefined;
|
|
160
|
+
type_parameter?: string | undefined;
|
|
161
|
+
};
|
|
162
|
+
info: {
|
|
163
|
+
index: string | number;
|
|
164
|
+
remark: string;
|
|
165
|
+
for_object?: string | null | undefined;
|
|
166
|
+
for_guard?: string | null | undefined;
|
|
167
|
+
};
|
|
168
|
+
revenue: {
|
|
169
|
+
amount: {
|
|
170
|
+
balance: string | number;
|
|
171
|
+
} | {
|
|
172
|
+
coin: string;
|
|
173
|
+
};
|
|
174
|
+
recipient: {
|
|
175
|
+
name_or_address?: string | undefined;
|
|
176
|
+
local_mark_first?: boolean | undefined;
|
|
177
|
+
};
|
|
178
|
+
}[];
|
|
179
|
+
}>;
|
|
180
|
+
export declare const CallPayment_InputSchema: z.ZodObject<{
|
|
181
|
+
data: z.ZodObject<{
|
|
182
|
+
object: z.ZodObject<{
|
|
183
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
184
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
|
+
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
} & {
|
|
188
|
+
type_parameter: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
189
|
+
}, "strict", z.ZodTypeAny, {
|
|
190
|
+
type_parameter: string;
|
|
191
|
+
name?: string | undefined;
|
|
192
|
+
replaceExistName?: boolean | undefined;
|
|
193
|
+
tags?: string[] | undefined;
|
|
194
|
+
onChain?: boolean | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
replaceExistName?: boolean | undefined;
|
|
198
|
+
tags?: string[] | undefined;
|
|
199
|
+
onChain?: boolean | undefined;
|
|
200
|
+
type_parameter?: string | undefined;
|
|
201
|
+
}>;
|
|
202
|
+
revenue: z.ZodArray<z.ZodObject<{
|
|
203
|
+
recipient: z.ZodObject<{
|
|
204
|
+
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
205
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
}, "strict", z.ZodTypeAny, {
|
|
207
|
+
name_or_address?: string | undefined;
|
|
208
|
+
local_mark_first?: boolean | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
name_or_address?: string | undefined;
|
|
211
|
+
local_mark_first?: boolean | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
amount: z.ZodUnion<[z.ZodObject<{
|
|
214
|
+
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
balance: string | number;
|
|
217
|
+
}, {
|
|
218
|
+
balance: string | number;
|
|
219
|
+
}>, z.ZodObject<{
|
|
220
|
+
coin: z.ZodString;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
coin: string;
|
|
223
|
+
}, {
|
|
224
|
+
coin: string;
|
|
225
|
+
}>]>;
|
|
226
|
+
}, "strict", z.ZodTypeAny, {
|
|
227
|
+
amount: {
|
|
228
|
+
balance: string | number;
|
|
229
|
+
} | {
|
|
230
|
+
coin: string;
|
|
231
|
+
};
|
|
232
|
+
recipient: {
|
|
233
|
+
name_or_address?: string | undefined;
|
|
234
|
+
local_mark_first?: boolean | undefined;
|
|
235
|
+
};
|
|
236
|
+
}, {
|
|
237
|
+
amount: {
|
|
238
|
+
balance: string | number;
|
|
239
|
+
} | {
|
|
240
|
+
coin: string;
|
|
241
|
+
};
|
|
242
|
+
recipient: {
|
|
243
|
+
name_or_address?: string | undefined;
|
|
244
|
+
local_mark_first?: boolean | undefined;
|
|
245
|
+
};
|
|
246
|
+
}>, "many">;
|
|
247
|
+
info: z.ZodObject<{
|
|
248
|
+
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
249
|
+
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
250
|
+
remark: z.ZodString;
|
|
251
|
+
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
index: string | number;
|
|
254
|
+
remark: string;
|
|
255
|
+
for_object?: string | null | undefined;
|
|
256
|
+
for_guard?: string | null | undefined;
|
|
257
|
+
}, {
|
|
258
|
+
index: string | number;
|
|
259
|
+
remark: string;
|
|
260
|
+
for_object?: string | null | undefined;
|
|
261
|
+
for_guard?: string | null | undefined;
|
|
262
|
+
}>;
|
|
263
|
+
}, "strict", z.ZodTypeAny, {
|
|
264
|
+
object: {
|
|
265
|
+
type_parameter: string;
|
|
266
|
+
name?: string | undefined;
|
|
267
|
+
replaceExistName?: boolean | undefined;
|
|
268
|
+
tags?: string[] | undefined;
|
|
269
|
+
onChain?: boolean | undefined;
|
|
270
|
+
};
|
|
271
|
+
info: {
|
|
272
|
+
index: string | number;
|
|
273
|
+
remark: string;
|
|
274
|
+
for_object?: string | null | undefined;
|
|
275
|
+
for_guard?: string | null | undefined;
|
|
276
|
+
};
|
|
277
|
+
revenue: {
|
|
278
|
+
amount: {
|
|
279
|
+
balance: string | number;
|
|
280
|
+
} | {
|
|
281
|
+
coin: string;
|
|
282
|
+
};
|
|
283
|
+
recipient: {
|
|
284
|
+
name_or_address?: string | undefined;
|
|
285
|
+
local_mark_first?: boolean | undefined;
|
|
286
|
+
};
|
|
287
|
+
}[];
|
|
288
|
+
}, {
|
|
289
|
+
object: {
|
|
290
|
+
name?: string | undefined;
|
|
291
|
+
replaceExistName?: boolean | undefined;
|
|
292
|
+
tags?: string[] | undefined;
|
|
293
|
+
onChain?: boolean | undefined;
|
|
294
|
+
type_parameter?: string | undefined;
|
|
295
|
+
};
|
|
296
|
+
info: {
|
|
297
|
+
index: string | number;
|
|
298
|
+
remark: string;
|
|
299
|
+
for_object?: string | null | undefined;
|
|
300
|
+
for_guard?: string | null | undefined;
|
|
301
|
+
};
|
|
302
|
+
revenue: {
|
|
303
|
+
amount: {
|
|
304
|
+
balance: string | number;
|
|
305
|
+
} | {
|
|
306
|
+
coin: string;
|
|
307
|
+
};
|
|
308
|
+
recipient: {
|
|
309
|
+
name_or_address?: string | undefined;
|
|
310
|
+
local_mark_first?: boolean | undefined;
|
|
311
|
+
};
|
|
312
|
+
}[];
|
|
313
|
+
}>;
|
|
314
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
316
|
+
permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
317
|
+
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>;
|
|
319
|
+
referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
320
|
+
}, "strict", z.ZodTypeAny, {
|
|
321
|
+
account: string;
|
|
322
|
+
no_cache?: boolean | undefined;
|
|
323
|
+
network?: import("wowok").ENTRYPOINT | undefined;
|
|
324
|
+
permission_guard?: string[] | undefined;
|
|
325
|
+
referrer?: string | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
no_cache?: boolean | undefined;
|
|
328
|
+
network?: import("wowok").ENTRYPOINT | undefined;
|
|
329
|
+
account?: string | undefined;
|
|
330
|
+
permission_guard?: string[] | undefined;
|
|
331
|
+
referrer?: string | undefined;
|
|
332
|
+
}>>;
|
|
333
|
+
}, "strict", z.ZodTypeAny, {
|
|
334
|
+
data: {
|
|
335
|
+
object: {
|
|
336
|
+
type_parameter: string;
|
|
337
|
+
name?: string | undefined;
|
|
338
|
+
replaceExistName?: boolean | undefined;
|
|
339
|
+
tags?: string[] | undefined;
|
|
340
|
+
onChain?: boolean | undefined;
|
|
341
|
+
};
|
|
342
|
+
info: {
|
|
343
|
+
index: string | number;
|
|
344
|
+
remark: string;
|
|
345
|
+
for_object?: string | null | undefined;
|
|
346
|
+
for_guard?: string | null | undefined;
|
|
347
|
+
};
|
|
348
|
+
revenue: {
|
|
349
|
+
amount: {
|
|
350
|
+
balance: string | number;
|
|
351
|
+
} | {
|
|
352
|
+
coin: string;
|
|
353
|
+
};
|
|
354
|
+
recipient: {
|
|
355
|
+
name_or_address?: string | undefined;
|
|
356
|
+
local_mark_first?: boolean | undefined;
|
|
357
|
+
};
|
|
358
|
+
}[];
|
|
359
|
+
};
|
|
360
|
+
env?: {
|
|
361
|
+
account: string;
|
|
362
|
+
no_cache?: boolean | undefined;
|
|
363
|
+
network?: import("wowok").ENTRYPOINT | undefined;
|
|
364
|
+
permission_guard?: string[] | undefined;
|
|
365
|
+
referrer?: string | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
}, {
|
|
368
|
+
data: {
|
|
369
|
+
object: {
|
|
370
|
+
name?: string | undefined;
|
|
371
|
+
replaceExistName?: boolean | undefined;
|
|
372
|
+
tags?: string[] | undefined;
|
|
373
|
+
onChain?: boolean | undefined;
|
|
374
|
+
type_parameter?: string | undefined;
|
|
375
|
+
};
|
|
376
|
+
info: {
|
|
377
|
+
index: string | number;
|
|
378
|
+
remark: string;
|
|
379
|
+
for_object?: string | null | undefined;
|
|
380
|
+
for_guard?: string | null | undefined;
|
|
381
|
+
};
|
|
382
|
+
revenue: {
|
|
383
|
+
amount: {
|
|
384
|
+
balance: string | number;
|
|
385
|
+
} | {
|
|
386
|
+
coin: string;
|
|
387
|
+
};
|
|
388
|
+
recipient: {
|
|
389
|
+
name_or_address?: string | undefined;
|
|
390
|
+
local_mark_first?: boolean | undefined;
|
|
391
|
+
};
|
|
392
|
+
}[];
|
|
393
|
+
};
|
|
394
|
+
env?: {
|
|
395
|
+
no_cache?: boolean | undefined;
|
|
396
|
+
network?: import("wowok").ENTRYPOINT | undefined;
|
|
397
|
+
account?: string | undefined;
|
|
398
|
+
permission_guard?: string[] | undefined;
|
|
399
|
+
referrer?: string | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
}>;
|
|
5
402
|
export type Revenue = z.infer<typeof RevenueSchema>;
|
|
6
403
|
export type CallPayment_Data = z.infer<typeof CallPayment_DataSchema>;
|
|
7
404
|
export type CallPayment_Input = z.infer<typeof CallPayment_InputSchema>;
|