wowok_agent 2.1.38 → 2.1.40
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/dist/index.d.ts +45 -2
- package/dist/index.js +1 -1319
- package/dist/schema/call/allocation.js +1 -27
- package/dist/schema/call/arbitration.js +1 -106
- package/dist/schema/call/base.js +1 -152
- package/dist/schema/call/contact.js +1 -41
- package/dist/schema/call/demand.js +1 -51
- package/dist/schema/call/guard.d.ts +6 -6
- package/dist/schema/call/guard.js +1 -67
- package/dist/schema/call/handler.d.ts +0 -45
- package/dist/schema/call/handler.js +1 -230
- package/dist/schema/call/index.js +1 -19
- package/dist/schema/call/machine.js +1 -164
- package/dist/schema/call/order.js +1 -39
- package/dist/schema/call/payment.js +1 -20
- package/dist/schema/call/permission.js +1 -118
- package/dist/schema/call/personal.js +1 -81
- package/dist/schema/call/progress.js +1 -28
- package/dist/schema/call/proof.js +1 -27
- package/dist/schema/call/repository.js +1 -85
- package/dist/schema/call/reward.d.ts +12 -0
- package/dist/schema/call/reward.js +1 -46
- package/dist/schema/call/service.js +1 -88
- package/dist/schema/call/treasury.d.ts +84 -0
- package/dist/schema/call/treasury.js +1 -76
- package/dist/schema/common/index.js +1 -395
- package/dist/schema/index.js +1 -8
- package/dist/schema/local/index.js +1 -913
- package/dist/schema/local/wip.js +1 -230
- package/dist/schema/messenger/index.d.ts +4 -6
- package/dist/schema/messenger/index.js +1 -479
- package/dist/schema/query/index.d.ts +155 -0
- package/dist/schema/query/index.js +1 -1256
- package/dist/schema/utils/guard-parser.js +1 -410
- package/dist/schema/utils/guard-query-utils.js +1 -22
- package/dist/schema/utils/node-parser.d.ts +0 -14
- package/dist/schema/utils/node-parser.js +1 -382
- package/dist/schema/utils/permission-index-utils.js +1 -10
- package/package.json +6 -3
|
@@ -191,48 +191,58 @@ export declare const ExternalDepositGuardSchema: z.ZodDiscriminatedUnion<"op", [
|
|
|
191
191
|
guards: z.ZodArray<z.ZodObject<{
|
|
192
192
|
guard: z.ZodString;
|
|
193
193
|
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
194
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
194
195
|
}, "strip", z.ZodTypeAny, {
|
|
195
196
|
guard: string;
|
|
196
197
|
identifier?: number | null | undefined;
|
|
198
|
+
store_from_id?: number | null | undefined;
|
|
197
199
|
}, {
|
|
198
200
|
guard: string;
|
|
199
201
|
identifier?: number | null | undefined;
|
|
202
|
+
store_from_id?: number | null | undefined;
|
|
200
203
|
}>, "many">;
|
|
201
204
|
}, "strict", z.ZodTypeAny, {
|
|
202
205
|
op: "add";
|
|
203
206
|
guards: {
|
|
204
207
|
guard: string;
|
|
205
208
|
identifier?: number | null | undefined;
|
|
209
|
+
store_from_id?: number | null | undefined;
|
|
206
210
|
}[];
|
|
207
211
|
}, {
|
|
208
212
|
op: "add";
|
|
209
213
|
guards: {
|
|
210
214
|
guard: string;
|
|
211
215
|
identifier?: number | null | undefined;
|
|
216
|
+
store_from_id?: number | null | undefined;
|
|
212
217
|
}[];
|
|
213
218
|
}>, z.ZodObject<{
|
|
214
219
|
op: z.ZodLiteral<"set">;
|
|
215
220
|
guards: z.ZodArray<z.ZodObject<{
|
|
216
221
|
guard: z.ZodString;
|
|
217
222
|
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
223
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
218
224
|
}, "strip", z.ZodTypeAny, {
|
|
219
225
|
guard: string;
|
|
220
226
|
identifier?: number | null | undefined;
|
|
227
|
+
store_from_id?: number | null | undefined;
|
|
221
228
|
}, {
|
|
222
229
|
guard: string;
|
|
223
230
|
identifier?: number | null | undefined;
|
|
231
|
+
store_from_id?: number | null | undefined;
|
|
224
232
|
}>, "many">;
|
|
225
233
|
}, "strict", z.ZodTypeAny, {
|
|
226
234
|
op: "set";
|
|
227
235
|
guards: {
|
|
228
236
|
guard: string;
|
|
229
237
|
identifier?: number | null | undefined;
|
|
238
|
+
store_from_id?: number | null | undefined;
|
|
230
239
|
}[];
|
|
231
240
|
}, {
|
|
232
241
|
op: "set";
|
|
233
242
|
guards: {
|
|
234
243
|
guard: string;
|
|
235
244
|
identifier?: number | null | undefined;
|
|
245
|
+
store_from_id?: number | null | undefined;
|
|
236
246
|
}[];
|
|
237
247
|
}>, z.ZodObject<{
|
|
238
248
|
op: z.ZodLiteral<"remove">;
|
|
@@ -255,48 +265,58 @@ export declare const ExternalWithdrawGuardSchema: z.ZodDiscriminatedUnion<"op",
|
|
|
255
265
|
guards: z.ZodArray<z.ZodObject<{
|
|
256
266
|
guard: z.ZodString;
|
|
257
267
|
identifier: z.ZodNumber;
|
|
268
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
258
269
|
}, "strip", z.ZodTypeAny, {
|
|
259
270
|
identifier: number;
|
|
260
271
|
guard: string;
|
|
272
|
+
store_from_id?: number | null | undefined;
|
|
261
273
|
}, {
|
|
262
274
|
identifier: number;
|
|
263
275
|
guard: string;
|
|
276
|
+
store_from_id?: number | null | undefined;
|
|
264
277
|
}>, "many">;
|
|
265
278
|
}, "strict", z.ZodTypeAny, {
|
|
266
279
|
op: "add";
|
|
267
280
|
guards: {
|
|
268
281
|
identifier: number;
|
|
269
282
|
guard: string;
|
|
283
|
+
store_from_id?: number | null | undefined;
|
|
270
284
|
}[];
|
|
271
285
|
}, {
|
|
272
286
|
op: "add";
|
|
273
287
|
guards: {
|
|
274
288
|
identifier: number;
|
|
275
289
|
guard: string;
|
|
290
|
+
store_from_id?: number | null | undefined;
|
|
276
291
|
}[];
|
|
277
292
|
}>, z.ZodObject<{
|
|
278
293
|
op: z.ZodLiteral<"set">;
|
|
279
294
|
guards: z.ZodArray<z.ZodObject<{
|
|
280
295
|
guard: z.ZodString;
|
|
281
296
|
identifier: z.ZodNumber;
|
|
297
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
282
298
|
}, "strip", z.ZodTypeAny, {
|
|
283
299
|
identifier: number;
|
|
284
300
|
guard: string;
|
|
301
|
+
store_from_id?: number | null | undefined;
|
|
285
302
|
}, {
|
|
286
303
|
identifier: number;
|
|
287
304
|
guard: string;
|
|
305
|
+
store_from_id?: number | null | undefined;
|
|
288
306
|
}>, "many">;
|
|
289
307
|
}, "strict", z.ZodTypeAny, {
|
|
290
308
|
op: "set";
|
|
291
309
|
guards: {
|
|
292
310
|
identifier: number;
|
|
293
311
|
guard: string;
|
|
312
|
+
store_from_id?: number | null | undefined;
|
|
294
313
|
}[];
|
|
295
314
|
}, {
|
|
296
315
|
op: "set";
|
|
297
316
|
guards: {
|
|
298
317
|
identifier: number;
|
|
299
318
|
guard: string;
|
|
319
|
+
store_from_id?: number | null | undefined;
|
|
300
320
|
}[];
|
|
301
321
|
}>, z.ZodObject<{
|
|
302
322
|
op: z.ZodLiteral<"remove">;
|
|
@@ -596,48 +616,58 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
596
616
|
guards: z.ZodArray<z.ZodObject<{
|
|
597
617
|
guard: z.ZodString;
|
|
598
618
|
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
619
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
599
620
|
}, "strip", z.ZodTypeAny, {
|
|
600
621
|
guard: string;
|
|
601
622
|
identifier?: number | null | undefined;
|
|
623
|
+
store_from_id?: number | null | undefined;
|
|
602
624
|
}, {
|
|
603
625
|
guard: string;
|
|
604
626
|
identifier?: number | null | undefined;
|
|
627
|
+
store_from_id?: number | null | undefined;
|
|
605
628
|
}>, "many">;
|
|
606
629
|
}, "strict", z.ZodTypeAny, {
|
|
607
630
|
op: "add";
|
|
608
631
|
guards: {
|
|
609
632
|
guard: string;
|
|
610
633
|
identifier?: number | null | undefined;
|
|
634
|
+
store_from_id?: number | null | undefined;
|
|
611
635
|
}[];
|
|
612
636
|
}, {
|
|
613
637
|
op: "add";
|
|
614
638
|
guards: {
|
|
615
639
|
guard: string;
|
|
616
640
|
identifier?: number | null | undefined;
|
|
641
|
+
store_from_id?: number | null | undefined;
|
|
617
642
|
}[];
|
|
618
643
|
}>, z.ZodObject<{
|
|
619
644
|
op: z.ZodLiteral<"set">;
|
|
620
645
|
guards: z.ZodArray<z.ZodObject<{
|
|
621
646
|
guard: z.ZodString;
|
|
622
647
|
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
648
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
623
649
|
}, "strip", z.ZodTypeAny, {
|
|
624
650
|
guard: string;
|
|
625
651
|
identifier?: number | null | undefined;
|
|
652
|
+
store_from_id?: number | null | undefined;
|
|
626
653
|
}, {
|
|
627
654
|
guard: string;
|
|
628
655
|
identifier?: number | null | undefined;
|
|
656
|
+
store_from_id?: number | null | undefined;
|
|
629
657
|
}>, "many">;
|
|
630
658
|
}, "strict", z.ZodTypeAny, {
|
|
631
659
|
op: "set";
|
|
632
660
|
guards: {
|
|
633
661
|
guard: string;
|
|
634
662
|
identifier?: number | null | undefined;
|
|
663
|
+
store_from_id?: number | null | undefined;
|
|
635
664
|
}[];
|
|
636
665
|
}, {
|
|
637
666
|
op: "set";
|
|
638
667
|
guards: {
|
|
639
668
|
guard: string;
|
|
640
669
|
identifier?: number | null | undefined;
|
|
670
|
+
store_from_id?: number | null | undefined;
|
|
641
671
|
}[];
|
|
642
672
|
}>, z.ZodObject<{
|
|
643
673
|
op: z.ZodLiteral<"remove">;
|
|
@@ -660,48 +690,58 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
660
690
|
guards: z.ZodArray<z.ZodObject<{
|
|
661
691
|
guard: z.ZodString;
|
|
662
692
|
identifier: z.ZodNumber;
|
|
693
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
663
694
|
}, "strip", z.ZodTypeAny, {
|
|
664
695
|
identifier: number;
|
|
665
696
|
guard: string;
|
|
697
|
+
store_from_id?: number | null | undefined;
|
|
666
698
|
}, {
|
|
667
699
|
identifier: number;
|
|
668
700
|
guard: string;
|
|
701
|
+
store_from_id?: number | null | undefined;
|
|
669
702
|
}>, "many">;
|
|
670
703
|
}, "strict", z.ZodTypeAny, {
|
|
671
704
|
op: "add";
|
|
672
705
|
guards: {
|
|
673
706
|
identifier: number;
|
|
674
707
|
guard: string;
|
|
708
|
+
store_from_id?: number | null | undefined;
|
|
675
709
|
}[];
|
|
676
710
|
}, {
|
|
677
711
|
op: "add";
|
|
678
712
|
guards: {
|
|
679
713
|
identifier: number;
|
|
680
714
|
guard: string;
|
|
715
|
+
store_from_id?: number | null | undefined;
|
|
681
716
|
}[];
|
|
682
717
|
}>, z.ZodObject<{
|
|
683
718
|
op: z.ZodLiteral<"set">;
|
|
684
719
|
guards: z.ZodArray<z.ZodObject<{
|
|
685
720
|
guard: z.ZodString;
|
|
686
721
|
identifier: z.ZodNumber;
|
|
722
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
687
723
|
}, "strip", z.ZodTypeAny, {
|
|
688
724
|
identifier: number;
|
|
689
725
|
guard: string;
|
|
726
|
+
store_from_id?: number | null | undefined;
|
|
690
727
|
}, {
|
|
691
728
|
identifier: number;
|
|
692
729
|
guard: string;
|
|
730
|
+
store_from_id?: number | null | undefined;
|
|
693
731
|
}>, "many">;
|
|
694
732
|
}, "strict", z.ZodTypeAny, {
|
|
695
733
|
op: "set";
|
|
696
734
|
guards: {
|
|
697
735
|
identifier: number;
|
|
698
736
|
guard: string;
|
|
737
|
+
store_from_id?: number | null | undefined;
|
|
699
738
|
}[];
|
|
700
739
|
}, {
|
|
701
740
|
op: "set";
|
|
702
741
|
guards: {
|
|
703
742
|
identifier: number;
|
|
704
743
|
guard: string;
|
|
744
|
+
store_from_id?: number | null | undefined;
|
|
705
745
|
}[];
|
|
706
746
|
}>, z.ZodObject<{
|
|
707
747
|
op: z.ZodLiteral<"remove">;
|
|
@@ -816,12 +856,14 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
816
856
|
guards: {
|
|
817
857
|
guard: string;
|
|
818
858
|
identifier?: number | null | undefined;
|
|
859
|
+
store_from_id?: number | null | undefined;
|
|
819
860
|
}[];
|
|
820
861
|
} | {
|
|
821
862
|
op: "set";
|
|
822
863
|
guards: {
|
|
823
864
|
guard: string;
|
|
824
865
|
identifier?: number | null | undefined;
|
|
866
|
+
store_from_id?: number | null | undefined;
|
|
825
867
|
}[];
|
|
826
868
|
} | {
|
|
827
869
|
op: "remove";
|
|
@@ -834,12 +876,14 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
834
876
|
guards: {
|
|
835
877
|
identifier: number;
|
|
836
878
|
guard: string;
|
|
879
|
+
store_from_id?: number | null | undefined;
|
|
837
880
|
}[];
|
|
838
881
|
} | {
|
|
839
882
|
op: "set";
|
|
840
883
|
guards: {
|
|
841
884
|
identifier: number;
|
|
842
885
|
guard: string;
|
|
886
|
+
store_from_id?: number | null | undefined;
|
|
843
887
|
}[];
|
|
844
888
|
} | {
|
|
845
889
|
op: "remove";
|
|
@@ -938,12 +982,14 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
938
982
|
guards: {
|
|
939
983
|
guard: string;
|
|
940
984
|
identifier?: number | null | undefined;
|
|
985
|
+
store_from_id?: number | null | undefined;
|
|
941
986
|
}[];
|
|
942
987
|
} | {
|
|
943
988
|
op: "set";
|
|
944
989
|
guards: {
|
|
945
990
|
guard: string;
|
|
946
991
|
identifier?: number | null | undefined;
|
|
992
|
+
store_from_id?: number | null | undefined;
|
|
947
993
|
}[];
|
|
948
994
|
} | {
|
|
949
995
|
op: "remove";
|
|
@@ -956,12 +1002,14 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
956
1002
|
guards: {
|
|
957
1003
|
identifier: number;
|
|
958
1004
|
guard: string;
|
|
1005
|
+
store_from_id?: number | null | undefined;
|
|
959
1006
|
}[];
|
|
960
1007
|
} | {
|
|
961
1008
|
op: "set";
|
|
962
1009
|
guards: {
|
|
963
1010
|
identifier: number;
|
|
964
1011
|
guard: string;
|
|
1012
|
+
store_from_id?: number | null | undefined;
|
|
965
1013
|
}[];
|
|
966
1014
|
} | {
|
|
967
1015
|
op: "remove";
|
|
@@ -1305,48 +1353,58 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1305
1353
|
guards: z.ZodArray<z.ZodObject<{
|
|
1306
1354
|
guard: z.ZodString;
|
|
1307
1355
|
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1356
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1308
1357
|
}, "strip", z.ZodTypeAny, {
|
|
1309
1358
|
guard: string;
|
|
1310
1359
|
identifier?: number | null | undefined;
|
|
1360
|
+
store_from_id?: number | null | undefined;
|
|
1311
1361
|
}, {
|
|
1312
1362
|
guard: string;
|
|
1313
1363
|
identifier?: number | null | undefined;
|
|
1364
|
+
store_from_id?: number | null | undefined;
|
|
1314
1365
|
}>, "many">;
|
|
1315
1366
|
}, "strict", z.ZodTypeAny, {
|
|
1316
1367
|
op: "add";
|
|
1317
1368
|
guards: {
|
|
1318
1369
|
guard: string;
|
|
1319
1370
|
identifier?: number | null | undefined;
|
|
1371
|
+
store_from_id?: number | null | undefined;
|
|
1320
1372
|
}[];
|
|
1321
1373
|
}, {
|
|
1322
1374
|
op: "add";
|
|
1323
1375
|
guards: {
|
|
1324
1376
|
guard: string;
|
|
1325
1377
|
identifier?: number | null | undefined;
|
|
1378
|
+
store_from_id?: number | null | undefined;
|
|
1326
1379
|
}[];
|
|
1327
1380
|
}>, z.ZodObject<{
|
|
1328
1381
|
op: z.ZodLiteral<"set">;
|
|
1329
1382
|
guards: z.ZodArray<z.ZodObject<{
|
|
1330
1383
|
guard: z.ZodString;
|
|
1331
1384
|
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1385
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1332
1386
|
}, "strip", z.ZodTypeAny, {
|
|
1333
1387
|
guard: string;
|
|
1334
1388
|
identifier?: number | null | undefined;
|
|
1389
|
+
store_from_id?: number | null | undefined;
|
|
1335
1390
|
}, {
|
|
1336
1391
|
guard: string;
|
|
1337
1392
|
identifier?: number | null | undefined;
|
|
1393
|
+
store_from_id?: number | null | undefined;
|
|
1338
1394
|
}>, "many">;
|
|
1339
1395
|
}, "strict", z.ZodTypeAny, {
|
|
1340
1396
|
op: "set";
|
|
1341
1397
|
guards: {
|
|
1342
1398
|
guard: string;
|
|
1343
1399
|
identifier?: number | null | undefined;
|
|
1400
|
+
store_from_id?: number | null | undefined;
|
|
1344
1401
|
}[];
|
|
1345
1402
|
}, {
|
|
1346
1403
|
op: "set";
|
|
1347
1404
|
guards: {
|
|
1348
1405
|
guard: string;
|
|
1349
1406
|
identifier?: number | null | undefined;
|
|
1407
|
+
store_from_id?: number | null | undefined;
|
|
1350
1408
|
}[];
|
|
1351
1409
|
}>, z.ZodObject<{
|
|
1352
1410
|
op: z.ZodLiteral<"remove">;
|
|
@@ -1369,48 +1427,58 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1369
1427
|
guards: z.ZodArray<z.ZodObject<{
|
|
1370
1428
|
guard: z.ZodString;
|
|
1371
1429
|
identifier: z.ZodNumber;
|
|
1430
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1372
1431
|
}, "strip", z.ZodTypeAny, {
|
|
1373
1432
|
identifier: number;
|
|
1374
1433
|
guard: string;
|
|
1434
|
+
store_from_id?: number | null | undefined;
|
|
1375
1435
|
}, {
|
|
1376
1436
|
identifier: number;
|
|
1377
1437
|
guard: string;
|
|
1438
|
+
store_from_id?: number | null | undefined;
|
|
1378
1439
|
}>, "many">;
|
|
1379
1440
|
}, "strict", z.ZodTypeAny, {
|
|
1380
1441
|
op: "add";
|
|
1381
1442
|
guards: {
|
|
1382
1443
|
identifier: number;
|
|
1383
1444
|
guard: string;
|
|
1445
|
+
store_from_id?: number | null | undefined;
|
|
1384
1446
|
}[];
|
|
1385
1447
|
}, {
|
|
1386
1448
|
op: "add";
|
|
1387
1449
|
guards: {
|
|
1388
1450
|
identifier: number;
|
|
1389
1451
|
guard: string;
|
|
1452
|
+
store_from_id?: number | null | undefined;
|
|
1390
1453
|
}[];
|
|
1391
1454
|
}>, z.ZodObject<{
|
|
1392
1455
|
op: z.ZodLiteral<"set">;
|
|
1393
1456
|
guards: z.ZodArray<z.ZodObject<{
|
|
1394
1457
|
guard: z.ZodString;
|
|
1395
1458
|
identifier: z.ZodNumber;
|
|
1459
|
+
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1396
1460
|
}, "strip", z.ZodTypeAny, {
|
|
1397
1461
|
identifier: number;
|
|
1398
1462
|
guard: string;
|
|
1463
|
+
store_from_id?: number | null | undefined;
|
|
1399
1464
|
}, {
|
|
1400
1465
|
identifier: number;
|
|
1401
1466
|
guard: string;
|
|
1467
|
+
store_from_id?: number | null | undefined;
|
|
1402
1468
|
}>, "many">;
|
|
1403
1469
|
}, "strict", z.ZodTypeAny, {
|
|
1404
1470
|
op: "set";
|
|
1405
1471
|
guards: {
|
|
1406
1472
|
identifier: number;
|
|
1407
1473
|
guard: string;
|
|
1474
|
+
store_from_id?: number | null | undefined;
|
|
1408
1475
|
}[];
|
|
1409
1476
|
}, {
|
|
1410
1477
|
op: "set";
|
|
1411
1478
|
guards: {
|
|
1412
1479
|
identifier: number;
|
|
1413
1480
|
guard: string;
|
|
1481
|
+
store_from_id?: number | null | undefined;
|
|
1414
1482
|
}[];
|
|
1415
1483
|
}>, z.ZodObject<{
|
|
1416
1484
|
op: z.ZodLiteral<"remove">;
|
|
@@ -1525,12 +1593,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1525
1593
|
guards: {
|
|
1526
1594
|
guard: string;
|
|
1527
1595
|
identifier?: number | null | undefined;
|
|
1596
|
+
store_from_id?: number | null | undefined;
|
|
1528
1597
|
}[];
|
|
1529
1598
|
} | {
|
|
1530
1599
|
op: "set";
|
|
1531
1600
|
guards: {
|
|
1532
1601
|
guard: string;
|
|
1533
1602
|
identifier?: number | null | undefined;
|
|
1603
|
+
store_from_id?: number | null | undefined;
|
|
1534
1604
|
}[];
|
|
1535
1605
|
} | {
|
|
1536
1606
|
op: "remove";
|
|
@@ -1543,12 +1613,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1543
1613
|
guards: {
|
|
1544
1614
|
identifier: number;
|
|
1545
1615
|
guard: string;
|
|
1616
|
+
store_from_id?: number | null | undefined;
|
|
1546
1617
|
}[];
|
|
1547
1618
|
} | {
|
|
1548
1619
|
op: "set";
|
|
1549
1620
|
guards: {
|
|
1550
1621
|
identifier: number;
|
|
1551
1622
|
guard: string;
|
|
1623
|
+
store_from_id?: number | null | undefined;
|
|
1552
1624
|
}[];
|
|
1553
1625
|
} | {
|
|
1554
1626
|
op: "remove";
|
|
@@ -1647,12 +1719,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1647
1719
|
guards: {
|
|
1648
1720
|
guard: string;
|
|
1649
1721
|
identifier?: number | null | undefined;
|
|
1722
|
+
store_from_id?: number | null | undefined;
|
|
1650
1723
|
}[];
|
|
1651
1724
|
} | {
|
|
1652
1725
|
op: "set";
|
|
1653
1726
|
guards: {
|
|
1654
1727
|
guard: string;
|
|
1655
1728
|
identifier?: number | null | undefined;
|
|
1729
|
+
store_from_id?: number | null | undefined;
|
|
1656
1730
|
}[];
|
|
1657
1731
|
} | {
|
|
1658
1732
|
op: "remove";
|
|
@@ -1665,12 +1739,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1665
1739
|
guards: {
|
|
1666
1740
|
identifier: number;
|
|
1667
1741
|
guard: string;
|
|
1742
|
+
store_from_id?: number | null | undefined;
|
|
1668
1743
|
}[];
|
|
1669
1744
|
} | {
|
|
1670
1745
|
op: "set";
|
|
1671
1746
|
guards: {
|
|
1672
1747
|
identifier: number;
|
|
1673
1748
|
guard: string;
|
|
1749
|
+
store_from_id?: number | null | undefined;
|
|
1674
1750
|
}[];
|
|
1675
1751
|
} | {
|
|
1676
1752
|
op: "remove";
|
|
@@ -1970,12 +2046,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1970
2046
|
guards: {
|
|
1971
2047
|
guard: string;
|
|
1972
2048
|
identifier?: number | null | undefined;
|
|
2049
|
+
store_from_id?: number | null | undefined;
|
|
1973
2050
|
}[];
|
|
1974
2051
|
} | {
|
|
1975
2052
|
op: "set";
|
|
1976
2053
|
guards: {
|
|
1977
2054
|
guard: string;
|
|
1978
2055
|
identifier?: number | null | undefined;
|
|
2056
|
+
store_from_id?: number | null | undefined;
|
|
1979
2057
|
}[];
|
|
1980
2058
|
} | {
|
|
1981
2059
|
op: "remove";
|
|
@@ -1988,12 +2066,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1988
2066
|
guards: {
|
|
1989
2067
|
identifier: number;
|
|
1990
2068
|
guard: string;
|
|
2069
|
+
store_from_id?: number | null | undefined;
|
|
1991
2070
|
}[];
|
|
1992
2071
|
} | {
|
|
1993
2072
|
op: "set";
|
|
1994
2073
|
guards: {
|
|
1995
2074
|
identifier: number;
|
|
1996
2075
|
guard: string;
|
|
2076
|
+
store_from_id?: number | null | undefined;
|
|
1997
2077
|
}[];
|
|
1998
2078
|
} | {
|
|
1999
2079
|
op: "remove";
|
|
@@ -2128,12 +2208,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2128
2208
|
guards: {
|
|
2129
2209
|
guard: string;
|
|
2130
2210
|
identifier?: number | null | undefined;
|
|
2211
|
+
store_from_id?: number | null | undefined;
|
|
2131
2212
|
}[];
|
|
2132
2213
|
} | {
|
|
2133
2214
|
op: "set";
|
|
2134
2215
|
guards: {
|
|
2135
2216
|
guard: string;
|
|
2136
2217
|
identifier?: number | null | undefined;
|
|
2218
|
+
store_from_id?: number | null | undefined;
|
|
2137
2219
|
}[];
|
|
2138
2220
|
} | {
|
|
2139
2221
|
op: "remove";
|
|
@@ -2146,12 +2228,14 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2146
2228
|
guards: {
|
|
2147
2229
|
identifier: number;
|
|
2148
2230
|
guard: string;
|
|
2231
|
+
store_from_id?: number | null | undefined;
|
|
2149
2232
|
}[];
|
|
2150
2233
|
} | {
|
|
2151
2234
|
op: "set";
|
|
2152
2235
|
guards: {
|
|
2153
2236
|
identifier: number;
|
|
2154
2237
|
guard: string;
|
|
2238
|
+
store_from_id?: number | null | undefined;
|
|
2155
2239
|
}[];
|
|
2156
2240
|
} | {
|
|
2157
2241
|
op: "remove";
|
|
@@ -1,76 +1 @@
|
|
|
1
|
-
import { z }
|
|
2
|
-
import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, SubmissionCallSchema, CallEnvSchema } from "./base.js";
|
|
3
|
-
import { AmountFromDepositGuardSchema, AmountFromWithdrawGuardSchema, PaymentInfoSchema } from "../query/index.js";
|
|
4
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema, NameOrAddressSchema } from "../common/index.js";
|
|
5
|
-
import { BalanceTypeSchema } from "../common/index.js";
|
|
6
|
-
// Deposit 接口
|
|
7
|
-
export const DepositSchema = z.object({
|
|
8
|
-
coin: CoinParamSchema.describe("Asset to deposit"),
|
|
9
|
-
by_external_deposit_guard: z.string().optional().describe("Deposit by verifying the specified Guard object ID or name; if not specified, deposit through Permission"),
|
|
10
|
-
payment_info: PaymentInfoSchema,
|
|
11
|
-
namedNewPayment: NamedObjectSchema.optional().describe("After deposit, create a new Payment object. You can specify a name for this object"),
|
|
12
|
-
}).strict();
|
|
13
|
-
// Withdraw 接口
|
|
14
|
-
export const WithdrawSchema = z.object({
|
|
15
|
-
amount: z.union([
|
|
16
|
-
z.object({ fixed: BalanceTypeSchema
|
|
17
|
-
}).strict().describe("Fixed withdrawal amount, this method can only withdraw through Permission"),
|
|
18
|
-
z.object({ by_external_withdraw_guard: z.string().describe("Withdraw by verifying the specified Guard object ID or name (the amount is the value of the index number corresponding to the Guard object); if not specified, withdraw through Permission") }).strict(),
|
|
19
|
-
]).describe("Withdrawal amount"),
|
|
20
|
-
recipient: AccountOrMark_AddressSchema.describe("ID or account to receive assets"),
|
|
21
|
-
payment_info: PaymentInfoSchema,
|
|
22
|
-
namedNewPayment: NamedObjectSchema.optional().describe("After withdrawal, create a new Payment object. You can specify a name for this object"),
|
|
23
|
-
}).strict();
|
|
24
|
-
// ExternalDepositGuard 操作类型
|
|
25
|
-
export const ExternalDepositGuardSchema = z.discriminatedUnion("op", [
|
|
26
|
-
z.object({
|
|
27
|
-
op: z.literal("add"),
|
|
28
|
-
guards: z.array(AmountFromDepositGuardSchema),
|
|
29
|
-
}).strict(),
|
|
30
|
-
z.object({
|
|
31
|
-
op: z.literal("set"),
|
|
32
|
-
guards: z.array(AmountFromDepositGuardSchema),
|
|
33
|
-
}).strict(),
|
|
34
|
-
z.object({
|
|
35
|
-
op: z.literal("remove"),
|
|
36
|
-
guards: z.array(NameOrAddressSchema).describe("List of Guard object IDs or names to remove"),
|
|
37
|
-
}).strict(),
|
|
38
|
-
z.object({
|
|
39
|
-
op: z.literal("clear"),
|
|
40
|
-
}).strict(),
|
|
41
|
-
]);
|
|
42
|
-
// ExternalWithdrawGuard 操作类型
|
|
43
|
-
export const ExternalWithdrawGuardSchema = z.discriminatedUnion("op", [
|
|
44
|
-
z.object({
|
|
45
|
-
op: z.literal("add"),
|
|
46
|
-
guards: z.array(AmountFromWithdrawGuardSchema),
|
|
47
|
-
}).strict(),
|
|
48
|
-
z.object({
|
|
49
|
-
op: z.literal("set"),
|
|
50
|
-
guards: z.array(AmountFromWithdrawGuardSchema),
|
|
51
|
-
}).strict(),
|
|
52
|
-
z.object({
|
|
53
|
-
op: z.literal("remove"),
|
|
54
|
-
guards: z.array(NameOrAddressSchema).describe("List of Guard object IDs or names to remove"),
|
|
55
|
-
}).strict(),
|
|
56
|
-
z.object({
|
|
57
|
-
op: z.literal("clear"),
|
|
58
|
-
}).strict(),
|
|
59
|
-
]);
|
|
60
|
-
// CallTreasury_Data 接口
|
|
61
|
-
export const CallTreasury_DataSchema = z.object({
|
|
62
|
-
object: TypedPermissionObjectSchema,
|
|
63
|
-
description: DescriptionSchema.optional(),
|
|
64
|
-
receive: ReceivedBalanceOrRecentlySchema.optional().describe("Receive CoinWrapper objects received by the object and deposit them into its balance."),
|
|
65
|
-
deposit: DepositSchema.optional().describe("Deposit to Treasury object"),
|
|
66
|
-
withdraw: WithdrawSchema.optional().describe("Withdraw from Treasury object"),
|
|
67
|
-
external_deposit_guard: ExternalDepositGuardSchema.optional().describe("Set external deposit Guard for Treasury object"),
|
|
68
|
-
external_withdraw_guard: ExternalWithdrawGuardSchema.optional().describe("Set external withdrawal Guard for Treasury object"),
|
|
69
|
-
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."),
|
|
70
|
-
um: z.union([NamedObjectSchema, z.null()]).optional().describe("Contact object."),
|
|
71
|
-
}).strict().describe("On-chain Treasury operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create a Treasury. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
72
|
-
export const CallTreasury_InputSchema = z.object({
|
|
73
|
-
data: CallTreasury_DataSchema,
|
|
74
|
-
env: CallEnvSchema.optional(),
|
|
75
|
-
submission: SubmissionCallSchema.optional(),
|
|
76
|
-
}).strict();
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,SubmissionCallSchema,CallEnvSchema}from'./base.js';import{AmountFromDepositGuardSchema,AmountFromWithdrawGuardSchema,PaymentInfoSchema}from'../query/index.js';import{AccountOrMark_AddressSchema,DescriptionSchema,ReceivedBalanceOrRecentlySchema,ReceivedObjectsOrRecentlySchema,NameOrAddressSchema}from'../common/index.js';import{BalanceTypeSchema}from'../common/index.js';export const DepositSchema=z['object']({'coin':CoinParamSchema['describe']('Asset\x20to\x20deposit'),'by_external_deposit_guard':z['string']()['optional']()['describe']('Deposit\x20by\x20verifying\x20the\x20specified\x20Guard\x20object\x20ID\x20or\x20name;\x20if\x20not\x20specified,\x20deposit\x20through\x20Permission'),'payment_info':PaymentInfoSchema,'namedNewPayment':NamedObjectSchema['optional']()['describe']('After\x20deposit,\x20create\x20a\x20new\x20Payment\x20object.\x20You\x20can\x20specify\x20a\x20name\x20for\x20this\x20object')})['strict']();export const WithdrawSchema=z['object']({'amount':z['union']([z['object']({'fixed':BalanceTypeSchema})['strict']()['describe']('Fixed\x20withdrawal\x20amount,\x20this\x20method\x20can\x20only\x20withdraw\x20through\x20Permission'),z['object']({'by_external_withdraw_guard':z['string']()['describe']('Withdraw\x20by\x20verifying\x20the\x20specified\x20Guard\x20object\x20ID\x20or\x20name\x20(the\x20amount\x20is\x20the\x20value\x20of\x20the\x20index\x20number\x20corresponding\x20to\x20the\x20Guard\x20object);\x20if\x20not\x20specified,\x20withdraw\x20through\x20Permission')})['strict']()])['describe']('Withdrawal\x20amount'),'recipient':AccountOrMark_AddressSchema['describe']('ID\x20or\x20account\x20to\x20receive\x20assets'),'payment_info':PaymentInfoSchema,'namedNewPayment':NamedObjectSchema['optional']()['describe']('After\x20withdrawal,\x20create\x20a\x20new\x20Payment\x20object.\x20You\x20can\x20specify\x20a\x20name\x20for\x20this\x20object')})['strict']();export const ExternalDepositGuardSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'guards':z['array'](AmountFromDepositGuardSchema)})['strict'](),z['object']({'op':z['literal']('set'),'guards':z['array'](AmountFromDepositGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20Guard\x20object\x20IDs\x20or\x20names\x20to\x20remove')})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const ExternalWithdrawGuardSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'guards':z['array'](AmountFromWithdrawGuardSchema)})['strict'](),z['object']({'op':z['literal']('set'),'guards':z['array'](AmountFromWithdrawGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20Guard\x20object\x20IDs\x20or\x20names\x20to\x20remove')})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallTreasury_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'description':DescriptionSchema['optional'](),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Receive\x20CoinWrapper\x20objects\x20received\x20by\x20the\x20object\x20and\x20deposit\x20them\x20into\x20its\x20balance.'),'deposit':DepositSchema['optional']()['describe']('Deposit\x20to\x20Treasury\x20object'),'withdraw':WithdrawSchema['optional']()['describe']('Withdraw\x20from\x20Treasury\x20object'),'external_deposit_guard':ExternalDepositGuardSchema['optional']()['describe']('Set\x20external\x20deposit\x20Guard\x20for\x20Treasury\x20object'),'external_withdraw_guard':ExternalWithdrawGuardSchema['optional']()['describe']('Set\x20external\x20withdrawal\x20Guard\x20for\x20Treasury\x20object'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'),'um':z['union']([NamedObjectSchema,z['null']()])['optional']()['describe']('Contact\x20object.')})['strict']()['describe']('On-chain\x20Treasury\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Treasury.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallTreasury_InputSchema=z['object']({'data':CallTreasury_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|