@wowok/agent-mcp 2.7.3 → 2.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evaluation/builtins/arbitration-score.d.ts +1 -1
- package/dist/evaluation/builtins/arbitration-score.js +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/demand-confirm.js +1 -1
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/demand-translation.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/onchain-constants.d.ts +2 -2
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/permission-context.d.ts +11 -0
- package/dist/knowledge/permission-context.js +1 -1
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/registrar-translation.js +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-translation.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-context.d.ts +1 -1
- package/dist/knowledge/treasury-context.js +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/util-confirm.js +1 -1
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/util-translation.d.ts +3 -2
- package/dist/knowledge/util-translation.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +64 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/project/evaluation.js +1 -1
- package/dist/project/graph-builder.d.ts +2 -2
- package/dist/project/graph-builder.js +1 -1
- package/dist/project/semantic-assembler.d.ts +2 -2
- package/dist/project/semantic-assembler.js +1 -1
- package/dist/schema/evaluation/index.d.ts +1 -1
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/operations.d.ts +251 -2
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +121 -0
- package/dist/schema/permission/index.js +1 -0
- package/dist/schema/query/index.d.ts +223 -22
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.d.ts +161 -0
- package/dist/schema/workflow/index.js +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/evaluation_operation.schema.json +2 -2
- package/dist/schemas/index.json +13 -1
- package/dist/schemas/onchain_table_data.output.json +821 -5
- package/dist/schemas/onchain_table_data.schema.json +154 -1
- package/dist/schemas/permission_operation.output.json +173 -0
- package/dist/schemas/permission_operation.schema.json +39 -0
- package/dist/schemas/query_toolkit.output.json +15 -15
- package/dist/schemas/workflow_operation.output.json +164 -0
- package/dist/schemas/workflow_operation.schema.json +116 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.d.ts +2 -0
- package/dist/tools/handlers/permission.js +1 -0
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/workflow.d.ts +2 -0
- package/dist/tools/handlers/workflow.js +1 -0
- package/dist/tools/handlers/workspace.d.ts +2 -0
- package/dist/tools/handlers/workspace.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
|
@@ -2664,6 +2664,51 @@ export declare const OnchainTableDataSchema: z.ZodPreprocess<z.ZodUnion<readonly
|
|
|
2664
2664
|
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
2665
2665
|
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
2666
2666
|
}>>;
|
|
2667
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2668
|
+
query_type: z.ZodLiteral<"onchain_table_item_entity_contact">;
|
|
2669
|
+
address: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
2670
|
+
name_or_address: string;
|
|
2671
|
+
local_mark_first: boolean;
|
|
2672
|
+
}, string>>, z.ZodObject<{
|
|
2673
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
2674
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
2675
|
+
}, z.core.$strict>]>;
|
|
2676
|
+
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2677
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
2678
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
2679
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
2680
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
2681
|
+
}>>;
|
|
2682
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2683
|
+
query_type: z.ZodLiteral<"onchain_table_item_object_linker_core">;
|
|
2684
|
+
address: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
2685
|
+
name_or_address: string;
|
|
2686
|
+
local_mark_first: boolean;
|
|
2687
|
+
}, string>>, z.ZodObject<{
|
|
2688
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
2689
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
2690
|
+
}, z.core.$strict>]>;
|
|
2691
|
+
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2692
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
2693
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
2694
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
2695
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
2696
|
+
}>>;
|
|
2697
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2698
|
+
query_type: z.ZodLiteral<"onchain_table_item_object_linker_tx">;
|
|
2699
|
+
address: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
2700
|
+
name_or_address: string;
|
|
2701
|
+
local_mark_first: boolean;
|
|
2702
|
+
}, string>>, z.ZodObject<{
|
|
2703
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
2704
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
2705
|
+
}, z.core.$strict>]>;
|
|
2706
|
+
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
2707
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
2708
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
2709
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
2710
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
2711
|
+
}>>;
|
|
2667
2712
|
}, z.core.$strict>, z.ZodObject<{
|
|
2668
2713
|
query_type: z.ZodLiteral<"onchain_table_item_reward_record">;
|
|
2669
2714
|
parent: z.ZodString;
|
|
@@ -3214,10 +3259,214 @@ export declare const OnchainTableDataResultSchema: z.ZodObject<{
|
|
|
3214
3259
|
pos: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
3215
3260
|
count: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
3216
3261
|
votes: z.ZodArray<z.ZodObject<{
|
|
3217
|
-
|
|
3262
|
+
who: z.ZodString;
|
|
3218
3263
|
like: z.ZodOptional<z.ZodBoolean>;
|
|
3219
3264
|
dislike: z.ZodOptional<z.ZodBoolean>;
|
|
3220
|
-
|
|
3265
|
+
favor: z.ZodOptional<z.ZodBoolean>;
|
|
3266
|
+
time: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
3267
|
+
}, z.core.$strip>>;
|
|
3268
|
+
}, z.core.$loose>, z.ZodUndefined]>;
|
|
3269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3270
|
+
query_type: z.ZodLiteral<"onchain_table_item_entity_contact">;
|
|
3271
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
3272
|
+
object: z.ZodString;
|
|
3273
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3274
|
+
Permission: import("@wowok/wowok").ObjectType.Permission;
|
|
3275
|
+
Repository: import("@wowok/wowok").ObjectType.Repository;
|
|
3276
|
+
Arb: import("@wowok/wowok").ObjectType.Arb;
|
|
3277
|
+
Arbitration: import("@wowok/wowok").ObjectType.Arbitration;
|
|
3278
|
+
Service: import("@wowok/wowok").ObjectType.Service;
|
|
3279
|
+
Machine: import("@wowok/wowok").ObjectType.Machine;
|
|
3280
|
+
Order: import("@wowok/wowok").ObjectType.Order;
|
|
3281
|
+
Progress: import("@wowok/wowok").ObjectType.Progress;
|
|
3282
|
+
Payment: import("@wowok/wowok").ObjectType.Payment;
|
|
3283
|
+
Treasury: import("@wowok/wowok").ObjectType.Treasury;
|
|
3284
|
+
Guard: import("@wowok/wowok").ObjectType.Guard;
|
|
3285
|
+
Demand: import("@wowok/wowok").ObjectType.Demand;
|
|
3286
|
+
Passport: import("@wowok/wowok").ObjectType.Passport;
|
|
3287
|
+
Allocation: import("@wowok/wowok").ObjectType.Allocation;
|
|
3288
|
+
Resource: import("@wowok/wowok").ObjectType.Resource;
|
|
3289
|
+
Reward: import("@wowok/wowok").ObjectType.Reward;
|
|
3290
|
+
Discount: import("@wowok/wowok").ObjectType.Discount;
|
|
3291
|
+
EntityRegistrar: import("@wowok/wowok").ObjectType.EntityRegistrar;
|
|
3292
|
+
EntityLinker: import("@wowok/wowok").ObjectType.EntityLinker;
|
|
3293
|
+
Proof: import("@wowok/wowok").ObjectType.Proof;
|
|
3294
|
+
Contact: import("@wowok/wowok").ObjectType.Contact;
|
|
3295
|
+
WReceivedObject: import("@wowok/wowok").ObjectType.WReceivedObject;
|
|
3296
|
+
TableItem_ProgressHistory: import("@wowok/wowok").ObjectType.TableItem_ProgressHistory;
|
|
3297
|
+
TableItem_PermissionPerm: import("@wowok/wowok").ObjectType.TableItem_PermissionPerm;
|
|
3298
|
+
TableItem_DemandPresenter: import("@wowok/wowok").ObjectType.TableItem_DemandPresenter;
|
|
3299
|
+
TableItem_MachineNode: import("@wowok/wowok").ObjectType.TableItem_MachineNode;
|
|
3300
|
+
TableItem_TreasuryHistory: import("@wowok/wowok").ObjectType.TableItem_TreasuryHistory;
|
|
3301
|
+
TableItem_RepositoryData: import("@wowok/wowok").ObjectType.TableItem_RepositoryData;
|
|
3302
|
+
TableItem_RewardRecord: import("@wowok/wowok").ObjectType.TableItem_RewardRecord;
|
|
3303
|
+
TableItem_EntityLinker: import("@wowok/wowok").ObjectType.TableItem_EntityLinker;
|
|
3304
|
+
TableItem_AddressMark: import("@wowok/wowok").ObjectType.TableItem_AddressMark;
|
|
3305
|
+
TableItem_EntityRegistrar: import("@wowok/wowok").ObjectType.TableItem_EntityRegistrar;
|
|
3306
|
+
}>>;
|
|
3307
|
+
type_raw: z.ZodOptional<z.ZodString>;
|
|
3308
|
+
owner: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
3309
|
+
AddressOwner: z.ZodString;
|
|
3310
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3311
|
+
ObjectOwner: z.ZodString;
|
|
3312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3313
|
+
Shared: z.ZodObject<{
|
|
3314
|
+
initial_shared_version: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3315
|
+
}, z.core.$strict>;
|
|
3316
|
+
}, z.core.$strict>, z.ZodLiteral<"Immutable">, z.ZodObject<{
|
|
3317
|
+
ConsensusAddressOwner: z.ZodObject<{
|
|
3318
|
+
owner: z.ZodString;
|
|
3319
|
+
start_version: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3320
|
+
}, z.core.$strict>;
|
|
3321
|
+
}, z.core.$strict>]>, z.ZodNull]>>;
|
|
3322
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3323
|
+
previousTransaction: z.ZodOptional<z.ZodString>;
|
|
3324
|
+
cache_expire: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"INFINITE">]>>;
|
|
3325
|
+
query_name: z.ZodOptional<z.ZodString>;
|
|
3326
|
+
content_raw: z.ZodOptional<z.ZodAny>;
|
|
3327
|
+
_guard_node_comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3328
|
+
type: z.ZodString;
|
|
3329
|
+
description: z.ZodString;
|
|
3330
|
+
}, z.core.$strip>>>;
|
|
3331
|
+
address: z.ZodString;
|
|
3332
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3333
|
+
contact: z.ZodString;
|
|
3334
|
+
time: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
3335
|
+
}, z.core.$strip>>;
|
|
3336
|
+
}, z.core.$loose>, z.ZodUndefined]>;
|
|
3337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3338
|
+
query_type: z.ZodLiteral<"onchain_table_item_object_linker_core">;
|
|
3339
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
3340
|
+
object: z.ZodString;
|
|
3341
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3342
|
+
Permission: import("@wowok/wowok").ObjectType.Permission;
|
|
3343
|
+
Repository: import("@wowok/wowok").ObjectType.Repository;
|
|
3344
|
+
Arb: import("@wowok/wowok").ObjectType.Arb;
|
|
3345
|
+
Arbitration: import("@wowok/wowok").ObjectType.Arbitration;
|
|
3346
|
+
Service: import("@wowok/wowok").ObjectType.Service;
|
|
3347
|
+
Machine: import("@wowok/wowok").ObjectType.Machine;
|
|
3348
|
+
Order: import("@wowok/wowok").ObjectType.Order;
|
|
3349
|
+
Progress: import("@wowok/wowok").ObjectType.Progress;
|
|
3350
|
+
Payment: import("@wowok/wowok").ObjectType.Payment;
|
|
3351
|
+
Treasury: import("@wowok/wowok").ObjectType.Treasury;
|
|
3352
|
+
Guard: import("@wowok/wowok").ObjectType.Guard;
|
|
3353
|
+
Demand: import("@wowok/wowok").ObjectType.Demand;
|
|
3354
|
+
Passport: import("@wowok/wowok").ObjectType.Passport;
|
|
3355
|
+
Allocation: import("@wowok/wowok").ObjectType.Allocation;
|
|
3356
|
+
Resource: import("@wowok/wowok").ObjectType.Resource;
|
|
3357
|
+
Reward: import("@wowok/wowok").ObjectType.Reward;
|
|
3358
|
+
Discount: import("@wowok/wowok").ObjectType.Discount;
|
|
3359
|
+
EntityRegistrar: import("@wowok/wowok").ObjectType.EntityRegistrar;
|
|
3360
|
+
EntityLinker: import("@wowok/wowok").ObjectType.EntityLinker;
|
|
3361
|
+
Proof: import("@wowok/wowok").ObjectType.Proof;
|
|
3362
|
+
Contact: import("@wowok/wowok").ObjectType.Contact;
|
|
3363
|
+
WReceivedObject: import("@wowok/wowok").ObjectType.WReceivedObject;
|
|
3364
|
+
TableItem_ProgressHistory: import("@wowok/wowok").ObjectType.TableItem_ProgressHistory;
|
|
3365
|
+
TableItem_PermissionPerm: import("@wowok/wowok").ObjectType.TableItem_PermissionPerm;
|
|
3366
|
+
TableItem_DemandPresenter: import("@wowok/wowok").ObjectType.TableItem_DemandPresenter;
|
|
3367
|
+
TableItem_MachineNode: import("@wowok/wowok").ObjectType.TableItem_MachineNode;
|
|
3368
|
+
TableItem_TreasuryHistory: import("@wowok/wowok").ObjectType.TableItem_TreasuryHistory;
|
|
3369
|
+
TableItem_RepositoryData: import("@wowok/wowok").ObjectType.TableItem_RepositoryData;
|
|
3370
|
+
TableItem_RewardRecord: import("@wowok/wowok").ObjectType.TableItem_RewardRecord;
|
|
3371
|
+
TableItem_EntityLinker: import("@wowok/wowok").ObjectType.TableItem_EntityLinker;
|
|
3372
|
+
TableItem_AddressMark: import("@wowok/wowok").ObjectType.TableItem_AddressMark;
|
|
3373
|
+
TableItem_EntityRegistrar: import("@wowok/wowok").ObjectType.TableItem_EntityRegistrar;
|
|
3374
|
+
}>>;
|
|
3375
|
+
type_raw: z.ZodOptional<z.ZodString>;
|
|
3376
|
+
owner: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
3377
|
+
AddressOwner: z.ZodString;
|
|
3378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3379
|
+
ObjectOwner: z.ZodString;
|
|
3380
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3381
|
+
Shared: z.ZodObject<{
|
|
3382
|
+
initial_shared_version: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3383
|
+
}, z.core.$strict>;
|
|
3384
|
+
}, z.core.$strict>, z.ZodLiteral<"Immutable">, z.ZodObject<{
|
|
3385
|
+
ConsensusAddressOwner: z.ZodObject<{
|
|
3386
|
+
owner: z.ZodString;
|
|
3387
|
+
start_version: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3388
|
+
}, z.core.$strict>;
|
|
3389
|
+
}, z.core.$strict>]>, z.ZodNull]>>;
|
|
3390
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3391
|
+
previousTransaction: z.ZodOptional<z.ZodString>;
|
|
3392
|
+
cache_expire: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"INFINITE">]>>;
|
|
3393
|
+
query_name: z.ZodOptional<z.ZodString>;
|
|
3394
|
+
content_raw: z.ZodOptional<z.ZodAny>;
|
|
3395
|
+
_guard_node_comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3396
|
+
type: z.ZodString;
|
|
3397
|
+
description: z.ZodString;
|
|
3398
|
+
}, z.core.$strip>>>;
|
|
3399
|
+
address: z.ZodString;
|
|
3400
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3401
|
+
who: z.ZodString;
|
|
3402
|
+
time: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
3403
|
+
}, z.core.$strip>>;
|
|
3404
|
+
}, z.core.$loose>, z.ZodUndefined]>;
|
|
3405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3406
|
+
query_type: z.ZodLiteral<"onchain_table_item_object_linker_tx">;
|
|
3407
|
+
result: z.ZodUnion<readonly [z.ZodObject<{
|
|
3408
|
+
object: z.ZodString;
|
|
3409
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3410
|
+
Permission: import("@wowok/wowok").ObjectType.Permission;
|
|
3411
|
+
Repository: import("@wowok/wowok").ObjectType.Repository;
|
|
3412
|
+
Arb: import("@wowok/wowok").ObjectType.Arb;
|
|
3413
|
+
Arbitration: import("@wowok/wowok").ObjectType.Arbitration;
|
|
3414
|
+
Service: import("@wowok/wowok").ObjectType.Service;
|
|
3415
|
+
Machine: import("@wowok/wowok").ObjectType.Machine;
|
|
3416
|
+
Order: import("@wowok/wowok").ObjectType.Order;
|
|
3417
|
+
Progress: import("@wowok/wowok").ObjectType.Progress;
|
|
3418
|
+
Payment: import("@wowok/wowok").ObjectType.Payment;
|
|
3419
|
+
Treasury: import("@wowok/wowok").ObjectType.Treasury;
|
|
3420
|
+
Guard: import("@wowok/wowok").ObjectType.Guard;
|
|
3421
|
+
Demand: import("@wowok/wowok").ObjectType.Demand;
|
|
3422
|
+
Passport: import("@wowok/wowok").ObjectType.Passport;
|
|
3423
|
+
Allocation: import("@wowok/wowok").ObjectType.Allocation;
|
|
3424
|
+
Resource: import("@wowok/wowok").ObjectType.Resource;
|
|
3425
|
+
Reward: import("@wowok/wowok").ObjectType.Reward;
|
|
3426
|
+
Discount: import("@wowok/wowok").ObjectType.Discount;
|
|
3427
|
+
EntityRegistrar: import("@wowok/wowok").ObjectType.EntityRegistrar;
|
|
3428
|
+
EntityLinker: import("@wowok/wowok").ObjectType.EntityLinker;
|
|
3429
|
+
Proof: import("@wowok/wowok").ObjectType.Proof;
|
|
3430
|
+
Contact: import("@wowok/wowok").ObjectType.Contact;
|
|
3431
|
+
WReceivedObject: import("@wowok/wowok").ObjectType.WReceivedObject;
|
|
3432
|
+
TableItem_ProgressHistory: import("@wowok/wowok").ObjectType.TableItem_ProgressHistory;
|
|
3433
|
+
TableItem_PermissionPerm: import("@wowok/wowok").ObjectType.TableItem_PermissionPerm;
|
|
3434
|
+
TableItem_DemandPresenter: import("@wowok/wowok").ObjectType.TableItem_DemandPresenter;
|
|
3435
|
+
TableItem_MachineNode: import("@wowok/wowok").ObjectType.TableItem_MachineNode;
|
|
3436
|
+
TableItem_TreasuryHistory: import("@wowok/wowok").ObjectType.TableItem_TreasuryHistory;
|
|
3437
|
+
TableItem_RepositoryData: import("@wowok/wowok").ObjectType.TableItem_RepositoryData;
|
|
3438
|
+
TableItem_RewardRecord: import("@wowok/wowok").ObjectType.TableItem_RewardRecord;
|
|
3439
|
+
TableItem_EntityLinker: import("@wowok/wowok").ObjectType.TableItem_EntityLinker;
|
|
3440
|
+
TableItem_AddressMark: import("@wowok/wowok").ObjectType.TableItem_AddressMark;
|
|
3441
|
+
TableItem_EntityRegistrar: import("@wowok/wowok").ObjectType.TableItem_EntityRegistrar;
|
|
3442
|
+
}>>;
|
|
3443
|
+
type_raw: z.ZodOptional<z.ZodString>;
|
|
3444
|
+
owner: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
3445
|
+
AddressOwner: z.ZodString;
|
|
3446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3447
|
+
ObjectOwner: z.ZodString;
|
|
3448
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3449
|
+
Shared: z.ZodObject<{
|
|
3450
|
+
initial_shared_version: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3451
|
+
}, z.core.$strict>;
|
|
3452
|
+
}, z.core.$strict>, z.ZodLiteral<"Immutable">, z.ZodObject<{
|
|
3453
|
+
ConsensusAddressOwner: z.ZodObject<{
|
|
3454
|
+
owner: z.ZodString;
|
|
3455
|
+
start_version: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
3456
|
+
}, z.core.$strict>;
|
|
3457
|
+
}, z.core.$strict>]>, z.ZodNull]>>;
|
|
3458
|
+
version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
3459
|
+
previousTransaction: z.ZodOptional<z.ZodString>;
|
|
3460
|
+
cache_expire: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"INFINITE">]>>;
|
|
3461
|
+
query_name: z.ZodOptional<z.ZodString>;
|
|
3462
|
+
content_raw: z.ZodOptional<z.ZodAny>;
|
|
3463
|
+
_guard_node_comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3464
|
+
type: z.ZodString;
|
|
3465
|
+
description: z.ZodString;
|
|
3466
|
+
}, z.core.$strip>>>;
|
|
3467
|
+
address: z.ZodString;
|
|
3468
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3469
|
+
who: z.ZodString;
|
|
3221
3470
|
time: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
3222
3471
|
}, z.core.$strip>>;
|
|
3223
3472
|
}, z.core.$loose>, z.ZodUndefined]>;
|
|
@@ -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_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\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_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_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'];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')});
|