@wowok/agent-mcp 2.7.5 β†’ 2.7.7

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.
Files changed (50) hide show
  1. package/dist/project/evaluation-fix.spec.d.ts +1 -0
  2. package/dist/project/evaluation-fix.spec.js +1 -0
  3. package/dist/project/evaluation.js +1 -1
  4. package/dist/project/index.js +1 -1
  5. package/dist/project/rollback-policy.js +1 -1
  6. package/dist/safety/confirm-gate.js +1 -1
  7. package/dist/schema/call/allocation.d.ts +9 -0
  8. package/dist/schema/call/arbitration.d.ts +10 -0
  9. package/dist/schema/call/contact.d.ts +10 -0
  10. package/dist/schema/call/demand.d.ts +10 -0
  11. package/dist/schema/call/machine.d.ts +10 -0
  12. package/dist/schema/call/order.d.ts +10 -0
  13. package/dist/schema/call/payment.d.ts +3 -3
  14. package/dist/schema/call/payment.js +1 -1
  15. package/dist/schema/call/permission.d.ts +10 -0
  16. package/dist/schema/call/progress.d.ts +10 -0
  17. package/dist/schema/call/repository.d.ts +10 -0
  18. package/dist/schema/call/reward.d.ts +16 -0
  19. package/dist/schema/call/semantic.js +1 -1
  20. package/dist/schema/call/service.d.ts +16 -0
  21. package/dist/schema/call/treasury.d.ts +16 -0
  22. package/dist/schema/common/index.d.ts +21 -0
  23. package/dist/schema/common/index.js +1 -1
  24. package/dist/schema/local/index.js +1 -1
  25. package/dist/schema/operations.d.ts +68 -1
  26. package/dist/schema/operations.js +1 -1
  27. package/dist/schema/query/index.d.ts +5 -0
  28. package/dist/schema/schema-version.js +1 -1
  29. package/dist/schema-query-impl/index.js +1 -1
  30. package/dist/schemas/index.json +1 -1
  31. package/dist/schemas/onchain_operations.schema.json +274 -7
  32. package/dist/schemas/onchain_operations_allocation.schema.json +12 -0
  33. package/dist/schemas/onchain_operations_arbitration.schema.json +20 -0
  34. package/dist/schemas/onchain_operations_contact.schema.json +20 -0
  35. package/dist/schemas/onchain_operations_demand.schema.json +20 -0
  36. package/dist/schemas/onchain_operations_machine.schema.json +20 -0
  37. package/dist/schemas/onchain_operations_order.schema.json +20 -0
  38. package/dist/schemas/onchain_operations_payment.schema.json +6 -7
  39. package/dist/schemas/onchain_operations_permission.schema.json +20 -0
  40. package/dist/schemas/onchain_operations_progress.schema.json +20 -0
  41. package/dist/schemas/onchain_operations_repository.schema.json +20 -0
  42. package/dist/schemas/onchain_operations_reward.schema.json +32 -0
  43. package/dist/schemas/onchain_operations_service.schema.json +32 -0
  44. package/dist/schemas/onchain_operations_treasury.schema.json +32 -0
  45. package/dist/schemas/query_toolkit.output.json +20 -0
  46. package/dist/tools/handlers/config.js +1 -1
  47. package/dist/tools/handlers/onchain.js +1 -1
  48. package/dist/tools/index.js +1 -1
  49. package/dist/tools/shared.js +1 -1
  50. package/package.json +2 -2
@@ -194,12 +194,17 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
194
194
  id: z.ZodString;
195
195
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
196
196
  payment: z.ZodString;
197
+ type: z.ZodOptional<z.ZodString>;
198
+ version: z.ZodOptional<z.ZodString>;
199
+ digest: z.ZodOptional<z.ZodString>;
197
200
  }, z.core.$strict>>;
198
201
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
199
202
  owner_receive: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
200
203
  id: z.ZodString;
201
204
  type: z.ZodString;
202
205
  content_raw: z.ZodOptional<z.ZodAny>;
206
+ version: z.ZodOptional<z.ZodString>;
207
+ digest: z.ZodOptional<z.ZodString>;
203
208
  }, z.core.$strict>>, z.ZodObject<{
204
209
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
205
210
  token_type: z.ZodString;
@@ -207,6 +212,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
207
212
  id: z.ZodString;
208
213
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
209
214
  payment: z.ZodString;
215
+ type: z.ZodOptional<z.ZodString>;
216
+ version: z.ZodOptional<z.ZodString>;
217
+ digest: z.ZodOptional<z.ZodString>;
210
218
  }, z.core.$strict>>;
211
219
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
212
220
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -437,6 +445,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
437
445
  id: z.ZodString;
438
446
  type: z.ZodString;
439
447
  content_raw: z.ZodOptional<z.ZodAny>;
448
+ version: z.ZodOptional<z.ZodString>;
449
+ digest: z.ZodOptional<z.ZodString>;
440
450
  }, z.core.$strict>>, z.ZodObject<{
441
451
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
442
452
  token_type: z.ZodString;
@@ -444,6 +454,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
444
454
  id: z.ZodString;
445
455
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
446
456
  payment: z.ZodString;
457
+ type: z.ZodOptional<z.ZodString>;
458
+ version: z.ZodOptional<z.ZodString>;
459
+ digest: z.ZodOptional<z.ZodString>;
447
460
  }, z.core.$strict>>;
448
461
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
449
462
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -567,6 +580,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
567
580
  id: z.ZodString;
568
581
  type: z.ZodString;
569
582
  content_raw: z.ZodOptional<z.ZodAny>;
583
+ version: z.ZodOptional<z.ZodString>;
584
+ digest: z.ZodOptional<z.ZodString>;
570
585
  }, z.core.$strict>>, z.ZodObject<{
571
586
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
572
587
  token_type: z.ZodString;
@@ -574,6 +589,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
574
589
  id: z.ZodString;
575
590
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
576
591
  payment: z.ZodString;
592
+ type: z.ZodOptional<z.ZodString>;
593
+ version: z.ZodOptional<z.ZodString>;
594
+ digest: z.ZodOptional<z.ZodString>;
577
595
  }, z.core.$strict>>;
578
596
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
579
597
  }, z.core.$strict>;
@@ -755,6 +773,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
755
773
  id: z.ZodString;
756
774
  type: z.ZodString;
757
775
  content_raw: z.ZodOptional<z.ZodAny>;
776
+ version: z.ZodOptional<z.ZodString>;
777
+ digest: z.ZodOptional<z.ZodString>;
758
778
  }, z.core.$strict>>, z.ZodObject<{
759
779
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
760
780
  token_type: z.ZodString;
@@ -762,6 +782,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
762
782
  id: z.ZodString;
763
783
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
764
784
  payment: z.ZodString;
785
+ type: z.ZodOptional<z.ZodString>;
786
+ version: z.ZodOptional<z.ZodString>;
787
+ digest: z.ZodOptional<z.ZodString>;
765
788
  }, z.core.$strict>>;
766
789
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
767
790
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -948,6 +971,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
948
971
  id: z.ZodString;
949
972
  type: z.ZodString;
950
973
  content_raw: z.ZodOptional<z.ZodAny>;
974
+ version: z.ZodOptional<z.ZodString>;
975
+ digest: z.ZodOptional<z.ZodString>;
951
976
  }, z.core.$strict>>, z.ZodObject<{
952
977
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
953
978
  token_type: z.ZodString;
@@ -955,6 +980,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
955
980
  id: z.ZodString;
956
981
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
957
982
  payment: z.ZodString;
983
+ type: z.ZodOptional<z.ZodString>;
984
+ version: z.ZodOptional<z.ZodString>;
985
+ digest: z.ZodOptional<z.ZodString>;
958
986
  }, z.core.$strict>>;
959
987
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
960
988
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -1077,6 +1105,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1077
1105
  id: z.ZodString;
1078
1106
  type: z.ZodString;
1079
1107
  content_raw: z.ZodOptional<z.ZodAny>;
1108
+ version: z.ZodOptional<z.ZodString>;
1109
+ digest: z.ZodOptional<z.ZodString>;
1080
1110
  }, z.core.$strict>>, z.ZodObject<{
1081
1111
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1082
1112
  token_type: z.ZodString;
@@ -1084,6 +1114,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1084
1114
  id: z.ZodString;
1085
1115
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1086
1116
  payment: z.ZodString;
1117
+ type: z.ZodOptional<z.ZodString>;
1118
+ version: z.ZodOptional<z.ZodString>;
1119
+ digest: z.ZodOptional<z.ZodString>;
1087
1120
  }, z.core.$strict>>;
1088
1121
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1089
1122
  }, z.core.$strict>;
@@ -1189,6 +1222,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1189
1222
  id: z.ZodString;
1190
1223
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1191
1224
  payment: z.ZodString;
1225
+ type: z.ZodOptional<z.ZodString>;
1226
+ version: z.ZodOptional<z.ZodString>;
1227
+ digest: z.ZodOptional<z.ZodString>;
1192
1228
  }, z.core.$strict>>;
1193
1229
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1194
1230
  deposit: z.ZodOptional<z.ZodObject<{
@@ -1278,6 +1314,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1278
1314
  id: z.ZodString;
1279
1315
  type: z.ZodString;
1280
1316
  content_raw: z.ZodOptional<z.ZodAny>;
1317
+ version: z.ZodOptional<z.ZodString>;
1318
+ digest: z.ZodOptional<z.ZodString>;
1281
1319
  }, z.core.$strict>>, z.ZodObject<{
1282
1320
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1283
1321
  token_type: z.ZodString;
@@ -1285,6 +1323,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1285
1323
  id: z.ZodString;
1286
1324
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1287
1325
  payment: z.ZodString;
1326
+ type: z.ZodOptional<z.ZodString>;
1327
+ version: z.ZodOptional<z.ZodString>;
1328
+ digest: z.ZodOptional<z.ZodString>;
1288
1329
  }, z.core.$strict>>;
1289
1330
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1290
1331
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -1397,6 +1438,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1397
1438
  id: z.ZodString;
1398
1439
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1399
1440
  payment: z.ZodString;
1441
+ type: z.ZodOptional<z.ZodString>;
1442
+ version: z.ZodOptional<z.ZodString>;
1443
+ digest: z.ZodOptional<z.ZodString>;
1400
1444
  }, z.core.$strict>>;
1401
1445
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1402
1446
  guard_add: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1427,6 +1471,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1427
1471
  id: z.ZodString;
1428
1472
  type: z.ZodString;
1429
1473
  content_raw: z.ZodOptional<z.ZodAny>;
1474
+ version: z.ZodOptional<z.ZodString>;
1475
+ digest: z.ZodOptional<z.ZodString>;
1430
1476
  }, z.core.$strict>>, z.ZodObject<{
1431
1477
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1432
1478
  token_type: z.ZodString;
@@ -1434,6 +1480,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1434
1480
  id: z.ZodString;
1435
1481
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1436
1482
  payment: z.ZodString;
1483
+ type: z.ZodOptional<z.ZodString>;
1484
+ version: z.ZodOptional<z.ZodString>;
1485
+ digest: z.ZodOptional<z.ZodString>;
1437
1486
  }, z.core.$strict>>;
1438
1487
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1439
1488
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -1572,6 +1621,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1572
1621
  id: z.ZodString;
1573
1622
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1574
1623
  payment: z.ZodString;
1624
+ type: z.ZodOptional<z.ZodString>;
1625
+ version: z.ZodOptional<z.ZodString>;
1626
+ digest: z.ZodOptional<z.ZodString>;
1575
1627
  }, z.core.$strict>>;
1576
1628
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1577
1629
  alloc_by_guard: z.ZodOptional<z.ZodString>;
@@ -1785,6 +1837,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1785
1837
  id: z.ZodString;
1786
1838
  type: z.ZodString;
1787
1839
  content_raw: z.ZodOptional<z.ZodAny>;
1840
+ version: z.ZodOptional<z.ZodString>;
1841
+ digest: z.ZodOptional<z.ZodString>;
1788
1842
  }, z.core.$strict>>, z.ZodObject<{
1789
1843
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1790
1844
  token_type: z.ZodString;
@@ -1792,6 +1846,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
1792
1846
  id: z.ZodString;
1793
1847
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1794
1848
  payment: z.ZodString;
1849
+ type: z.ZodOptional<z.ZodString>;
1850
+ version: z.ZodOptional<z.ZodString>;
1851
+ digest: z.ZodOptional<z.ZodString>;
1795
1852
  }, z.core.$strict>>;
1796
1853
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
1797
1854
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -2057,7 +2114,7 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
2057
2114
  index: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2058
2115
  }, z.core.$strip>;
2059
2116
  }, z.core.$strict>, z.ZodObject<{
2060
- object: z.ZodString;
2117
+ object: z.ZodOptional<z.ZodString>;
2061
2118
  receive: z.ZodLiteral<true>;
2062
2119
  type_parameter: z.ZodOptional<z.ZodString>;
2063
2120
  }, z.core.$strict>]>;
@@ -2140,6 +2197,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
2140
2197
  id: z.ZodString;
2141
2198
  type: z.ZodString;
2142
2199
  content_raw: z.ZodOptional<z.ZodAny>;
2200
+ version: z.ZodOptional<z.ZodString>;
2201
+ digest: z.ZodOptional<z.ZodString>;
2143
2202
  }, z.core.$strict>>, z.ZodObject<{
2144
2203
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2145
2204
  token_type: z.ZodString;
@@ -2147,6 +2206,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
2147
2206
  id: z.ZodString;
2148
2207
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2149
2208
  payment: z.ZodString;
2209
+ type: z.ZodOptional<z.ZodString>;
2210
+ version: z.ZodOptional<z.ZodString>;
2211
+ digest: z.ZodOptional<z.ZodString>;
2150
2212
  }, z.core.$strict>>;
2151
2213
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
2152
2214
  um: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
@@ -2270,6 +2332,8 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
2270
2332
  id: z.ZodString;
2271
2333
  type: z.ZodString;
2272
2334
  content_raw: z.ZodOptional<z.ZodAny>;
2335
+ version: z.ZodOptional<z.ZodString>;
2336
+ digest: z.ZodOptional<z.ZodString>;
2273
2337
  }, z.core.$strict>>, z.ZodObject<{
2274
2338
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2275
2339
  token_type: z.ZodString;
@@ -2277,6 +2341,9 @@ export declare const OnchainOperationsSchema: z.ZodPreprocess<z.ZodDiscriminated
2277
2341
  id: z.ZodString;
2278
2342
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
2279
2343
  payment: z.ZodString;
2344
+ type: z.ZodOptional<z.ZodString>;
2345
+ version: z.ZodOptional<z.ZodString>;
2346
+ digest: z.ZodOptional<z.ZodString>;
2280
2347
  }, z.core.$strict>>;
2281
2348
  }, z.core.$strict>, z.ZodLiteral<"recently">]>>;
2282
2349
  transfer_to: z.ZodOptional<z.ZodObject<{
@@ -1 +1 @@
1
- import{z}from'zod';import{CallService_DataSchema,CallMachine_DataSchema,CallProgress_DataSchema,CallRepository_DataSchema,CallArbitration_DataSchema,CallContact_DataSchema,CallTreasury_DataSchema,CallReward_DataSchema,CallAllocation_DataSchema,CallPermission_DataSchema,CallGuard_DataSchema,CallPersonal_DataSchema,CallPayment_DataSchema,CallDemand_DataSchema,CallOrder_DataSchema,CallProof_DataSchema,CallGenProof_InputSchema,CallEnvSchema,SubmissionCallSchema,SemanticSummarySchema}from'./call/index.js';import{WipGenerationOptionsSchema,WipToHtmlOptionsSchema,LocalMarkFilterSchema,AccountFilterSchema,LocalInfoFilterSchema,TokenDataFilterSchema}from'./local/index.js';import{NameOrAddressSchema,AccountOrMark_AddressSchema,AccountOrMark_AddressAISchema,EntrypointSchema,TokenTypeSchema,ObjectBaseSchema}from'./common/index.js';import{TableAnswerSchema,TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_EntityContactSchema,TableItem_ObjectLinkerCoreSchema,TableItem_ObjectLinkerTxSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema}from'./query/index.js';export const OnchainOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['operation_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['operation_type'])return c;}catch{}if(typeof b['data']==='string')try{b['data']=JSON['parse'](b['data']);}catch{}if(typeof b['env']==='string')try{b['env']=JSON['parse'](b['env']);}catch{}if(typeof b['submission']==='string')try{b['submission']=JSON['parse'](b['submission']);}catch{}if(typeof b['info']==='string')try{b['info']=JSON['parse'](b['info']);}catch{}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const e=b['data'];e['data']&&typeof e['data']==='object'&&!e['operation_type']&&(e['env']!==undefined&&b['env']===undefined&&(b['env']=e['env']),e['submission']!==undefined&&b['submission']===undefined&&(b['submission']=e['submission']),b['data']=e['data']);if(typeof e['description']==='string'&&!e['operation_type'])try{const f=JSON['parse'](e['description']);f&&typeof f==='object'&&(b['data']=f);}catch{}}if(b['operation_type']==='guard'&&b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const g=b['data'];g['object']&&!g['namedNew']&&(g['namedNew']=g['object'],delete g['object']);if(Array['isArray'](g['table']))for(const h of g['table']){h&&typeof h==='object'&&!Array['isArray'](h)&&'object_type'in h&&delete h['object_type'];}}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const i=b['data'];i['submission']!==undefined&&b['submission']===undefined&&(b['submission']=i['submission'],delete i['submission']);}return b;}return a;},z['discriminatedUnion']('operation_type',[z['object']({'operation_type':z['literal']('service'),'data':CallService_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸͺ\x20Service\x20Object:\x20Create\x20and\x20manage\x20product/service\x20listings\x20with\x20transparent\x20promises,\x20bind\x20workflow\x20templates\x20to\x20order\x20processing,\x20set\x20pricing,\x20issue\x20discount\x20coupons\x20to\x20customers,\x20and\x20establish\x20quality\x20standards,\x20etc..'),z['object']({'operation_type':z['literal']('machine'),'data':CallMachine_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('βš™οΈ\x20Machine\x20Object:\x20Design\x20and\x20deploy\x20automated\x20workflow\x20templates\x20(Machines)\x20that\x20define\x20how\x20services\x20are\x20delivered,\x20etc..'),z['object']({'operation_type':z['literal']('progress'),'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“Š\x20Progress\x20Object:\x20Track\x20and\x20manage\x20active\x20workflows\x20in\x20real-time.'),z['object']({'operation_type':z['literal']('repository'),'data':CallRepository_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“¦\x20Repository\x20Object:\x20Read/write\x20database\x20with\x20consensus\x20field\x20+\x20address\x20as\x20key,\x20strongly-typed\x20data\x20as\x20value.'),z['object']({'operation_type':z['literal']('arbitration'),'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('βš–οΈ\x20Arbitration\x20Object:\x20Access\x20a\x20transparent\x20on-chain\x20arbitration\x20system\x20for\x20resolving\x20order\x20conflicts.'),z['object']({'operation_type':z['literal']('contact'),'data':CallContact_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ’¬\x20Contact\x20Object:\x20Manage\x20on-chain\x20instant\x20messaging\x20contact\x20profiles.'),z['object']({'operation_type':z['literal']('treasury'),'data':CallTreasury_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ’°\x20Treasury\x20Object:\x20Create\x20and\x20manage\x20treasury\x20for\x20team\x20funds\x20with\x20deposit/withdrawal\x20rules,\x20etc..'),z['object']({'operation_type':z['literal']('reward'),'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎁\x20Reward\x20Object:\x20Create\x20reward\x20pools\x20and\x20set\x20claim\x20conditions\x20by\x20Guard\x20verification.'),z['object']({'operation_type':z['literal']('allocation'),'data':CallAllocation_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“€\x20Allocation\x20Object:\x20Create\x20distribution\x20plans\x20to\x20auto-distribute\x20funds\x20to\x20multiple\x20recipients.'),z['object']({'operation_type':z['literal']('permission'),'data':CallPermission_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ”\x20Permission\x20Object:\x20Define\x20who\x20can\x20perform\x20which\x20operations\x20on\x20WoWok\x20objects.\x20Important\x20Note:\x20If\x20needed,\x20you\x20should\x20first\x20query\x20\x27guard\x20instructions\x27\x20through\x20the\x20\x27wowok_buildin_info\x27\x20tool.'),z['object']({'operation_type':z['literal']('guard'),'data':CallGuard_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ›‘οΈ\x20Guard\x20Object:\x20Create\x20immutable\x20programmable\x20validation\x20rules\x20that\x20return\x20boolean\x20results.\x20Set\x20\x27namedNew\x27\x20to\x20name\x20the\x20new\x20Guard\x20(you\x20may\x20also\x20use\x20\x27object\x27\x20as\x20an\x20alias\x20β€”\x20both\x20work).\x20Use\x20root.type=\x27node\x27\x20for\x20direct\x20node\x20tree\x20or\x20root.type=\x27file\x27\x20to\x20load\x20from\x20file.\x20Use\x20\x27wowok_buildin_info\x27\x20tool\x20with\x20query=\x27guard\x20instructions\x27\x20for\x20all\x20available\x20operations.\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Add\x20system\x20addresses\x20to\x20the\x20Guard\x20table\x20-\x20ENTITY_LINKER_ADDRESS\x20(0xaaa)\x20for\x20EntityLinker,\x20ENTITY_REGISTRAR_ADDRESS\x20(0xaab)\x20for\x20EntityRegistrar.'),z['object']({'operation_type':z['literal']('personal'),'data':CallPersonal_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ†”\x20Public\x20Identity\x20Profile:\x20Establish\x20and\x20manage\x20your\x20on-chain\x20public\x20identity.\x20⚠️\x20CRITICAL:\x20Everything\x20here\x20is\x20PERMANENTLY\x20PUBLIC\x20on\x20the\x20blockchain!'),z['object']({'operation_type':z['literal']('payment'),'data':CallPayment_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ’°\x20Payment\x20Object:\x20Send\x20instant,\x20irreversible\x20coin\x20transfers\x20to\x20any\x20wallet\x20address.'),z['object']({'operation_type':z['literal']('demand'),'data':CallDemand_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎯\x20Demand\x20Object:\x20Post\x20service\x20requests\x20with\x20reward\x20pools\x20on-chain.'),z['object']({'operation_type':z['literal']('order'),'data':CallOrder_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“¦\x20Order\x20Object:\x20Manage\x20the\x20order\x20lifecycle,\x20Including\x20operating\x20order\x20arbitration\x20(Arb\x20Object\x20associated\x20with\x20the\x20order),\x20advancing\x20progress\x20(Progress\x20Object\x20associated\x20with\x20the\x20order),\x20extracting\x20order\x20refunds/payments,\x20setting\x20agents,\x20etc.'),z['object']({'operation_type':z['literal']('gen_passport'),'guard':z['union']([z['string'](),z['array'](z['string']())])['describe']('Guard\x20object\x20ID(s)\x20to\x20verify\x20and\x20generate\x20passport\x20from.\x20Can\x20be\x20a\x20single\x20guard\x20(string)\x20or\x20multiple\x20guards\x20(array\x20of\x20strings).\x20Supports\x20guard\x20names\x20or\x20addresses.'),'info':SubmissionCallSchema['optional']()['describe']('Optional\x20submission\x20data.\x20If\x20not\x20provided,\x20will\x20attempt\x20to\x20get\x20existing\x20submissions\x20from\x20the\x20guard.'),'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ›‚\x20Generate\x20Verified\x20Passport\x20Object:\x20Create\x20immutable\x20verified\x20credentials\x20after\x20Guard\x20validation\x20passes.\x20Supports\x20verifying\x20multiple\x20guards\x20at\x20once.'),z['object']({'operation_type':z['literal']('proof'),'data':CallProof_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“œ\x20Proof\x20Object:\x20Create\x20immutable\x20on-chain\x20proof\x20objects\x20with\x20server\x20signatures.\x20Used\x20for\x20timestamped\x20message\x20proofs,\x20Merkle\x20tree\x20root\x20proofs,\x20etc.\x20Set\x20\x27namedNew\x27\x20in\x20data\x20to\x20name\x20the\x20new\x20Proof.'),CallGenProof_InputSchema['extend']({'operation_type':z['literal']('gen_proof')})['strict']()['describe']('⚑\x20Generate\x20Proof\x20(shortcut):\x20Create\x20a\x20new\x20on-chain\x20Proof\x20object\x20WITHOUT\x20the\x20namedNew\x20wrapper\x20(no\x20custom\x20name).\x20Prefer\x20`proof`\x20(operation_type=\x27proof\x27)\x20when\x20you\x20need\x20a\x20NAMED\x20Proof\x20that\x20other\x20objects\x20can\x20reference\x20by\x20name;\x20use\x20gen_proof\x20only\x20for\x20a\x20quick\x20unnamed\x20Proof.')]));export const WipOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['type'])return c;}catch{}if(typeof b['options']==='string')try{b['options']=JSON['parse'](b['options']);}catch{}return b;}return a;},z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['strict']()['describe']('Generate\x20WIP\x20file\x20from\x20markdown\x20text\x20and\x20optional\x20images'),z['object']({'type':z['literal']('verify'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['strict']()['describe']('Verify\x20WIP\x20file\x20integrity\x20and\x20signatures'),z['object']({'type':z['literal']('sign'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['strict']()['describe']('Sign\x20WIP\x20file\x20with\x20account'),z['object']({'type':z['literal']('wip2html'),'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict']()['describe']('Convert\x20WIP\x20file\x20to\x20HTML\x20format')]));export const OnchainTableDataSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null&&!Array['isArray'](a)){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}if(b['cursor']==='')b['cursor']=null;if(b['limit']==='')b['limit']=null;return b;}return a;},z['union']([z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20fields\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20nextCursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20items\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Paginated\x20query\x20of\x20an\x20on-chain\x20object\x27s\x20dynamic\x20fields\x20table\x20β€”\x20returns\x20items\x20with\x20keys,\x20types,\x20and\x20object\x20IDs.\x20Use\x20to\x20explore\x20all\x20entries\x20(e.g.,\x20all\x20orders\x20in\x20a\x20Service,\x20all\x20records\x20in\x20a\x20Repository).\x20Returns:\x20TableAnswer\x20|\x20undefined\x20(items[],\x20nextCursor,\x20hasNextPage)'),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'parent':NameOrAddressSchema['describe']('Parent\x20Repository\x20object\x20ID'),'name':z['string']()['describe']('Name/key\x20of\x20the\x20record\x20to\x20retrieve\x20from\x20the\x20repository'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('Entity\x20ID\x20or\x20address\x20that\x20owns/identifies\x20the\x20record'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20specific\x20record\x20from\x20a\x20Repository\x27s\x20on-chain\x20key-value\x20database\x20by\x20name\x20and\x20entity.\x20Use\x20to\x20read\x20stored\x20data\x20records.\x20Returns:\x20TableItem_RepositoryData\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'parent':NameOrAddressSchema['describe']('Parent\x20Permission\x20object\x20ID'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20or\x20Guard\x20ID\x20whose\x20permissions\x20to\x20check.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20permission\x20entry\x20from\x20a\x20Permission\x20object\x27s\x20perm\x20table\x20β€”\x20checks\x20what\x20operations\x20a\x20user/guard\x20is\x20allowed\x20to\x20perform.\x20Use\x20to\x20verify\x20access\x20rights.\x20Returns:\x20TableItem_PermissionPerm\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20to\x20look\x20up\x20in\x20the\x20global\x20EntityRegistrar.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20entity\x27s\x20registration\x20record\x20from\x20the\x20global\x20EntityRegistrar\x20β€”\x20verifies\x20if\x20an\x20address\x20is\x20registered\x20on\x20the\x20blockchain.\x20Use\x20to\x20check\x20registration\x20status\x20and\x20details.\x20Returns:\x20TableItem_EntityRegistrar\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20community\x20votes/endorsements\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20community\x20votes/endorsements\x20(likes/dislikes/favor)\x20for\x20an\x20entity\x20from\x20the\x20global\x20EntityLinker\x20β€”\x20shows\x20how\x20others\x20have\x20voted\x20on\x20this\x20entity.\x20Use\x20to\x20check\x20reputation\x20and\x20community\x20trust.\x20Returns:\x20TableItem_EntityLinker\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_contact'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20contact\x20memberships\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20customer-service\x20Contacts\x20an\x20entity\x20is\x20a\x20member\x20of,\x20from\x20the\x20global\x20EntityContact\x20reverse\x20index\x20(0xaa9).\x20Use\x20to\x20check\x20an\x20address\x27s\x20Contact\x20memberships.\x20Returns:\x20TableItem_EntityContact\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_core'),'address':AccountOrMark_AddressAISchema['describe']('Target\x20object\x20address\x20whose\x20core-object\x20bindings\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20bounded\x20core\x20objects\x20(Service/Machine/Treasury/Reward/Demand/Arbitration/Arb/Contact)\x20bind\x20to\x20a\x20target,\x20from\x20the\x20ObjectLinkerCore\x20reverse\x20index\x20(0xaae).\x20Lossless\x20fixed.\x20Use\x20for\x20default\x20reverse\x20lookups.\x20Returns:\x20TableItem_ObjectLinkerCore\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_tx'),'address':AccountOrMark_AddressAISchema['describe']('Target\x20object\x20address\x20whose\x20tx-object\x20bindings\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20operational\x20objects\x20(Order/Progress/Payment/Allocation/Guard/Permission)\x20bind\x20to\x20a\x20target,\x20from\x20the\x20ObjectLinkerTx\x20reverse\x20index\x20(0xaaf).\x20Lossy\x20FIFO\x20(recent\x20only).\x20Use\x20for\x20order/progress/operational\x20reverse\x20lookups.\x20Returns:\x20TableItem_ObjectLinkerTx\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'parent':NameOrAddressSchema['describe']('Parent\x20Reward\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('User\x20address\x20that\x20claimed\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20reward\x20claim\x20record\x20from\x20a\x20Reward\x20object\x27s\x20table\x20β€”\x20checks\x20if\x20a\x20user\x20has\x20claimed\x20a\x20specific\x20incentive.\x20Use\x20to\x20verify\x20reward\x20distribution\x20status.\x20Returns:\x20TableItem_RewardRecord\x20|\x20undefined')]),z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'parent':NameOrAddressSchema['describe']('Parent\x20Demand\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Presenter\x20address\x20that\x20submitted\x20the\x20demand'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20demand\x20submission\x20from\x20a\x20Demand\x20object\x27s\x20table\x20β€”\x20Demands\x20are\x20service\x20requests\x20submitted\x20by\x20users.\x20Use\x20to\x20check\x20a\x20specific\x20demand\x27s\x20details.\x20Returns:\x20TableItem_DemandPresenter\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Treasury\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Payment\x20ID\x20whose\x20treasury\x20record\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20payment\x20record\x20from\x20a\x20Treasury\x27s\x20history\x20table\x20by\x20payment\x20ID\x20β€”\x20Treasury\x20manages\x20funds\x20and\x20payment\x20tracking.\x20Use\x20to\x20look\x20up\x20payment\x20details\x20and\x20status.\x20Returns:\x20TableItem_TreasuryHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'parent':NameOrAddressSchema['describe']('Parent\x20Machine\x20object\x20ID'),'key':z['string']()['describe']('Node\x20name\x20(string\x20key)\x20to\x20query\x20in\x20the\x20Machine\x27s\x20workflow\x20definition'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20workflow\x20node\x20definition\x20from\x20a\x20Machine\x20object\x27s\x20table\x20by\x20node\x20name\x20β€”\x20Machines\x20define\x20workflow\x20templates.\x20Use\x20to\x20inspect\x20a\x20specific\x20node\x27s\x20configuration\x20and\x20logic.\x20Returns:\x20TableItem_MachineNode\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Progress\x20object\x20ID'),'u64':z['union']([z['number'](),z['string']()])['describe']('Sequence\x20number\x20(u64)\x20of\x20the\x20progress\x20step\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20progress\x20step\x20record\x20from\x20a\x20Progress\x20object\x27s\x20table\x20by\x20sequence\x20number\x20β€”\x20Progress\x20tracks\x20order/workflow\x20execution.\x20Use\x20to\x20check\x20the\x20status\x20of\x20a\x20specific\x20execution\x20step.\x20Returns:\x20TableItem_ProgressHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'parent':NameOrAddressSchema['describe']('Parent\x20AddressMark\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Address\x20whose\x20PUBLIC\x20on-chain\x20name/tags\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20PUBLIC\x20on-chain\x20name/tag\x20mark\x20for\x20an\x20address\x20β€”\x20unlike\x20local\x20marks,\x20these\x20are\x20published\x20on-chain.\x20Use\x20to\x20look\x20up\x20public\x20labels\x20attached\x20to\x20any\x20address.\x20Returns:\x20TableItem_AddressMark\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_generic'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20field\x20to\x20query'),'key_type':z['string']()['describe']('FULL\x20Move\x20type\x20of\x20the\x20key\x20(e.g.,\x20\x270x1::string::String\x27,\x20\x270x2::object::ID\x27,\x20\x270x1::address::Address\x27,\x20\x270x1::u64::U64\x27).\x20MUST\x20be\x20the\x20complete\x20type\x20string\x20with\x20address::module::struct\x20format.'),'key_value':z['union']([z['string']()['describe']('String\x20key\x20(for\x200x1::string::String)'),z['number']()['describe']('Numeric\x20key\x20(for\x200x1::u64::U64,\x200x1::u32::U32,\x20etc.)'),z['boolean']()['describe']('Boolean\x20key\x20(for\x200x1::bool::Bool)'),z['array'](z['union']([z['string'](),z['number'](),z['boolean']()]))['describe']('Vector\x20key\x20(for\x200x1::vector::*\x20types)'),z['record'](z['string'](),z['unknown']())['describe']('Struct/object\x20key\x20(for\x20complex\x20Move\x20struct\x20types)')])['describe']('Value\x20of\x20the\x20key.\x20Must\x20match\x20the\x20key_type\x20format\x20(e.g.,\x20string\x20for\x20\x270x1::string::String\x27,\x20address\x20for\x20\x270x1::address::Address\x27,\x20number\x20for\x20\x270x1::u64::U64\x27)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20generic\x20table\x20item\x20from\x20ANY\x20object\x27s\x20dynamic\x20fields\x20β€”\x20supports\x20arbitrary\x20key\x20types\x20and\x20values\x20for\x20non-WoWok\x20objects.\x20Use\x20for\x20custom\x20objects\x20and\x20general-purpose\x20table\x20lookups.\x20Returns:\x20ObjectBase\x20|\x20undefined')])]));export const WatchQueryOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}for(const d of['filter','objects','env','token_type']){if(typeof b[d]==='string')try{b[d]=JSON['parse'](b[d]);}catch{}}if(b['query_type']==='account_balance'&&b['filter']&&typeof b['filter']==='object'){const e=b['filter'];if(!b['name_or_address']){if(typeof e['name_or_address']==='string')b['name_or_address']=e['name_or_address'];else{if(typeof e['name']==='string')b['name_or_address']=e['name'];else typeof e['address']==='string'&&(b['name_or_address']=e['address']);}}!b['token_type']&&typeof e['token_type']==='string'&&(b['token_type']=e['token_type']),delete b['filter'];}return b;}return a;},z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('local_mark_list'),'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20address\x20book\x20β€”\x20maps\x20human-readable\x20names\x20to\x20blockchain\x20addresses\x20with\x20optional\x20tags.\x20Use\x20to\x20resolve\x20namesβ†’addresses\x20or\x20find\x20addresses\x20by\x20tag.\x20Returns:\x20MarkData[]\x20(name,\x20address,\x20tags,\x20timestamps)'),z['object']({'query_type':z['literal']('account_list'),'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20accounts\x20β€”\x20view\x20all\x20accounts\x20stored\x20on\x20this\x20device\x20(addresses,\x20messenger\x20status,\x20suspension\x20state).\x20Use\x20filter.includePubkey=true\x20to\x20also\x20include\x20public\x20keys\x20(~900\x20bytes\x20each,\x20omitted\x20by\x20default).\x20Returns:\x20AccountData[]\x20(name,\x20address,\x20pubkey?,\x20suspended,\x20messenger,\x20timestamps)'),z['object']({'query_type':z['literal']('local_info_list'),'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20private\x20info\x20β€”\x20sensitive\x20data\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20contacts\x20stored\x20ONLY\x20on\x20this\x20device.\x20Use\x20to\x20retrieve\x20saved\x20contact/delivery\x20details.\x20Returns:\x20InfoData[]\x20(name,\x20default\x20value,\x20contents,\x20timestamps)'),z['object']({'query_type':z['literal']('token_list'),'filter':TokenDataFilterSchema['optional']()})['strict']()['describe']('Query\x20cached\x20token\x20metadata\x20β€”\x20symbol,\x20decimals,\x20icon\x20URL,\x20description\x20for\x20tokens\x20previously\x20fetched\x20from\x20chain.\x20Use\x20to\x20look\x20up\x20token\x20info\x20without\x20an\x20on-chain\x20query.\x20Returns:\x20TokenTypeInfo[]\x20(type,\x20alias,\x20name,\x20symbol,\x20decimals,\x20iconUrl)'),z['object']({'query_type':z['literal']('account_balance'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query.\x20'+'Examples:\x20\x22my_account\x22,\x20\x220xabc123...\x22,\x20or\x20\x22\x22\x20for\x20the\x20default\x20account.\x20'+'NOTE:\x20This\x20field\x20is\x20NOT\x20named\x20\x27filter\x27\x20β€”\x20use\x20\x27name_or_address\x27\x20directly.\x20'+'Defaults\x20to\x20\x27\x27\x20(default\x20account)\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20query\x20total\x20balance\x20amount\x20for\x20the\x20token\x20type'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20for\x20listing\x20coin\x20objects'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20coin\x20objects\x20per\x20page')})['strict']()['optional']()['describe']('Set\x20to\x20query\x20paginated\x20coin\x20objects\x20instead\x20of\x20balance.\x20Use\x20cursor/limit\x20for\x20pagination.'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(default,\x209\x20decimals),\x20\x220x2::sui::SUI\x22\x20(9\x20decimals).\x20'+'For\x20custom\x20tokens,\x20use\x20the\x20full\x20type\x20string\x20from\x20the\x20token\x27s\x20coin\x20metadata.\x20'+'The\x20Fund\x20Processing\x20Layer\x20resolves\x20precision\x20from\x20the\x20official\x20registry\x20β†’\x20cache\x20β†’\x20on-chain.'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20account\x27s\x20coin\x20balance\x20OR\x20paginated\x20coin\x20objects.\x20'+'PARAMETERS:\x20Use\x20\x27name_or_address\x27\x20to\x20specify\x20the\x20account\x20(NOT\x20\x27filter\x27).\x20'+'Use\x20balance=true\x20for\x20total\x20amount,\x20or\x20coin={cursor,limit}\x20to\x20list\x20individual\x20coin\x20objects.\x20'+'Use\x20token_type\x20to\x20query\x20non-default\x20tokens\x20(format:\x200x<package>::<module>::<struct>).\x20'+'Returns:\x20{\x20address,\x20balance?\x20|\x20coin?\x20}'),z['object']({'query_type':z['literal']('local_names'),'addresses':z['array'](z['string']())['describe']('Array\x20of\x20addresses\x20to\x20look\x20up\x20local\x20names\x20for')})['strict']()['describe']('Query\x20local\x20names\x20(account\x20name\x20and\x20local\x20mark\x20name)\x20for\x20a\x20list\x20of\x20addresses.\x20Returns\x20array\x20of:\x20{\x20account?:\x20string,\x20local_mark?:\x20string,\x20address:\x20string\x20}'),z['object']({'query_type':z['literal']('onchain_personal_profile'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20any\x20user\x27s\x20PUBLIC\x20on-chain\x20profile\x20β€”\x20social\x20links,\x20reputation\x20(likes/dislikes),\x20personal\x20info\x20records,\x20voting\x20history,\x20referrer.\x20Use\x20to\x20look\x20up\x20a\x20user\x27s\x20public\x20identity\x20and\x20reputation.\x20Returns:\x20ObjectPersonal\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_objects'),'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20(names\x20or\x20addresses)\x20to\x20query\x20in\x20batch'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Batch\x20query\x20on-chain\x20WOWOK\x20objects\x20by\x20ID\x20or\x20name\x20β€”\x20supports\x20Service,\x20Machine,\x20Order,\x20Treasury,\x20Reward,\x20Arb,\x20Personal,\x20Contact,\x20and\x20more.\x20Use\x20to\x20inspect\x20one\x20or\x20more\x20objects\x20in\x20a\x20single\x20call.\x20Returns:\x20{\x20objects:\x20ObjectBase[]\x20}'),z['object']({'query_type':z['literal']('onchain_received'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Name\x20or\x20address\x20of\x20the\x20object\x20that\x20received\x20payments/items\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'type':z['union']([z['string'](),z['literal']('CoinWrapper'),z['null']()])['optional']()['describe']('Type\x20filter\x20for\x20querying\x20received\x20objects.\x20'+'-\x20If\x20undefined\x20or\x20null:\x20query\x20all\x20types\x20(equivalent\x20to\x20the\x20old\x20all_type=true).\x20'+'-\x20If\x20\x27CoinWrapper\x27:\x20query\x20CoinWrapper\x20type\x20for\x20the\x20object\x27s\x20token\x20(equivalent\x20to\x20the\x20old\x20all_type=false).\x20'+'-\x20If\x20string:\x20query\x20specific\x20StructType\x20(e.g.,\x20\x270x2::payment::CoinWrapper<0x2::wow::WOW>\x27).'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20records\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20objects\x20(Payments,\x20Tokens,\x20NFTs)\x20received\x20by\x20a\x20specific\x20object.\x20Use\x20to\x20track\x20incoming\x20payments\x20or\x20items\x20sent\x20to\x20an\x20on-chain\x20object.\x20Supports\x20pagination\x20and\x20type\x20filter.\x20Returns:\x20ReceivedBalance\x20|\x20ReceivedNormal[]'),z['object']({'query_type':z['literal']('onchain_transaction'),'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)\x20to\x20verify.\x20Use\x20after\x20any\x20on-chain\x20operation\x20to\x20confirm\x20what\x20actually\x20happened\x20on-chain\x20β€”\x20object\x20changes,\x20balance\x20changes,\x20gas\x20used,\x20success/failure\x20status.\x20This\x20is\x20the\x20\x27OperationProof\x27\x20primitive\x20for\x20the\x20Verify\x20step.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Verify\x20what\x20a\x20specific\x20transaction\x20did\x20on-chain\x20β€”\x20the\x20\x27OperationProof\x27\x20primitive.\x20After\x20executing\x20any\x20operation,\x20call\x20this\x20with\x20the\x20returned\x20digest\x20to\x20confirm:\x20status\x20(success/failed),\x20object\x20changes\x20(created/mutated/deleted),\x20balance\x20changes,\x20gas\x20used,\x20and\x20events.\x20Essential\x20for\x20the\x205-step\x20loop\x27s\x20Verify\x20step.\x20Returns:\x20TransactionDetail\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_object_history'),'object':NameOrAddressSchema['describe']('Object\x20ID\x20(0x...)\x20or\x20LocalMark\x20name.\x20Query\x20the\x20provenance\x20chain\x20β€”\x20every\x20transaction\x20that\x20created,\x20mutated,\x20or\x20deleted\x20this\x20object.\x20Use\x20to\x20trace\x20how\x20an\x20object\x20reached\x20its\x20current\x20state.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20β€”\x20query\x20all\x20transactions\x20that\x20touched\x20an\x20object.\x20WARNING:\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries\x20(each\x20tx\x20touches\x20more\x20objects\x20with\x20their\x20own\x20history).\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20instead\x20β€”\x20it\x20extracts\x20embedded\x20history\x20from\x20object\x20states\x20(ProgressSession.forwards,\x20etc.)\x20without\x20infinite\x20recursion.\x20This\x20tool\x20is\x20for\x20auditing/forensics\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_address_activity'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Address\x20(0x...)\x20or\x20account\x20name.\x20Query\x20all\x20on-chain\x20activity\x20by\x20this\x20actor\x20β€”\x20every\x20transaction\x20they\x20sent.\x20Use\x20to\x20build\x20a\x20user\x27s\x20on-chain\x20activity\x20profile\x20or\x20verify\x20an\x20actor\x27s\x20history.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20β€”\x20query\x20all\x20transactions\x20sent\x20by\x20an\x20address.\x20WARNING:\x20like\x20onchain_object_history,\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries.\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20(extracts\x20embedded\x20history)\x20or\x20query_events\x20(real-time\x20transitions)\x20instead.\x20This\x20tool\x20is\x20for\x20auditing/user-activity\x20profiling\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('token_value_convert'),'token_type':TokenTypeSchema['describe']('Full\x20token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(9\x20decimals).\x20The\x20token\x27s\x20decimals\x20drive\x20the\x20conversion\x20β€”\x20'+'resolved\x20from\x20official\x20registry\x20β†’\x20local\x20cache\x20β†’\x20on-chain\x20coin\x20metadata.'),'raw':z['union']([z['string'](),z['number']()])['optional']()['describe']('Raw\x20smallest-unit\x20value\x20(u64,\x20e.g.\x20\x222200000000\x22)\x20to\x20convert\x20TO\x20a\x20human\x20unit\x20value.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.'),'unit':z['union']([z['string'](),z['number']()])['optional']()['describe']('Human\x20unit\x20value\x20(e.g.\x20\x222.2\x22)\x20to\x20convert\x20TO\x20raw\x20smallest\x20units\x20(u64).\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.\x20Conversion\x20is\x20REFUSED\x20when\x20the\x20token\x27s\x20'+'decimals\x20cannot\x20be\x20resolved\x20(guessing\x20would\x20forge\x20wrong\x20on-chain\x20values).'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Convert\x20between\x20raw\x20on-chain\x20smallest\x20units\x20(u64)\x20and\x20human\x20unit\x20values,\x20in\x20EITHER\x20direction.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit\x20(handler-validated).\x20'+'raw\x20β†’\x20unit:\x20\x222200000000\x22\x20β†’\x20\x222.2\x22\x20(pass-through\x20when\x20precision\x20unknown).\x20'+'unit\x20β†’\x20raw:\x20\x222.2\x22\x20β†’\x20\x222200000000\x22\x20(REFUSED\x20when\x20precision\x20unknown\x20β€”\x20never\x20guesses\x20decimals).\x20'+'Use\x20this\x20before\x20displaying\x20chain\x20values\x20to\x20users,\x20and\x20before\x20entering\x20amounts\x20for\x20on-chain\x20operations.\x20'+'Returns:\x20{\x20token_type,\x20symbol?,\x20decimals?,\x20precision_known,\x20direction,\x20input,\x20output,\x20error?,\x20text\x20}')]));export const OnchainTableDataResultSchema=z['object']({'result':z['union']([z['object']({'query_type':z['literal']('onchain_table'),'result':z['union']([TableAnswerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'result':z['union']([TableItem_RepositoryDataSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'result':z['union']([TableItem_PermissionPermSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'result':z['union']([TableItem_EntityRegistrarSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'result':z['union']([TableItem_EntityLinkerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_contact'),'result':z['union']([TableItem_EntityContactSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_core'),'result':z['union']([TableItem_ObjectLinkerCoreSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_tx'),'result':z['union']([TableItem_ObjectLinkerTxSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'result':z['union']([TableItem_RewardRecordSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'result':z['union']([TableItem_DemandPresenterSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'result':z['union']([TableItem_TreasuryHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'result':z['union']([TableItem_MachineNodeSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'result':z['union']([TableItem_ProgressHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'result':z['union']([TableItem_AddressMarkSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_generic'),'result':z['union']([ObjectBaseSchema,z['undefined']()])})]),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20table\x20data\x20query')});
1
+ import{z}from'zod';import{CallService_DataSchema,CallMachine_DataSchema,CallProgress_DataSchema,CallRepository_DataSchema,CallArbitration_DataSchema,CallContact_DataSchema,CallTreasury_DataSchema,CallReward_DataSchema,CallAllocation_DataSchema,CallPermission_DataSchema,CallGuard_DataSchema,CallPersonal_DataSchema,CallPayment_DataSchema,CallDemand_DataSchema,CallOrder_DataSchema,CallProof_DataSchema,CallGenProof_InputSchema,CallEnvSchema,SubmissionCallSchema,SemanticSummarySchema}from'./call/index.js';import{WipGenerationOptionsSchema,WipToHtmlOptionsSchema,LocalMarkFilterSchema,AccountFilterSchema,LocalInfoFilterSchema,TokenDataFilterSchema}from'./local/index.js';import{NameOrAddressSchema,AccountOrMark_AddressSchema,AccountOrMark_AddressAISchema,EntrypointSchema,TokenTypeSchema,ObjectBaseSchema}from'./common/index.js';import{TableAnswerSchema,TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_EntityContactSchema,TableItem_ObjectLinkerCoreSchema,TableItem_ObjectLinkerTxSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema}from'./query/index.js';export const OnchainOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['operation_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['operation_type'])return c;}catch{}if(typeof b['data']==='string')try{b['data']=JSON['parse'](b['data']);}catch{}if(typeof b['env']==='string')try{b['env']=JSON['parse'](b['env']);}catch{}if(typeof b['submission']==='string')try{b['submission']=JSON['parse'](b['submission']);}catch{}if(typeof b['info']==='string')try{b['info']=JSON['parse'](b['info']);}catch{}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const e=b['data'];e['data']&&typeof e['data']==='object'&&!e['operation_type']&&(e['env']!==undefined&&b['env']===undefined&&(b['env']=e['env']),e['submission']!==undefined&&b['submission']===undefined&&(b['submission']=e['submission']),b['data']=e['data']);if(typeof e['description']==='string'&&!e['operation_type'])try{const f=JSON['parse'](e['description']);f&&typeof f==='object'&&(b['data']=f);}catch{}}if(b['operation_type']==='guard'&&b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const g=b['data'];g['object']&&!g['namedNew']&&(g['namedNew']=g['object'],delete g['object']);if(Array['isArray'](g['table']))for(const h of g['table']){h&&typeof h==='object'&&!Array['isArray'](h)&&'object_type'in h&&delete h['object_type'];}}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const i=b['data'];if(i['submission']!==undefined){if(b['submission']!==undefined)throw new z['ZodError']([{'code':z['ZodIssueCode']['custom'],'path':['submission'],'message':'\x27submission\x27\x20provided\x20in\x20BOTH\x20top-level\x20and\x20inside\x20data\x20β€”\x20provide\x20it\x20in\x20only\x20ONE\x20place\x20(top\x20level\x20OR\x20data),\x20not\x20both.'}]);b['submission']=i['submission'],delete i['submission'];}}return b;}return a;},z['discriminatedUnion']('operation_type',[z['object']({'operation_type':z['literal']('service'),'data':CallService_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸͺ\x20Service\x20Object:\x20Create\x20and\x20manage\x20product/service\x20listings\x20with\x20transparent\x20promises,\x20bind\x20workflow\x20templates\x20to\x20order\x20processing,\x20set\x20pricing,\x20issue\x20discount\x20coupons\x20to\x20customers,\x20and\x20establish\x20quality\x20standards,\x20etc..'),z['object']({'operation_type':z['literal']('machine'),'data':CallMachine_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('βš™οΈ\x20Machine\x20Object:\x20Design\x20and\x20deploy\x20automated\x20workflow\x20templates\x20(Machines)\x20that\x20define\x20how\x20services\x20are\x20delivered,\x20etc..'),z['object']({'operation_type':z['literal']('progress'),'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“Š\x20Progress\x20Object:\x20Track\x20and\x20manage\x20active\x20workflows\x20in\x20real-time.'),z['object']({'operation_type':z['literal']('repository'),'data':CallRepository_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“¦\x20Repository\x20Object:\x20Read/write\x20database\x20with\x20consensus\x20field\x20+\x20address\x20as\x20key,\x20strongly-typed\x20data\x20as\x20value.'),z['object']({'operation_type':z['literal']('arbitration'),'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('βš–οΈ\x20Arbitration\x20Object:\x20Access\x20a\x20transparent\x20on-chain\x20arbitration\x20system\x20for\x20resolving\x20order\x20conflicts.'),z['object']({'operation_type':z['literal']('contact'),'data':CallContact_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ’¬\x20Contact\x20Object:\x20Manage\x20on-chain\x20instant\x20messaging\x20contact\x20profiles.'),z['object']({'operation_type':z['literal']('treasury'),'data':CallTreasury_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ’°\x20Treasury\x20Object:\x20Create\x20and\x20manage\x20treasury\x20for\x20team\x20funds\x20with\x20deposit/withdrawal\x20rules,\x20etc..'),z['object']({'operation_type':z['literal']('reward'),'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎁\x20Reward\x20Object:\x20Create\x20reward\x20pools\x20and\x20set\x20claim\x20conditions\x20by\x20Guard\x20verification.'),z['object']({'operation_type':z['literal']('allocation'),'data':CallAllocation_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“€\x20Allocation\x20Object:\x20Create\x20distribution\x20plans\x20to\x20auto-distribute\x20funds\x20to\x20multiple\x20recipients.'),z['object']({'operation_type':z['literal']('permission'),'data':CallPermission_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ”\x20Permission\x20Object:\x20Define\x20who\x20can\x20perform\x20which\x20operations\x20on\x20WoWok\x20objects.\x20Important\x20Note:\x20If\x20needed,\x20you\x20should\x20first\x20query\x20\x27guard\x20instructions\x27\x20through\x20the\x20\x27wowok_buildin_info\x27\x20tool.'),z['object']({'operation_type':z['literal']('guard'),'data':CallGuard_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ›‘οΈ\x20Guard\x20Object:\x20Create\x20immutable\x20programmable\x20validation\x20rules\x20that\x20return\x20boolean\x20results.\x20Set\x20\x27namedNew\x27\x20to\x20name\x20the\x20new\x20Guard\x20(you\x20may\x20also\x20use\x20\x27object\x27\x20as\x20an\x20alias\x20β€”\x20both\x20work).\x20Use\x20root.type=\x27node\x27\x20for\x20direct\x20node\x20tree\x20or\x20root.type=\x27file\x27\x20to\x20load\x20from\x20file.\x20Use\x20\x27wowok_buildin_info\x27\x20tool\x20with\x20query=\x27guard\x20instructions\x27\x20for\x20all\x20available\x20operations.\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Add\x20system\x20addresses\x20to\x20the\x20Guard\x20table\x20-\x20ENTITY_LINKER_ADDRESS\x20(0xaaa)\x20for\x20EntityLinker,\x20ENTITY_REGISTRAR_ADDRESS\x20(0xaab)\x20for\x20EntityRegistrar.'),z['object']({'operation_type':z['literal']('personal'),'data':CallPersonal_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ†”\x20Public\x20Identity\x20Profile:\x20Establish\x20and\x20manage\x20your\x20on-chain\x20public\x20identity.\x20⚠️\x20CRITICAL:\x20Everything\x20here\x20is\x20PERMANENTLY\x20PUBLIC\x20on\x20the\x20blockchain!'),z['object']({'operation_type':z['literal']('payment'),'data':CallPayment_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ’°\x20Payment\x20Object:\x20Send\x20instant,\x20irreversible\x20coin\x20transfers\x20to\x20any\x20wallet\x20address.'),z['object']({'operation_type':z['literal']('demand'),'data':CallDemand_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎯\x20Demand\x20Object:\x20Post\x20service\x20requests\x20with\x20reward\x20pools\x20on-chain.'),z['object']({'operation_type':z['literal']('order'),'data':CallOrder_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“¦\x20Order\x20Object:\x20Manage\x20the\x20order\x20lifecycle,\x20Including\x20operating\x20order\x20arbitration\x20(Arb\x20Object\x20associated\x20with\x20the\x20order),\x20advancing\x20progress\x20(Progress\x20Object\x20associated\x20with\x20the\x20order),\x20extracting\x20order\x20refunds/payments,\x20setting\x20agents,\x20etc.'),z['object']({'operation_type':z['literal']('gen_passport'),'guard':z['union']([z['string'](),z['array'](z['string']())])['describe']('Guard\x20object\x20ID(s)\x20to\x20verify\x20and\x20generate\x20passport\x20from.\x20Can\x20be\x20a\x20single\x20guard\x20(string)\x20or\x20multiple\x20guards\x20(array\x20of\x20strings).\x20Supports\x20guard\x20names\x20or\x20addresses.'),'info':SubmissionCallSchema['optional']()['describe']('Optional\x20submission\x20data.\x20If\x20not\x20provided,\x20will\x20attempt\x20to\x20get\x20existing\x20submissions\x20from\x20the\x20guard.'),'env':CallEnvSchema['optional']()})['strict']()['describe']('πŸ›‚\x20Generate\x20Verified\x20Passport\x20Object:\x20Create\x20immutable\x20verified\x20credentials\x20after\x20Guard\x20validation\x20passes.\x20Supports\x20verifying\x20multiple\x20guards\x20at\x20once.'),z['object']({'operation_type':z['literal']('proof'),'data':CallProof_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('πŸ“œ\x20Proof\x20Object:\x20Create\x20immutable\x20on-chain\x20proof\x20objects\x20with\x20server\x20signatures.\x20Used\x20for\x20timestamped\x20message\x20proofs,\x20Merkle\x20tree\x20root\x20proofs,\x20etc.\x20Set\x20\x27namedNew\x27\x20in\x20data\x20to\x20name\x20the\x20new\x20Proof.'),CallGenProof_InputSchema['extend']({'operation_type':z['literal']('gen_proof')})['strict']()['describe']('⚑\x20Generate\x20Proof\x20(shortcut):\x20Create\x20a\x20new\x20on-chain\x20Proof\x20object\x20WITHOUT\x20the\x20namedNew\x20wrapper\x20(no\x20custom\x20name).\x20Prefer\x20`proof`\x20(operation_type=\x27proof\x27)\x20when\x20you\x20need\x20a\x20NAMED\x20Proof\x20that\x20other\x20objects\x20can\x20reference\x20by\x20name;\x20use\x20gen_proof\x20only\x20for\x20a\x20quick\x20unnamed\x20Proof.')]));export const WipOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['type'])return c;}catch{}if(typeof b['options']==='string')try{b['options']=JSON['parse'](b['options']);}catch{}return b;}return a;},z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['strict']()['describe']('Generate\x20WIP\x20file\x20from\x20markdown\x20text\x20and\x20optional\x20images'),z['object']({'type':z['literal']('verify'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['strict']()['describe']('Verify\x20WIP\x20file\x20integrity\x20and\x20signatures'),z['object']({'type':z['literal']('sign'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['strict']()['describe']('Sign\x20WIP\x20file\x20with\x20account'),z['object']({'type':z['literal']('wip2html'),'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict']()['describe']('Convert\x20WIP\x20file\x20to\x20HTML\x20format')]));export const OnchainTableDataSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null&&!Array['isArray'](a)){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}if(b['cursor']==='')b['cursor']=null;if(b['limit']==='')b['limit']=null;return b;}return a;},z['union']([z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20fields\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20nextCursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20items\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Paginated\x20query\x20of\x20an\x20on-chain\x20object\x27s\x20dynamic\x20fields\x20table\x20β€”\x20returns\x20items\x20with\x20keys,\x20types,\x20and\x20object\x20IDs.\x20Use\x20to\x20explore\x20all\x20entries\x20(e.g.,\x20all\x20orders\x20in\x20a\x20Service,\x20all\x20records\x20in\x20a\x20Repository).\x20Returns:\x20TableAnswer\x20|\x20undefined\x20(items[],\x20nextCursor,\x20hasNextPage)'),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'parent':NameOrAddressSchema['describe']('Parent\x20Repository\x20object\x20ID'),'name':z['string']()['describe']('Name/key\x20of\x20the\x20record\x20to\x20retrieve\x20from\x20the\x20repository'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('Entity\x20ID\x20or\x20address\x20that\x20owns/identifies\x20the\x20record'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20specific\x20record\x20from\x20a\x20Repository\x27s\x20on-chain\x20key-value\x20database\x20by\x20name\x20and\x20entity.\x20Use\x20to\x20read\x20stored\x20data\x20records.\x20Returns:\x20TableItem_RepositoryData\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'parent':NameOrAddressSchema['describe']('Parent\x20Permission\x20object\x20ID'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20or\x20Guard\x20ID\x20whose\x20permissions\x20to\x20check.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20permission\x20entry\x20from\x20a\x20Permission\x20object\x27s\x20perm\x20table\x20β€”\x20checks\x20what\x20operations\x20a\x20user/guard\x20is\x20allowed\x20to\x20perform.\x20Use\x20to\x20verify\x20access\x20rights.\x20Returns:\x20TableItem_PermissionPerm\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20to\x20look\x20up\x20in\x20the\x20global\x20EntityRegistrar.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20entity\x27s\x20registration\x20record\x20from\x20the\x20global\x20EntityRegistrar\x20β€”\x20verifies\x20if\x20an\x20address\x20is\x20registered\x20on\x20the\x20blockchain.\x20Use\x20to\x20check\x20registration\x20status\x20and\x20details.\x20Returns:\x20TableItem_EntityRegistrar\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20community\x20votes/endorsements\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20community\x20votes/endorsements\x20(likes/dislikes/favor)\x20for\x20an\x20entity\x20from\x20the\x20global\x20EntityLinker\x20β€”\x20shows\x20how\x20others\x20have\x20voted\x20on\x20this\x20entity.\x20Use\x20to\x20check\x20reputation\x20and\x20community\x20trust.\x20Returns:\x20TableItem_EntityLinker\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_contact'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20contact\x20memberships\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20customer-service\x20Contacts\x20an\x20entity\x20is\x20a\x20member\x20of,\x20from\x20the\x20global\x20EntityContact\x20reverse\x20index\x20(0xaa9).\x20Use\x20to\x20check\x20an\x20address\x27s\x20Contact\x20memberships.\x20Returns:\x20TableItem_EntityContact\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_core'),'address':AccountOrMark_AddressAISchema['describe']('Target\x20object\x20address\x20whose\x20core-object\x20bindings\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20bounded\x20core\x20objects\x20(Service/Machine/Treasury/Reward/Demand/Arbitration/Arb/Contact)\x20bind\x20to\x20a\x20target,\x20from\x20the\x20ObjectLinkerCore\x20reverse\x20index\x20(0xaae).\x20Lossless\x20fixed.\x20Use\x20for\x20default\x20reverse\x20lookups.\x20Returns:\x20TableItem_ObjectLinkerCore\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_tx'),'address':AccountOrMark_AddressAISchema['describe']('Target\x20object\x20address\x20whose\x20tx-object\x20bindings\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20operational\x20objects\x20(Order/Progress/Payment/Allocation/Guard/Permission)\x20bind\x20to\x20a\x20target,\x20from\x20the\x20ObjectLinkerTx\x20reverse\x20index\x20(0xaaf).\x20Lossy\x20FIFO\x20(recent\x20only).\x20Use\x20for\x20order/progress/operational\x20reverse\x20lookups.\x20Returns:\x20TableItem_ObjectLinkerTx\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'parent':NameOrAddressSchema['describe']('Parent\x20Reward\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('User\x20address\x20that\x20claimed\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20reward\x20claim\x20record\x20from\x20a\x20Reward\x20object\x27s\x20table\x20β€”\x20checks\x20if\x20a\x20user\x20has\x20claimed\x20a\x20specific\x20incentive.\x20Use\x20to\x20verify\x20reward\x20distribution\x20status.\x20Returns:\x20TableItem_RewardRecord\x20|\x20undefined')]),z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'parent':NameOrAddressSchema['describe']('Parent\x20Demand\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Presenter\x20address\x20that\x20submitted\x20the\x20demand'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20demand\x20submission\x20from\x20a\x20Demand\x20object\x27s\x20table\x20β€”\x20Demands\x20are\x20service\x20requests\x20submitted\x20by\x20users.\x20Use\x20to\x20check\x20a\x20specific\x20demand\x27s\x20details.\x20Returns:\x20TableItem_DemandPresenter\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Treasury\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Payment\x20ID\x20whose\x20treasury\x20record\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20payment\x20record\x20from\x20a\x20Treasury\x27s\x20history\x20table\x20by\x20payment\x20ID\x20β€”\x20Treasury\x20manages\x20funds\x20and\x20payment\x20tracking.\x20Use\x20to\x20look\x20up\x20payment\x20details\x20and\x20status.\x20Returns:\x20TableItem_TreasuryHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'parent':NameOrAddressSchema['describe']('Parent\x20Machine\x20object\x20ID'),'key':z['string']()['describe']('Node\x20name\x20(string\x20key)\x20to\x20query\x20in\x20the\x20Machine\x27s\x20workflow\x20definition'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20workflow\x20node\x20definition\x20from\x20a\x20Machine\x20object\x27s\x20table\x20by\x20node\x20name\x20β€”\x20Machines\x20define\x20workflow\x20templates.\x20Use\x20to\x20inspect\x20a\x20specific\x20node\x27s\x20configuration\x20and\x20logic.\x20Returns:\x20TableItem_MachineNode\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Progress\x20object\x20ID'),'u64':z['union']([z['number'](),z['string']()])['describe']('Sequence\x20number\x20(u64)\x20of\x20the\x20progress\x20step\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20progress\x20step\x20record\x20from\x20a\x20Progress\x20object\x27s\x20table\x20by\x20sequence\x20number\x20β€”\x20Progress\x20tracks\x20order/workflow\x20execution.\x20Use\x20to\x20check\x20the\x20status\x20of\x20a\x20specific\x20execution\x20step.\x20Returns:\x20TableItem_ProgressHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'parent':NameOrAddressSchema['describe']('Parent\x20AddressMark\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Address\x20whose\x20PUBLIC\x20on-chain\x20name/tags\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20PUBLIC\x20on-chain\x20name/tag\x20mark\x20for\x20an\x20address\x20β€”\x20unlike\x20local\x20marks,\x20these\x20are\x20published\x20on-chain.\x20Use\x20to\x20look\x20up\x20public\x20labels\x20attached\x20to\x20any\x20address.\x20Returns:\x20TableItem_AddressMark\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_generic'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20field\x20to\x20query'),'key_type':z['string']()['describe']('FULL\x20Move\x20type\x20of\x20the\x20key\x20(e.g.,\x20\x270x1::string::String\x27,\x20\x270x2::object::ID\x27,\x20\x270x1::address::Address\x27,\x20\x270x1::u64::U64\x27).\x20MUST\x20be\x20the\x20complete\x20type\x20string\x20with\x20address::module::struct\x20format.'),'key_value':z['union']([z['string']()['describe']('String\x20key\x20(for\x200x1::string::String)'),z['number']()['describe']('Numeric\x20key\x20(for\x200x1::u64::U64,\x200x1::u32::U32,\x20etc.)'),z['boolean']()['describe']('Boolean\x20key\x20(for\x200x1::bool::Bool)'),z['array'](z['union']([z['string'](),z['number'](),z['boolean']()]))['describe']('Vector\x20key\x20(for\x200x1::vector::*\x20types)'),z['record'](z['string'](),z['unknown']())['describe']('Struct/object\x20key\x20(for\x20complex\x20Move\x20struct\x20types)')])['describe']('Value\x20of\x20the\x20key.\x20Must\x20match\x20the\x20key_type\x20format\x20(e.g.,\x20string\x20for\x20\x270x1::string::String\x27,\x20address\x20for\x20\x270x1::address::Address\x27,\x20number\x20for\x20\x270x1::u64::U64\x27)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20generic\x20table\x20item\x20from\x20ANY\x20object\x27s\x20dynamic\x20fields\x20β€”\x20supports\x20arbitrary\x20key\x20types\x20and\x20values\x20for\x20non-WoWok\x20objects.\x20Use\x20for\x20custom\x20objects\x20and\x20general-purpose\x20table\x20lookups.\x20Returns:\x20ObjectBase\x20|\x20undefined')])]));export const WatchQueryOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}for(const d of['filter','objects','env','token_type']){if(typeof b[d]==='string')try{b[d]=JSON['parse'](b[d]);}catch{}}if(b['query_type']==='account_balance'&&b['filter']&&typeof b['filter']==='object'){const e=b['filter'];if(!b['name_or_address']){if(typeof e['name_or_address']==='string')b['name_or_address']=e['name_or_address'];else{if(typeof e['name']==='string')b['name_or_address']=e['name'];else typeof e['address']==='string'&&(b['name_or_address']=e['address']);}}!b['token_type']&&typeof e['token_type']==='string'&&(b['token_type']=e['token_type']),!b['network']&&typeof e['network']==='string'&&(b['network']=e['network']),delete b['filter'];}return b['query_type']==='account_balance'&&b['balance']===undefined&&b['coin']===undefined&&(b['balance']=!![]),b;}return a;},z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('local_mark_list'),'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20address\x20book\x20β€”\x20maps\x20human-readable\x20names\x20to\x20blockchain\x20addresses\x20with\x20optional\x20tags.\x20Use\x20to\x20resolve\x20namesβ†’addresses\x20or\x20find\x20addresses\x20by\x20tag.\x20Returns:\x20MarkData[]\x20(name,\x20address,\x20tags,\x20timestamps)'),z['object']({'query_type':z['literal']('account_list'),'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20accounts\x20β€”\x20view\x20all\x20accounts\x20stored\x20on\x20this\x20device\x20(addresses,\x20messenger\x20status,\x20suspension\x20state).\x20Use\x20filter.includePubkey=true\x20to\x20also\x20include\x20public\x20keys\x20(~900\x20bytes\x20each,\x20omitted\x20by\x20default).\x20Returns:\x20AccountData[]\x20(name,\x20address,\x20pubkey?,\x20suspended,\x20messenger,\x20timestamps)'),z['object']({'query_type':z['literal']('local_info_list'),'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20private\x20info\x20β€”\x20sensitive\x20data\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20contacts\x20stored\x20ONLY\x20on\x20this\x20device.\x20Use\x20to\x20retrieve\x20saved\x20contact/delivery\x20details.\x20Returns:\x20InfoData[]\x20(name,\x20default\x20value,\x20contents,\x20timestamps)'),z['object']({'query_type':z['literal']('token_list'),'filter':TokenDataFilterSchema['optional']()})['strict']()['describe']('Query\x20cached\x20token\x20metadata\x20β€”\x20symbol,\x20decimals,\x20icon\x20URL,\x20description\x20for\x20tokens\x20previously\x20fetched\x20from\x20chain.\x20Use\x20to\x20look\x20up\x20token\x20info\x20without\x20an\x20on-chain\x20query.\x20Returns:\x20TokenTypeInfo[]\x20(type,\x20alias,\x20name,\x20symbol,\x20decimals,\x20iconUrl)'),z['object']({'query_type':z['literal']('account_balance'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query.\x20'+'Examples:\x20\x22my_account\x22,\x20\x220xabc123...\x22,\x20or\x20\x22\x22\x20for\x20the\x20default\x20account.\x20'+'NOTE:\x20This\x20field\x20is\x20NOT\x20named\x20\x27filter\x27\x20β€”\x20use\x20\x27name_or_address\x27\x20directly.\x20'+'Defaults\x20to\x20\x27\x27\x20(default\x20account)\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20query\x20total\x20balance\x20amount\x20for\x20the\x20token\x20type'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20for\x20listing\x20coin\x20objects'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20coin\x20objects\x20per\x20page')})['strict']()['optional']()['describe']('Set\x20to\x20query\x20paginated\x20coin\x20objects\x20instead\x20of\x20balance.\x20Use\x20cursor/limit\x20for\x20pagination.'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(default,\x209\x20decimals),\x20\x220x2::sui::SUI\x22\x20(9\x20decimals).\x20'+'For\x20custom\x20tokens,\x20use\x20the\x20full\x20type\x20string\x20from\x20the\x20token\x27s\x20coin\x20metadata.\x20'+'The\x20Fund\x20Processing\x20Layer\x20resolves\x20precision\x20from\x20the\x20official\x20registry\x20β†’\x20cache\x20β†’\x20on-chain.'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20account\x27s\x20coin\x20balance\x20OR\x20paginated\x20coin\x20objects.\x20'+'PARAMETERS:\x20Use\x20\x27name_or_address\x27\x20to\x20specify\x20the\x20account\x20(NOT\x20\x27filter\x27).\x20'+'Use\x20balance=true\x20for\x20total\x20amount,\x20or\x20coin={cursor,limit}\x20to\x20list\x20individual\x20coin\x20objects.\x20'+'Use\x20token_type\x20to\x20query\x20non-default\x20tokens\x20(format:\x200x<package>::<module>::<struct>).\x20'+'Returns:\x20{\x20address,\x20balance?\x20|\x20coin?\x20}'),z['object']({'query_type':z['literal']('local_names'),'addresses':z['array'](z['string']())['describe']('Array\x20of\x20addresses\x20to\x20look\x20up\x20local\x20names\x20for')})['strict']()['describe']('Query\x20local\x20names\x20(account\x20name\x20and\x20local\x20mark\x20name)\x20for\x20a\x20list\x20of\x20addresses.\x20Returns\x20array\x20of:\x20{\x20account?:\x20string,\x20local_mark?:\x20string,\x20address:\x20string\x20}'),z['object']({'query_type':z['literal']('onchain_personal_profile'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20any\x20user\x27s\x20PUBLIC\x20on-chain\x20profile\x20β€”\x20social\x20links,\x20reputation\x20(likes/dislikes),\x20personal\x20info\x20records,\x20voting\x20history,\x20referrer.\x20Use\x20to\x20look\x20up\x20a\x20user\x27s\x20public\x20identity\x20and\x20reputation.\x20Returns:\x20ObjectPersonal\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_objects'),'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20(names\x20or\x20addresses)\x20to\x20query\x20in\x20batch'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Batch\x20query\x20on-chain\x20WOWOK\x20objects\x20by\x20ID\x20or\x20name\x20β€”\x20supports\x20Service,\x20Machine,\x20Order,\x20Treasury,\x20Reward,\x20Arb,\x20Personal,\x20Contact,\x20and\x20more.\x20Use\x20to\x20inspect\x20one\x20or\x20more\x20objects\x20in\x20a\x20single\x20call.\x20Returns:\x20{\x20objects:\x20ObjectBase[]\x20}'),z['object']({'query_type':z['literal']('onchain_received'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Name\x20or\x20address\x20of\x20the\x20object\x20that\x20received\x20payments/items\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'type':z['union']([z['string'](),z['literal']('CoinWrapper'),z['null']()])['optional']()['describe']('Type\x20filter\x20for\x20querying\x20received\x20objects.\x20'+'-\x20If\x20undefined\x20or\x20null:\x20query\x20all\x20types\x20(equivalent\x20to\x20the\x20old\x20all_type=true).\x20'+'-\x20If\x20\x27CoinWrapper\x27:\x20query\x20CoinWrapper\x20type\x20for\x20the\x20object\x27s\x20token\x20(equivalent\x20to\x20the\x20old\x20all_type=false).\x20'+'-\x20If\x20string:\x20query\x20specific\x20StructType\x20(e.g.,\x20\x270x2::payment::CoinWrapper<0x2::wow::WOW>\x27).'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20records\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20objects\x20(Payments,\x20Tokens,\x20NFTs)\x20received\x20by\x20a\x20specific\x20object.\x20Use\x20to\x20track\x20incoming\x20payments\x20or\x20items\x20sent\x20to\x20an\x20on-chain\x20object.\x20Supports\x20pagination\x20and\x20type\x20filter.\x20Returns:\x20ReceivedBalance\x20|\x20ReceivedNormal[]'),z['object']({'query_type':z['literal']('onchain_transaction'),'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)\x20to\x20verify.\x20Use\x20after\x20any\x20on-chain\x20operation\x20to\x20confirm\x20what\x20actually\x20happened\x20on-chain\x20β€”\x20object\x20changes,\x20balance\x20changes,\x20gas\x20used,\x20success/failure\x20status.\x20This\x20is\x20the\x20\x27OperationProof\x27\x20primitive\x20for\x20the\x20Verify\x20step.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Verify\x20what\x20a\x20specific\x20transaction\x20did\x20on-chain\x20β€”\x20the\x20\x27OperationProof\x27\x20primitive.\x20After\x20executing\x20any\x20operation,\x20call\x20this\x20with\x20the\x20returned\x20digest\x20to\x20confirm:\x20status\x20(success/failed),\x20object\x20changes\x20(created/mutated/deleted),\x20balance\x20changes,\x20gas\x20used,\x20and\x20events.\x20Essential\x20for\x20the\x205-step\x20loop\x27s\x20Verify\x20step.\x20Returns:\x20TransactionDetail\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_object_history'),'object':NameOrAddressSchema['describe']('Object\x20ID\x20(0x...)\x20or\x20LocalMark\x20name.\x20Query\x20the\x20provenance\x20chain\x20β€”\x20every\x20transaction\x20that\x20created,\x20mutated,\x20or\x20deleted\x20this\x20object.\x20Use\x20to\x20trace\x20how\x20an\x20object\x20reached\x20its\x20current\x20state.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20β€”\x20query\x20all\x20transactions\x20that\x20touched\x20an\x20object.\x20WARNING:\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries\x20(each\x20tx\x20touches\x20more\x20objects\x20with\x20their\x20own\x20history).\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20instead\x20β€”\x20it\x20extracts\x20embedded\x20history\x20from\x20object\x20states\x20(ProgressSession.forwards,\x20etc.)\x20without\x20infinite\x20recursion.\x20This\x20tool\x20is\x20for\x20auditing/forensics\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_address_activity'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Address\x20(0x...)\x20or\x20account\x20name.\x20Query\x20all\x20on-chain\x20activity\x20by\x20this\x20actor\x20β€”\x20every\x20transaction\x20they\x20sent.\x20Use\x20to\x20build\x20a\x20user\x27s\x20on-chain\x20activity\x20profile\x20or\x20verify\x20an\x20actor\x27s\x20history.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20β€”\x20query\x20all\x20transactions\x20sent\x20by\x20an\x20address.\x20WARNING:\x20like\x20onchain_object_history,\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries.\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20(extracts\x20embedded\x20history)\x20or\x20query_events\x20(real-time\x20transitions)\x20instead.\x20This\x20tool\x20is\x20for\x20auditing/user-activity\x20profiling\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('token_value_convert'),'token_type':TokenTypeSchema['describe']('Full\x20token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(9\x20decimals).\x20The\x20token\x27s\x20decimals\x20drive\x20the\x20conversion\x20β€”\x20'+'resolved\x20from\x20official\x20registry\x20β†’\x20local\x20cache\x20β†’\x20on-chain\x20coin\x20metadata.'),'raw':z['union']([z['string'](),z['number']()])['optional']()['describe']('Raw\x20smallest-unit\x20value\x20(u64,\x20e.g.\x20\x222200000000\x22)\x20to\x20convert\x20TO\x20a\x20human\x20unit\x20value.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.'),'unit':z['union']([z['string'](),z['number']()])['optional']()['describe']('Human\x20unit\x20value\x20(e.g.\x20\x222.2\x22)\x20to\x20convert\x20TO\x20raw\x20smallest\x20units\x20(u64).\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.\x20Conversion\x20is\x20REFUSED\x20when\x20the\x20token\x27s\x20'+'decimals\x20cannot\x20be\x20resolved\x20(guessing\x20would\x20forge\x20wrong\x20on-chain\x20values).'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Convert\x20between\x20raw\x20on-chain\x20smallest\x20units\x20(u64)\x20and\x20human\x20unit\x20values,\x20in\x20EITHER\x20direction.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit\x20(handler-validated).\x20'+'raw\x20β†’\x20unit:\x20\x222200000000\x22\x20β†’\x20\x222.2\x22\x20(pass-through\x20when\x20precision\x20unknown).\x20'+'unit\x20β†’\x20raw:\x20\x222.2\x22\x20β†’\x20\x222200000000\x22\x20(REFUSED\x20when\x20precision\x20unknown\x20β€”\x20never\x20guesses\x20decimals).\x20'+'Use\x20this\x20before\x20displaying\x20chain\x20values\x20to\x20users,\x20and\x20before\x20entering\x20amounts\x20for\x20on-chain\x20operations.\x20'+'Returns:\x20{\x20token_type,\x20symbol?,\x20decimals?,\x20precision_known,\x20direction,\x20input,\x20output,\x20error?,\x20text\x20}')]));export const OnchainTableDataResultSchema=z['object']({'result':z['union']([z['object']({'query_type':z['literal']('onchain_table'),'result':z['union']([TableAnswerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'result':z['union']([TableItem_RepositoryDataSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'result':z['union']([TableItem_PermissionPermSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'result':z['union']([TableItem_EntityRegistrarSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'result':z['union']([TableItem_EntityLinkerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_contact'),'result':z['union']([TableItem_EntityContactSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_core'),'result':z['union']([TableItem_ObjectLinkerCoreSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_tx'),'result':z['union']([TableItem_ObjectLinkerTxSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'result':z['union']([TableItem_RewardRecordSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'result':z['union']([TableItem_DemandPresenterSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'result':z['union']([TableItem_TreasuryHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'result':z['union']([TableItem_MachineNodeSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'result':z['union']([TableItem_ProgressHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'result':z['union']([TableItem_AddressMarkSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_generic'),'result':z['union']([ObjectBaseSchema,z['undefined']()])})]),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20table\x20data\x20query')});
@@ -13367,11 +13367,16 @@ export declare const OnchainQueryResultSchema_Part2: z.ZodUnion<readonly [z.ZodO
13367
13367
  id: z.ZodString;
13368
13368
  balance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
13369
13369
  payment: z.ZodString;
13370
+ type: z.ZodOptional<z.ZodString>;
13371
+ version: z.ZodOptional<z.ZodString>;
13372
+ digest: z.ZodOptional<z.ZodString>;
13370
13373
  }, z.core.$strict>>;
13371
13374
  }, z.core.$strict>, z.ZodArray<z.ZodObject<{
13372
13375
  id: z.ZodString;
13373
13376
  type: z.ZodString;
13374
13377
  content_raw: z.ZodOptional<z.ZodAny>;
13378
+ version: z.ZodOptional<z.ZodString>;
13379
+ digest: z.ZodOptional<z.ZodString>;
13375
13380
  }, z.core.$strict>>]>;
13376
13381
  }, z.core.$strip>]>;
13377
13382
  export declare const OnchainQueryResultSchema_Part3: z.ZodUnion<readonly [z.ZodObject<{
@@ -1 +1 @@
1
- import*as a335a from'@wowok/wowok';const SDK_SCHEMA_VERSION=a335a['SCHEMA_VERSION']??'1.0.0',checkSchemaCompatibility=a335a['checkSchemaCompatibility']??((a,b)=>({'compatible':!![]}));export const MCP_SCHEMA_VERSION='1.0.0';export function getSchemaVersions(){return{'sdk':SDK_SCHEMA_VERSION,'mcp':MCP_SCHEMA_VERSION};}export function checkClientSchemaCompatibility(a,b={}){const c=getSchemaVersions(),d={'compatible':!![],'warnings':[],'errors':[],'versions':c,'client_version':a};if(!a)return d;const e=checkSchemaCompatibility(a,c['sdk']);if(!e['compatible']){d['compatible']=![];const g='SDK\x20schema\x20incompatibility:\x20'+e['reason'];b['mode']==='strict'?d['errors']['push'](g):d['warnings']['push'](g);}const f=checkSchemaCompatibility(a,c['mcp']);if(!f['compatible']){d['compatible']=![];const h='MCP\x20schema\x20incompatibility:\x20'+f['reason'];b['mode']==='strict'?d['errors']['push'](h):d['warnings']['push'](h);}return d;}export function attachSchemaWarning(a,b){if(b['warnings']['length']===0x0&&b['errors']['length']===0x0)return a;const c=[];b['warnings']['length']>0x0&&c['push'](...b['warnings']);b['errors']['length']>0x0&&c['push'](...b['errors']);const d=a['semantic']?{...a['semantic'],'warnings':[...a['semantic']['warnings']||[],...c]}:undefined;return{...a,'semantic':d,'schema_warning':{'compatible':b['compatible'],'warnings':c,'client_version':b['client_version'],'server_versions':b['versions']}};}
1
+ import*as a336a from'@wowok/wowok';const SDK_SCHEMA_VERSION=a336a['SCHEMA_VERSION']??'1.0.0',checkSchemaCompatibility=a336a['checkSchemaCompatibility']??((a,b)=>({'compatible':!![]}));export const MCP_SCHEMA_VERSION='1.0.0';export function getSchemaVersions(){return{'sdk':SDK_SCHEMA_VERSION,'mcp':MCP_SCHEMA_VERSION};}export function checkClientSchemaCompatibility(a,b={}){const c=getSchemaVersions(),d={'compatible':!![],'warnings':[],'errors':[],'versions':c,'client_version':a};if(!a)return d;const e=checkSchemaCompatibility(a,c['sdk']);if(!e['compatible']){d['compatible']=![];const g='SDK\x20schema\x20incompatibility:\x20'+e['reason'];b['mode']==='strict'?d['errors']['push'](g):d['warnings']['push'](g);}const f=checkSchemaCompatibility(a,c['mcp']);if(!f['compatible']){d['compatible']=![];const h='MCP\x20schema\x20incompatibility:\x20'+f['reason'];b['mode']==='strict'?d['errors']['push'](h):d['warnings']['push'](h);}return d;}export function attachSchemaWarning(a,b){if(b['warnings']['length']===0x0&&b['errors']['length']===0x0)return a;const c=[];b['warnings']['length']>0x0&&c['push'](...b['warnings']);b['errors']['length']>0x0&&c['push'](...b['errors']);const d=a['semantic']?{...a['semantic'],'warnings':[...a['semantic']['warnings']||[],...c]}:undefined;return{...a,'semantic':d,'schema_warning':{'compatible':b['compatible'],'warnings':c,'client_version':b['client_version'],'server_versions':b['versions']}};}