wowok_agent 2.1.39 → 2.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1491,11 +1491,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1491
1491
|
}>>;
|
|
1492
1492
|
}, "strip", z.ZodTypeAny, {
|
|
1493
1493
|
content: string;
|
|
1494
|
+
operation: "send_message";
|
|
1494
1495
|
to: string | {
|
|
1495
1496
|
name_or_address?: string | undefined;
|
|
1496
1497
|
local_mark_first?: boolean | undefined;
|
|
1497
1498
|
};
|
|
1498
|
-
operation: "send_message";
|
|
1499
1499
|
options?: {
|
|
1500
1500
|
guardAddress?: string | undefined;
|
|
1501
1501
|
passportAddress?: string | undefined;
|
|
@@ -1505,11 +1505,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1505
1505
|
from?: string | undefined;
|
|
1506
1506
|
}, {
|
|
1507
1507
|
content: string;
|
|
1508
|
+
operation: "send_message";
|
|
1508
1509
|
to: string | {
|
|
1509
1510
|
name_or_address?: string | undefined;
|
|
1510
1511
|
local_mark_first?: boolean | undefined;
|
|
1511
1512
|
};
|
|
1512
|
-
operation: "send_message";
|
|
1513
1513
|
options?: {
|
|
1514
1514
|
guardAddress?: string | undefined;
|
|
1515
1515
|
passportAddress?: string | undefined;
|
|
@@ -1555,11 +1555,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1555
1555
|
}>>;
|
|
1556
1556
|
}, "strip", z.ZodTypeAny, {
|
|
1557
1557
|
filePath: string;
|
|
1558
|
+
operation: "send_file";
|
|
1558
1559
|
to: string | {
|
|
1559
1560
|
name_or_address?: string | undefined;
|
|
1560
1561
|
local_mark_first?: boolean | undefined;
|
|
1561
1562
|
};
|
|
1562
|
-
operation: "send_file";
|
|
1563
1563
|
options?: {
|
|
1564
1564
|
fileName?: string | undefined;
|
|
1565
1565
|
contentType?: "wip" | "zip" | "wts" | undefined;
|
|
@@ -1571,11 +1571,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1571
1571
|
from?: string | undefined;
|
|
1572
1572
|
}, {
|
|
1573
1573
|
filePath: string;
|
|
1574
|
+
operation: "send_file";
|
|
1574
1575
|
to: string | {
|
|
1575
1576
|
name_or_address?: string | undefined;
|
|
1576
1577
|
local_mark_first?: boolean | undefined;
|
|
1577
1578
|
};
|
|
1578
|
-
operation: "send_file";
|
|
1579
1579
|
options?: {
|
|
1580
1580
|
fileName?: string | undefined;
|
|
1581
1581
|
contentType?: "wip" | "zip" | "wts" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{TokenTypeInfoSchema,QueryLocalMarkListResultSchema,QueryAccountListResultSchema,QueryLocalInfoListResultSchema,QueryLocalTokenListResultSchema,QueryAccountResultSchema}from'../local/index.js';import{AccountOrMark_AddressSchema,BalanceTypeSchema,EntrypointSchema,GuardIdentifierSchema,GuardTableItemSchema,NameOrAddressSchema,ObjectBaseSchema,ObjectTypeSchema,QueryIdSchema,SupportedValueSchema,ValueTypeSchema,LongNameSchema,DescriptionSchema}from'../common/index.js';import{isValidPermissionIndex}from'../utils/permission-index-utils.js';import{isValidGuardQueryId,isValidGuardQueryIdOrName}from'../utils/guard-query-utils.js';import{isWitnessType}from'wowok';import{DiscountType as a25a}from'wowok';import{QueryEnvSchema}from'../common/index.js';const MAX_MULTI_OPERANDS=0x8,VALUE_TYPE_DESCRIPTION='Value\x20type:\x20can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27U64\x27,\x20\x27Address\x27,\x20\x27String\x27)\x20or\x20a\x20number\x20(0-18).\x20Supported\x20types:\x20Bool=0/\x27Bool\x27,\x20Address=1/\x27Address\x27,\x20String=2/\x27String\x27,\x20U8=3/\x27U8\x27,\x20U16=4/\x27U16\x27,\x20U32=5/\x27U32\x27,\x20U64=6/\x27U64\x27,\x20U128=7/\x27U128\x27,\x20U256=8/\x27U256\x27,\x20VecBool=9/\x27VecBool\x27,\x20VecAddress=10/\x27VecAddress\x27,\x20VecString=11/\x27VecString\x27,\x20VecU8=12/\x27VecU8\x27,\x20VecU16=13/\x27VecU16\x27,\x20VecU32=14/\x27VecU32\x27,\x20VecU64=15/\x27VecU64\x27,\x20VecU128=16/\x27VecU128\x27,\x20VecU256=17/\x27VecU256\x27,\x20VecVecU8=18/\x27VecVecU8\x27.\x20Note:\x20Value=19\x20is\x20an\x20INTERNAL\x20type\x20for\x20wowok\x20system\x20use\x20only\x20and\x20should\x20NOT\x20be\x20used\x20directly\x20by\x20users.\x20String\x20format\x20is\x20recommended\x20for\x20better\x20readability.';export const AmountTypeSchema=z['enum'](['GuardU64Identifier','Fixed'])['describe']('Amount\x20type.\x20GuardU64Identifier\x20indicates\x20the\x20amount\x20comes\x20from\x20U64\x20type\x20data\x20defined\x20in\x20Guard\x20table\x20(Identifier\x20index),\x20Fixed\x20indicates\x20using\x20a\x20fixed\x20amount.');export const GuardQuerySchema=z['object']({'id':QueryIdSchema,'name':z['string']()['describe']('Name\x20of\x20the\x20query\x20instruction.'),'objectType':ObjectTypeSchema['describe']('Type\x20of\x20the\x20Object\x20that\x20the\x20query\x20instruction\x20operates\x20on.'),'parameters':z['array'](ValueTypeSchema)['describe']('List\x20of\x20parameter\x20types\x20for\x20the\x20query\x20instruction.'),'return':ValueTypeSchema['describe']('Return\x20value\x20type\x20of\x20the\x20query\x20instruction.'),'description':z['string']()['describe']('Detailed\x20description\x20of\x20the\x20query\x20instruction.'),'parameters_description':z['array'](z['string']())['describe']('Detailed\x20descriptions\x20of\x20the\x20query\x20instruction\x20parameters.')});export const GuardSubmissionSchema=z['object']({'identifier':GuardIdentifierSchema['describe']('Identifier'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Guard\x20submission');export const RecipientSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Guard\x20verified\x20recipient\x20ID.\x20Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.'),z['object']({'Entity':AccountOrMark_AddressSchema})['describe']('Determined\x20ID'),z['object']({'Signer':z['literal']('signer')})['describe']('Current\x20transaction\x20signer\x20ID')])['describe']('Recipient\x20ID');export const RecordsInEntitySchema=z['object']({'name':z['string']()['describe']('Record\x20name'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Information\x20record');export const PermissionIndexTypeSchema=z['number']()['int']()['refine'](a=>{return isValidPermissionIndex(a);},{'message':'Permission\x20index\x20must\x20be\x20a\x20valid\x20BuiltinPermissionIndex\x20value\x20or\x20user\x20defined\x20between\x201000\x20and\x2065535'})['describe']('Permission\x20index\x20type');export const VoteInEntityLinkerSchema=z['object']({'address':z['string']()['describe']('Account\x20or\x20object\x20ID'),'like':z['boolean']()['optional']()['describe']('Whether\x20liked'),'dislike':z['boolean']()['optional']()['describe']('Whether\x20disliked'),'affiliation':z['boolean']()['optional']()['describe']('Whether\x20affiliated'),'time':z['number']()['describe']('Time')})['describe']('Follow\x20record');export const ObjectEntityRegistrarSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20registrar\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityRegistrar\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20registrar');export const ObjectEntityLinkerSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20linker\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20linker');export const ObjectResourceSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20address\x20mark\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27AddressMark\x27\x20table\x20items.')})['describe']('On-chain\x20address\x20tag\x20manager');export const TableItem_EntityLinkerSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Followed\x20ID'),'pos':z['number']()['describe']('Current\x20follow\x20information\x20position'),'count':z['number']()['describe']('Follower\x20count.\x20Number\x20of\x20entities\x20who\x20have\x20been\x20followed\x20others.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.'),'votes':z['array'](VoteInEntityLinkerSchema)['describe']('Follow\x20records')})['describe']('On-chain\x20followed\x20object\x20data');export const TableItem_EntityRegistrarSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20ID'),'description':z['string']()['describe']('Entity\x20description'),'time':z['number']()['describe']('On-chain\x20registration\x20time'),'referrer':z['union']([z['string'](),z['null']()])['describe']('Referrer'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('Your\x20on-chain\x20address\x20mark\x20object\x20by\x20entity\x20ID'),'records':z['array'](RecordsInEntitySchema)['describe']('Information\x20records')})['describe']('On-chain\x20entity\x20data');export const TableItem_AddressMarkSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Entity\x20ID'),'name':z['string']()['describe']('Tag\x20name'),'tags':z['array'](z['string']())['describe']('Tag\x20list')})['describe']('On-chain\x20ID\x20mark\x20data');export const ServiceGuardSchema=z['object']({'guard':z['string']()['describe']('Service\x20guard'),'service_identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Service\x20identifier.\x20Used\x20to\x20determine\x20the\x20service\x20verified\x20in\x20Guard')})['describe']('Service\x20guard');export const ObjectDemandSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Demand\x20description'),'location':z['string']()['describe']('Demand\x20location'),'rewards':z['array'](z['string']())['describe']('Reward\x20list.\x20Used\x20to\x20incentivize\x20qualified\x20Presenters\x20to\x20claim\x20rewards'),'guards':z['array'](ServiceGuardSchema)['describe']('Service\x20Guard\x20list'),'presenters_count':z['number']()['describe']('Presenter\x20count.\x20Number\x20of\x20Presenters\x20who\x20have\x20submitted\x20their\x20demand.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27DemandPresenter\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission')})['describe']('Demand\x20object');export const ObjectMachineSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Machine\x20description'),'node_count':z['number']()['describe']('Node\x20count.\x20Nodes\x20are\x20used\x20to\x20determine\x20each\x20step\x20and\x20state\x20of\x20Machine\x20operation.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27MachineNode\x27\x20table\x20items.'),'consensus_repositories':z['array'](z['string']())['describe']('Consensus\x20repository\x20list.\x20Used\x20to\x20determine\x20consensus\x20data\x20storage\x20during\x20Machine\x20operation.'),'bPaused':z['boolean']()['describe']('Whether\x20paused'),'bPublished':z['boolean']()['describe']('Whether\x20published'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID.\x20Used\x20to\x20modify\x20operation\x20permission\x20settings\x20for\x20Machine\x20settings.')})['describe']('Machine\x20object');export const ServiceSaleSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20for\x20sale'),'price':BalanceTypeSchema['describe']('Price\x20of\x20the\x20product\x20or\x20service'),'stock':BalanceTypeSchema['describe']('Stock\x20of\x20the\x20product\x20or\x20service'),'suspension':z['boolean']()['describe']('Whether\x20sale\x20is\x20suspended'),'wip':z['string']()['describe']('HTTP\x20URL\x20of\x20wip\x20file'),'wip_hash':z['string']()['describe']('Hash\x20of\x20WIP.\x20If\x20EMPTY\x20string,\x20the\x20hash\x20within\x20wip\x20will\x20be\x20automatically\x20used;\x20else,\x20the\x20consistency\x20of\x20the\x20hash\x20within\x20wip\x20will\x20be\x20verified\x20with\x20the\x20provided\x20hash.')})['describe']('Service\x20sale');export const PurchasedItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service'),'price':BalanceTypeSchema['describe']('Service\x20price'),'quantity':BalanceTypeSchema['describe']('Service\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')});export const ObjectOrderSchema=ObjectBaseSchema['extend']({'items':z['array'](PurchasedItemSchema)['describe']('Purchased\x20service\x20list'),'discount':z['union']([z['string'](),z['null']()])['describe']('Used\x20discount\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['describe']('Order\x20progress\x20object\x20ID'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20ID\x20that\x20progress\x20belongs\x20to'),'amount':BalanceTypeSchema['describe']('Order\x20amount'),'builder':z['string']()['describe']('Purchaser\x20ID'),'service':z['string']()['describe']('Service\x20ID'),'dispute':z['array'](z['string']())['describe']('Dispute\x20object\x20ID\x20list.\x20When\x20unsatisfied\x20with\x20order\x20delivery,\x20dispute\x20objects\x20can\x20be\x20created.'),'agent':z['array'](z['string']())['describe']('Agent\x20ID\x20list.\x20Agents\x20handle\x20all\x20order\x20operations\x20except\x20payment\x20collection.'),'allocation':z['union']([z['string'](),z['null']()])['describe']('Order\x20amount\x20allocation\x20object\x20ID'),'claimed_by':z['union']([z['string'](),z['null']()])['describe']('Order\x20dispute\x20object\x20ID\x20that\x20has\x20claimed\x20order\x20arbitration\x20amount.'),'required_info':z['string']()['describe']('Contact\x20object\x20ID\x20(recipient)\x20or\x20WTS\x20Proof\x20object\x20(delivery\x20proof)\x20that\x20information\x20has\x20been\x20delivered\x20via\x20Wowok\x20Messenger.'),'time':z['union']([z['string'](),z['number']()])['describe']('Order\x20creation\x20time')});export const NamedOperatorSchema=z['object']({'name':z['string']()['describe']('Namespace\x20name'),'operators':z['array'](z['string']())['describe']('Operator\x20ID\x20list')})['describe']('Namespace\x20operator.\x20Namespace\x20is\x20a\x20permission\x20identifier\x20defined\x20in\x20Machine,\x20allowing\x20different\x20Progress\x20to\x20bind\x20different\x20operators\x20to\x20exercise\x20unified\x20permission\x20definitions.');export const ProgressSessionHolderSchema=z['object']({'forward':z['string']()['describe']('An\x20operation\x20name'),'who':z['union']([z['string'](),z['null']()])['describe']('Operator\x20ID'),'retained_submission':z['array'](GuardSubmissionSchema)['describe']('Used\x20to\x20define\x20submitted\x20data\x20after\x20Guard\x20verification'),'msg':z['string']()['describe']('Information\x20submitted\x20to\x20complete\x20operation'),'accomplished':z['boolean']()['describe']('Whether\x20completed'),'time':z['number']()['describe']('Session\x20creation\x20time')})['describe']('An\x20operation\x20in\x20Progress\x20session');export const ProgressSessionSchema=z['object']({'next_node':z['string']()['describe']('Next\x20node\x20ID'),'forwards':z['array'](ProgressSessionHolderSchema)['describe']('Operation\x20list\x20in\x20Progress\x20session'),'weights':z['number']()['describe']('Total\x20operation\x20weight'),'threshold':z['number']()['describe']('Operation\x20threshold.\x20When\x20total\x20operation\x20weight\x20exceeds\x20threshold,\x20session\x20is\x20considered\x20completed\x20and\x20Progress\x20moves\x20from\x20current\x20node\x20to\x20next\x20node.')})['describe']('Progress\x20session');export const ObjectProgressSchema=ObjectBaseSchema['extend']({'machine':z['string']()['describe']('Machine\x20ID\x20that\x20Progress\x20object\x20belongs\x20to'),'context_repositories':z['array'](z['string']())['describe']('Context\x20repository\x20list.\x20Used\x20to\x20store\x20context\x20data\x20during\x20Progress\x20operation.'),'current':z['string']()['describe']('Current\x20node\x20name'),'task':z['union']([z['string'](),z['null']()])['describe']('Target\x20task\x20ID\x20executed\x20by\x20Progress\x20(e.g.,\x20Order\x20ID)'),'namedOperator':z['array'](NamedOperatorSchema)['describe']('Namespace\x20operator\x20list.\x20Each\x20process\x20can\x20independently\x20maintain\x20operators\x20for\x20permissions\x20represented\x20by\x20its\x20namespace.'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'history_count':z['number']()['describe']('Number\x20of\x20historical\x20sessions\x20for\x20completed\x20nodes\x20in\x20Progress.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27ProgressHistory\x27\x20table\x20items.'),'current_time':z['number']()['describe']('Current\x20node\x20entry\x20timestamp')})['describe']('Progress\x20object');export const AmountSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('GuardU64Identifier'),'value':GuardIdentifierSchema})['describe']('Guard\x20verified\x20amount.\x20Get\x20amount\x20value\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20value\x20type\x20must\x20be\x20u64.'),z['object']({'type':z['literal']('Fixed'),'value':BalanceTypeSchema})['describe']('Fixed\x20amount')])['describe']('Amount');export const RewardGuardSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.'),'recipient':RecipientSchema,'amount':AmountSchema['describe']('Reward\x20amount'),'expiration_time':z['number']()['optional']()['describe']('Reward\x20Guard\x20expiration\x20time.\x20If\x20set,\x20the\x20reward\x20cannot\x20be\x20claimed\x20by\x20this\x20guard\x20after\x20the\x20expiration\x20time.\x20If\x20not\x20specified,\x20Reward\x20Guard\x20is\x20permanently\x20valid.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Reward\x20Guard\x20type');export const ObjectRewardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Reward\x20object\x20description'),'guards':z['array'](RewardGuardSchema)['describe']('Reward\x20Guard\x20list.\x20When\x20one\x20of\x20the\x20Guards\x20is\x20successfully\x20verified\x20in\x20a\x20transaction,\x20the\x20relevant\x20recipient\x20will\x20receive\x20the\x20reward\x20amount.'),'balance':BalanceTypeSchema['describe']('Current\x20balance\x20of\x20reward\x20object'),'guard_not_added_expiration_time':z['union']([z['string'](),z['number'](),z['null']()])['describe']('Used\x20to\x20lock\x20whether\x20new\x20Reward\x20Guards\x20can\x20be\x20added.\x20If\x20not\x20specified,\x20new\x20Reward\x20Guards\x20can\x20be\x20added\x20at\x20any\x20time;\x20if\x20expiration\x20time\x20is\x20specified,\x20new\x20Reward\x20Guards\x20cannot\x20be\x20added\x20before\x20expiration.'),'record_count':z['number']()['describe']('Number\x20of\x20reward\x20claimer\x20records.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RewardRecord\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Reward\x20object');export const AllocationModeSchema=z['enum'](['Amount','Rate','Surplus'])['describe']('Reward\x20allocation\x20mode.\x20Amount\x20indicates\x20allocation\x20by\x20amount,\x20Rate\x20indicates\x20allocation\x20by\x20proportion,\x20Surplus\x20indicates\x20allocation\x20by\x20remaining\x20amount.\x20In\x20a\x20fund\x20allocator,\x20Amount\x20will\x20be\x20allocated\x20first,\x20then\x20remaining\x20funds\x20will\x20be\x20allocated\x20by\x20Rate\x20(if\x20no\x20Surplus\x20is\x20defined,\x20sum\x20of\x20all\x20Rates\x20must\x20be\x2010000),\x20and\x20finally\x20Surplus\x20gets\x20remaining\x20amount\x20(maximum\x20one\x20per\x20fund\x20allocator).');export const AllocationSharingSchema=z['object']({'who':RecipientSchema['describe']('Recipient\x20ID'),'sharing':BalanceTypeSchema['describe']('Reward\x20allocation\x20value'),'mode':AllocationModeSchema['describe']('Reward\x20allocation\x20mode')})['describe']('Fund\x20allocation\x20item');export const AllocatorSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID.\x20If\x20Guard\x20verification\x20passes,\x20fund\x20allocation\x20will\x20start\x20automatically.'),'sharing':z['array'](AllocationSharingSchema)['describe']('Fund\x20allocation\x20item\x20list.\x20Each\x20item\x20represents\x20a\x20recipient\x20and\x20their\x20corresponding\x20reward\x20allocation\x20value.'),'fix':BalanceTypeSchema['optional']()['describe']('Fixed\x20allocation\x20amount.\x20If\x20specified,\x20all\x20recipients\x20will\x20receive\x20the\x20fixed\x20allocation\x20amount.'),'max':z['union']([BalanceTypeSchema,z['null']()])['optional']()['describe']('Maximum\x20allocation\x20amount.\x20If\x20specified,\x20allocation\x20amount\x20cannot\x20exceed\x20maximum\x20allocation\x20amount.')})['describe']('Fund\x20allocator');export const AllocatorsSchema=z['object']({'description':DescriptionSchema['describe']('Description\x20of\x20fund\x20allocator\x20list'),'threshold':BalanceTypeSchema['describe']('Threshold.\x20If\x20defined,\x20fund\x20allocation\x20will\x20be\x20triggered\x20when\x20amount\x20in\x20Allocation\x20object\x20reaches\x20this\x20threshold.'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocator\x20list.\x20Each\x20fund\x20allocator\x20represents\x20a\x20fund\x20allocation\x20strategy.')})['describe']('Fund\x20allocator\x20list');export const ObjectServiceSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Service\x20object\x20description'),'location':z['string']()['describe']('Service\x20object\x20location'),'sales':z['array'](ServiceSaleSchema)['describe']('Service\x20sale\x20list.'),'repositories':z['array'](z['string']())['describe']('Repository\x20object\x20list\x20for\x20service\x20object\x27s\x20shared\x20data'),'buy_guard':z['union']([z['string'](),z['null']()])['describe']('Purchase\x20Guard\x20object\x20ID.\x20If\x20defined,\x20service\x20can\x20only\x20be\x20purchased\x20if\x20Guard\x20verification\x20passes.'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20object\x20ID\x20for\x20each\x20order\x27s\x20processing\x20flow.\x20The\x20Machine\x20must\x20be\x20in\x20published\x20state.'),'bPublished':z['boolean']()['describe']('Whether\x20service\x20is\x20published.\x20If\x20service\x20is\x20published,\x20customers\x20can\x20purchase\x20it;\x20and\x20related\x20settings\x20like\x20Machine,\x20arbitrations,\x20order_allocators\x20will\x20be\x20immutable.'),'bPaused':z['boolean']()['describe']('Whether\x20service\x20purchase\x20is\x20paused'),'customer_required':z['array'](z['string']())['describe']('Information\x20required\x20from\x20customer.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'arbitrations':z['array'](z['string']())['describe']('List\x20of\x20Arbitration\x20objects\x20supported\x20by\x20service.\x20When\x20order\x20user\x20needs\x20arbitration,\x20they\x20can\x20apply\x20for\x20arbitration\x20with\x20any\x20Arbitration\x20object\x20in\x20the\x20list.'),'compensation_fund':BalanceTypeSchema['describe']('Compensation\x20fund\x20pool\x20for\x20arbitration\x20results.\x20Order\x20users\x20can\x20receive\x20compensation\x20from\x20this\x20fund\x20based\x20on\x20arbitration\x20results.'),'paused_time':z['union']([z['number'](),z['null']()])['describe']('Service\x20purchase\x20pause\x20time.\x20If\x20not\x20paused,\x20it\x20is\x20null.'),'compensation_lock_duration':z['union']([z['string'](),z['number']()])['describe']('Lock\x20duration\x20for\x20arbitration\x20result\x20compensation.\x20After\x20service\x20is\x20paused\x20for\x20longer\x20than\x20this\x20duration,\x20service\x20manager\x20can\x20retrieve\x20compensation_fund.\x20Default\x20is\x20at\x20least\x2030\x20days.'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['describe']('Order\x20fund\x20allocator\x20list.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Service\x20object');export const ArbVotedSchema=z['object']({'voter':z['string']()['describe']('Voter\x20ID'),'agrees':z['array'](z['number']()['min'](0x0)['max'](0xff))['describe']('List\x20of\x20supported\x20Proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight'),'time':z['number']()['describe']('Voting\x20time')})['describe']('Voting\x20record');export const ArbPropositionSchema=z['object']({'name':z['string']()['describe']('Proposal\x20name'),'votes':z['number']()['describe']('Number\x20of\x20votes\x20supporting\x20this\x20proposal')})['describe']('Proposal');export const ArbIndemnitySchema=z['object']({'amount':BalanceTypeSchema['describe']('Compensation\x20amount'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arbitration\x20compensation');export const ArbStatusSchema=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn'])['describe']('Arb\x20object\x20status');export const ObjectArbSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arb\x20object\x20statement'),'arbitration':z['string']()['describe']('Parent\x20arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'voted':z['array'](ArbVotedSchema)['describe']('Voting\x20record\x20list'),'proposition':z['array'](ArbPropositionSchema)['describe']('Claim/proposal\x20list'),'fee':BalanceTypeSchema['describe']('Arbitration\x20fee'),'feedback':z['string']()['describe']('Arbitration\x20feedback'),'indemnity':z['union']([ArbIndemnitySchema,z['null']()])['optional']()['describe']('Arbitration\x20compensation'),'voting_deadline':z['union']([z['number'](),z['string']()])['optional']()['describe']('Voting\x20deadline'),'objection':z['string']()['describe']('Arbitration\x20objection'),'status':ArbStatusSchema,'compensation_time':z['union']([z['number'](),z['null']()])['describe']('Compensation\x20claim\x20time'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arb\x20object');export const DiscountTypeSchema=z['union']([z['literal'](a25a['RATES'])['describe']('Rate\x20discount\x20type'),z['literal'](a25a['FIXED'])['describe']('Fixed\x20discount\x20type')])['describe']('Discount\x20type');export const ObjectDiscountSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type.\x20If\x20rate(0),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).'),'benchmark':z['union']([BalanceTypeSchema,z['null']()])['describe']('Discount\x20benchmark\x20amount.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20this\x20amount;\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20this\x20amount.'),'off':BalanceTypeSchema['describe']('Discount\x20value.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20maximum\x20100\x20yuan\x20discount).'),'time_start':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20start\x20time'),'time_end':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20end\x20time'),'service':z['string']()['describe']('Parent\x20service\x20object\x20ID'),'transferable':z['boolean']()['describe']('Whether\x20discount\x20is\x20transferable\x20to\x20other\x20users')})['describe']('Discount\x20object');export const AmountFromDepositGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20storable\x20amount.\x20If\x20null,\x20deposit\x20amount\x20is\x20unlimited.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20deposit');export const AmountFromWithdrawGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['number']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20withdrawable\x20amount.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20withdrawal');export const ObjectTreasurySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Treasury\x20object\x20description'),'balance':BalanceTypeSchema['describe']('Current\x20balance'),'history_count':z['number']()['describe']('Transaction\x20record\x20count.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27TreasuryRecord\x27\x20table\x20items.'),'external_deposit_guard':z['array'](AmountFromDepositGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20deposit'),'external_withdraw_guard':z['array'](AmountFromWithdrawGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20withdrawal'),'inflow':BalanceTypeSchema['describe']('Inflow\x20amount'),'outflow':BalanceTypeSchema['describe']('Outflow\x20amount'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Treasury\x20object');export const TreasuryOpSchema=z['enum'](['Withdraw','Deposit','Receive'])['describe']('Treasury\x20object\x20operation\x20type');export const TreasuryRecordSchema=z['object']({'op':TreasuryOpSchema['describe']('Treasury\x20object\x20operation\x20type'),'signer':z['string']()['describe']('Operator\x20user\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('External\x20Guard\x20object\x20ID.\x20If\x20null,\x20operation\x20was\x20completed\x20through\x20Permission\x20object\x20permissions.'),'amount':BalanceTypeSchema['describe']('Operation\x20amount'),'time':z['union']([z['number'](),z['string']()])['describe']('Operation\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Treasury\x20object\x20transaction\x20record');export const PolicyWriteGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'id_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20(or\x20address)\x20is\x20the\x20ID\x20of\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20ID\x20separately.'),'data_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20data\x20separately.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20when\x20writing\x20policy');export const IdFromSchema=z['union']([z['literal'](0x0)['describe']('None\x20(0)'),z['literal'](0x1)['describe']('Clock\x20(1)'),z['literal'](0x2)['describe']('Signer\x20(2)'),z['literal']('None')['describe']('None'),z['literal']('Clock')['describe']('Clock'),z['literal']('Signer')['describe']('Signer'),z['literal']('none')['describe']('none'),z['literal']('clock')['describe']('clock'),z['literal']('signer')['describe']('signer')])['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20Can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27Clock\x27,\x20\x27clock\x27,\x20\x27Signer\x27,\x20\x27signer\x27)\x20or\x20a\x20number\x20(0-2).\x20Supported\x20values:\x20None=0/\x27None\x27/\x27none\x27,\x20Clock=1/\x27Clock\x27/\x27clock\x27,\x20Signer=2/\x27Signer\x27/\x27signer\x27.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.');export const PolicyRuleSchema=z['object']({'name':z['string']()['describe']('Policy\x20rule\x20name'),'description':z['string']()['describe']('Policy\x20rule\x20description'),'write_guard':z['array'](PolicyWriteGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20when\x20writing\x20data'),'quote_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20referencing\x20this\x20policy\x20data\x20on-chain\x20(e.g.,\x20verifying\x20if\x20user\x20has\x20paid\x20subscription).\x20If\x20null,\x20no\x20verification\x20is\x20needed\x20for\x20on-chain\x20references.\x20The\x20Guard\x20must\x20have\x20empty\x20\x27relies\x27\x20field\x20and\x20\x27rep\x27\x20field\x20true.'),'id_from':IdFromSchema['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.'),'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value\x20when\x20writing\x20data.')});export const TableItem_RepositoryDataSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Object\x20or\x20user\x20ID'),'name':z['string']()['describe']('Data\x20item\x20name\x20(Policy\x20Name)'),'value':z['array'](z['number']())['describe']('Raw\x20data\x20value\x20(first\x20byte\x20is\x20value\x20type,\x20remaining\x20bytes\x20are\x20Bcs\x20formatted\x20value)'),'data':z['object']({'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value.'),'value':SupportedValueSchema['describe']('Data\x20value.')})})['describe']('Storage\x20data\x20item\x20owned\x20by\x20Repository\x20object');export const TableItem_RewardRecordSchema=ObjectBaseSchema['extend']({'recipient':z['string']()['describe']('Reward\x20recipient\x20ID'),'guard':z['string']()['describe']('Guard\x20object\x20ID'),'total':BalanceTypeSchema['describe']('Total\x20reward\x20amount'),'record':z['array'](z['object']({'amount':BalanceTypeSchema['describe']('Reward\x20amount'),'time':z['number']()['describe']('Reward\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')}))['describe']('Reward\x20record\x20list')})['describe']('Reward\x20object\x27s\x20reward\x20record');export const ObjectRepositorySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Repository\x20object\x20description'),'policies':z['array'](PolicyRuleSchema)['describe']('Repository\x20object\x20policy\x20rule\x20list'),'data_count':z['number']()['describe']('Number\x20of\x20data\x20items\x20stored\x20in\x20Repository\x20object.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RepositoryData\x27\x20table\x20items.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Repository\x20object');export const ImSchema=z['object']({'at':z['string']()['describe']('Contact\x27s\x20account\x20address\x20for\x20instant\x20messaging'),'status':z['string']()['describe']('Contact\x27s\x20current\x20status\x20message'),'join_time':z['number']()['describe']('Timestamp\x20when\x20contact\x20joined\x20(milliseconds\x20since\x20epoch)'),'description':z['string']()['describe']('Description\x20or\x20note\x20about\x20this\x20contact')})['describe']('Instant\x20Messaging\x20contact\x20entry\x20with\x20address,\x20status,\x20and\x20metadata');export const ObjectContactSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Contact\x20object\x20description\x20or\x20public\x20information'),'permission':z['string']()['describe']('Permission\x20object\x20ID\x20that\x20controls\x20who\x20can\x20modify\x20this\x20contact'),'location':z['string']()['describe']('Physical\x20or\x20virtual\x20location\x20information\x20for\x20this\x20contact'),'ims':z['array'](ImSchema)['describe']('List\x20of\x20instant\x20messaging\x20contacts.\x20Each\x20entry\x20contains\x20an\x20address\x20for\x20encrypted\x20real-time\x20communication\x20via\x20Wowok\x20Messenger')})['describe']('Contact\x20object\x20storing\x20on-chain\x20instant\x20messaging\x20addresses\x20for\x20real-time\x20encrypted\x20communication\x20between\x20object\x20managers\x20and\x20users');export const ObjectPersonalSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x27s\x20address'),'like':z['number']()['describe']('User\x27s\x20like\x20count'),'dislike':z['number']()['describe']('User\x27s\x20dislike\x20count'),'info':z['array'](RecordsInEntitySchema)['describe']('User\x27s\x20personal\x20information\x20record\x20list'),'description':z['string']()['describe']('User\x27s\x20personal\x20description'),'referrer':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20referrer\x20ID'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('On-chain\x20address\x20mark\x20object\x20ID'),'details':z['array'](VoteInEntityLinkerSchema)['describe']('User\x27s\x20voting\x20record\x20list\x20in\x20EntityLinker'),'active_tx':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20recent\x20active\x20transaction\x20ID'),'passive_tx':z['union']([z['string'](),z['null']()])['describe']('Recent\x20transaction\x20ID\x20interacting\x20with\x20user'),'time':z['number']()['describe']('User\x20object\x20creation\x20time')})['describe']('Personal\x20object');export const ObjectProofSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Proof\x20description'),'proof':z['string']()['describe']('Proof\x20content.\x20e.g.,\x20merkle\x20tree\x20root'),'server_pubkey':z['string']()['describe']('Server\x20public\x20key'),'server_signature':z['string']()['describe']('Server\x20signature'),'proof_type':z['union']([z['number'](),z['string']()])['describe']('Proof\x20type.\x201:\x20WTS\x20proof;\x201-100\x20reserved.'),'item_count':z['union']([z['number'](),z['string'](),z['null']()])['describe']('Item\x20count.\x20e.g.,\x20number\x20of\x20items\x20in\x20the\x20merkle\x20tree'),'about_address':z['union']([z['string'](),z['null']()])['describe']('About\x20address.\x20e.g.,\x20address\x20of\x20the\x20entity\x20being\x20proved'),'signer':z['string']()['describe']('Signer\x20address'),'time':z['number']()['describe']('Proof\x20creation\x20time')})['describe']('Proof\x20object');export const WReceivedObjectSchema=ObjectBaseSchema['extend']({'balance':BalanceTypeSchema['describe']('Amount\x20contained\x20in\x20object'),'payment':z['string']()['describe']('Payment\x20object\x20ID')})['describe']('Amount\x20object\x20received\x20by\x20on-chain\x20object');export const ObjectPermissionSchema=ObjectBaseSchema['extend']({'builder':z['string']()['describe']('Permission\x20object\x20owner\x20ID\x20(highest\x20permission\x20user)'),'admin':z['array'](z['string']())['describe']('Admin\x20user\x20ID\x20list'),'description':z['string']()['describe']('Permission\x20object\x20description'),'entity_count':z['number']()['describe']('Number\x20of\x20user\x20IDs\x20and\x20Guard\x20IDs\x20granted\x20permissions.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27PermissionPerm\x27\x20table\x20items.'),'perm_remark':z['array'](z['object']({'index':PermissionIndexTypeSchema,'remark':z['string']()['describe']('Permission\x20item\x20remark')}))['describe']('Permission\x20item\x20remark\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object')})['describe']('Permission\x20object');export const WitnessTypeSchema=z['number']()['int']()['refine'](isWitnessType,{'message':'Invalid\x20WitnessType\x20value'});export const GuardQueryIdSchema=z['number']()['int']()['min'](0x0)['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'})['describe']('ID\x20of\x20the\x20data\x20query\x20instruction\x20for\x20the\x20Object.');export const GuardNodeSchema=z['lazy'](()=>z['discriminatedUnion']('type',[z['object']({'type':z['literal']('identifier'),'identifier':GuardIdentifierSchema})['strict']()['describe']('Returns\x20the\x20constant\x20value\x20stored\x20at\x20the\x20specified\x20identifier\x20in\x20the\x20Guard\x20table.'),z['object']({'type':z['literal']('query'),'query':z['union']([z['number']()['int']()['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'}),z['string']()['refine'](a=>isValidGuardQueryIdOrName(a),{'message':'Invalid\x20guard\x20query\x20name.\x20Name\x20not\x20found\x20in\x20GUARDQUERY\x20array\x20(case-insensitive).'})])['describe']('ID\x20or\x20name\x20of\x20the\x20wowok\x20object\x20data\x20query\x20instruction.\x20Can\x20be\x20a\x20numeric\x20ID\x20(e.g.,\x201001)\x20or\x20a\x20name\x20string\x20(e.g.,\x20\x27permission.description\x27).\x20Name\x20matching\x20is\x20case-insensitive.'),'object':z['object']({'identifier':GuardIdentifierSchema,'convert_witness':WitnessTypeSchema['optional']()['describe']('Optional.\x20When\x20specified,\x20the\x20query\x20retrieves\x20data\x20from\x20the\x20associated\x20object\x20instead\x20of\x20the\x20object\x20itself.\x20For\x20example,\x20querying\x20an\x20order\x20with\x20convert_witness=TypeOrderProgress\x20retrieves\x20the\x20associated\x20Progress\x20object\x20data.')})['strict']()['describe']('The\x20object\x20to\x20query\x20from\x20the\x20Guard\x20table.'),'parameters':z['array'](GuardNodeSchema)['describe']('Parameters\x20required\x20by\x20the\x20query\x20(must\x20match\x20the\x20query\x27s\x20expected\x20parameters\x20type).')})['strict']()['describe']('Returns\x20the\x20result\x20of\x20executing\x20a\x20data\x20query\x20instruction\x20on\x20the\x20specified\x20object.\x20The\x20return\x20type\x20depends\x20on\x20the\x20query\x20being\x20executed.'),z['object']({'type':z['literal']('logic_as_u256_greater_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_greater'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20equals\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20nodes\x20of\x20any\x20type.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20in\x20both\x20type\x20and\x20value.\x20Returns\x20true\x20if\x20type\x20and\x20value\x20match\x20for\x20all,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_not'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20inverting\x20the\x20boolean\x20value\x20of\x20the\x20child\x20node\x20(true\x20->\x20false,\x20false\x20->\x20true).'),z['object']({'type':z['literal']('logic_and'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20AND\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ALL\x20are\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_or'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20OR\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ANY\x20is\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('logic_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('logic_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_number_add'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20adding\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20+\x20second\x20+\x20third\x20+\x20...).'),z['object']({'type':z['literal']('calc_number_multiply'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20multiplying\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20*\x20second\x20*\x20third\x20*\x20...).'),z['object']({'type':z['literal']('calc_number_subtract'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20subtracting\x20the\x20second\x20node\x20value\x20from\x20the\x20first\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20(first\x20-\x20second\x20-\x20third\x20-\x20...).'),z['object']({'type':z['literal']('calc_number_divide'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20/\x20second)\x20/\x20third\x20/\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_number_mod'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20taking\x20the\x20remainder\x20of\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20%\x20second)\x20%\x20third\x20%\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_string_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20(number\x20of\x20UTF-8\x20bytes)\x20of\x20the\x20child\x20node\x20value.'),z['object']({'type':z['literal']('calc_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('calc_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('calc_string_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack).\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('calc_string_nocase_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack),\x20ignoring\x20case.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('convert_number_address'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Address.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20Address\x20type.'),z['object']({'type':z['literal']('convert_address_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20Address\x20type\x20to\x20number\x20type.'),z['object']({'type':z['literal']('convert_number_string'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20String.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20string\x20type.'),z['object']({'type':z['literal']('convert_string_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20parsing\x20the\x20child\x20node\x20value\x20as\x20a\x20number.\x20Throws\x20exception\x20if\x20the\x20string\x20is\x20not\x20a\x20valid\x20number.'),z['object']({'type':z['literal']('convert_safe_u8'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U8.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U8\x20range\x20(0-255).'),z['object']({'type':z['literal']('convert_safe_u16'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U16.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U16.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U16\x20range\x20(0-65535).'),z['object']({'type':z['literal']('convert_safe_u32'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U32.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U32.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U32\x20range.'),z['object']({'type':z['literal']('convert_safe_u64'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U64.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U64\x20range.'),z['object']({'type':z['literal']('convert_safe_u128'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U128.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U128.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U128\x20range.'),z['object']({'type':z['literal']('convert_safe_u256'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U256.'),z['object']({'type':z['literal']('value_type'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20getting\x20the\x20type\x20identifier\x20(ValueType)\x20of\x20the\x20child\x20node\x20value.\x20'+VALUE_TYPE_DESCRIPTION),z['object']({'type':z['literal']('vec_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20of\x20the\x20vector\x20in\x20the\x20child\x20node\x20value.\x20Child\x20node\x20must\x20be\x20one\x20of\x20Vec\x20types:\x20VecBool=9,\x20VecAddress=10,\x20VecString=11,\x20VecU8=12,\x20VecU16=13,\x20VecU32=14,\x20VecU64=15,\x20VecU128=16,\x20VecU256=17,\x20VecVecU8=18,\x20Value=19.'),z['object']({'type':z['literal']('vec_contains_bool'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20boolean\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_address'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20address\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string_nocase'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes),\x20using\x20case-insensitive\x20comparison.'),z['object']({'type':z['literal']('vec_contains_number'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20number\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_indexof_bool'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_address'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string_nocase'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node),\x20using\x20case-insensitive\x20comparison.\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_number'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('context'),'context':z['enum'](['Signer','Clock','Guard'])['describe']('System\x20context\x20type:\x20Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')})['strict']()['describe']('Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')]))['describe']('Guard\x20node:\x20represents\x20an\x20operation\x20instruction\x20in\x20Guard.\x20Each\x20node\x20returns\x20a\x20value\x20of\x20a\x20specific\x20type,\x20computed\x20from\x20its\x20child\x20nodes\x20or\x20context.');export const ObjectGuardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Guard\x20object\x20description'),'table':z['array'](GuardTableItemSchema)['describe']('Guard\x20object\x20table\x20item\x20list'),'input':z['array'](z['number']())['describe']('Guard\x20object\x20instruction\x20sequence'),'root':GuardNodeSchema['describe']('Guard\x20object\x20root\x20node'),'rep_quote':z['record'](z['string']()['describe']('Repository\x20object\x20ID'),z['array'](z['string']())['describe']('Repository\x20policy\x20list'))['describe']('Depends\x20on\x20Repository\x20policy\x20quote'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'rep':z['boolean']()['describe']('If\x20false,\x20has\x20complex\x20Repository\x20quote\x20dependencies\x20and\x20cannot\x20be\x20used\x20as\x20an\x20independent\x20Guard')})['describe']('Guard\x20object');export const PaymentInfoSchema=z['object']({'for_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20for\x20a\x20specific\x20object\x20ID'),'for_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20to\x20satisfy\x20verification\x20of\x20a\x20Guard\x20object'),'remark':z['string']()['describe']('Payment\x20record\x20remark'),'index':z['union']([z['number'](),z['string']()])['describe']('Payment\x20record\x20index')})['describe']('Payment\x20information');export const ObjectPaymentSchema=ObjectBaseSchema['extend']({'record':z['array'](z['object']({'recipient':RecipientSchema,'amount':BalanceTypeSchema}))['describe']('Payment\x20record\x20list'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['string']()['describe']('Payment\x20time'),'from_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20source\x20object\x20ID'),'signer':z['string']()['describe']('Payment\x20signer\x20ID'),'info':PaymentInfoSchema})['describe']('Payment\x20object');export const ObjectAllocationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Fund\x20allocation\x20object\x20description'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocation\x20object\x20allocator\x20list'),'balance':BalanceTypeSchema['describe']('Fund\x20allocation\x20object\x20balance'),'payment_info':PaymentInfoSchema['optional']()['describe']('Payment\x20information'),'payment':z['array'](z['string']())['describe']('Payment\x20object\x20ID\x20list.\x20Each\x20fund\x20allocation\x20automatically\x20generates\x20a\x20payment\x20object\x20to\x20record\x20fund\x20flow')})['describe']('Fund\x20allocation\x20object');export const VoteWeightSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Use\x20value\x20corresponding\x20to\x20Guard\x20object\x27s\x20Table\x20index\x20as\x20voting\x20weight'),z['object']({'FixedValue':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Fixed\x20voting\x20weight\x20value')})['describe']('Fixed\x20voting\x20weight')])['describe']('Voting\x20weight');export const VotingGuardSchema=z['object']({'guard':z['string']()['describe']('Voting\x20Guard\x20object\x20ID'),'vote_weight':VoteWeightSchema})['describe']('Voting\x20Guard\x20object');export const ObjectArbitrationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arbitration\x20object\x20description'),'location':z['string']()['describe']('Arbitration\x20object\x20location'),'voting_guard':z['array'](VotingGuardSchema)['describe']('Voting\x20Guard\x20object\x20list'),'usage_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20submitting\x20arbitration'),'fee':BalanceTypeSchema['describe']('Single\x20arbitration\x20fee'),'balance':BalanceTypeSchema['describe']('Arbitration\x20object\x20balance'),'bPaused':z['boolean']()['describe']('Whether\x20arbitration\x20object\x20is\x20paused'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Arbitration\x20object\x20permission')})['describe']('Arbitration\x20object');export const GuardInPassportSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'result':z['boolean']()['describe']('Guard\x20object\x20verification\x20result'),'impack':z['boolean']()['describe']('Whether\x20Guard\x20object\x20verification\x20result\x20participates\x20in\x20final\x20result\x20determination\x20(AND\x20logic)'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'submission':GuardSubmissionSchema['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20Passport\x20object');export const ObjectPassportSchema=ObjectBaseSchema['extend']({'info':z['array'](GuardInPassportSchema)['describe']('List\x20of\x20Guard\x20object\x20records\x20in\x20Passport\x20object'),'result':z['boolean']()['describe']('Passport\x20object\x20final\x20verification\x20result'),'tx_hash':z['string']()['describe']('Transaction\x20hash\x20where\x20verification\x20occurred'),'impack_guard':z['array'](z['string']())['describe']('List\x20of\x20Guard\x20object\x20IDs\x20participating\x20in\x20final\x20result\x20determination'),'time':z['number']()['describe']('Creation\x20time\x20of\x20the\x20Passport\x20object'),'signer':z['string']()['describe']('Signer\x20address\x20of\x20the\x20Passport\x20object'),'has_verified':z['boolean']()['describe']('Whether\x20the\x20Passport\x20object\x20has\x20been\x20verified')})['describe']('Passport\x20object');export const TableItem_PermissionPermSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID\x20or\x20Guard\x20ID'),'perm':z['array'](PermissionIndexTypeSchema)['describe']('Permission\x20list\x20obtained\x20after\x20user\x20or\x20Guard\x20object\x20verification')})['describe']('Permission\x20object\x27s\x20permission\x20record');export const TableItem_DemandPresenterSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Referrer\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter'),'service':z['union']([z['string'](),z['null']()])['describe']('Recommended\x20service\x20object\x20ID'),'update_time':z['number']()['describe']('Last\x20update\x20time'),'acceptance_score':z['union']([z['number'](),z['null']()])['describe']('Demand\x20object\x20feedback\x20score'),'feedback':z['string']()['describe']('Demand\x20object\x20feedback\x20information'),'feedback_time':z['number']()['describe']('Demand\x20object\x20feedback\x20time')})['describe']('Demand\x20object\x27s\x20Service\x20recommendation\x20record');export const MachineForwardGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'retained_submission':z['array'](z['number']())['optional']()['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20MachineForwardGuard\x20object');export const MachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name'),'namedOperator':z['string']()['optional']()['describe']('Forward\x20operation\x20permission\x201:\x20Namespace\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20Progress\x20object\x20operators\x20are\x20different\x20(e.g.,\x20different\x20delivery\x20personnel\x20for\x20different\x20orders).'),'permissionIndex':PermissionIndexTypeSchema['optional']()['describe']('Forward\x20operation\x20permission\x202:\x20Permission\x20index\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20all\x20Progress\x20object\x20operators\x20are\x20the\x20same\x20(e.g.,\x20same\x20reward\x20reviewers\x20for\x20all\x20orders).'),'weight':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Forward\x20weight'),'guard':MachineForwardGuardSchema['optional']()['describe']('Guard\x20object\x20ID,\x20if\x20defined,\x20Guard\x20verification\x20must\x20also\x20pass\x20to\x20complete\x20Forward\x20(e.g.,\x20completed\x20promised\x20supply\x20chain\x20sub-order).')})['describe']('Forward\x20in\x20Machine\x20object');export const MachineNodePairSchema=z['object']({'prev_node':z['string']()['describe']('Previous\x20node\x20name'),'threshold':z['number']()['int']()['min'](0x0)['max'](0xffffffff)['describe']('Threshold\x20to\x20trigger\x20node\x20advancement.\x20If\x20total\x20Forward\x20weight\x20is\x20greater\x20than\x20or\x20equal\x20to\x20threshold,\x20node\x20advancement\x20is\x20triggered.'),'forwards':z['array'](MachineForwardSchema)['describe']('Forward\x20list')})['describe']('Node\x20pair\x20in\x20Machine\x20object');export const MachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name'),'pairs':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20in\x20Machine\x20object');export const TableItem_MachineNodeSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Node\x20name'),'value':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20record\x20in\x20Machine\x20object');export const TableItem_ProgressHistorySchema=ObjectBaseSchema['extend']({'index':z['number']()['int']()['describe']('Progress\x20record\x20index\x20(starting\x20from\x200)'),'node':z['string']()['describe']('Previous\x20node\x20name'),'next_node':z['string']()['describe']('Next\x20node\x20name'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'time':z['number']()['describe']('Progress\x20record\x20completion\x20time\x20(Unix\x20timestamp)')})['describe']('Completed\x20progress\x20record\x20in\x20Progress\x20object');export const TableItem_TreasuryHistorySchema=ObjectBaseSchema['extend']({'payment':NameOrAddressSchema['describe']('Payment\x20object\x20ID'),'op':TreasuryOpSchema['describe']('Operation\x20type'),'signer':z['string']()['describe']('Operator\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('Guard\x20object\x20ID\x20verified\x20during\x20operation\x20(none\x20if\x20operated\x20through\x20Permission)'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['number']()['describe']('Payment\x20time\x20(Unix\x20timestamp)'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Payment\x20record\x20in\x20Treasury\x20object');export const ObjectsQuerySchema=QueryEnvSchema['extend']({'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20objects');export const ObjectUnionSchema=z['union']([ObjectTreasurySchema,ObjectPermissionSchema,ObjectMachineSchema,ObjectServiceSchema,ObjectOrderSchema,ObjectProgressSchema,ObjectDemandSchema,ObjectArbitrationSchema,ObjectAllocationSchema,ObjectRewardSchema,ObjectRepositorySchema,ObjectGuardSchema,ObjectPaymentSchema,ObjectPassportSchema,ObjectEntityRegistrarSchema,ObjectEntityLinkerSchema,ObjectResourceSchema,ObjectArbSchema,ObjectDiscountSchema,ObjectContactSchema,ObjectPersonalSchema,ObjectBaseSchema,ObjectProofSchema])['describe']('Union\x20of\x20all\x20wowok\x20on-chain\x20object\x20types');export const ObjectsAnswerSchema=z['object']({'objects':z['array'](ObjectUnionSchema)['optional']()['describe']('List\x20of\x20queried\x20objects')})['describe']('Response\x20for\x20querying\x20objects');export const PersonalQuerySchema=QueryEnvSchema['extend']({'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20')})['describe']('Query\x20PUBLIC\x20on-chain\x20personal\x20profile\x20for\x20any\x20account.\x20Returns\x20publicly\x20published\x20information\x20(social\x20accounts,\x20websites,\x20professional\x20info)\x20that\x20users\x20have\x20intentionally\x20shared\x20on\x20the\x20blockchain.');export const TableQuerySchema=QueryEnvSchema['extend']({'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Number\x20of\x20records\x20returned\x20per\x20page')})['describe']('Request\x20parameters\x20for\x20querying\x20object\x27s\x20data\x20table');export const TableAnswerItemSchema=z['object']({'key':z['object']({'type':z['string']()['describe']('Key\x20type'),'value':z['union']([z['string'](),z['number']()])['describe']('Key\x20value')})['describe']('Query\x20key\x20and\x20its\x20type'),'type':z['string']()['describe']('Table\x20item\x20object\x20type'),'object':z['string']()['describe']('Table\x20item\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Table\x20item\x20object\x20version')})['describe']('Result\x20item\x20of\x20object\x27s\x20data\x20table\x20query');export const TableAnswerSchema=z['object']({'items':z['array'](TableAnswerItemSchema),'nextCursor':z['union']([z['string'](),z['null']()]),'hasNextPage':z['boolean'](),'cache_expire':z['union']([z['string'](),z['number']()])['optional']()});export const QueryTableItem_byAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byU64Schema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20U64\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byStringSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20string\x20key\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byNameAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20name\x20and\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_Registrar_EntitySchema=QueryEnvSchema['extend']({'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20Registrar\x20object\x27s\x20data\x20table');export const EventTypeSchema=z['union']([z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent')])['describe']('Event\x20type');export const EventCursorSchema=z['object']({'eventSeq':z['string']()['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20cursor');export const EventBaseSchema=z['object']({'id':EventCursorSchema,'sender':z['string']()['describe']('Event\x20sender\x20ID'),'type':z['union']([z['string'](),z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent')])['describe']('Event\x20type'),'type_raw':z['string']()['describe']('Raw\x20event\x20type'),'time':z['string']()['describe']('Event\x20occurrence\x20time')})['describe']('Event\x20base\x20information');export const ArbEventSchema=EventBaseSchema['extend']({'arb':z['string']()['describe']('Arbitration\x20object\x20ID'),'arbitration':z['string']()['describe']('Arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'status':ArbStatusSchema})['describe']('Arbitration\x20event');export const NewOrderEventSchema=EventBaseSchema['extend']({'order':z['string']()['describe']('Order\x20object\x20ID'),'service':z['string']()['describe']('Service\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['optional']()['describe']('Progress\x20object\x20ID'),'discount':z['union']([z['string'](),z['null']()])['optional']()['describe']('Discount\x20object\x20ID'),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20ID'),'amount':BalanceTypeSchema})['describe']('New\x20order\x20event');export const ProgressEventSchema=EventBaseSchema['extend']({'progress':z['string']()['describe']('Progress\x20object\x20ID'),'machine':z['string']()['describe']('Machine\x20object\x20ID'),'task':z['union']([z['string'](),z['null']()])['optional']()['describe']('Task\x20object\x20ID'),'node':z['string']()['describe']('Current\x20node\x20name'),'forward':z['union']([z['string'](),z['null']()])['optional']()['describe']('Forward\x20operation\x20name'),'hold':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Whether\x20it\x20is\x20a\x20hold\x20operation')})['describe']('Progress\x20event');export const DemandPresentEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter')})['describe']('Event\x20of\x20recommending\x20service\x20to\x20Demand\x20object');export const DemandFeedbackEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content'),'acceptance_score':z['union']([z['number'](),z['null']()])['optional']()['describe']('Acceptance\x20score')})['describe']('Event\x20of\x20Demand\x20object\x20feedback\x20to\x20referrer');export const NewEntityEventSchema=EventBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID'),'resource':z['string']()['describe']('ID\x20mark\x20object\x20ID\x20owned\x20by\x20user'),'referrer':z['union']([z['string'](),z['null']()])['optional']()['describe']('Referrer\x20ID')})['describe']('New\x20user\x20event');export const EventAnswerSchema=z['object']({'data':z['array'](z['union']([EventBaseSchema,ArbEventSchema,NewOrderEventSchema,ProgressEventSchema,DemandPresentEventSchema,DemandFeedbackEventSchema,NewEntityEventSchema]))['describe']('Event\x20object\x20data'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Next\x20page\x20cursor'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20time')})['describe']('Event\x20query\x20result');export const EventQuerySchema=QueryEnvSchema['extend']({'type':EventTypeSchema['describe']('Event\x20type'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Event\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Query\x20count\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order')})['describe']('Event\x20query\x20parameters');export const OnchainEventsInputSchema=z['object']({'type':EventTypeSchema['describe']('Event\x20type\x20to\x20query.\x20Supported\x20types:\x20ArbEvent\x20(arbitration\x20events),\x20NewOrderEvent\x20(new\x20order\x20events),\x20ProgressEvent\x20(progress\x20events),\x20DemandPresentEvent\x20(demand\x20presentation\x20events),\x20DemandFeedbackEvent\x20(demand\x20feedback\x20events),\x20NewEntityEvent\x20(new\x20entity\x20registration\x20events)'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Optional\x20pagination\x20cursor\x20for\x20fetching\x20next\x20page\x20of\x20results.\x20Use\x20null\x20for\x20first\x20query,\x20then\x20use\x20nextCursor\x20from\x20response\x20for\x20subsequent\x20queries'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20events\x20to\x20return\x20per\x20query.\x20Use\x20null\x20for\x20default\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order\x20for\x20results:\x20\x27ascending\x27\x20(oldest\x20first)\x20or\x20\x27descending\x27\x20(newest\x20first).\x20Use\x20null\x20for\x20default\x20order'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20the\x20blockchain'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['describe']('Input\x20parameters\x20for\x20querying\x20on-chain\x20WOWOK\x20events');export const OnchainEventsResultSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20query\x20result\x20containing\x20list\x20of\x20events\x20and\x20pagination\x20info,\x20or\x20null\x20if\x20no\x20data\x20found')})['describe']('Result\x20of\x20on-chain\x20events\x20query');export const TableItem_RepositoryDataOrUndefinedSchema=z['union']([TableItem_RepositoryDataSchema,z['null']()])['describe']('Repository\x20data\x20item\x20or\x20null');export const TableItem_PermissionPermOrUndefinedSchema=z['union']([TableItem_PermissionPermSchema,z['null']()])['describe']('Permission\x20permission\x20item\x20or\x20null');export const TableItem_EntityRegistrarOrUndefinedSchema=z['union']([TableItem_EntityRegistrarSchema,z['null']()])['describe']('Entity\x20registrar\x20item\x20or\x20null');export const TableItem_EntityLinkerOrUndefinedSchema=z['union']([TableItem_EntityLinkerSchema,z['null']()])['describe']('Entity\x20linker\x20item\x20or\x20null');export const TableItem_RewardRecordOrUndefinedSchema=z['union']([TableItem_RewardRecordSchema,z['null']()])['describe']('Reward\x20record\x20item\x20or\x20null');export const TableItem_DemandPresenterOrUndefinedSchema=z['union']([TableItem_DemandPresenterSchema,z['null']()])['describe']('Demand\x20presenter\x20item\x20or\x20null');export const TableItem_TreasuryHistoryOrUndefinedSchema=z['union']([TableItem_TreasuryHistorySchema,z['null']()])['describe']('Treasury\x20history\x20item\x20or\x20null');export const TableItem_MachineNodeOrUndefinedSchema=z['union']([TableItem_MachineNodeSchema,z['null']()])['describe']('Machine\x20node\x20item\x20or\x20null');export const TableItem_ProgressHistoryOrUndefinedSchema=z['union']([TableItem_ProgressHistorySchema,z['null']()])['describe']('Progress\x20history\x20item\x20or\x20null');export const TableItem_AddressMarkOrUndefinedSchema=z['union']([TableItem_AddressMarkSchema,z['null']()])['describe']('Address\x20mark\x20item\x20or\x20null');export const ObjectPersonalOrUndefinedSchema=z['object']({'result':z['union']([ObjectPersonalSchema,z['null']()])['describe']('Personal\x20object\x20or\x20null')})['describe']('Personal\x20object\x20or\x20null');export const TokenTypeInfoOrUndefinedSchema=z['object']({'result':z['union']([TokenTypeInfoSchema,z['null']()])['describe']('Token\x20type\x20info\x20or\x20null')})['describe']('Token\x20type\x20info\x20or\x20null');export const EventAnswerOrUndefinedSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20answer\x20or\x20null')})['describe']('Event\x20answer\x20or\x20null');export const TableAnswerOrUndefinedSchema=z['object']({'result':z['union']([TableAnswerSchema,z['null']()])['describe']('Table\x20answer\x20or\x20null')})['describe']('Table\x20answer\x20or\x20null');export const QueryTableItemSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('RepositoryData'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20or\x20address\x20of\x20the\x20entity;\x20or\x20address\x20that\x20number\x20is\x20casted\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20repository\x20data\x20table\x20item'),z['object']({'type':z['literal']('PermissionPerm'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('User\x20ID\x20or\x20address,\x20or\x20Guard\x20ID\x20in\x20the\x20permission\x20perm\x20table'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20permission\x20perm\x20table\x20item'),z['object']({'type':z['literal']('EntityRegistrar'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20entity'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20registrar\x20table\x20item'),z['object']({'type':z['literal']('EntityLinker'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20or\x20address\x20that\x20the\x20registrar\x20votes\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20linker\x20table\x20item'),z['object']({'type':z['literal']('RewardRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20that\x20claims\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20reward\x20record\x20table\x20item'),z['object']({'type':z['literal']('DemandPresenter'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20Demand\x20presenter'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20demand\x20presenter\x20table\x20item'),z['object']({'type':z['literal']('TreasuryRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20of\x20the\x20payment\x20that\x20the\x20treasury\x20record\x20is\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20treasury\x20record\x20table\x20item'),z['object']({'type':z['literal']('MachineNode'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20node\x20name\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20machine\x20node\x20table\x20item'),z['object']({'type':z['literal']('ProgressHistory'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20progress\x20history\x20table\x20item'),z['object']({'type':z['literal']('AddressMark'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20or\x20address\x20that\x20the\x20mark\x20name\x20and\x20tags\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20address\x20mark\x20table\x20item')])['describe']('Request\x20parameters\x20for\x20querying\x20table\x20items');export const TableItemUnionOrUndefinedSchema=z['object']({'result':z['union']([TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema,z['null']()])['describe']('Table\x20item\x20or\x20null')})['describe']('Table\x20item\x20or\x20null');export const ConstantItemSchema=z['object']({'name':z['string']()['describe']('Name'),'value':z['union']([z['string'](),z['number']()])['describe']('Value'),'description':z['string']()['describe']('Description')})['describe']('Constant\x20item');export const PermissionInfoTypeSchema=z['object']({'index':z['number']()['describe']('Permission\x20index'),'name':z['string']()['describe']('Name'),'description':z['string']()['describe']('Description'),'object_type':z['string']()['describe']('Object\x20type')})['describe']('Permission\x20info\x20type');export const GuardInstructSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction'),'id':z['number']()['int']()['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(OperatorType\x20or\x20ContextType)'),'description':z['string']()['describe']('Description\x20of\x20the\x20guard\x20instruction'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20of\x20the\x20guard\x20instruction')})['describe']('Guard\x20instruction\x20info');export const GuardItemSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'id':z['union']([z['number']()['int'](),QueryIdSchema])['describe']('ID\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'description':z['string']()['describe']('Description'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20instruction'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20for\x20guard\x20query'),'parameters':z['optional'](z['array'](ValueTypeSchema))['describe']('Parameters\x20for\x20guard\x20query'),'return':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20query'),'parameters_description':z['optional'](z['array'](z['string']()))['describe']('Parameter\x20descriptions\x20for\x20guard\x20query')})['describe']('Guard\x20item\x20-\x20either\x20a\x20guard\x20instruction\x20or\x20a\x20guard\x20query');export const GuardInstructFilterOptionsSchema=z['object']({'name':z['optional'](z['string']())['describe']('Name\x20filter\x20(case-insensitive\x20partial\x20match)'),'id':z['optional'](z['array'](z['number']()['int']()))['describe']('ID\x20array\x20filter\x20(OperatorType\x20|\x20ContextType\x20|\x20number)'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20filter'),'paramCount':z['optional'](z['number']()['int']())['describe']('Parameter\x20count\x20filter'),'scope':z['optional'](z['enum'](['instruct','object\x20query','all']))['describe']('Scope\x20filter:\x20instruct,\x20object\x20query,\x20or\x20all')['default']('all'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter\x20(only\x20for\x20object\x20query\x20scope)')})['describe']('Guard\x20instruction\x20filter\x20options');export const PermissionFilterSchema=z['object']({'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter'),'name':z['optional'](z['string']())['describe']('Name\x20filter'),'index':z['optional'](PermissionIndexTypeSchema)['describe']('Index\x20filter'),'description':z['optional'](z['string']())['describe']('Description\x20filter')})['describe']('Permission\x20filter');export const ProtocolInfoQuerySchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants')})['describe']('Constants\x20query'),z['object']({'info':z['literal']('built-in\x20permissions'),'filter':z['optional'](PermissionFilterSchema)['describe']('Filter\x20for\x20built-in\x20permissions')})['describe']('Built-in\x20permissions\x20query'),z['object']({'info':z['literal']('guard\x20instructions'),'filter':z['optional'](GuardInstructFilterOptionsSchema)['describe']('Filter\x20for\x20guard\x20instructions')})['describe']('Guard\x20instructions\x20and\x20wowok\x20object\x20queries'),z['object']({'info':z['literal']('current\x20network')})['describe']('Current\x20network\x20entrypoint'),z['object']({'info':z['literal']('value\x20types')})['describe']('Value\x20types\x20query\x20-\x20returns\x20all\x20supported\x20value\x20types\x20with\x20their\x20numeric\x20and\x20string\x20representations')])['describe']('WoWok\x20Build-in\x20infomation\x20query');export const BuiltinPermissionSchema=z['object']({'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')})['describe']('Built-in\x20permissions\x20query\x20result');export const ProtocolInfoResultWrappedSchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants'),'result':z['array'](ConstantItemSchema)['describe']('Constants\x20result')}),z['object']({'info':z['literal']('built-in\x20permissions'),'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')}),z['object']({'info':z['literal']('guard\x20instructions'),'result':z['array'](GuardItemSchema)['describe']('Guard\x20instructions\x20result')}),z['object']({'info':z['literal']('current\x20network'),'result':EntrypointSchema['describe']('Current\x20network\x20entrypoint')}),z['object']({'info':z['literal']('value\x20types'),'result':z['array'](ConstantItemSchema)['describe']('Value\x20types\x20result\x20-\x20each\x20item\x20contains\x20name\x20(string),\x20value\x20(string),\x20and\x20description\x20showing\x20the\x20numeric\x20mapping')})])['describe']('Protocol\x20info\x20result');export const ProtocolInfoResultSchema=z['object']({'result':ProtocolInfoResultWrappedSchema})['describe']('Protocol\x20info\x20result');export const LocalQueryResultSchema=z['union']([z['object']({'query_type':z['literal']('local_mark_list'),'result':QueryLocalMarkListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_list'),'result':QueryAccountListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('local_info_list'),'result':QueryLocalInfoListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('token_list'),'result':QueryLocalTokenListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_balance'),'result':QueryAccountResultSchema})]);export const WatchQueryOperationsResultSchema=z['object']({'result':z['any']()})['describe']('Watch\x20query\x20operations\x20result\x20schema\x20(using\x20any\x20to\x20avoid\x20TypeScript\x20inference\x20limits)');
|
|
1
|
+
import{z}from'zod';import{TokenTypeInfoSchema,QueryLocalMarkListResultSchema,QueryAccountListResultSchema,QueryLocalInfoListResultSchema,QueryLocalTokenListResultSchema,QueryAccountResultSchema}from'../local/index.js';import{AccountOrMark_AddressSchema,BalanceTypeSchema,EntrypointSchema,GuardIdentifierSchema,GuardTableItemSchema,NameOrAddressSchema,ObjectBaseSchema,ObjectTypeSchema,QueryIdSchema,SupportedValueSchema,ValueTypeSchema,LongNameSchema,DescriptionSchema}from'../common/index.js';import{isValidPermissionIndex}from'../utils/permission-index-utils.js';import{isValidGuardQueryId,isValidGuardQueryIdOrName}from'../utils/guard-query-utils.js';import{isWitnessType}from'wowok';import{DiscountType as a25a}from'wowok';import{QueryEnvSchema}from'../common/index.js';const MAX_MULTI_OPERANDS=0x8,VALUE_TYPE_DESCRIPTION='Value\x20type:\x20can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27U64\x27,\x20\x27Address\x27,\x20\x27String\x27)\x20or\x20a\x20number\x20(0-18).\x20Supported\x20types:\x20Bool=0/\x27Bool\x27,\x20Address=1/\x27Address\x27,\x20String=2/\x27String\x27,\x20U8=3/\x27U8\x27,\x20U16=4/\x27U16\x27,\x20U32=5/\x27U32\x27,\x20U64=6/\x27U64\x27,\x20U128=7/\x27U128\x27,\x20U256=8/\x27U256\x27,\x20VecBool=9/\x27VecBool\x27,\x20VecAddress=10/\x27VecAddress\x27,\x20VecString=11/\x27VecString\x27,\x20VecU8=12/\x27VecU8\x27,\x20VecU16=13/\x27VecU16\x27,\x20VecU32=14/\x27VecU32\x27,\x20VecU64=15/\x27VecU64\x27,\x20VecU128=16/\x27VecU128\x27,\x20VecU256=17/\x27VecU256\x27,\x20VecVecU8=18/\x27VecVecU8\x27.\x20Note:\x20Value=19\x20is\x20an\x20INTERNAL\x20type\x20for\x20wowok\x20system\x20use\x20only\x20and\x20should\x20NOT\x20be\x20used\x20directly\x20by\x20users.\x20String\x20format\x20is\x20recommended\x20for\x20better\x20readability.';export const AmountTypeSchema=z['enum'](['GuardU64Identifier','Fixed'])['describe']('Amount\x20type.\x20GuardU64Identifier\x20indicates\x20the\x20amount\x20comes\x20from\x20U64\x20type\x20data\x20defined\x20in\x20Guard\x20table\x20(Identifier\x20index),\x20Fixed\x20indicates\x20using\x20a\x20fixed\x20amount.');export const GuardQuerySchema=z['object']({'id':QueryIdSchema,'name':z['string']()['describe']('Name\x20of\x20the\x20query\x20instruction.'),'objectType':ObjectTypeSchema['describe']('Type\x20of\x20the\x20Object\x20that\x20the\x20query\x20instruction\x20operates\x20on.'),'parameters':z['array'](ValueTypeSchema)['describe']('List\x20of\x20parameter\x20types\x20for\x20the\x20query\x20instruction.'),'return':ValueTypeSchema['describe']('Return\x20value\x20type\x20of\x20the\x20query\x20instruction.'),'description':z['string']()['describe']('Detailed\x20description\x20of\x20the\x20query\x20instruction.'),'parameters_description':z['array'](z['string']())['describe']('Detailed\x20descriptions\x20of\x20the\x20query\x20instruction\x20parameters.')});export const GuardSubmissionSchema=z['object']({'identifier':GuardIdentifierSchema['describe']('Identifier'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Guard\x20submission');export const RecipientSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Guard\x20verified\x20recipient\x20ID.\x20Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.'),z['object']({'Entity':AccountOrMark_AddressSchema})['describe']('Determined\x20ID'),z['object']({'Signer':z['literal']('signer')})['describe']('Current\x20transaction\x20signer\x20ID')])['describe']('Recipient\x20ID');export const RecordsInEntitySchema=z['object']({'name':z['string']()['describe']('Record\x20name'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Information\x20record');export const PermissionIndexTypeSchema=z['number']()['int']()['refine'](a=>{return isValidPermissionIndex(a);},{'message':'Permission\x20index\x20must\x20be\x20a\x20valid\x20BuiltinPermissionIndex\x20value\x20or\x20user\x20defined\x20between\x201000\x20and\x2065535'})['describe']('Permission\x20index\x20type');export const VoteInEntityLinkerSchema=z['object']({'address':z['string']()['describe']('Account\x20or\x20object\x20ID'),'like':z['boolean']()['optional']()['describe']('Whether\x20liked'),'dislike':z['boolean']()['optional']()['describe']('Whether\x20disliked'),'affiliation':z['boolean']()['optional']()['describe']('Whether\x20affiliated'),'time':z['number']()['describe']('Time')})['describe']('Follow\x20record');export const ObjectEntityRegistrarSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20registrar\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityRegistrar\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20registrar');export const ObjectEntityLinkerSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20linker\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20linker');export const ObjectResourceSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20address\x20mark\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27AddressMark\x27\x20table\x20items.')})['describe']('On-chain\x20address\x20tag\x20manager');export const TableItem_EntityLinkerSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Followed\x20ID'),'pos':z['number']()['describe']('Current\x20follow\x20information\x20position'),'count':z['number']()['describe']('Follower\x20count.\x20Number\x20of\x20entities\x20who\x20have\x20been\x20followed\x20others.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.'),'votes':z['array'](VoteInEntityLinkerSchema)['describe']('Follow\x20records')})['describe']('On-chain\x20followed\x20object\x20data');export const TableItem_EntityRegistrarSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20ID'),'description':z['string']()['describe']('Entity\x20description'),'time':z['number']()['describe']('On-chain\x20registration\x20time'),'referrer':z['union']([z['string'](),z['null']()])['describe']('Referrer'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('Your\x20on-chain\x20address\x20mark\x20object\x20by\x20entity\x20ID'),'records':z['array'](RecordsInEntitySchema)['describe']('Information\x20records')})['describe']('On-chain\x20entity\x20data');export const TableItem_AddressMarkSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Entity\x20ID'),'name':z['string']()['describe']('Tag\x20name'),'tags':z['array'](z['string']())['describe']('Tag\x20list')})['describe']('On-chain\x20ID\x20mark\x20data');export const ServiceGuardSchema=z['object']({'guard':z['string']()['describe']('Service\x20guard'),'service_identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Service\x20identifier.\x20Used\x20to\x20determine\x20the\x20service\x20verified\x20in\x20Guard')})['describe']('Service\x20guard');export const ObjectDemandSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Demand\x20description'),'location':z['string']()['describe']('Demand\x20location'),'rewards':z['array'](z['string']())['describe']('Reward\x20list.\x20Used\x20to\x20incentivize\x20qualified\x20Presenters\x20to\x20claim\x20rewards'),'guards':z['array'](ServiceGuardSchema)['describe']('Service\x20Guard\x20list'),'presenters_count':z['number']()['describe']('Presenter\x20count.\x20Number\x20of\x20Presenters\x20who\x20have\x20submitted\x20their\x20demand.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27DemandPresenter\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission')})['describe']('Demand\x20object');export const ObjectMachineSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Machine\x20description'),'node_count':z['number']()['describe']('Node\x20count.\x20Nodes\x20are\x20used\x20to\x20determine\x20each\x20step\x20and\x20state\x20of\x20Machine\x20operation.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27MachineNode\x27\x20table\x20items.'),'consensus_repositories':z['array'](z['string']())['describe']('Consensus\x20repository\x20list.\x20Used\x20to\x20determine\x20consensus\x20data\x20storage\x20during\x20Machine\x20operation.'),'bPaused':z['boolean']()['describe']('Whether\x20paused'),'bPublished':z['boolean']()['describe']('Whether\x20published'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID.\x20Used\x20to\x20modify\x20operation\x20permission\x20settings\x20for\x20Machine\x20settings.')})['describe']('Machine\x20object');export const ServiceSaleSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20for\x20sale'),'price':BalanceTypeSchema['describe']('Price\x20of\x20the\x20product\x20or\x20service'),'stock':BalanceTypeSchema['describe']('Stock\x20of\x20the\x20product\x20or\x20service'),'suspension':z['boolean']()['describe']('Whether\x20sale\x20is\x20suspended'),'wip':z['string']()['describe']('HTTP\x20URL\x20of\x20wip\x20file'),'wip_hash':z['string']()['describe']('Hash\x20of\x20WIP.\x20If\x20EMPTY\x20string,\x20the\x20hash\x20within\x20wip\x20will\x20be\x20automatically\x20used;\x20else,\x20the\x20consistency\x20of\x20the\x20hash\x20within\x20wip\x20will\x20be\x20verified\x20with\x20the\x20provided\x20hash.')})['describe']('Service\x20sale');export const PurchasedItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service'),'price':BalanceTypeSchema['describe']('Service\x20price'),'quantity':BalanceTypeSchema['describe']('Service\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')});export const ObjectOrderSchema=ObjectBaseSchema['extend']({'items':z['array'](PurchasedItemSchema)['describe']('Purchased\x20service\x20list'),'discount':z['union']([z['string'](),z['null']()])['describe']('Used\x20discount\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['describe']('Order\x20progress\x20object\x20ID'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20ID\x20that\x20progress\x20belongs\x20to'),'amount':BalanceTypeSchema['describe']('Order\x20amount'),'builder':z['string']()['describe']('Purchaser\x20ID'),'service':z['string']()['describe']('Service\x20ID'),'dispute':z['array'](z['string']())['describe']('Dispute\x20object\x20ID\x20list.\x20When\x20unsatisfied\x20with\x20order\x20delivery,\x20dispute\x20objects\x20can\x20be\x20created.'),'agent':z['array'](z['string']())['describe']('Agent\x20ID\x20list.\x20Agents\x20handle\x20all\x20order\x20operations\x20except\x20payment\x20collection.'),'allocation':z['union']([z['string'](),z['null']()])['describe']('Order\x20amount\x20allocation\x20object\x20ID'),'claimed_by':z['union']([z['string'](),z['null']()])['describe']('Order\x20dispute\x20object\x20ID\x20that\x20has\x20claimed\x20order\x20arbitration\x20amount.'),'required_info':z['string']()['describe']('Contact\x20object\x20ID\x20(recipient)\x20or\x20WTS\x20Proof\x20object\x20(delivery\x20proof)\x20that\x20information\x20has\x20been\x20delivered\x20via\x20Wowok\x20Messenger.'),'time':z['union']([z['string'](),z['number']()])['describe']('Order\x20creation\x20time')});export const NamedOperatorSchema=z['object']({'name':z['string']()['describe']('Namespace\x20name'),'operators':z['array'](z['string']())['describe']('Operator\x20ID\x20list')})['describe']('Namespace\x20operator.\x20Namespace\x20is\x20a\x20permission\x20identifier\x20defined\x20in\x20Machine,\x20allowing\x20different\x20Progress\x20to\x20bind\x20different\x20operators\x20to\x20exercise\x20unified\x20permission\x20definitions.');export const ProgressSessionHolderSchema=z['object']({'forward':z['string']()['describe']('An\x20operation\x20name'),'who':z['union']([z['string'](),z['null']()])['describe']('Operator\x20ID'),'retained_submission':z['array'](GuardSubmissionSchema)['describe']('Used\x20to\x20define\x20submitted\x20data\x20after\x20Guard\x20verification'),'msg':z['string']()['describe']('Information\x20submitted\x20to\x20complete\x20operation'),'accomplished':z['boolean']()['describe']('Whether\x20completed'),'time':z['number']()['describe']('Session\x20creation\x20time')})['describe']('An\x20operation\x20in\x20Progress\x20session');export const ProgressSessionSchema=z['object']({'next_node':z['string']()['describe']('Next\x20node\x20ID'),'forwards':z['array'](ProgressSessionHolderSchema)['describe']('Operation\x20list\x20in\x20Progress\x20session'),'weights':z['number']()['describe']('Total\x20operation\x20weight'),'threshold':z['number']()['describe']('Operation\x20threshold.\x20When\x20total\x20operation\x20weight\x20exceeds\x20threshold,\x20session\x20is\x20considered\x20completed\x20and\x20Progress\x20moves\x20from\x20current\x20node\x20to\x20next\x20node.')})['describe']('Progress\x20session');export const ObjectProgressSchema=ObjectBaseSchema['extend']({'machine':z['string']()['describe']('Machine\x20ID\x20that\x20Progress\x20object\x20belongs\x20to'),'context_repositories':z['array'](z['string']())['describe']('Context\x20repository\x20list.\x20Used\x20to\x20store\x20context\x20data\x20during\x20Progress\x20operation.'),'current':z['string']()['describe']('Current\x20node\x20name'),'task':z['union']([z['string'](),z['null']()])['describe']('Target\x20task\x20ID\x20executed\x20by\x20Progress\x20(e.g.,\x20Order\x20ID)'),'namedOperator':z['array'](NamedOperatorSchema)['describe']('Namespace\x20operator\x20list.\x20Each\x20process\x20can\x20independently\x20maintain\x20operators\x20for\x20permissions\x20represented\x20by\x20its\x20namespace.'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'history_count':z['number']()['describe']('Number\x20of\x20historical\x20sessions\x20for\x20completed\x20nodes\x20in\x20Progress.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27ProgressHistory\x27\x20table\x20items.'),'current_time':z['number']()['describe']('Current\x20node\x20entry\x20timestamp')})['describe']('Progress\x20object');export const AmountSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('GuardU64Identifier'),'value':GuardIdentifierSchema})['describe']('Guard\x20verified\x20amount.\x20Get\x20amount\x20value\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20value\x20type\x20must\x20be\x20u64.'),z['object']({'type':z['literal']('Fixed'),'value':BalanceTypeSchema})['describe']('Fixed\x20amount')])['describe']('Amount');export const RewardGuardSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.'),'recipient':RecipientSchema,'amount':AmountSchema['describe']('Reward\x20amount'),'expiration_time':z['number']()['optional']()['describe']('Reward\x20Guard\x20expiration\x20time.\x20If\x20set,\x20the\x20reward\x20cannot\x20be\x20claimed\x20by\x20this\x20guard\x20after\x20the\x20expiration\x20time.\x20If\x20not\x20specified,\x20Reward\x20Guard\x20is\x20permanently\x20valid.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Reward\x20Guard\x20type');export const ObjectRewardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Reward\x20object\x20description'),'guards':z['array'](RewardGuardSchema)['describe']('Reward\x20Guard\x20list.\x20When\x20one\x20of\x20the\x20Guards\x20is\x20successfully\x20verified\x20in\x20a\x20transaction,\x20the\x20relevant\x20recipient\x20will\x20receive\x20the\x20reward\x20amount.'),'balance':BalanceTypeSchema['describe']('Current\x20balance\x20of\x20reward\x20object'),'guard_not_added_expiration_time':z['union']([z['string'](),z['number'](),z['null']()])['describe']('Used\x20to\x20lock\x20whether\x20new\x20Reward\x20Guards\x20can\x20be\x20added.\x20If\x20not\x20specified,\x20new\x20Reward\x20Guards\x20can\x20be\x20added\x20at\x20any\x20time;\x20if\x20expiration\x20time\x20is\x20specified,\x20new\x20Reward\x20Guards\x20cannot\x20be\x20added\x20before\x20expiration.'),'record_count':z['number']()['describe']('Number\x20of\x20reward\x20claimer\x20records.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RewardRecord\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Reward\x20object');export const AllocationModeSchema=z['enum'](['Amount','Rate','Surplus'])['describe']('Reward\x20allocation\x20mode.\x20Amount\x20indicates\x20allocation\x20by\x20amount,\x20Rate\x20indicates\x20allocation\x20by\x20proportion,\x20Surplus\x20indicates\x20allocation\x20by\x20remaining\x20amount.\x20In\x20a\x20fund\x20allocator,\x20Amount\x20will\x20be\x20allocated\x20first,\x20then\x20remaining\x20funds\x20will\x20be\x20allocated\x20by\x20Rate\x20(if\x20no\x20Surplus\x20is\x20defined,\x20sum\x20of\x20all\x20Rates\x20must\x20be\x2010000),\x20and\x20finally\x20Surplus\x20gets\x20remaining\x20amount\x20(maximum\x20one\x20per\x20fund\x20allocator).');export const AllocationSharingSchema=z['object']({'who':RecipientSchema['describe']('Recipient\x20ID'),'sharing':BalanceTypeSchema['describe']('Reward\x20allocation\x20value'),'mode':AllocationModeSchema['describe']('Reward\x20allocation\x20mode')})['describe']('Fund\x20allocation\x20item');export const AllocatorSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID.\x20If\x20Guard\x20verification\x20passes,\x20fund\x20allocation\x20will\x20start\x20automatically.'),'sharing':z['array'](AllocationSharingSchema)['describe']('Fund\x20allocation\x20item\x20list.\x20Each\x20item\x20represents\x20a\x20recipient\x20and\x20their\x20corresponding\x20reward\x20allocation\x20value.'),'fix':BalanceTypeSchema['optional']()['describe']('Fixed\x20allocation\x20amount.\x20If\x20specified,\x20all\x20recipients\x20will\x20receive\x20the\x20fixed\x20allocation\x20amount.'),'max':z['union']([BalanceTypeSchema,z['null']()])['optional']()['describe']('Maximum\x20allocation\x20amount.\x20If\x20specified,\x20allocation\x20amount\x20cannot\x20exceed\x20maximum\x20allocation\x20amount.')})['describe']('Fund\x20allocator');export const AllocatorsSchema=z['object']({'description':DescriptionSchema['describe']('Description\x20of\x20fund\x20allocator\x20list'),'threshold':BalanceTypeSchema['describe']('Threshold.\x20If\x20defined,\x20fund\x20allocation\x20will\x20be\x20triggered\x20when\x20amount\x20in\x20Allocation\x20object\x20reaches\x20this\x20threshold.'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocator\x20list.\x20Each\x20fund\x20allocator\x20represents\x20a\x20fund\x20allocation\x20strategy.')})['describe']('Fund\x20allocator\x20list');export const ObjectServiceSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Service\x20object\x20description'),'location':z['string']()['describe']('Service\x20object\x20location'),'sales':z['array'](ServiceSaleSchema)['describe']('Service\x20sale\x20list.'),'repositories':z['array'](z['string']())['describe']('Repository\x20object\x20list\x20for\x20service\x20object\x27s\x20shared\x20data'),'buy_guard':z['union']([z['string'](),z['null']()])['describe']('Purchase\x20Guard\x20object\x20ID.\x20If\x20defined,\x20service\x20can\x20only\x20be\x20purchased\x20if\x20Guard\x20verification\x20passes.'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20object\x20ID\x20for\x20each\x20order\x27s\x20processing\x20flow.\x20The\x20Machine\x20must\x20be\x20in\x20published\x20state.'),'bPublished':z['boolean']()['describe']('Whether\x20service\x20is\x20published.\x20If\x20service\x20is\x20published,\x20customers\x20can\x20purchase\x20it;\x20and\x20related\x20settings\x20like\x20Machine,\x20arbitrations,\x20order_allocators\x20will\x20be\x20immutable.'),'bPaused':z['boolean']()['describe']('Whether\x20service\x20purchase\x20is\x20paused'),'customer_required':z['array'](z['string']())['describe']('Information\x20required\x20from\x20customer.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'arbitrations':z['array'](z['string']())['describe']('List\x20of\x20Arbitration\x20objects\x20supported\x20by\x20service.\x20When\x20order\x20user\x20needs\x20arbitration,\x20they\x20can\x20apply\x20for\x20arbitration\x20with\x20any\x20Arbitration\x20object\x20in\x20the\x20list.'),'compensation_fund':BalanceTypeSchema['describe']('Compensation\x20fund\x20pool\x20for\x20arbitration\x20results.\x20Order\x20users\x20can\x20receive\x20compensation\x20from\x20this\x20fund\x20based\x20on\x20arbitration\x20results.'),'paused_time':z['union']([z['number'](),z['null']()])['describe']('Service\x20purchase\x20pause\x20time.\x20If\x20not\x20paused,\x20it\x20is\x20null.'),'compensation_lock_duration':z['union']([z['string'](),z['number']()])['describe']('Lock\x20duration\x20for\x20arbitration\x20result\x20compensation.\x20After\x20service\x20is\x20paused\x20for\x20longer\x20than\x20this\x20duration,\x20service\x20manager\x20can\x20retrieve\x20compensation_fund.\x20Default\x20is\x20at\x20least\x2030\x20days.'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['describe']('Order\x20fund\x20allocator\x20list.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Service\x20object');export const ArbVotedSchema=z['object']({'voter':z['string']()['describe']('Voter\x20ID'),'agrees':z['array'](z['number']()['min'](0x0)['max'](0xff))['describe']('List\x20of\x20supported\x20Proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight'),'time':z['number']()['describe']('Voting\x20time')})['describe']('Voting\x20record');export const ArbPropositionSchema=z['object']({'name':z['string']()['describe']('Proposal\x20name'),'votes':z['number']()['describe']('Number\x20of\x20votes\x20supporting\x20this\x20proposal')})['describe']('Proposal');export const ArbIndemnitySchema=z['object']({'amount':BalanceTypeSchema['describe']('Compensation\x20amount'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arbitration\x20compensation');export const ArbStatusSchema=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn'])['describe']('Arb\x20object\x20status');export const ObjectArbSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arb\x20object\x20statement'),'arbitration':z['string']()['describe']('Parent\x20arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'voted':z['array'](ArbVotedSchema)['describe']('Voting\x20record\x20list'),'proposition':z['array'](ArbPropositionSchema)['describe']('Claim/proposal\x20list'),'fee':BalanceTypeSchema['describe']('Arbitration\x20fee'),'feedback':z['string']()['describe']('Arbitration\x20feedback'),'indemnity':z['union']([ArbIndemnitySchema,z['null']()])['optional']()['describe']('Arbitration\x20compensation'),'voting_deadline':z['union']([z['number'](),z['string']()])['optional']()['describe']('Voting\x20deadline'),'objection':z['string']()['describe']('Arbitration\x20objection'),'status':ArbStatusSchema,'compensation_time':z['union']([z['number'](),z['null']()])['describe']('Compensation\x20claim\x20time'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arb\x20object');export const DiscountTypeSchema=z['union']([z['literal'](a25a['RATES'])['describe']('Rate\x20discount\x20type'),z['literal'](a25a['FIXED'])['describe']('Fixed\x20discount\x20type')])['describe']('Discount\x20type');export const ObjectDiscountSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type.\x20If\x20rate(0),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).'),'benchmark':z['union']([BalanceTypeSchema,z['null']()])['describe']('Discount\x20benchmark\x20amount.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20this\x20amount;\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20this\x20amount.'),'off':BalanceTypeSchema['describe']('Discount\x20value.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20maximum\x20100\x20yuan\x20discount).'),'time_start':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20start\x20time'),'time_end':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20end\x20time'),'service':z['string']()['describe']('Parent\x20service\x20object\x20ID'),'transferable':z['boolean']()['describe']('Whether\x20discount\x20is\x20transferable\x20to\x20other\x20users')})['describe']('Discount\x20object');export const AmountFromDepositGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20storable\x20amount.\x20If\x20null,\x20deposit\x20amount\x20is\x20unlimited.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20deposit');export const AmountFromWithdrawGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['number']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20withdrawable\x20amount.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20withdrawal');export const ObjectTreasurySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Treasury\x20object\x20description'),'balance':BalanceTypeSchema['describe']('Current\x20balance'),'history_count':z['number']()['describe']('Transaction\x20record\x20count.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27TreasuryRecord\x27\x20table\x20items.'),'external_deposit_guard':z['array'](AmountFromDepositGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20deposit'),'external_withdraw_guard':z['array'](AmountFromWithdrawGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20withdrawal'),'inflow':BalanceTypeSchema['describe']('Inflow\x20amount'),'outflow':BalanceTypeSchema['describe']('Outflow\x20amount'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Treasury\x20object');export const TreasuryOpSchema=z['enum'](['Withdraw','Deposit','Receive'])['describe']('Treasury\x20object\x20operation\x20type');export const TreasuryRecordSchema=z['object']({'op':TreasuryOpSchema['describe']('Treasury\x20object\x20operation\x20type'),'signer':z['string']()['describe']('Operator\x20user\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('External\x20Guard\x20object\x20ID.\x20If\x20null,\x20operation\x20was\x20completed\x20through\x20Permission\x20object\x20permissions.'),'amount':BalanceTypeSchema['describe']('Operation\x20amount'),'time':z['union']([z['number'](),z['string']()])['describe']('Operation\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Treasury\x20object\x20transaction\x20record');export const PolicyWriteGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'id_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20(or\x20address)\x20is\x20the\x20ID\x20of\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20ID\x20separately.'),'data_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20data\x20separately.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20when\x20writing\x20policy');export const IdFromSchema=z['union']([z['literal'](0x0)['describe']('None\x20(0)'),z['literal'](0x1)['describe']('Clock\x20(1)'),z['literal'](0x2)['describe']('Signer\x20(2)'),z['literal']('None')['describe']('None'),z['literal']('Clock')['describe']('Clock'),z['literal']('Signer')['describe']('Signer'),z['literal']('none')['describe']('none'),z['literal']('clock')['describe']('clock'),z['literal']('signer')['describe']('signer')])['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20Can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27Clock\x27,\x20\x27clock\x27,\x20\x27Signer\x27,\x20\x27signer\x27)\x20or\x20a\x20number\x20(0-2).\x20Supported\x20values:\x20None=0/\x27None\x27/\x27none\x27,\x20Clock=1/\x27Clock\x27/\x27clock\x27,\x20Signer=2/\x27Signer\x27/\x27signer\x27.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.');export const PolicyRuleSchema=z['object']({'name':z['string']()['describe']('Policy\x20rule\x20name'),'description':z['string']()['describe']('Policy\x20rule\x20description'),'write_guard':z['array'](PolicyWriteGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20when\x20writing\x20data'),'quote_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20referencing\x20this\x20policy\x20data\x20on-chain\x20(e.g.,\x20verifying\x20if\x20user\x20has\x20paid\x20subscription).\x20If\x20null,\x20no\x20verification\x20is\x20needed\x20for\x20on-chain\x20references.\x20The\x20Guard\x20must\x20have\x20empty\x20\x27relies\x27\x20field\x20and\x20\x27rep\x27\x20field\x20true.'),'id_from':IdFromSchema['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.'),'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value\x20when\x20writing\x20data.')});export const TableItem_RepositoryDataSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Object\x20or\x20user\x20ID'),'name':z['string']()['describe']('Data\x20item\x20name\x20(Policy\x20Name)'),'value':z['array'](z['number']())['describe']('Raw\x20data\x20value\x20(first\x20byte\x20is\x20value\x20type,\x20remaining\x20bytes\x20are\x20Bcs\x20formatted\x20value)'),'data':z['object']({'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value.'),'value':SupportedValueSchema['describe']('Data\x20value.')})})['describe']('Storage\x20data\x20item\x20owned\x20by\x20Repository\x20object');export const TableItem_RewardRecordSchema=ObjectBaseSchema['extend']({'recipient':z['string']()['describe']('Reward\x20recipient\x20ID'),'guard':z['string']()['describe']('Guard\x20object\x20ID'),'total':BalanceTypeSchema['describe']('Total\x20reward\x20amount'),'record':z['array'](z['object']({'amount':BalanceTypeSchema['describe']('Reward\x20amount'),'time':z['number']()['describe']('Reward\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')}))['describe']('Reward\x20record\x20list')})['describe']('Reward\x20object\x27s\x20reward\x20record');export const ObjectRepositorySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Repository\x20object\x20description'),'policies':z['array'](PolicyRuleSchema)['describe']('Repository\x20object\x20policy\x20rule\x20list'),'data_count':z['number']()['describe']('Number\x20of\x20data\x20items\x20stored\x20in\x20Repository\x20object.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RepositoryData\x27\x20table\x20items.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Repository\x20object');export const ImSchema=z['object']({'at':z['string']()['describe']('Contact\x27s\x20account\x20address\x20for\x20instant\x20messaging'),'status':z['string']()['describe']('Contact\x27s\x20current\x20status\x20message'),'join_time':z['number']()['describe']('Timestamp\x20when\x20contact\x20joined\x20(milliseconds\x20since\x20epoch)'),'description':z['string']()['describe']('Description\x20or\x20note\x20about\x20this\x20contact')})['describe']('Instant\x20Messaging\x20contact\x20entry\x20with\x20address,\x20status,\x20and\x20metadata');export const ObjectContactSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Contact\x20object\x20description\x20or\x20public\x20information'),'permission':z['string']()['describe']('Permission\x20object\x20ID\x20that\x20controls\x20who\x20can\x20modify\x20this\x20contact'),'location':z['string']()['describe']('Physical\x20or\x20virtual\x20location\x20information\x20for\x20this\x20contact'),'ims':z['array'](ImSchema)['describe']('List\x20of\x20instant\x20messaging\x20contacts.\x20Each\x20entry\x20contains\x20an\x20address\x20for\x20encrypted\x20real-time\x20communication\x20via\x20Wowok\x20Messenger')})['describe']('Contact\x20object\x20storing\x20on-chain\x20instant\x20messaging\x20addresses\x20for\x20real-time\x20encrypted\x20communication\x20between\x20object\x20managers\x20and\x20users');export const ObjectPersonalSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x27s\x20address'),'like':z['number']()['describe']('User\x27s\x20like\x20count'),'dislike':z['number']()['describe']('User\x27s\x20dislike\x20count'),'info':z['array'](RecordsInEntitySchema)['describe']('User\x27s\x20personal\x20information\x20record\x20list'),'description':z['string']()['describe']('User\x27s\x20personal\x20description'),'referrer':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20referrer\x20ID'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('On-chain\x20address\x20mark\x20object\x20ID'),'details':z['array'](VoteInEntityLinkerSchema)['describe']('User\x27s\x20voting\x20record\x20list\x20in\x20EntityLinker'),'active_tx':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20recent\x20active\x20transaction\x20ID'),'passive_tx':z['union']([z['string'](),z['null']()])['describe']('Recent\x20transaction\x20ID\x20interacting\x20with\x20user'),'time':z['number']()['describe']('User\x20object\x20creation\x20time')})['describe']('Personal\x20object');export const ObjectProofSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Proof\x20description'),'proof':z['string']()['describe']('Proof\x20content.\x20e.g.,\x20merkle\x20tree\x20root'),'server_pubkey':z['string']()['describe']('Server\x20public\x20key'),'server_signature':z['string']()['describe']('Server\x20signature'),'proof_type':z['union']([z['number'](),z['string']()])['describe']('Proof\x20type.\x201:\x20WTS\x20proof;\x201-100\x20reserved.'),'item_count':z['union']([z['number'](),z['string'](),z['null']()])['describe']('Item\x20count.\x20e.g.,\x20number\x20of\x20items\x20in\x20the\x20merkle\x20tree'),'about_address':z['union']([z['string'](),z['null']()])['describe']('About\x20address.\x20e.g.,\x20address\x20of\x20the\x20entity\x20being\x20proved'),'signer':z['string']()['describe']('Signer\x20address'),'time':z['number']()['describe']('Proof\x20creation\x20time')})['describe']('Proof\x20object');export const WReceivedObjectSchema=ObjectBaseSchema['extend']({'balance':BalanceTypeSchema['describe']('Amount\x20contained\x20in\x20object'),'payment':z['string']()['describe']('Payment\x20object\x20ID')})['describe']('Amount\x20object\x20received\x20by\x20on-chain\x20object');export const ObjectPermissionSchema=ObjectBaseSchema['extend']({'builder':z['string']()['describe']('Permission\x20object\x20owner\x20ID\x20(highest\x20permission\x20user)'),'admin':z['array'](z['string']())['describe']('Admin\x20user\x20ID\x20list'),'description':z['string']()['describe']('Permission\x20object\x20description'),'entity_count':z['number']()['describe']('Number\x20of\x20user\x20IDs\x20and\x20Guard\x20IDs\x20granted\x20permissions.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27PermissionPerm\x27\x20table\x20items.'),'perm_remark':z['array'](z['object']({'index':PermissionIndexTypeSchema,'remark':z['string']()['describe']('Permission\x20item\x20remark')}))['describe']('Permission\x20item\x20remark\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object')})['describe']('Permission\x20object');export const WitnessTypeSchema=z['number']()['int']()['refine'](isWitnessType,{'message':'Invalid\x20WitnessType\x20value'});export const GuardQueryIdSchema=z['number']()['int']()['min'](0x0)['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'})['describe']('ID\x20of\x20the\x20data\x20query\x20instruction\x20for\x20the\x20Object.');export const GuardNodeSchema=z['lazy'](()=>z['discriminatedUnion']('type',[z['object']({'type':z['literal']('identifier'),'identifier':GuardIdentifierSchema})['strict']()['describe']('Returns\x20the\x20constant\x20value\x20stored\x20at\x20the\x20specified\x20identifier\x20in\x20the\x20Guard\x20table.'),z['object']({'type':z['literal']('query'),'query':z['union']([z['number']()['int']()['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'}),z['string']()['refine'](a=>isValidGuardQueryIdOrName(a),{'message':'Invalid\x20guard\x20query\x20name.\x20Name\x20not\x20found\x20in\x20GUARDQUERY\x20array\x20(case-insensitive).'})])['describe']('ID\x20or\x20name\x20of\x20the\x20wowok\x20object\x20data\x20query\x20instruction.\x20Can\x20be\x20a\x20numeric\x20ID\x20(e.g.,\x201001)\x20or\x20a\x20name\x20string\x20(e.g.,\x20\x27permission.description\x27).\x20Name\x20matching\x20is\x20case-insensitive.'),'object':z['object']({'identifier':GuardIdentifierSchema,'convert_witness':WitnessTypeSchema['optional']()['describe']('Optional.\x20When\x20specified,\x20the\x20query\x20retrieves\x20data\x20from\x20the\x20associated\x20object\x20instead\x20of\x20the\x20object\x20itself.\x20For\x20example,\x20querying\x20an\x20order\x20with\x20convert_witness=TypeOrderProgress\x20retrieves\x20the\x20associated\x20Progress\x20object\x20data.')})['strict']()['describe']('The\x20object\x20to\x20query\x20from\x20the\x20Guard\x20table.'),'parameters':z['array'](GuardNodeSchema)['describe']('Parameters\x20required\x20by\x20the\x20query\x20(must\x20match\x20the\x20query\x27s\x20expected\x20parameters\x20type).')})['strict']()['describe']('Returns\x20the\x20result\x20of\x20executing\x20a\x20data\x20query\x20instruction\x20on\x20the\x20specified\x20object.\x20The\x20return\x20type\x20depends\x20on\x20the\x20query\x20being\x20executed.'),z['object']({'type':z['literal']('logic_as_u256_greater_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_greater'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20equals\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20nodes\x20of\x20any\x20type.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20in\x20both\x20type\x20and\x20value.\x20Returns\x20true\x20if\x20type\x20and\x20value\x20match\x20for\x20all,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_not'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20inverting\x20the\x20boolean\x20value\x20of\x20the\x20child\x20node\x20(true\x20->\x20false,\x20false\x20->\x20true).'),z['object']({'type':z['literal']('logic_and'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20AND\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ALL\x20are\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_or'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20OR\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ANY\x20is\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('logic_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('logic_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_number_add'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20adding\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20+\x20second\x20+\x20third\x20+\x20...).'),z['object']({'type':z['literal']('calc_number_multiply'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20multiplying\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20*\x20second\x20*\x20third\x20*\x20...).'),z['object']({'type':z['literal']('calc_number_subtract'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20subtracting\x20the\x20second\x20node\x20value\x20from\x20the\x20first\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20(first\x20-\x20second\x20-\x20third\x20-\x20...).'),z['object']({'type':z['literal']('calc_number_divide'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20/\x20second)\x20/\x20third\x20/\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_number_mod'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20taking\x20the\x20remainder\x20of\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20%\x20second)\x20%\x20third\x20%\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_string_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20(number\x20of\x20UTF-8\x20bytes)\x20of\x20the\x20child\x20node\x20value.'),z['object']({'type':z['literal']('calc_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('calc_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('calc_string_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack).\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('calc_string_nocase_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack),\x20ignoring\x20case.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('convert_number_address'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Address.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20Address\x20type.'),z['object']({'type':z['literal']('convert_address_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20Address\x20type\x20to\x20number\x20type.'),z['object']({'type':z['literal']('convert_number_string'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20String.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20string\x20type.'),z['object']({'type':z['literal']('convert_string_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20parsing\x20the\x20child\x20node\x20value\x20as\x20a\x20number.\x20Throws\x20exception\x20if\x20the\x20string\x20is\x20not\x20a\x20valid\x20number.'),z['object']({'type':z['literal']('convert_safe_u8'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U8.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U8\x20range\x20(0-255).'),z['object']({'type':z['literal']('convert_safe_u16'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U16.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U16.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U16\x20range\x20(0-65535).'),z['object']({'type':z['literal']('convert_safe_u32'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U32.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U32.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U32\x20range.'),z['object']({'type':z['literal']('convert_safe_u64'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U64.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U64\x20range.'),z['object']({'type':z['literal']('convert_safe_u128'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U128.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U128.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U128\x20range.'),z['object']({'type':z['literal']('convert_safe_u256'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U256.'),z['object']({'type':z['literal']('value_type'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20getting\x20the\x20type\x20identifier\x20(ValueType)\x20of\x20the\x20child\x20node\x20value.\x20'+VALUE_TYPE_DESCRIPTION),z['object']({'type':z['literal']('vec_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20of\x20the\x20vector\x20in\x20the\x20child\x20node\x20value.\x20Child\x20node\x20must\x20be\x20one\x20of\x20Vec\x20types:\x20VecBool=9,\x20VecAddress=10,\x20VecString=11,\x20VecU8=12,\x20VecU16=13,\x20VecU32=14,\x20VecU64=15,\x20VecU128=16,\x20VecU256=17,\x20VecVecU8=18,\x20Value=19.'),z['object']({'type':z['literal']('vec_contains_bool'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20boolean\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_address'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20address\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string_nocase'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes),\x20using\x20case-insensitive\x20comparison.'),z['object']({'type':z['literal']('vec_contains_number'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20number\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_indexof_bool'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_address'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string_nocase'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node),\x20using\x20case-insensitive\x20comparison.\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_number'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('context'),'context':z['enum'](['Signer','Clock','Guard'])['describe']('System\x20context\x20type:\x20Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')})['strict']()['describe']('Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).'),z['object']({'type':z['literal']('query_reward_record_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20record,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20record.'),'recipient':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20recipient\x20address\x20to\x20search\x20for\x20(must\x20be\x20Address\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20the\x20recipient\x27s\x20address\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['union']([z['literal']('exists'),z['literal']('not_exists'),z['object']({'eq':z['string']()['describe']('Address\x20string\x20to\x20match')})])['optional']()['describe']('Optional\x20filter\x20for\x20store_from_id\x20field:\x20\x27exists\x27\x20means\x20any\x20value\x20exists,\x20\x27not_exists\x27\x20means\x20no\x20value,\x20{eq:\x20string}\x20matches\x20specific\x20address.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20query.')})['strict']()['describe']('Returns\x20a\x20RewardRecord\x20object\x20(as\x20Value\x20type).\x20Finds\x20the\x20first\x20or\x20last\x20reward\x20record\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20Use\x20with\x20\x27value_type\x27\x20node\x20to\x20check\x20if\x20a\x20record\x20was\x20found\x20(returns\x20ValueType\x2019\x20if\x20found,\x20otherwise\x20may\x20return\x20empty).'),z['object']({'type':z['literal']('query_reward_record_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20recipient\x20address\x20to\x20count\x20records\x20for\x20(must\x20be\x20Address\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20the\x20recipient\x27s\x20address\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['union']([z['literal']('exists'),z['literal']('not_exists'),z['object']({'eq':z['string']()['describe']('Address\x20string\x20to\x20match')})])['optional']()['describe']('Optional\x20filter\x20for\x20store_from_id\x20field:\x20\x27exists\x27\x20means\x20any\x20value\x20exists,\x20\x27not_exists\x27\x20means\x20no\x20value,\x20{eq:\x20string}\x20matches\x20specific\x20address.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20count\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20reward\x20records\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.'),z['object']({'type':z['literal']('query_reward_record_exists'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20recipient\x20address\x20to\x20check\x20records\x20for\x20(must\x20be\x20Address\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20the\x20recipient\x27s\x20address\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['union']([z['literal']('exists'),z['literal']('not_exists'),z['object']({'eq':z['string']()['describe']('Address\x20string\x20to\x20match')})])['optional']()['describe']('Optional\x20filter\x20for\x20store_from_id\x20field:\x20\x27exists\x27\x20means\x20any\x20value\x20exists,\x20\x27not_exists\x27\x20means\x20no\x20value,\x20{eq:\x20string}\x20matches\x20specific\x20address.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20existence\x20query.')})['strict']()['describe']('Returns\x20Bool.\x20Returns\x20true\x20if\x20at\x20least\x20one\x20reward\x20record\x20exists\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions,\x20otherwise\x20false.'),z['object']({'type':z['literal']('query_progress_history_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'where':z['object']({'node':z['string']()['optional']()['describe']('Optional\x20filter:\x20node\x20name\x20string\x20to\x20match.'),'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20history\x20entry,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20history\x20entry.')})['strict']()['describe']('Returns\x20a\x20ProgressHistory\x20object\x20(as\x20Value\x20type).\x20Finds\x20the\x20first\x20or\x20last\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Use\x20with\x20\x27value_type\x27\x20node\x20to\x20check\x20if\x20an\x20entry\x20was\x20found.'),z['object']({'type':z['literal']('query_progress_history_session_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20search\x20within.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20session,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20session.')})['strict']()['describe']('Returns\x20a\x20ProgressHistorySession\x20object\x20(as\x20Value\x20type).\x20Finds\x20the\x20first\x20or\x20last\x20session\x20within\x20the\x20specified\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Use\x20with\x20\x27value_type\x27\x20node\x20to\x20check\x20if\x20a\x20session\x20was\x20found.'),z['object']({'type':z['literal']('query_progress_history_session_forward_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'who':z['string']()['optional']()['describe']('Optional\x20filter:\x20operator\x20address\x20string\x20to\x20match.'),'operation':z['string']()['optional']()['describe']('Optional\x20filter:\x20operation\x20name\x20string\x20to\x20match.'),'accomplished':z['boolean']()['optional']()['describe']('Optional\x20filter:\x20whether\x20the\x20forward\x20operation\x20was\x20accomplished.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20forward\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20forward\x20operation,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20forward\x20operation.')})['strict']()['describe']('Returns\x20a\x20ProgressHistorySessionForward\x20object\x20(as\x20Value\x20type).\x20Finds\x20the\x20first\x20or\x20last\x20forward\x20operation\x20within\x20the\x20specified\x20history\x20session\x20matching\x20the\x20filter\x20conditions.\x20Use\x20with\x20\x27value_type\x27\x20node\x20to\x20check\x20if\x20a\x20forward\x20operation\x20was\x20found.'),z['object']({'type':z['literal']('query_progress_history_session_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20count\x20sessions\x20for.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20sessions\x20within\x20the\x20specified\x20history\x20entry.'),z['object']({'type':z['literal']('query_progress_history_session_forward_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20forward\x20operations\x20within\x20the\x20specified\x20history\x20session.'),z['object']({'type':z['literal']('query_progress_history_session_forward_retained_submission_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'forwardIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20forward\x20operation\x20index\x20(U64\x20type)\x20within\x20the\x20session.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20retained\x20submissions\x20within\x20the\x20specified\x20forward\x20operation.')]))['describe']('Guard\x20node:\x20represents\x20an\x20operation\x20instruction\x20in\x20Guard.\x20Each\x20node\x20returns\x20a\x20value\x20of\x20a\x20specific\x20type,\x20computed\x20from\x20its\x20child\x20nodes\x20or\x20context.');export const ObjectGuardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Guard\x20object\x20description'),'table':z['array'](GuardTableItemSchema)['describe']('Guard\x20object\x20table\x20item\x20list'),'input':z['array'](z['number']())['describe']('Guard\x20object\x20instruction\x20sequence'),'root':GuardNodeSchema['describe']('Guard\x20object\x20root\x20node'),'rep_quote':z['record'](z['string']()['describe']('Repository\x20object\x20ID'),z['array'](z['string']())['describe']('Repository\x20policy\x20list'))['describe']('Depends\x20on\x20Repository\x20policy\x20quote'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'rep':z['boolean']()['describe']('If\x20false,\x20has\x20complex\x20Repository\x20quote\x20dependencies\x20and\x20cannot\x20be\x20used\x20as\x20an\x20independent\x20Guard')})['describe']('Guard\x20object');export const PaymentInfoSchema=z['object']({'for_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20for\x20a\x20specific\x20object\x20ID'),'for_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20to\x20satisfy\x20verification\x20of\x20a\x20Guard\x20object'),'remark':z['string']()['describe']('Payment\x20record\x20remark'),'index':z['union']([z['number'](),z['string']()])['describe']('Payment\x20record\x20index')})['describe']('Payment\x20information');export const ObjectPaymentSchema=ObjectBaseSchema['extend']({'record':z['array'](z['object']({'recipient':RecipientSchema,'amount':BalanceTypeSchema}))['describe']('Payment\x20record\x20list'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['string']()['describe']('Payment\x20time'),'from_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20source\x20object\x20ID'),'signer':z['string']()['describe']('Payment\x20signer\x20ID'),'info':PaymentInfoSchema})['describe']('Payment\x20object');export const ObjectAllocationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Fund\x20allocation\x20object\x20description'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocation\x20object\x20allocator\x20list'),'balance':BalanceTypeSchema['describe']('Fund\x20allocation\x20object\x20balance'),'payment_info':PaymentInfoSchema['optional']()['describe']('Payment\x20information'),'payment':z['array'](z['string']())['describe']('Payment\x20object\x20ID\x20list.\x20Each\x20fund\x20allocation\x20automatically\x20generates\x20a\x20payment\x20object\x20to\x20record\x20fund\x20flow')})['describe']('Fund\x20allocation\x20object');export const VoteWeightSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Use\x20value\x20corresponding\x20to\x20Guard\x20object\x27s\x20Table\x20index\x20as\x20voting\x20weight'),z['object']({'FixedValue':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Fixed\x20voting\x20weight\x20value')})['describe']('Fixed\x20voting\x20weight')])['describe']('Voting\x20weight');export const VotingGuardSchema=z['object']({'guard':z['string']()['describe']('Voting\x20Guard\x20object\x20ID'),'vote_weight':VoteWeightSchema})['describe']('Voting\x20Guard\x20object');export const ObjectArbitrationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arbitration\x20object\x20description'),'location':z['string']()['describe']('Arbitration\x20object\x20location'),'voting_guard':z['array'](VotingGuardSchema)['describe']('Voting\x20Guard\x20object\x20list'),'usage_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20submitting\x20arbitration'),'fee':BalanceTypeSchema['describe']('Single\x20arbitration\x20fee'),'balance':BalanceTypeSchema['describe']('Arbitration\x20object\x20balance'),'bPaused':z['boolean']()['describe']('Whether\x20arbitration\x20object\x20is\x20paused'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Arbitration\x20object\x20permission')})['describe']('Arbitration\x20object');export const GuardInPassportSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'result':z['boolean']()['describe']('Guard\x20object\x20verification\x20result'),'impack':z['boolean']()['describe']('Whether\x20Guard\x20object\x20verification\x20result\x20participates\x20in\x20final\x20result\x20determination\x20(AND\x20logic)'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'submission':GuardSubmissionSchema['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20Passport\x20object');export const ObjectPassportSchema=ObjectBaseSchema['extend']({'info':z['array'](GuardInPassportSchema)['describe']('List\x20of\x20Guard\x20object\x20records\x20in\x20Passport\x20object'),'result':z['boolean']()['describe']('Passport\x20object\x20final\x20verification\x20result'),'tx_hash':z['string']()['describe']('Transaction\x20hash\x20where\x20verification\x20occurred'),'impack_guard':z['array'](z['string']())['describe']('List\x20of\x20Guard\x20object\x20IDs\x20participating\x20in\x20final\x20result\x20determination'),'time':z['number']()['describe']('Creation\x20time\x20of\x20the\x20Passport\x20object'),'signer':z['string']()['describe']('Signer\x20address\x20of\x20the\x20Passport\x20object'),'has_verified':z['boolean']()['describe']('Whether\x20the\x20Passport\x20object\x20has\x20been\x20verified')})['describe']('Passport\x20object');export const TableItem_PermissionPermSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID\x20or\x20Guard\x20ID'),'perm':z['array'](PermissionIndexTypeSchema)['describe']('Permission\x20list\x20obtained\x20after\x20user\x20or\x20Guard\x20object\x20verification')})['describe']('Permission\x20object\x27s\x20permission\x20record');export const TableItem_DemandPresenterSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Referrer\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter'),'service':z['union']([z['string'](),z['null']()])['describe']('Recommended\x20service\x20object\x20ID'),'update_time':z['number']()['describe']('Last\x20update\x20time'),'acceptance_score':z['union']([z['number'](),z['null']()])['describe']('Demand\x20object\x20feedback\x20score'),'feedback':z['string']()['describe']('Demand\x20object\x20feedback\x20information'),'feedback_time':z['number']()['describe']('Demand\x20object\x20feedback\x20time')})['describe']('Demand\x20object\x27s\x20Service\x20recommendation\x20record');export const MachineForwardGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'retained_submission':z['array'](z['number']())['optional']()['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20MachineForwardGuard\x20object');export const MachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name'),'namedOperator':z['string']()['optional']()['describe']('Forward\x20operation\x20permission\x201:\x20Namespace\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20Progress\x20object\x20operators\x20are\x20different\x20(e.g.,\x20different\x20delivery\x20personnel\x20for\x20different\x20orders).'),'permissionIndex':PermissionIndexTypeSchema['optional']()['describe']('Forward\x20operation\x20permission\x202:\x20Permission\x20index\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20all\x20Progress\x20object\x20operators\x20are\x20the\x20same\x20(e.g.,\x20same\x20reward\x20reviewers\x20for\x20all\x20orders).'),'weight':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Forward\x20weight'),'guard':MachineForwardGuardSchema['optional']()['describe']('Guard\x20object\x20ID,\x20if\x20defined,\x20Guard\x20verification\x20must\x20also\x20pass\x20to\x20complete\x20Forward\x20(e.g.,\x20completed\x20promised\x20supply\x20chain\x20sub-order).')})['describe']('Forward\x20in\x20Machine\x20object');export const MachineNodePairSchema=z['object']({'prev_node':z['string']()['describe']('Previous\x20node\x20name'),'threshold':z['number']()['int']()['min'](0x0)['max'](0xffffffff)['describe']('Threshold\x20to\x20trigger\x20node\x20advancement.\x20If\x20total\x20Forward\x20weight\x20is\x20greater\x20than\x20or\x20equal\x20to\x20threshold,\x20node\x20advancement\x20is\x20triggered.'),'forwards':z['array'](MachineForwardSchema)['describe']('Forward\x20list')})['describe']('Node\x20pair\x20in\x20Machine\x20object');export const MachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name'),'pairs':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20in\x20Machine\x20object');export const TableItem_MachineNodeSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Node\x20name'),'value':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20record\x20in\x20Machine\x20object');export const TableItem_ProgressHistorySchema=ObjectBaseSchema['extend']({'index':z['number']()['int']()['describe']('Progress\x20record\x20index\x20(starting\x20from\x200)'),'node':z['string']()['describe']('Previous\x20node\x20name'),'next_node':z['string']()['describe']('Next\x20node\x20name'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'time':z['number']()['describe']('Progress\x20record\x20completion\x20time\x20(Unix\x20timestamp)')})['describe']('Completed\x20progress\x20record\x20in\x20Progress\x20object');export const TableItem_TreasuryHistorySchema=ObjectBaseSchema['extend']({'payment':NameOrAddressSchema['describe']('Payment\x20object\x20ID'),'op':TreasuryOpSchema['describe']('Operation\x20type'),'signer':z['string']()['describe']('Operator\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('Guard\x20object\x20ID\x20verified\x20during\x20operation\x20(none\x20if\x20operated\x20through\x20Permission)'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['number']()['describe']('Payment\x20time\x20(Unix\x20timestamp)'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Payment\x20record\x20in\x20Treasury\x20object');export const ObjectsQuerySchema=QueryEnvSchema['extend']({'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20objects');export const ObjectUnionSchema=z['union']([ObjectTreasurySchema,ObjectPermissionSchema,ObjectMachineSchema,ObjectServiceSchema,ObjectOrderSchema,ObjectProgressSchema,ObjectDemandSchema,ObjectArbitrationSchema,ObjectAllocationSchema,ObjectRewardSchema,ObjectRepositorySchema,ObjectGuardSchema,ObjectPaymentSchema,ObjectPassportSchema,ObjectEntityRegistrarSchema,ObjectEntityLinkerSchema,ObjectResourceSchema,ObjectArbSchema,ObjectDiscountSchema,ObjectContactSchema,ObjectPersonalSchema,ObjectBaseSchema,ObjectProofSchema])['describe']('Union\x20of\x20all\x20wowok\x20on-chain\x20object\x20types');export const ObjectsAnswerSchema=z['object']({'objects':z['array'](ObjectUnionSchema)['optional']()['describe']('List\x20of\x20queried\x20objects')})['describe']('Response\x20for\x20querying\x20objects');export const PersonalQuerySchema=QueryEnvSchema['extend']({'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20')})['describe']('Query\x20PUBLIC\x20on-chain\x20personal\x20profile\x20for\x20any\x20account.\x20Returns\x20publicly\x20published\x20information\x20(social\x20accounts,\x20websites,\x20professional\x20info)\x20that\x20users\x20have\x20intentionally\x20shared\x20on\x20the\x20blockchain.');export const TableQuerySchema=QueryEnvSchema['extend']({'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Number\x20of\x20records\x20returned\x20per\x20page')})['describe']('Request\x20parameters\x20for\x20querying\x20object\x27s\x20data\x20table');export const TableAnswerItemSchema=z['object']({'key':z['object']({'type':z['string']()['describe']('Key\x20type'),'value':z['union']([z['string'](),z['number']()])['describe']('Key\x20value')})['describe']('Query\x20key\x20and\x20its\x20type'),'type':z['string']()['describe']('Table\x20item\x20object\x20type'),'object':z['string']()['describe']('Table\x20item\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Table\x20item\x20object\x20version')})['describe']('Result\x20item\x20of\x20object\x27s\x20data\x20table\x20query');export const TableAnswerSchema=z['object']({'items':z['array'](TableAnswerItemSchema),'nextCursor':z['union']([z['string'](),z['null']()]),'hasNextPage':z['boolean'](),'cache_expire':z['union']([z['string'](),z['number']()])['optional']()});export const QueryTableItem_byAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byU64Schema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20U64\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byStringSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20string\x20key\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byNameAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20name\x20and\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_Registrar_EntitySchema=QueryEnvSchema['extend']({'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20Registrar\x20object\x27s\x20data\x20table');export const EventTypeSchema=z['union']([z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent')])['describe']('Event\x20type');export const EventCursorSchema=z['object']({'eventSeq':z['string']()['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20cursor');export const EventBaseSchema=z['object']({'id':EventCursorSchema,'sender':z['string']()['describe']('Event\x20sender\x20ID'),'type':z['union']([z['string'](),z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent')])['describe']('Event\x20type'),'type_raw':z['string']()['describe']('Raw\x20event\x20type'),'time':z['string']()['describe']('Event\x20occurrence\x20time')})['describe']('Event\x20base\x20information');export const ArbEventSchema=EventBaseSchema['extend']({'arb':z['string']()['describe']('Arbitration\x20object\x20ID'),'arbitration':z['string']()['describe']('Arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'status':ArbStatusSchema})['describe']('Arbitration\x20event');export const NewOrderEventSchema=EventBaseSchema['extend']({'order':z['string']()['describe']('Order\x20object\x20ID'),'service':z['string']()['describe']('Service\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['optional']()['describe']('Progress\x20object\x20ID'),'discount':z['union']([z['string'](),z['null']()])['optional']()['describe']('Discount\x20object\x20ID'),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20ID'),'amount':BalanceTypeSchema})['describe']('New\x20order\x20event');export const ProgressEventSchema=EventBaseSchema['extend']({'progress':z['string']()['describe']('Progress\x20object\x20ID'),'machine':z['string']()['describe']('Machine\x20object\x20ID'),'task':z['union']([z['string'](),z['null']()])['optional']()['describe']('Task\x20object\x20ID'),'node':z['string']()['describe']('Current\x20node\x20name'),'forward':z['union']([z['string'](),z['null']()])['optional']()['describe']('Forward\x20operation\x20name'),'hold':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Whether\x20it\x20is\x20a\x20hold\x20operation')})['describe']('Progress\x20event');export const DemandPresentEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter')})['describe']('Event\x20of\x20recommending\x20service\x20to\x20Demand\x20object');export const DemandFeedbackEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content'),'acceptance_score':z['union']([z['number'](),z['null']()])['optional']()['describe']('Acceptance\x20score')})['describe']('Event\x20of\x20Demand\x20object\x20feedback\x20to\x20referrer');export const NewEntityEventSchema=EventBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID'),'resource':z['string']()['describe']('ID\x20mark\x20object\x20ID\x20owned\x20by\x20user'),'referrer':z['union']([z['string'](),z['null']()])['optional']()['describe']('Referrer\x20ID')})['describe']('New\x20user\x20event');export const EventAnswerSchema=z['object']({'data':z['array'](z['union']([EventBaseSchema,ArbEventSchema,NewOrderEventSchema,ProgressEventSchema,DemandPresentEventSchema,DemandFeedbackEventSchema,NewEntityEventSchema]))['describe']('Event\x20object\x20data'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Next\x20page\x20cursor'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20time')})['describe']('Event\x20query\x20result');export const EventQuerySchema=QueryEnvSchema['extend']({'type':EventTypeSchema['describe']('Event\x20type'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Event\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Query\x20count\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order')})['describe']('Event\x20query\x20parameters');export const OnchainEventsInputSchema=z['object']({'type':EventTypeSchema['describe']('Event\x20type\x20to\x20query.\x20Supported\x20types:\x20ArbEvent\x20(arbitration\x20events),\x20NewOrderEvent\x20(new\x20order\x20events),\x20ProgressEvent\x20(progress\x20events),\x20DemandPresentEvent\x20(demand\x20presentation\x20events),\x20DemandFeedbackEvent\x20(demand\x20feedback\x20events),\x20NewEntityEvent\x20(new\x20entity\x20registration\x20events)'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Optional\x20pagination\x20cursor\x20for\x20fetching\x20next\x20page\x20of\x20results.\x20Use\x20null\x20for\x20first\x20query,\x20then\x20use\x20nextCursor\x20from\x20response\x20for\x20subsequent\x20queries'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20events\x20to\x20return\x20per\x20query.\x20Use\x20null\x20for\x20default\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order\x20for\x20results:\x20\x27ascending\x27\x20(oldest\x20first)\x20or\x20\x27descending\x27\x20(newest\x20first).\x20Use\x20null\x20for\x20default\x20order'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20the\x20blockchain'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['describe']('Input\x20parameters\x20for\x20querying\x20on-chain\x20WOWOK\x20events');export const OnchainEventsResultSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20query\x20result\x20containing\x20list\x20of\x20events\x20and\x20pagination\x20info,\x20or\x20null\x20if\x20no\x20data\x20found')})['describe']('Result\x20of\x20on-chain\x20events\x20query');export const TableItem_RepositoryDataOrUndefinedSchema=z['union']([TableItem_RepositoryDataSchema,z['null']()])['describe']('Repository\x20data\x20item\x20or\x20null');export const TableItem_PermissionPermOrUndefinedSchema=z['union']([TableItem_PermissionPermSchema,z['null']()])['describe']('Permission\x20permission\x20item\x20or\x20null');export const TableItem_EntityRegistrarOrUndefinedSchema=z['union']([TableItem_EntityRegistrarSchema,z['null']()])['describe']('Entity\x20registrar\x20item\x20or\x20null');export const TableItem_EntityLinkerOrUndefinedSchema=z['union']([TableItem_EntityLinkerSchema,z['null']()])['describe']('Entity\x20linker\x20item\x20or\x20null');export const TableItem_RewardRecordOrUndefinedSchema=z['union']([TableItem_RewardRecordSchema,z['null']()])['describe']('Reward\x20record\x20item\x20or\x20null');export const TableItem_DemandPresenterOrUndefinedSchema=z['union']([TableItem_DemandPresenterSchema,z['null']()])['describe']('Demand\x20presenter\x20item\x20or\x20null');export const TableItem_TreasuryHistoryOrUndefinedSchema=z['union']([TableItem_TreasuryHistorySchema,z['null']()])['describe']('Treasury\x20history\x20item\x20or\x20null');export const TableItem_MachineNodeOrUndefinedSchema=z['union']([TableItem_MachineNodeSchema,z['null']()])['describe']('Machine\x20node\x20item\x20or\x20null');export const TableItem_ProgressHistoryOrUndefinedSchema=z['union']([TableItem_ProgressHistorySchema,z['null']()])['describe']('Progress\x20history\x20item\x20or\x20null');export const TableItem_AddressMarkOrUndefinedSchema=z['union']([TableItem_AddressMarkSchema,z['null']()])['describe']('Address\x20mark\x20item\x20or\x20null');export const ObjectPersonalOrUndefinedSchema=z['object']({'result':z['union']([ObjectPersonalSchema,z['null']()])['describe']('Personal\x20object\x20or\x20null')})['describe']('Personal\x20object\x20or\x20null');export const TokenTypeInfoOrUndefinedSchema=z['object']({'result':z['union']([TokenTypeInfoSchema,z['null']()])['describe']('Token\x20type\x20info\x20or\x20null')})['describe']('Token\x20type\x20info\x20or\x20null');export const EventAnswerOrUndefinedSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20answer\x20or\x20null')})['describe']('Event\x20answer\x20or\x20null');export const TableAnswerOrUndefinedSchema=z['object']({'result':z['union']([TableAnswerSchema,z['null']()])['describe']('Table\x20answer\x20or\x20null')})['describe']('Table\x20answer\x20or\x20null');export const QueryTableItemSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('RepositoryData'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20or\x20address\x20of\x20the\x20entity;\x20or\x20address\x20that\x20number\x20is\x20casted\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20repository\x20data\x20table\x20item'),z['object']({'type':z['literal']('PermissionPerm'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('User\x20ID\x20or\x20address,\x20or\x20Guard\x20ID\x20in\x20the\x20permission\x20perm\x20table'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20permission\x20perm\x20table\x20item'),z['object']({'type':z['literal']('EntityRegistrar'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20entity'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20registrar\x20table\x20item'),z['object']({'type':z['literal']('EntityLinker'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20or\x20address\x20that\x20the\x20registrar\x20votes\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20linker\x20table\x20item'),z['object']({'type':z['literal']('RewardRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20that\x20claims\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20reward\x20record\x20table\x20item'),z['object']({'type':z['literal']('DemandPresenter'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20Demand\x20presenter'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20demand\x20presenter\x20table\x20item'),z['object']({'type':z['literal']('TreasuryRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20of\x20the\x20payment\x20that\x20the\x20treasury\x20record\x20is\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20treasury\x20record\x20table\x20item'),z['object']({'type':z['literal']('MachineNode'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20node\x20name\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20machine\x20node\x20table\x20item'),z['object']({'type':z['literal']('ProgressHistory'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20progress\x20history\x20table\x20item'),z['object']({'type':z['literal']('AddressMark'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20or\x20address\x20that\x20the\x20mark\x20name\x20and\x20tags\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20address\x20mark\x20table\x20item')])['describe']('Request\x20parameters\x20for\x20querying\x20table\x20items');export const TableItemUnionOrUndefinedSchema=z['object']({'result':z['union']([TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema,z['null']()])['describe']('Table\x20item\x20or\x20null')})['describe']('Table\x20item\x20or\x20null');export const ConstantItemSchema=z['object']({'name':z['string']()['describe']('Name'),'value':z['union']([z['string'](),z['number']()])['describe']('Value'),'description':z['string']()['describe']('Description')})['describe']('Constant\x20item');export const PermissionInfoTypeSchema=z['object']({'index':z['number']()['describe']('Permission\x20index'),'name':z['string']()['describe']('Name'),'description':z['string']()['describe']('Description'),'object_type':z['string']()['describe']('Object\x20type')})['describe']('Permission\x20info\x20type');export const GuardInstructSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction'),'id':z['number']()['int']()['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(OperatorType\x20or\x20ContextType)'),'description':z['string']()['describe']('Description\x20of\x20the\x20guard\x20instruction'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20of\x20the\x20guard\x20instruction')})['describe']('Guard\x20instruction\x20info');export const GuardItemSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'id':z['union']([z['number']()['int'](),QueryIdSchema])['describe']('ID\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'description':z['string']()['describe']('Description'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20instruction'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20for\x20guard\x20query'),'parameters':z['optional'](z['array'](ValueTypeSchema))['describe']('Parameters\x20for\x20guard\x20query'),'return':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20query'),'parameters_description':z['optional'](z['array'](z['string']()))['describe']('Parameter\x20descriptions\x20for\x20guard\x20query')})['describe']('Guard\x20item\x20-\x20either\x20a\x20guard\x20instruction\x20or\x20a\x20guard\x20query');export const GuardInstructFilterOptionsSchema=z['object']({'name':z['optional'](z['string']())['describe']('Name\x20filter\x20(case-insensitive\x20partial\x20match)'),'id':z['optional'](z['array'](z['number']()['int']()))['describe']('ID\x20array\x20filter\x20(OperatorType\x20|\x20ContextType\x20|\x20number)'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20filter'),'paramCount':z['optional'](z['number']()['int']())['describe']('Parameter\x20count\x20filter'),'scope':z['optional'](z['enum'](['instruct','object\x20query','all']))['describe']('Scope\x20filter:\x20instruct,\x20object\x20query,\x20or\x20all')['default']('all'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter\x20(only\x20for\x20object\x20query\x20scope)')})['describe']('Guard\x20instruction\x20filter\x20options');export const PermissionFilterSchema=z['object']({'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter'),'name':z['optional'](z['string']())['describe']('Name\x20filter'),'index':z['optional'](PermissionIndexTypeSchema)['describe']('Index\x20filter'),'description':z['optional'](z['string']())['describe']('Description\x20filter')})['describe']('Permission\x20filter');export const ProtocolInfoQuerySchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants')})['describe']('Constants\x20query'),z['object']({'info':z['literal']('built-in\x20permissions'),'filter':z['optional'](PermissionFilterSchema)['describe']('Filter\x20for\x20built-in\x20permissions')})['describe']('Built-in\x20permissions\x20query'),z['object']({'info':z['literal']('guard\x20instructions'),'filter':z['optional'](GuardInstructFilterOptionsSchema)['describe']('Filter\x20for\x20guard\x20instructions')})['describe']('Guard\x20instructions\x20and\x20wowok\x20object\x20queries'),z['object']({'info':z['literal']('current\x20network')})['describe']('Current\x20network\x20entrypoint'),z['object']({'info':z['literal']('value\x20types')})['describe']('Value\x20types\x20query\x20-\x20returns\x20all\x20supported\x20value\x20types\x20with\x20their\x20numeric\x20and\x20string\x20representations')])['describe']('WoWok\x20Build-in\x20infomation\x20query');export const BuiltinPermissionSchema=z['object']({'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')})['describe']('Built-in\x20permissions\x20query\x20result');export const ProtocolInfoResultWrappedSchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants'),'result':z['array'](ConstantItemSchema)['describe']('Constants\x20result')}),z['object']({'info':z['literal']('built-in\x20permissions'),'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')}),z['object']({'info':z['literal']('guard\x20instructions'),'result':z['array'](GuardItemSchema)['describe']('Guard\x20instructions\x20result')}),z['object']({'info':z['literal']('current\x20network'),'result':EntrypointSchema['describe']('Current\x20network\x20entrypoint')}),z['object']({'info':z['literal']('value\x20types'),'result':z['array'](ConstantItemSchema)['describe']('Value\x20types\x20result\x20-\x20each\x20item\x20contains\x20name\x20(string),\x20value\x20(string),\x20and\x20description\x20showing\x20the\x20numeric\x20mapping')})])['describe']('Protocol\x20info\x20result');export const ProtocolInfoResultSchema=z['object']({'result':ProtocolInfoResultWrappedSchema})['describe']('Protocol\x20info\x20result');export const LocalQueryResultSchema=z['union']([z['object']({'query_type':z['literal']('local_mark_list'),'result':QueryLocalMarkListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_list'),'result':QueryAccountListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('local_info_list'),'result':QueryLocalInfoListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('token_list'),'result':QueryLocalTokenListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_balance'),'result':QueryAccountResultSchema})]);export const WatchQueryOperationsResultSchema=z['object']({'result':z['any']()})['describe']('Watch\x20query\x20operations\x20result\x20schema\x20(using\x20any\x20to\x20avoid\x20TypeScript\x20inference\x20limits)');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wowok_agent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.40",
|
|
4
4
|
"description": "Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
32
32
|
"lodash": "^4.18.1",
|
|
33
|
-
"wowok": "2.1.
|
|
33
|
+
"wowok": "2.1.41",
|
|
34
34
|
"zod": "^3.25.76"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"clean": "rm -rf dist",
|
|
44
44
|
"build": "tsc && npm run obfuscate",
|
|
45
|
+
"build:test": "tsc",
|
|
45
46
|
"obfuscate": "javascript-obfuscator dist --output dist --config obfuscator.json",
|
|
46
47
|
"watch": "tsc --watch",
|
|
47
48
|
"start": "tsx src/index.ts"
|