@wowok/agent-mcp 2.7.5 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/project/evaluation-fix.spec.d.ts +1 -0
- package/dist/project/evaluation-fix.spec.js +1 -0
- package/dist/project/evaluation.js +1 -1
- package/dist/project/index.js +1 -1
- package/dist/project/rollback-policy.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +9 -0
- package/dist/schema/call/arbitration.d.ts +10 -0
- package/dist/schema/call/contact.d.ts +10 -0
- package/dist/schema/call/demand.d.ts +10 -0
- package/dist/schema/call/machine.d.ts +10 -0
- package/dist/schema/call/order.d.ts +10 -0
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission.d.ts +10 -0
- package/dist/schema/call/progress.d.ts +10 -0
- package/dist/schema/call/repository.d.ts +10 -0
- package/dist/schema/call/reward.d.ts +16 -0
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +16 -0
- package/dist/schema/call/treasury.d.ts +16 -0
- package/dist/schema/common/index.d.ts +21 -0
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +68 -1
- package/dist/schema/operations.js +1 -1
- package/dist/schema/query/index.d.ts +5 -0
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +274 -7
- package/dist/schemas/onchain_operations_allocation.schema.json +12 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +20 -0
- package/dist/schemas/onchain_operations_contact.schema.json +20 -0
- package/dist/schemas/onchain_operations_demand.schema.json +20 -0
- package/dist/schemas/onchain_operations_machine.schema.json +20 -0
- package/dist/schemas/onchain_operations_order.schema.json +20 -0
- package/dist/schemas/onchain_operations_payment.schema.json +6 -7
- package/dist/schemas/onchain_operations_permission.schema.json +20 -0
- package/dist/schemas/onchain_operations_progress.schema.json +20 -0
- package/dist/schemas/onchain_operations_repository.schema.json +20 -0
- package/dist/schemas/onchain_operations_reward.schema.json +32 -0
- package/dist/schemas/onchain_operations_service.schema.json +32 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +32 -0
- package/dist/schemas/query_toolkit.output.json +20 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{isValidAddress,ValueType as a319a,ObjectType as a319b,ENTRYPOINT,isValidWowAddress,isValidName,isValidDescription,MAX_DESCRIPTION_LENGTH,isValidLongName,MAX_LONG_NAME_LENGTH}from'@wowok/wowok';const isValidMoveIdentifier=a=>{if(a['length']===0x0)return![];const b=a[0x0];if(b==='_')return a['length']>0x1&&/^[a-zA-Z0-9_]+$/['test'](a['slice'](0x1));if(/^[a-zA-Z]$/['test'](b))return/^[a-zA-Z0-9_]*$/['test'](a['slice'](0x1));return![];};export const DescriptionSchema=z['string']()['refine'](isValidDescription,{'message':'Description\x20string\x20(max\x20'+MAX_DESCRIPTION_LENGTH+'\x20bcs\x20characters)'})['describe']('Description\x20string\x20(max\x20'+MAX_DESCRIPTION_LENGTH+'\x20bcs\x20characters)');export const LongNameSchema=z['string']()['refine'](isValidLongName,{'message':'max\x20'+MAX_LONG_NAME_LENGTH+'\x20bcs\x20characters'});export const WowAddressSchema=z['string']()['refine'](isValidAddress,{'message':'Invalid\x20ID\x20format:\x20must\x20be\x20\x270x\x27\x20prefix\x20followed\x20by\x2064\x20hex\x20characters'})['describe']('Valid\x20ID:\x200x\x20prefix\x20+\x2064\x20hex\x20characters,\x20or\x20builtin\x20ID\x20(0x5-0x9,\x200xa,\x200xc,\x200xd,\x200x403,\x200xaaa,\x200xaab,\x200xacc)');const WOW_TOKEN_TYPE='0x2::wow::WOW';export const TokenTypeSchema=z['string']()['refine'](a=>{if(a===WOW_TOKEN_TYPE)return!![];const b=a['split']('::');if(b['length']!==0x3)return![];const [c,d,e]=b;if(!isValidWowAddress(c))return![];if(!isValidMoveIdentifier(d))return![];if(!isValidMoveIdentifier(e))return![];return!![];},{'message':'Invalid\x20token\x20type\x20format.\x20Expected:\x20{address}::{module}::{struct}\x20where\x20address\x20is\x200x+64hex,\x20module/struct\x20are\x20valid\x20Move\x20identifiers,\x20or\x20\x270x2::wow::WOW\x27'})['describe']('Token\x20type\x20in\x20format:\x20{address}::{module}::{struct}.\x20e.g.\x20\x270x2::wow::WOW\x27\x20(WOW),\x20\x270x...::usdt::USDT\x27\x20(USDT),\x20\x270x...::eth::ETH\x27\x20(ETH).\x20To\x20discover\x20all\x20available\x20tokens\x20and\x20their\x20type\x20tags,\x20query\x20\x27mainnet\x20bridge\x20tokens\x27\x20via\x20wowok_buildin_info\x20and\x20use\x20the\x20returned\x20`wowTypeTag`\x20here.');export const TokenTypeWithDefaultSchema=TokenTypeSchema['default'](WOW_TOKEN_TYPE)['describe']('Token\x20type\x20in\x20format:\x20{address}::{module}::{struct}.\x20Default:\x20\x270x2::wow::WOW\x27.\x20Other\x20examples:\x20\x270x...::usdt::USDT\x27\x20(USDT),\x20\x270x...::eth::ETH\x27\x20(ETH).\x20To\x20discover\x20all\x20available\x20tokens\x20and\x20their\x20type\x20tags,\x20query\x20\x27mainnet\x20bridge\x20tokens\x27\x20via\x20wowok_buildin_info\x20and\x20use\x20the\x20returned\x20`wowTypeTag`\x20here.');export const NameSchema=z['string']()['refine'](isValidName,'Name\x20string\x20(max\x2064\x20bcs\x20characters,\x20must\x20not\x20start\x20with\x20\x270x\x27)');export const NotEmptyNameSchema=z['string']()['nonempty']()['refine'](isValidName,'Name\x20string\x20(at\x20least\x201\x20character,\x20max\x20length\x2064\x20bcs\x20characters)');export const NameOrAddressSchema=z['string']()['refine'](a=>{if(isValidAddress(a))return!![];if(isValidName(a))return!![];return![];},{'message':'Invalid\x20ID\x20format:\x20must\x20be\x20\x270x\x27\x20prefix,\x20or\x20a\x20builtin\x20ID\x20(0x5-0x9,\x200xa,\x200xc,\x200xd,\x200x403,\x200xaaa,\x200xaab,\x200xacc)'})['describe']('Account/Object\x20name\x20or\x20ID.\x20If\x20specifying\x20an\x20account,\x20use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20'+'If\x20it\x20starts\x20with\x20\x270x\x27,\x20it\x20will\x20be\x20treated\x20as\x20an\x20ID.\x20'+'Otherwise,\x20it\x20will\x20be\x20treated\x20as\x20a\x20name\x20(max\x2064\x20bcs\x20characters).');export const AccountOrMark_AddressSchema=z['object']({'name_or_address':NameOrAddressSchema['optional'](),'local_mark_first':z['boolean']()['optional']()['describe']('Whether\x20to\x20prioritize\x20local\x20marks,\x20if\x20true,\x20prioritize\x20local\x20marks,\x20otherwise\x20prioritize\x20global\x20marks')})['strict']()['describe']('Account\x20or\x20address\x20lookup\x20object.\x20Use\x20this\x20to\x20specify\x20which\x20account\x20to\x20use\x20for\x20an\x20operation.\x20'+'EXAMPLE:\x20{\x20name_or_address:\x20\x27testor2\x27\x20}\x20-\x20looks\x20up\x20account\x20by\x20name;\x20'+'EXAMPLE:\x20{\x20name_or_address:\x20\x270x1234...\x27\x20}\x20-\x20uses\x20address\x20directly;\x20'+'If\x20name_or_address\x20is\x20empty\x20string\x20\x27\x27,\x20uses\x20the\x20default\x20local\x20account.');export const ManyAccountOrMark_AddressSchema=z['object']({'entities':z['array'](AccountOrMark_AddressSchema),'check_all_founded':z['boolean']()['optional']()['describe']('Whether\x20to\x20check\x20all\x20entities\x20are\x20found,\x20if\x20true,\x20all\x20entities\x20must\x20be\x20found\x20(abort\x20and\x20throw\x20exception\x20if\x20any\x20ID\x20not\x20found);\x20if\x20false,\x20only\x20return\x20found\x20IDs')})['strict']()['describe']('Used\x20to\x20batch\x20find\x20account\x20or\x20object\x20IDs\x20by\x20name');export const AccountOrMark_AddressAISchema=z['union']([NameOrAddressSchema['transform'](a=>({'name_or_address':a,'local_mark_first':!![]}))['describe']('Account\x20name,\x20address\x20(0x...),\x20or\x20mark\x20name.\x20'+'When\x20using\x20string\x20format,\x20local\x20marks\x20are\x20searched\x20first.\x20'+'EXAMPLE:\x20\x27alice\x27\x20-\x20searches\x20local\x20marks\x20first,\x20then\x20global;\x20'+'EXAMPLE:\x20\x270x2...\x27\x20(64\x20hex\x20chars)\x20-\x20uses\x20address\x20directly;\x20'+'EXAMPLE:\x20\x27\x27\x20-\x20uses\x20the\x20default\x20local\x20account'),AccountOrMark_AddressSchema])['describe']('Account\x20or\x20address\x20lookup.\x20Can\x20be\x20a\x20simple\x20string\x20(recommended\x20for\x20AI)\x20'+'or\x20full\x20object\x20with\x20explicit\x20local_mark_first\x20control.\x20'+'String\x20form\x20auto-converts\x20to\x20{\x20name_or_address:\x20<string>,\x20local_mark_first:\x20true\x20}.');export const ManyAccountOrMark_AddressAISchema=z['union']([z['array'](NameOrAddressSchema)['transform'](a=>({'entities':a['map'](b=>({'name_or_address':b,'local_mark_first':!![]})),'check_all_founded':!![]}))['describe']('Array\x20of\x20account\x20names,\x20addresses,\x20or\x20mark\x20names.\x20'+'Local\x20marks\x20are\x20searched\x20first\x20for\x20each\x20entry.\x20'+'EXAMPLE:\x20[\x27alice\x27,\x20\x270x2...\x27,\x20\x27bob\x27]'),ManyAccountOrMark_AddressSchema])['describe']('Batch\x20account\x20or\x20address\x20lookup.\x20Can\x20be\x20an\x20array\x20of\x20strings\x20(recommended\x20for\x20AI)\x20'+'or\x20full\x20object\x20with\x20explicit\x20control.\x20'+'Array\x20form\x20auto-converts\x20to\x20{\x20entities:\x20[...],\x20check_all_founded:\x20true\x20}.');export const ObjectOwnerSchema=z['union']([z['object']({'AddressOwner':z['string']()['describe']('Address\x20owner')})['strict'](),z['object']({'ObjectOwner':z['string']()['describe']('Object\x20owner')})['strict'](),z['object']({'Shared':z['object']({'initial_shared_version':z['union']([z['string'](),z['number']()])['describe']('Version\x20when\x20object\x20became\x20shared')})['strict']()['describe']('Shared\x20object')})['strict'](),z['literal']('Immutable'),z['object']({'ConsensusAddressOwner':z['object']({'owner':z['string']()['describe']('Consensus\x20ID\x20owner'),'start_version':z['union']([z['string'](),z['number']()])['describe']('Version\x20when\x20object\x20recently\x20became\x20consensus\x20object')})['strict']()['describe']('Consensus\x20ID\x20owner')})['strict']()])['describe']('Object\x20owner');export const ValueTypeUserSchema=z['union']([z['literal'](a319a['Bool'])['describe']('Bool\x20(0)'),z['literal'](a319a['Address'])['describe']('Address\x20(1)'),z['literal'](a319a['String'])['describe']('String\x20(2)'),z['literal'](a319a['U8'])['describe']('U8\x20(3)'),z['literal'](a319a['U16'])['describe']('U16\x20(4)'),z['literal'](a319a['U32'])['describe']('U32\x20(5)'),z['literal'](a319a['U64'])['describe']('U64\x20(6)'),z['literal'](a319a['U128'])['describe']('U128\x20(7)'),z['literal'](a319a['U256'])['describe']('U256\x20(8)'),z['literal'](a319a['VecBool'])['describe']('VecBool\x20(9)'),z['literal'](a319a['VecAddress'])['describe']('VecAddress\x20(10)'),z['literal'](a319a['VecString'])['describe']('VecString\x20(11)'),z['literal'](a319a['VecU8'])['describe']('VecU8\x20(12)'),z['literal'](a319a['VecU16'])['describe']('VecU16\x20(13)'),z['literal'](a319a['VecU32'])['describe']('VecU32\x20(14)'),z['literal'](a319a['VecU64'])['describe']('VecU64\x20(15)'),z['literal'](a319a['VecU128'])['describe']('VecU128\x20(16)'),z['literal'](a319a['VecU256'])['describe']('VecU256\x20(17)'),z['literal'](a319a['VecVecU8'])['describe']('VecVecU8\x20(18)'),z['literal']('Bool')['describe']('Bool'),z['literal']('Address')['describe']('Address'),z['literal']('String')['describe']('String'),z['literal']('U8')['describe']('U8'),z['literal']('U16')['describe']('U16'),z['literal']('U32')['describe']('U32'),z['literal']('U64')['describe']('U64'),z['literal']('U128')['describe']('U128'),z['literal']('U256')['describe']('U256'),z['literal']('VecBool')['describe']('VecBool'),z['literal']('VecAddress')['describe']('VecAddress'),z['literal']('VecString')['describe']('VecString'),z['literal']('VecU8')['describe']('VecU8'),z['literal']('VecU16')['describe']('VecU16'),z['literal']('VecU32')['describe']('VecU32'),z['literal']('VecU64')['describe']('VecU64'),z['literal']('VecU128')['describe']('VecU128'),z['literal']('VecU256')['describe']('VecU256'),z['literal']('VecVecU8')['describe']('VecVecU8'),z['literal']('bool')['describe']('bool'),z['literal']('address')['describe']('address'),z['literal']('string')['describe']('string'),z['literal']('u8')['describe']('u8'),z['literal']('u16')['describe']('u16'),z['literal']('u32')['describe']('u32'),z['literal']('u64')['describe']('u64'),z['literal']('u128')['describe']('u128'),z['literal']('u256')['describe']('u256'),z['literal']('vecbool')['describe']('vecbool'),z['literal']('vecaddress')['describe']('vecaddress'),z['literal']('vecstring')['describe']('vecstring'),z['literal']('vecu8')['describe']('vecu8'),z['literal']('vecu16')['describe']('vecu16'),z['literal']('vecu32')['describe']('vecu32'),z['literal']('vecu64')['describe']('vecu64'),z['literal']('vecu128')['describe']('vecu128'),z['literal']('vecu256')['describe']('vecu256'),z['literal']('vecvecu8')['describe']('vecvecu8')])['describe']('User\x20available\x20value\x20type\x20(number\x20or\x20string,\x20e.g.,\x206\x20or\x20\x27U64\x27\x20or\x20\x27u64\x27)');export const ValueTypeSchema=ValueTypeUserSchema['or'](z['literal'](a319a['Value'])['describe']('Value\x20(19)'))['or'](z['literal']('Value')['describe']('Value'))['describe']('Value\x20type\x20(number\x20or\x20string,\x20e.g.,\x206\x20or\x20\x27U64\x27)');export const ObjectTypeSchema=z['enum']([a319b['Permission'],a319b['Repository'],a319b['Arb'],a319b['Arbitration'],a319b['Service'],a319b['Machine'],a319b['Order'],a319b['Progress'],a319b['Payment'],a319b['Treasury'],a319b['Guard'],a319b['Demand'],a319b['Passport'],a319b['Allocation'],a319b['Resource'],a319b['Reward'],a319b['Discount'],a319b['EntityRegistrar'],a319b['EntityLinker'],a319b['Proof'],a319b['WReceivedObject'],a319b['Contact'],a319b['TableItem_ProgressHistory'],a319b['TableItem_PermissionPerm'],a319b['TableItem_DemandPresenter'],a319b['TableItem_MachineNode'],a319b['TableItem_TreasuryHistory'],a319b['TableItem_RepositoryData'],a319b['TableItem_RewardRecord'],a319b['TableItem_EntityLinker'],a319b['TableItem_AddressMark'],a319b['TableItem_EntityRegistrar']])['describe']('Wowok\x20object\x20type');export const BalanceTypeSchema=z['union']([z['number'](),z['string']()])['describe']('A\x20coin/balance\x20amount.\x20Accepts\x20three\x20formats:\x20'+'(1)\x20DISPLAY\x20FORMAT\x20with\x20token\x20symbol:\x20\x222.5WOW\x22,\x20\x2210USDC\x22,\x20\x220.05SUI\x22\x20—\x20'+'auto-converted\x20to\x20smallest\x20units\x20via\x20the\x20Fund\x20Processing\x20Layer\x20(token\x20precision\x20resolved\x20'+'from\x20official\x20registry\x20→\x20cache\x20→\x20on-chain).\x20The\x20symbol\x20MUST\x20match\x20the\x20token\x27s\x20type_parameter.\x20'+'(2)\x20SMALLEST\x20UNIT\x20(numeric\x20string):\x20\x2210000000000\x22\x20—\x20used\x20as-is,\x20no\x20conversion.\x20'+'(3)\x20SMALLEST\x20UNIT\x20(number):\x2010000000000\x20—\x20used\x20as-is\x20(loses\x20precision\x20above\x202^53).\x20'+'PRECISION\x20RULE:\x20for\x20values\x20exceeding\x202^53,\x20ALWAYS\x20use\x20format\x20(1)\x20or\x20(2)\x20—\x20JS\x20numbers\x20lose\x20precision.\x20'+'Default\x20token:\x20WOW\x20(9\x20decimals,\x201\x20WOW\x20=\x2010^9\x20MIST).\x20'+'For\x20custom\x20tokens:\x20use\x20display\x20format\x20with\x20the\x20token\x27s\x20symbol,\x20or\x20pass\x20smallest\x20units\x20directly.\x20'+'MONEY\x20CONFIRMATION:\x20all\x20monetary\x20fields\x20trigger\x20user\x20confirmation\x20via\x20the\x20Fund\x20Processing\x20Layer.\x20'+'If\x20multiple\x20tokens\x20share\x20a\x20symbol\x20(ambiguity),\x20specify\x20the\x20full\x20type\x20string\x20in\x20type_parameter.\x20'+'Examples:\x20\x222.5WOW\x22\x20(display\x20→\x202500000000),\x2010000000000\x20(number,\x20smallest\x20unit),\x20\x2250000000000\x22\x20(string,\x20smallest\x20unit).\x20'+'Used\x20for:\x20Service.sale.price,\x20Service.compensation_fund_add\x20balance,\x20Treasury.deposit,\x20Arbitration.fee,\x20Reward.amount,\x20stock\x20quantities.');export const QueryIdSchema=z['number']()['int']()['min'](0x0)['describe']('Query\x20ID');export const CacheExpireTypeSchema=z['union']([z['number'](),z['literal']('INFINITE')])['describe']('Cache\x20expiration\x20time\x20type');export const ValueContainerSchema=z['lazy'](()=>z['object']({'valueType':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['strict']()['describe']('Value\x20container\x20with\x20type\x20and\x20value'));export const SupportedValueUserSchema=z['union']([z['boolean'](),z['union']([AccountOrMark_AddressSchema,z['string']()]),z['string'](),z['number'](),z['array'](z['boolean']()),z['union']([ManyAccountOrMark_AddressSchema,z['array'](z['string']())]),z['array'](z['string']()),z['array'](z['number']()),z['array'](z['array'](z['number']()))])['describe']('User\x20available\x20supported\x20value\x20type');export const SupportedValueSchema=SupportedValueUserSchema['or'](ValueContainerSchema)['describe']('Supported\x20value\x20type');export const GuardIdentifierSchema=z['number']()['int']()['min'](0x0)['max'](0xff)['describe']('Identifier\x20(0-255)\x20for\x20data\x20lookup\x20in\x20Guard\x20table.');export const GuardTableItemBaseSchema=z['object']({'identifier':GuardIdentifierSchema,'b_submission':z['boolean']()['describe']('Whether\x20this\x20table\x20item\x27s\x20value\x20is\x20submitted\x20dynamically\x20at\x20Guard\x20trigger\x20time\x20(alloc_by_guard\x20call).\x20'+'\x0a\x0a'+'true\x20=\x20value\x20is\x20submitted\x20by\x20the\x20caller\x20when\x20triggering\x20the\x20Guard.\x20'+'Use\x20for\x20runtime-context-dependent\x20values\x20like\x20order\x20address,\x20user\x20address.\x20'+'The\x20\x27value\x27\x20field\x20is\x20ignored\x20when\x20b_submission=true;\x20the\x20caller\x20must\x20provide\x20it\x20via\x20submissions[].\x20'+'\x0a\x0a'+'false\x20=\x20value\x20is\x20static,\x20set\x20at\x20Guard\x20creation\x20time.\x20'+'Use\x20for\x20values\x20known\x20when\x20the\x20Guard\x20is\x20created:\x20expected\x20node\x20names,\x20expected\x20merchant\x20address,\x20expected\x20service\x20address.\x20'+'The\x20\x27value\x27\x20field\x20must\x20be\x20populated\x20and\x20will\x20be\x20stored\x20on-chain\x20permanently.\x20'+'\x0a\x0a'+'Rule\x20of\x20thumb:\x20if\x20the\x20value\x20is\x20the\x20SAME\x20for\x20all\x20future\x20Guard\x20triggers,\x20use\x20false.\x20'+'If\x20the\x20value\x20DIFFERS\x20per\x20trigger\x20(e.g.,\x20which\x20order\x20to\x20release\x20funds\x20for),\x20use\x20true.'),'value_type':ValueTypeUserSchema['describe']('Type\x20of\x20the\x20value\x20stored\x20in\x20`value`.\x20One\x20of:\x20Bool(0),\x20Address(1),\x20String(2),\x20U8(3),\x20U16(4),\x20U32(5),\x20U64(6),\x20U128(7),\x20U256(8),\x20VecBool(9),\x20VecAddress(10),\x20VecString(11),\x20VecU8(12),\x20VecU16(13),\x20VecU32(14),\x20VecU64(15),\x20VecU128(16),\x20VecU256(17),\x20VecVecU8(18).\x20'+'When\x20value_type=Address\x20(1),\x20the\x20`value`\x20field\x20accepts\x20a\x20hex\x20address\x20string,\x20a\x20LocalMark\x20name,\x20or\x20an\x20AccountOrMark_Address\x20object\x20—\x20see\x20`value`\x20field\x20description\x20for\x20details.'),'value':SupportedValueUserSchema['optional']()['describe']('The\x20actual\x20value\x20data.\x20Format\x20depends\x20on\x20`value_type`:\x0a'+'•\x20Bool:\x20true/false\x20(boolean)\x0a'+'•\x20Address\x20(CRITICAL\x20—\x20string\x20\x27Address\x27\x20is\x20NOT\x20a\x20placeholder):\x20a\x20hex\x20address\x20(e.g.\x20\x270x1234...\x27),\x20a\x20LocalMark\x20name\x20(e.g.\x20\x27my-service\x27\x20—\x20resolved\x20to\x20address\x20at\x20evaluation\x20time),\x20an\x20AccountOrMark_Address\x20object\x20(e.g.\x20{name_or_address:\x27my-service\x27}),\x20or\x20system\x20shorthand\x20(\x270xaaa\x27\x20=\x20EntityLinker,\x20\x270xaab\x27\x20=\x20EntityRegistrar).\x20The\x20literal\x20string\x20\x27Address\x27\x20itself\x20is\x20INVALID\x20—\x20it\x20would\x20be\x20treated\x20as\x20a\x20non-existent\x20LocalMark\x20name\x20and\x20fail.\x20Example:\x20value=\x270x2::wow::WOW<address>\x27\x20or\x20value=\x27my-permission\x27.\x0a'+'•\x20String:\x20any\x20string\x0a'+'•\x20U8/U16/U32/U64/U128/U256:\x20number\x20or\x20numeric\x20string\x20(e.g.\x2042\x20or\x20\x2742\x27)\x0a'+'•\x20Vec*\x20types:\x20arrays\x20of\x20the\x20corresponding\x20element\x20type\x0a'+'REQUIRED\x20when\x20b_submission=false.\x20OPTIONAL\x20when\x20b_submission=true\x20(value\x20is\x20supplied\x20at\x20evaluation\x20time\x20by\x20user\x20submission).'),'name':z['string']()['default']('')['describe']('Data\x20name\x20identifier.\x20MAX\x2064\x20BCS\x20characters\x20(Chinese\x20chars\x20count\x20as\x203-4\x20BCS\x20bytes\x20each).\x20'+'Use\x20short\x20identifiers\x20like\x20\x27order_id\x27,\x20\x27delivery_node\x27.\x20'+'Put\x20longer\x20descriptions\x20in\x20the\x20Guard\x27s\x20\x27description\x27\x20field,\x20NOT\x20here.')})['strict']()['describe']('Guard\x20table\x20item\x20(INPUT/CREATION\x20form).\x20DO\x20NOT\x20include\x20`object_type`\x20field\x20—\x20it\x20is\x20query-output\x20only\x20and\x20will\x20be\x20rejected\x20here.');export const GuardTableItemSchema=GuardTableItemBaseSchema['extend']({'object_type':ObjectTypeSchema['optional']()['describe']('OUTPUT-ONLY\x20(query\x20side):\x20Object\x20type\x20when\x20value_type\x20is\x20Address\x20and\x20represents\x20a\x20specific\x20object.\x20Auto-derived\x20by\x20the\x20system\x20—\x20DO\x20NOT\x20set\x20this\x20field\x20at\x20Guard\x20creation.')})['strict']()['describe']('Guard\x20table\x20item\x20(QUERY/OUTPUT\x20form\x20—\x20includes\x20auto-derived\x20object_type\x20field)');export const EntrypointSchema=z['enum']([ENTRYPOINT['Localnet'],ENTRYPOINT['Testnet'],ENTRYPOINT['Mainnet']])['describe']('Network\x20entrypoint:\x20Specifies\x20which\x20network\x20the\x20operation\x20occurs\x20on.\x20'+'FIX-010\x20cross-network\x20note:\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network\x20(testnet\x20marks\x20are\x20invisible\x20on\x20mainnet\x20and\x20vice\x20versa).\x20'+'When\x20migrating\x20from\x20testnet\x20to\x20mainnet,\x20recreate\x20all\x20objects\x20on\x20mainnet\x20and\x20re-register\x20LocalMark\x20names\x20with\x20the\x20SAME\x20names\x20'+'to\x20keep\x20name-based\x20references\x20working\x20across\x20networks.\x20Use\x20project_operation\x20action=\x27clone_project_to_network\x27\x20to\x20clone\x20the\x20'+'project\x20blueprint\x20to\x20the\x20target\x20network,\x20then\x20re-run\x20onchain_operations\x20with\x20env.network=target_network\x20to\x20deploy.');export const FaucetNetworkSchema=z['enum']([ENTRYPOINT['Localnet'],ENTRYPOINT['Testnet']])['describe']('Network\x20entrypoint\x20for\x20Faucet:\x20Specifies\x20which\x20network\x20the\x20operation\x20occurs\x20on');export const ObjectBaseSchema=z['object']({'object':z['string']()['describe']('Object\x20ID'),'type':ObjectTypeSchema['optional']()['describe']('Object\x20type'),'type_raw':z['string']()['optional']()['describe']('Raw\x20object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['optional']()['describe']('Object\x20owner'),'version':z['union']([z['string'](),z['number']()])['optional']()['describe']('Object\x20version'),'previousTransaction':z['string']()['optional']()['describe']('Previous\x20transaction\x20ID'),'cache_expire':CacheExpireTypeSchema['optional']()['describe']('Cache\x20expiration\x20time'),'query_name':z['string']()['optional']()['describe']('Original\x20query\x20name\x20or\x20address\x20used\x20to\x20retrieve\x20this\x20object'),'content_raw':z['any']()['optional']()['describe']('Raw\x20content\x20data\x20for\x20unknown\x20object\x20types'),'_guard_node_comments':z['array'](z['object']({'type':z['string'](),'description':z['string']()}))['optional']()['describe']('Additional\x20comments\x20for\x20Guard\x20node\x20instructions')})['passthrough']()['describe']('Object\x20base\x20information');export const QueryEnvSchema=z['object']({'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20environment\x20parameters');export const ReceivedBalanceObjectSchema=z['object']({'id':z['string']()['describe']('Received\x20CoinWrapper\x20object\x20ID'),'balance':BalanceTypeSchema,'payment':z['string']()['describe']('Payment\x20object\x20ID')})['strict']()['describe']('Received\x20CoinWrapper\x20object\x20record');export const CoinWrapperTokenTypeSchema=z['string']()['refine'](a=>{const b=a['match'](/^CoinWrapper<(.+)>$/);if(b){const g=b[0x1];if(g===WOW_TOKEN_TYPE)return!![];const h=g['split']('::');if(h['length']!==0x3)return![];const [i,j,k]=h;if(!isValidWowAddress(i))return![];if(!isValidMoveIdentifier(j))return![];if(!isValidMoveIdentifier(k))return![];return!![];}if(a===WOW_TOKEN_TYPE)return!![];const c=a['split']('::');if(c['length']!==0x3)return![];const [d,e,f]=c;if(!isValidWowAddress(d))return![];if(!isValidMoveIdentifier(e))return![];if(!isValidMoveIdentifier(f))return![];return!![];},{'message':'Invalid\x20token\x20type\x20format.\x20Expected:\x20CoinWrapper<{address}::{module}::{struct}>\x20or\x20{address}::{module}::{struct}.\x20Example:\x20CoinWrapper<0x2::wow::WOW>\x20or\x200x2::wow::WOW'})['describe']('Token\x20type\x20in\x20format:\x20CoinWrapper<{address}::{module}::{struct}>\x20or\x20{address}::{module}::{struct}.\x20Example:\x20CoinWrapper<0x2::wow::WOW>');export const ReceivedBalanceSchema=z['object']({'balance':BalanceTypeSchema,'token_type':CoinWrapperTokenTypeSchema['describe']('Asset\x20type\x20of\x20Coin\x20objects.\x20Supports\x20CoinWrapper<...>\x20format\x20for\x20order\x20receive\x20operations.'),'received':z['array'](ReceivedBalanceObjectSchema)['describe']('Received\x20records\x20of\x20Coin\x20objects')})['strict']()['describe']('Received\x20record\x20of\x20Coin\x20objects');export const ReceivedBalanceOrRecentlySchema=z['union']([ReceivedBalanceSchema,z['literal']('recently')])['describe']('Specified\x20received\x20balance\x20record\x20or\x20all\x20recently\x20received\x20balance\x20record');export const ReceivedNormalSchema=z['object']({'id':z['string']()['nonempty']()['describe']('Received\x20object\x20ID'),'type':z['string']()['nonempty']()['describe']('Object\x20type'),'content_raw':z['any']()['optional']()['describe']('Raw\x20content\x20data')})['strict']()['describe']('Received\x20normal\x20object\x20record');export const ReceivedObjectsOrRecentlySchema=z['union']([z['array'](ReceivedNormalSchema),ReceivedBalanceSchema,z['literal']('recently')])['describe']('Specified\x20received\x20object\x20records\x20or\x20all\x20recently\x20received\x20object\x20records');export const RECEIVE_FORMAT_BLOCK_OBJECTS='\x0a\x0aACCEPTED\x20FORMATS\x20(F-06\x20unified\x20receive\x20operation\x20block):\x0a'+'•\x20\x27recently\x27\x20(string\x20literal)\x20—\x20auto-query\x20and\x20receive\x20ALL\x20recently\x20received\x20objects.\x0a'+'\x20\x20Use\x20this\x20for\x20the\x20common\x20case:\x20\x22withdraw\x20everything\x20the\x20object\x20has\x20received.\x22\x0a'+'\x20\x20Example:\x20receive:\x20\x27recently\x27\x0a'+'•\x20ReceivedNormal[]\x20(array)\x20—\x20explicit\x20list\x20of\x20received\x20objects\x20to\x20unwrap.\x0a'+'\x20\x20Use\x20this\x20when\x20you\x20want\x20to\x20receive\x20specific\x20objects\x20only\x20(not\x20all).\x0a'+'\x20\x20Example:\x20receive:\x20[{id:\x20\x270xobj1\x27,\x20type:\x20\x270x2::coin::Coin<0x2::sui::SUI>\x27}]\x0a'+'•\x20ReceivedBalance\x20({token_type,\x20balance,\x20received:\x20[{id,\x20balance,\x20payment}]})\x20—\x0a'+'\x20\x20receive\x20a\x20balance\x20record\x20from\x20a\x20specific\x20Payment/payer.\x0a'+'\x20\x20Use\x20this\x20for\x20precise\x20balance\x20targeting\x20(advanced\x20—\x20usually\x20after\x20querying\x0a'+'\x20\x20the\x20object\x27s\x20received\x20history\x20via\x20query_received).\x0a'+'\x20\x20Example:\x20receive:\x20{token_type:\x20\x270x2::sui::SUI\x27,\x20balance:\x201000000,\x20received:\x20[{id:\x20\x270xrec1\x27,\x20balance:\x201000000,\x20payment:\x20\x270xpay1\x27}]}\x0a'+'ANTI-PATTERN:\x20do\x20NOT\x20wrap\x20in\x20{result:\x20...}\x20—\x20pass\x20the\x20value\x20directly.';export const RECEIVE_FORMAT_BLOCK_BALANCE='\x0a\x0aACCEPTED\x20FORMATS\x20(F-06\x20unified\x20receive\x20operation\x20block):\x0a'+'•\x20\x27recently\x27\x20(string\x20literal)\x20—\x20auto-query\x20and\x20receive\x20ALL\x20recently\x20received\x20balance.\x0a'+'\x20\x20Use\x20this\x20for\x20the\x20common\x20case:\x20\x22deposit\x20all\x20recently\x20received\x20coins\x20into\x20pending\x20balance.\x22\x0a'+'\x20\x20Example:\x20receive:\x20\x27recently\x27\x0a'+'•\x20ReceivedBalance\x20({token_type,\x20balance,\x20received:\x20[{id,\x20balance,\x20payment}]})\x20—\x0a'+'\x20\x20receive\x20a\x20specific\x20balance\x20record\x20from\x20a\x20Payment/payer.\x0a'+'\x20\x20Use\x20this\x20when\x20targeting\x20a\x20specific\x20received\x20balance\x20(advanced).\x0a'+'\x20\x20Example:\x20receive:\x20{token_type:\x20\x270x2::sui::SUI\x27,\x20balance:\x201000000,\x20received:\x20[{id:\x20\x270xrec1\x27,\x20balance:\x201000000,\x20payment:\x20\x270xpay1\x27}]}\x0a'+'ANTI-PATTERN:\x20do\x20NOT\x20wrap\x20in\x20{result:\x20...}\x20—\x20pass\x20the\x20value\x20directly.';export const QueryReceivedResultSchema=z['object']({'result':z['union']([ReceivedBalanceSchema,z['array'](ReceivedNormalSchema)])['describe']('Received\x20CoinWrapper\x20object\x20record\x20or\x20received\x20other\x20objects\x20array')})['strict']()['describe']('Query\x20received\x20result');
|
|
1
|
+
import{z}from'zod';import{isValidAddress,ValueType as a320a,ObjectType as a320b,ENTRYPOINT,isValidWowAddress,isValidName,isValidDescription,MAX_DESCRIPTION_LENGTH,isValidLongName,MAX_LONG_NAME_LENGTH}from'@wowok/wowok';const isValidMoveIdentifier=a=>{if(a['length']===0x0)return![];const b=a[0x0];if(b==='_')return a['length']>0x1&&/^[a-zA-Z0-9_]+$/['test'](a['slice'](0x1));if(/^[a-zA-Z]$/['test'](b))return/^[a-zA-Z0-9_]*$/['test'](a['slice'](0x1));return![];};export const DescriptionSchema=z['string']()['refine'](isValidDescription,{'message':'Description\x20string\x20(max\x20'+MAX_DESCRIPTION_LENGTH+'\x20bcs\x20characters)'})['describe']('Description\x20string\x20(max\x20'+MAX_DESCRIPTION_LENGTH+'\x20bcs\x20characters)');export const LongNameSchema=z['string']()['refine'](isValidLongName,{'message':'max\x20'+MAX_LONG_NAME_LENGTH+'\x20bcs\x20characters'});export const WowAddressSchema=z['string']()['refine'](isValidAddress,{'message':'Invalid\x20ID\x20format:\x20must\x20be\x20\x270x\x27\x20prefix\x20followed\x20by\x2064\x20hex\x20characters'})['describe']('Valid\x20ID:\x200x\x20prefix\x20+\x2064\x20hex\x20characters,\x20or\x20builtin\x20ID\x20(0x5-0x9,\x200xa,\x200xc,\x200xd,\x200x403,\x200xaaa,\x200xaab,\x200xacc)');const WOW_TOKEN_TYPE='0x2::wow::WOW';export const TokenTypeSchema=z['string']()['refine'](a=>{if(a===WOW_TOKEN_TYPE)return!![];const b=a['split']('::');if(b['length']!==0x3)return![];const [c,d,e]=b;if(!isValidWowAddress(c))return![];if(!isValidMoveIdentifier(d))return![];if(!isValidMoveIdentifier(e))return![];return!![];},{'message':'Invalid\x20token\x20type\x20format.\x20Expected:\x20{address}::{module}::{struct}\x20where\x20address\x20is\x200x+64hex,\x20module/struct\x20are\x20valid\x20Move\x20identifiers,\x20or\x20\x270x2::wow::WOW\x27'})['describe']('Token\x20type\x20in\x20format:\x20{address}::{module}::{struct}.\x20e.g.\x20\x270x2::wow::WOW\x27\x20(WOW),\x20\x270x...::usdt::USDT\x27\x20(USDT),\x20\x270x...::eth::ETH\x27\x20(ETH).\x20To\x20discover\x20all\x20available\x20tokens\x20and\x20their\x20type\x20tags,\x20query\x20\x27mainnet\x20bridge\x20tokens\x27\x20via\x20wowok_buildin_info\x20and\x20use\x20the\x20returned\x20`wowTypeTag`\x20here.');export const TokenTypeWithDefaultSchema=TokenTypeSchema['default'](WOW_TOKEN_TYPE)['describe']('Token\x20type\x20in\x20format:\x20{address}::{module}::{struct}.\x20Default:\x20\x270x2::wow::WOW\x27.\x20Other\x20examples:\x20\x270x...::usdt::USDT\x27\x20(USDT),\x20\x270x...::eth::ETH\x27\x20(ETH).\x20To\x20discover\x20all\x20available\x20tokens\x20and\x20their\x20type\x20tags,\x20query\x20\x27mainnet\x20bridge\x20tokens\x27\x20via\x20wowok_buildin_info\x20and\x20use\x20the\x20returned\x20`wowTypeTag`\x20here.');export const NameSchema=z['string']()['refine'](isValidName,'Name\x20string\x20(max\x2064\x20bcs\x20characters,\x20must\x20not\x20start\x20with\x20\x270x\x27)');export const NotEmptyNameSchema=z['string']()['nonempty']()['refine'](isValidName,'Name\x20string\x20(at\x20least\x201\x20character,\x20max\x20length\x2064\x20bcs\x20characters)');export const NameOrAddressSchema=z['string']()['refine'](a=>{if(isValidAddress(a))return!![];if(isValidName(a))return!![];return![];},{'message':'Invalid\x20ID\x20format:\x20must\x20be\x20\x270x\x27\x20prefix,\x20or\x20a\x20builtin\x20ID\x20(0x5-0x9,\x200xa,\x200xc,\x200xd,\x200x403,\x200xaaa,\x200xaab,\x200xacc)'})['describe']('Account/Object\x20name\x20or\x20ID.\x20If\x20specifying\x20an\x20account,\x20use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20'+'If\x20it\x20starts\x20with\x20\x270x\x27,\x20it\x20will\x20be\x20treated\x20as\x20an\x20ID.\x20'+'Otherwise,\x20it\x20will\x20be\x20treated\x20as\x20a\x20name\x20(max\x2064\x20bcs\x20characters).');export const AccountOrMark_AddressSchema=z['object']({'name_or_address':NameOrAddressSchema['optional'](),'local_mark_first':z['boolean']()['optional']()['describe']('Whether\x20to\x20prioritize\x20local\x20marks,\x20if\x20true,\x20prioritize\x20local\x20marks,\x20otherwise\x20prioritize\x20global\x20marks')})['strict']()['describe']('Account\x20or\x20address\x20lookup\x20object.\x20Use\x20this\x20to\x20specify\x20which\x20account\x20to\x20use\x20for\x20an\x20operation.\x20'+'EXAMPLE:\x20{\x20name_or_address:\x20\x27testor2\x27\x20}\x20-\x20looks\x20up\x20account\x20by\x20name;\x20'+'EXAMPLE:\x20{\x20name_or_address:\x20\x270x1234...\x27\x20}\x20-\x20uses\x20address\x20directly;\x20'+'If\x20name_or_address\x20is\x20empty\x20string\x20\x27\x27,\x20uses\x20the\x20default\x20local\x20account.');export const ManyAccountOrMark_AddressSchema=z['object']({'entities':z['array'](AccountOrMark_AddressSchema),'check_all_founded':z['boolean']()['optional']()['describe']('Whether\x20to\x20check\x20all\x20entities\x20are\x20found,\x20if\x20true,\x20all\x20entities\x20must\x20be\x20found\x20(abort\x20and\x20throw\x20exception\x20if\x20any\x20ID\x20not\x20found);\x20if\x20false,\x20only\x20return\x20found\x20IDs')})['strict']()['describe']('Used\x20to\x20batch\x20find\x20account\x20or\x20object\x20IDs\x20by\x20name');export const AccountOrMark_AddressAISchema=z['union']([NameOrAddressSchema['transform'](a=>({'name_or_address':a,'local_mark_first':!![]}))['describe']('Account\x20name,\x20address\x20(0x...),\x20or\x20mark\x20name.\x20'+'When\x20using\x20string\x20format,\x20local\x20marks\x20are\x20searched\x20first.\x20'+'EXAMPLE:\x20\x27alice\x27\x20-\x20searches\x20local\x20marks\x20first,\x20then\x20global;\x20'+'EXAMPLE:\x20\x270x2...\x27\x20(64\x20hex\x20chars)\x20-\x20uses\x20address\x20directly;\x20'+'EXAMPLE:\x20\x27\x27\x20-\x20uses\x20the\x20default\x20local\x20account'),AccountOrMark_AddressSchema])['describe']('Account\x20or\x20address\x20lookup.\x20Can\x20be\x20a\x20simple\x20string\x20(recommended\x20for\x20AI)\x20'+'or\x20full\x20object\x20with\x20explicit\x20local_mark_first\x20control.\x20'+'String\x20form\x20auto-converts\x20to\x20{\x20name_or_address:\x20<string>,\x20local_mark_first:\x20true\x20}.');export const ManyAccountOrMark_AddressAISchema=z['union']([z['array'](NameOrAddressSchema)['transform'](a=>({'entities':a['map'](b=>({'name_or_address':b,'local_mark_first':!![]})),'check_all_founded':!![]}))['describe']('Array\x20of\x20account\x20names,\x20addresses,\x20or\x20mark\x20names.\x20'+'Local\x20marks\x20are\x20searched\x20first\x20for\x20each\x20entry.\x20'+'EXAMPLE:\x20[\x27alice\x27,\x20\x270x2...\x27,\x20\x27bob\x27]'),ManyAccountOrMark_AddressSchema])['describe']('Batch\x20account\x20or\x20address\x20lookup.\x20Can\x20be\x20an\x20array\x20of\x20strings\x20(recommended\x20for\x20AI)\x20'+'or\x20full\x20object\x20with\x20explicit\x20control.\x20'+'Array\x20form\x20auto-converts\x20to\x20{\x20entities:\x20[...],\x20check_all_founded:\x20true\x20}.');export const ObjectOwnerSchema=z['union']([z['object']({'AddressOwner':z['string']()['describe']('Address\x20owner')})['strict'](),z['object']({'ObjectOwner':z['string']()['describe']('Object\x20owner')})['strict'](),z['object']({'Shared':z['object']({'initial_shared_version':z['union']([z['string'](),z['number']()])['describe']('Version\x20when\x20object\x20became\x20shared')})['strict']()['describe']('Shared\x20object')})['strict'](),z['literal']('Immutable'),z['object']({'ConsensusAddressOwner':z['object']({'owner':z['string']()['describe']('Consensus\x20ID\x20owner'),'start_version':z['union']([z['string'](),z['number']()])['describe']('Version\x20when\x20object\x20recently\x20became\x20consensus\x20object')})['strict']()['describe']('Consensus\x20ID\x20owner')})['strict']()])['describe']('Object\x20owner');export const ValueTypeUserSchema=z['union']([z['literal'](a320a['Bool'])['describe']('Bool\x20(0)'),z['literal'](a320a['Address'])['describe']('Address\x20(1)'),z['literal'](a320a['String'])['describe']('String\x20(2)'),z['literal'](a320a['U8'])['describe']('U8\x20(3)'),z['literal'](a320a['U16'])['describe']('U16\x20(4)'),z['literal'](a320a['U32'])['describe']('U32\x20(5)'),z['literal'](a320a['U64'])['describe']('U64\x20(6)'),z['literal'](a320a['U128'])['describe']('U128\x20(7)'),z['literal'](a320a['U256'])['describe']('U256\x20(8)'),z['literal'](a320a['VecBool'])['describe']('VecBool\x20(9)'),z['literal'](a320a['VecAddress'])['describe']('VecAddress\x20(10)'),z['literal'](a320a['VecString'])['describe']('VecString\x20(11)'),z['literal'](a320a['VecU8'])['describe']('VecU8\x20(12)'),z['literal'](a320a['VecU16'])['describe']('VecU16\x20(13)'),z['literal'](a320a['VecU32'])['describe']('VecU32\x20(14)'),z['literal'](a320a['VecU64'])['describe']('VecU64\x20(15)'),z['literal'](a320a['VecU128'])['describe']('VecU128\x20(16)'),z['literal'](a320a['VecU256'])['describe']('VecU256\x20(17)'),z['literal'](a320a['VecVecU8'])['describe']('VecVecU8\x20(18)'),z['literal']('Bool')['describe']('Bool'),z['literal']('Address')['describe']('Address'),z['literal']('String')['describe']('String'),z['literal']('U8')['describe']('U8'),z['literal']('U16')['describe']('U16'),z['literal']('U32')['describe']('U32'),z['literal']('U64')['describe']('U64'),z['literal']('U128')['describe']('U128'),z['literal']('U256')['describe']('U256'),z['literal']('VecBool')['describe']('VecBool'),z['literal']('VecAddress')['describe']('VecAddress'),z['literal']('VecString')['describe']('VecString'),z['literal']('VecU8')['describe']('VecU8'),z['literal']('VecU16')['describe']('VecU16'),z['literal']('VecU32')['describe']('VecU32'),z['literal']('VecU64')['describe']('VecU64'),z['literal']('VecU128')['describe']('VecU128'),z['literal']('VecU256')['describe']('VecU256'),z['literal']('VecVecU8')['describe']('VecVecU8'),z['literal']('bool')['describe']('bool'),z['literal']('address')['describe']('address'),z['literal']('string')['describe']('string'),z['literal']('u8')['describe']('u8'),z['literal']('u16')['describe']('u16'),z['literal']('u32')['describe']('u32'),z['literal']('u64')['describe']('u64'),z['literal']('u128')['describe']('u128'),z['literal']('u256')['describe']('u256'),z['literal']('vecbool')['describe']('vecbool'),z['literal']('vecaddress')['describe']('vecaddress'),z['literal']('vecstring')['describe']('vecstring'),z['literal']('vecu8')['describe']('vecu8'),z['literal']('vecu16')['describe']('vecu16'),z['literal']('vecu32')['describe']('vecu32'),z['literal']('vecu64')['describe']('vecu64'),z['literal']('vecu128')['describe']('vecu128'),z['literal']('vecu256')['describe']('vecu256'),z['literal']('vecvecu8')['describe']('vecvecu8')])['describe']('User\x20available\x20value\x20type\x20(number\x20or\x20string,\x20e.g.,\x206\x20or\x20\x27U64\x27\x20or\x20\x27u64\x27)');export const ValueTypeSchema=ValueTypeUserSchema['or'](z['literal'](a320a['Value'])['describe']('Value\x20(19)'))['or'](z['literal']('Value')['describe']('Value'))['describe']('Value\x20type\x20(number\x20or\x20string,\x20e.g.,\x206\x20or\x20\x27U64\x27)');export const ObjectTypeSchema=z['enum']([a320b['Permission'],a320b['Repository'],a320b['Arb'],a320b['Arbitration'],a320b['Service'],a320b['Machine'],a320b['Order'],a320b['Progress'],a320b['Payment'],a320b['Treasury'],a320b['Guard'],a320b['Demand'],a320b['Passport'],a320b['Allocation'],a320b['Resource'],a320b['Reward'],a320b['Discount'],a320b['EntityRegistrar'],a320b['EntityLinker'],a320b['Proof'],a320b['WReceivedObject'],a320b['Contact'],a320b['TableItem_ProgressHistory'],a320b['TableItem_PermissionPerm'],a320b['TableItem_DemandPresenter'],a320b['TableItem_MachineNode'],a320b['TableItem_TreasuryHistory'],a320b['TableItem_RepositoryData'],a320b['TableItem_RewardRecord'],a320b['TableItem_EntityLinker'],a320b['TableItem_AddressMark'],a320b['TableItem_EntityRegistrar']])['describe']('Wowok\x20object\x20type');export const BalanceTypeSchema=z['union']([z['number'](),z['string']()])['describe']('A\x20coin/balance\x20amount.\x20Accepts\x20three\x20formats:\x20'+'(1)\x20DISPLAY\x20FORMAT\x20with\x20token\x20symbol:\x20\x222.5WOW\x22,\x20\x2210USDC\x22,\x20\x220.05SUI\x22\x20—\x20'+'auto-converted\x20to\x20smallest\x20units\x20via\x20the\x20Fund\x20Processing\x20Layer\x20(token\x20precision\x20resolved\x20'+'from\x20official\x20registry\x20→\x20cache\x20→\x20on-chain).\x20The\x20symbol\x20MUST\x20match\x20the\x20token\x27s\x20type_parameter.\x20'+'(2)\x20SMALLEST\x20UNIT\x20(numeric\x20string):\x20\x2210000000000\x22\x20—\x20used\x20as-is,\x20no\x20conversion.\x20'+'(3)\x20SMALLEST\x20UNIT\x20(number):\x2010000000000\x20—\x20used\x20as-is\x20(loses\x20precision\x20above\x202^53).\x20'+'PRECISION\x20RULE:\x20for\x20values\x20exceeding\x202^53,\x20ALWAYS\x20use\x20format\x20(1)\x20or\x20(2)\x20—\x20JS\x20numbers\x20lose\x20precision.\x20'+'Default\x20token:\x20WOW\x20(9\x20decimals,\x201\x20WOW\x20=\x2010^9\x20MIST).\x20'+'For\x20custom\x20tokens:\x20use\x20display\x20format\x20with\x20the\x20token\x27s\x20symbol,\x20or\x20pass\x20smallest\x20units\x20directly.\x20'+'MONEY\x20CONFIRMATION:\x20all\x20monetary\x20fields\x20trigger\x20user\x20confirmation\x20via\x20the\x20Fund\x20Processing\x20Layer.\x20'+'If\x20multiple\x20tokens\x20share\x20a\x20symbol\x20(ambiguity),\x20specify\x20the\x20full\x20type\x20string\x20in\x20type_parameter.\x20'+'Examples:\x20\x222.5WOW\x22\x20(display\x20→\x202500000000),\x2010000000000\x20(number,\x20smallest\x20unit),\x20\x2250000000000\x22\x20(string,\x20smallest\x20unit).\x20'+'Used\x20for:\x20Service.sale.price,\x20Service.compensation_fund_add\x20balance,\x20Treasury.deposit,\x20Arbitration.fee,\x20Reward.amount,\x20stock\x20quantities.');export const QueryIdSchema=z['number']()['int']()['min'](0x0)['describe']('Query\x20ID');export const CacheExpireTypeSchema=z['union']([z['number'](),z['literal']('INFINITE')])['describe']('Cache\x20expiration\x20time\x20type');export const ValueContainerSchema=z['lazy'](()=>z['object']({'valueType':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['strict']()['describe']('Value\x20container\x20with\x20type\x20and\x20value'));export const SupportedValueUserSchema=z['union']([z['boolean'](),z['union']([AccountOrMark_AddressSchema,z['string']()]),z['string'](),z['number'](),z['array'](z['boolean']()),z['union']([ManyAccountOrMark_AddressSchema,z['array'](z['string']())]),z['array'](z['string']()),z['array'](z['number']()),z['array'](z['array'](z['number']()))])['describe']('User\x20available\x20supported\x20value\x20type');export const SupportedValueSchema=SupportedValueUserSchema['or'](ValueContainerSchema)['describe']('Supported\x20value\x20type');export const GuardIdentifierSchema=z['number']()['int']()['min'](0x0)['max'](0xff)['describe']('Identifier\x20(0-255)\x20for\x20data\x20lookup\x20in\x20Guard\x20table.');export const GuardTableItemBaseSchema=z['object']({'identifier':GuardIdentifierSchema,'b_submission':z['boolean']()['describe']('Whether\x20this\x20table\x20item\x27s\x20value\x20is\x20submitted\x20dynamically\x20at\x20Guard\x20trigger\x20time\x20(alloc_by_guard\x20call).\x20'+'\x0a\x0a'+'true\x20=\x20value\x20is\x20submitted\x20by\x20the\x20caller\x20when\x20triggering\x20the\x20Guard.\x20'+'Use\x20for\x20runtime-context-dependent\x20values\x20like\x20order\x20address,\x20user\x20address.\x20'+'The\x20\x27value\x27\x20field\x20is\x20ignored\x20when\x20b_submission=true;\x20the\x20caller\x20must\x20provide\x20it\x20via\x20submissions[].\x20'+'\x0a\x0a'+'false\x20=\x20value\x20is\x20static,\x20set\x20at\x20Guard\x20creation\x20time.\x20'+'Use\x20for\x20values\x20known\x20when\x20the\x20Guard\x20is\x20created:\x20expected\x20node\x20names,\x20expected\x20merchant\x20address,\x20expected\x20service\x20address.\x20'+'The\x20\x27value\x27\x20field\x20must\x20be\x20populated\x20and\x20will\x20be\x20stored\x20on-chain\x20permanently.\x20'+'\x0a\x0a'+'Rule\x20of\x20thumb:\x20if\x20the\x20value\x20is\x20the\x20SAME\x20for\x20all\x20future\x20Guard\x20triggers,\x20use\x20false.\x20'+'If\x20the\x20value\x20DIFFERS\x20per\x20trigger\x20(e.g.,\x20which\x20order\x20to\x20release\x20funds\x20for),\x20use\x20true.'),'value_type':ValueTypeUserSchema['describe']('Type\x20of\x20the\x20value\x20stored\x20in\x20`value`.\x20One\x20of:\x20Bool(0),\x20Address(1),\x20String(2),\x20U8(3),\x20U16(4),\x20U32(5),\x20U64(6),\x20U128(7),\x20U256(8),\x20VecBool(9),\x20VecAddress(10),\x20VecString(11),\x20VecU8(12),\x20VecU16(13),\x20VecU32(14),\x20VecU64(15),\x20VecU128(16),\x20VecU256(17),\x20VecVecU8(18).\x20'+'When\x20value_type=Address\x20(1),\x20the\x20`value`\x20field\x20accepts\x20a\x20hex\x20address\x20string,\x20a\x20LocalMark\x20name,\x20or\x20an\x20AccountOrMark_Address\x20object\x20—\x20see\x20`value`\x20field\x20description\x20for\x20details.'),'value':SupportedValueUserSchema['optional']()['describe']('The\x20actual\x20value\x20data.\x20Format\x20depends\x20on\x20`value_type`:\x0a'+'•\x20Bool:\x20true/false\x20(boolean)\x0a'+'•\x20Address\x20(CRITICAL\x20—\x20string\x20\x27Address\x27\x20is\x20NOT\x20a\x20placeholder):\x20a\x20hex\x20address\x20(e.g.\x20\x270x1234...\x27),\x20a\x20LocalMark\x20name\x20(e.g.\x20\x27my-service\x27\x20—\x20resolved\x20to\x20address\x20at\x20evaluation\x20time),\x20an\x20AccountOrMark_Address\x20object\x20(e.g.\x20{name_or_address:\x27my-service\x27}),\x20or\x20system\x20shorthand\x20(\x270xaaa\x27\x20=\x20EntityLinker,\x20\x270xaab\x27\x20=\x20EntityRegistrar).\x20The\x20literal\x20string\x20\x27Address\x27\x20itself\x20is\x20INVALID\x20—\x20it\x20would\x20be\x20treated\x20as\x20a\x20non-existent\x20LocalMark\x20name\x20and\x20fail.\x20Example:\x20value=\x270x2::wow::WOW<address>\x27\x20or\x20value=\x27my-permission\x27.\x0a'+'•\x20String:\x20any\x20string\x0a'+'•\x20U8/U16/U32/U64/U128/U256:\x20number\x20or\x20numeric\x20string\x20(e.g.\x2042\x20or\x20\x2742\x27)\x0a'+'•\x20Vec*\x20types:\x20arrays\x20of\x20the\x20corresponding\x20element\x20type\x0a'+'REQUIRED\x20when\x20b_submission=false.\x20OPTIONAL\x20when\x20b_submission=true\x20(value\x20is\x20supplied\x20at\x20evaluation\x20time\x20by\x20user\x20submission).'),'name':z['string']()['default']('')['describe']('Data\x20name\x20identifier.\x20MAX\x2064\x20BCS\x20characters\x20(Chinese\x20chars\x20count\x20as\x203-4\x20BCS\x20bytes\x20each).\x20'+'Use\x20short\x20identifiers\x20like\x20\x27order_id\x27,\x20\x27delivery_node\x27.\x20'+'Put\x20longer\x20descriptions\x20in\x20the\x20Guard\x27s\x20\x27description\x27\x20field,\x20NOT\x20here.')})['strict']()['describe']('Guard\x20table\x20item\x20(INPUT/CREATION\x20form).\x20DO\x20NOT\x20include\x20`object_type`\x20field\x20—\x20it\x20is\x20query-output\x20only\x20and\x20will\x20be\x20rejected\x20here.');export const GuardTableItemSchema=GuardTableItemBaseSchema['extend']({'object_type':ObjectTypeSchema['optional']()['describe']('OUTPUT-ONLY\x20(query\x20side):\x20Object\x20type\x20when\x20value_type\x20is\x20Address\x20and\x20represents\x20a\x20specific\x20object.\x20Auto-derived\x20by\x20the\x20system\x20—\x20DO\x20NOT\x20set\x20this\x20field\x20at\x20Guard\x20creation.')})['strict']()['describe']('Guard\x20table\x20item\x20(QUERY/OUTPUT\x20form\x20—\x20includes\x20auto-derived\x20object_type\x20field)');export const EntrypointSchema=z['enum']([ENTRYPOINT['Localnet'],ENTRYPOINT['Testnet'],ENTRYPOINT['Mainnet']])['describe']('Network\x20entrypoint:\x20Specifies\x20which\x20network\x20the\x20operation\x20occurs\x20on.\x20'+'FIX-010\x20cross-network\x20note:\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network\x20(testnet\x20marks\x20are\x20invisible\x20on\x20mainnet\x20and\x20vice\x20versa).\x20'+'When\x20migrating\x20from\x20testnet\x20to\x20mainnet,\x20recreate\x20all\x20objects\x20on\x20mainnet\x20and\x20re-register\x20LocalMark\x20names\x20with\x20the\x20SAME\x20names\x20'+'to\x20keep\x20name-based\x20references\x20working\x20across\x20networks.\x20Use\x20project_operation\x20action=\x27clone_project_to_network\x27\x20to\x20clone\x20the\x20'+'project\x20blueprint\x20to\x20the\x20target\x20network,\x20then\x20re-run\x20onchain_operations\x20with\x20env.network=target_network\x20to\x20deploy.');export const FaucetNetworkSchema=z['enum']([ENTRYPOINT['Localnet'],ENTRYPOINT['Testnet']])['describe']('Network\x20entrypoint\x20for\x20Faucet:\x20Specifies\x20which\x20network\x20the\x20operation\x20occurs\x20on');export const ObjectBaseSchema=z['object']({'object':z['string']()['describe']('Object\x20ID'),'type':ObjectTypeSchema['optional']()['describe']('Object\x20type'),'type_raw':z['string']()['optional']()['describe']('Raw\x20object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['optional']()['describe']('Object\x20owner'),'version':z['union']([z['string'](),z['number']()])['optional']()['describe']('Object\x20version'),'previousTransaction':z['string']()['optional']()['describe']('Previous\x20transaction\x20ID'),'cache_expire':CacheExpireTypeSchema['optional']()['describe']('Cache\x20expiration\x20time'),'query_name':z['string']()['optional']()['describe']('Original\x20query\x20name\x20or\x20address\x20used\x20to\x20retrieve\x20this\x20object'),'content_raw':z['any']()['optional']()['describe']('Raw\x20content\x20data\x20for\x20unknown\x20object\x20types'),'_guard_node_comments':z['array'](z['object']({'type':z['string'](),'description':z['string']()}))['optional']()['describe']('Additional\x20comments\x20for\x20Guard\x20node\x20instructions')})['passthrough']()['describe']('Object\x20base\x20information');export const QueryEnvSchema=z['object']({'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20environment\x20parameters');export const ReceivedBalanceObjectSchema=z['object']({'id':z['string']()['describe']('Received\x20CoinWrapper\x20object\x20ID'),'balance':BalanceTypeSchema,'payment':z['string']()['describe']('Payment\x20object\x20ID'),'type':z['string']()['optional']()['describe']('Type\x20of\x20the\x20received\x20object\x20(or\x20inner\x20coin\x20type);\x20used\x20for\x20token_type\x20detection'),'version':z['string']()['optional']()['describe']('Object\x20version,\x20required\x20to\x20build\x20a\x20Receiving<T>\x20argument\x20for\x20owner_receive'),'digest':z['string']()['optional']()['describe']('Object\x20digest,\x20required\x20to\x20build\x20a\x20Receiving<T>\x20argument\x20for\x20owner_receive')})['strict']()['describe']('Received\x20CoinWrapper\x20object\x20record');export const CoinWrapperTokenTypeSchema=z['string']()['refine'](a=>{const b=a['match'](/^CoinWrapper<(.+)>$/);if(b){const g=b[0x1];if(g===WOW_TOKEN_TYPE)return!![];const h=g['split']('::');if(h['length']!==0x3)return![];const [i,j,k]=h;if(!isValidWowAddress(i))return![];if(!isValidMoveIdentifier(j))return![];if(!isValidMoveIdentifier(k))return![];return!![];}if(a===WOW_TOKEN_TYPE)return!![];const c=a['split']('::');if(c['length']!==0x3)return![];const [d,e,f]=c;if(!isValidWowAddress(d))return![];if(!isValidMoveIdentifier(e))return![];if(!isValidMoveIdentifier(f))return![];return!![];},{'message':'Invalid\x20token\x20type\x20format.\x20Expected:\x20CoinWrapper<{address}::{module}::{struct}>\x20or\x20{address}::{module}::{struct}.\x20Example:\x20CoinWrapper<0x2::wow::WOW>\x20or\x200x2::wow::WOW'})['describe']('Token\x20type\x20in\x20format:\x20CoinWrapper<{address}::{module}::{struct}>\x20or\x20{address}::{module}::{struct}.\x20Example:\x20CoinWrapper<0x2::wow::WOW>');export const ReceivedBalanceSchema=z['object']({'balance':BalanceTypeSchema,'token_type':CoinWrapperTokenTypeSchema['describe']('Asset\x20type\x20of\x20Coin\x20objects.\x20Supports\x20CoinWrapper<...>\x20format\x20for\x20order\x20receive\x20operations.'),'received':z['array'](ReceivedBalanceObjectSchema)['describe']('Received\x20records\x20of\x20Coin\x20objects')})['strict']()['describe']('Received\x20record\x20of\x20Coin\x20objects');export const ReceivedBalanceOrRecentlySchema=z['union']([ReceivedBalanceSchema,z['literal']('recently')])['describe']('Specified\x20received\x20balance\x20record\x20or\x20all\x20recently\x20received\x20balance\x20record');export const ReceivedNormalSchema=z['object']({'id':z['string']()['nonempty']()['describe']('Received\x20object\x20ID'),'type':z['string']()['nonempty']()['describe']('Object\x20type'),'content_raw':z['any']()['optional']()['describe']('Raw\x20content\x20data'),'version':z['string']()['optional']()['describe']('Object\x20version,\x20required\x20to\x20build\x20a\x20Receiving<T>\x20argument\x20for\x20owner_receive'),'digest':z['string']()['optional']()['describe']('Object\x20digest,\x20required\x20to\x20build\x20a\x20Receiving<T>\x20argument\x20for\x20owner_receive')})['strict']()['describe']('Received\x20normal\x20object\x20record');export const ReceivedObjectsOrRecentlySchema=z['union']([z['array'](ReceivedNormalSchema),ReceivedBalanceSchema,z['literal']('recently')])['describe']('Specified\x20received\x20object\x20records\x20or\x20all\x20recently\x20received\x20object\x20records');export const RECEIVE_FORMAT_BLOCK_OBJECTS='\x0a\x0aACCEPTED\x20FORMATS\x20(F-06\x20unified\x20receive\x20operation\x20block):\x0a'+'•\x20\x27recently\x27\x20(string\x20literal)\x20—\x20auto-query\x20and\x20receive\x20ALL\x20recently\x20received\x20objects.\x0a'+'\x20\x20Use\x20this\x20for\x20the\x20common\x20case:\x20\x22withdraw\x20everything\x20the\x20object\x20has\x20received.\x22\x0a'+'\x20\x20Example:\x20receive:\x20\x27recently\x27\x0a'+'•\x20ReceivedNormal[]\x20(array)\x20—\x20explicit\x20list\x20of\x20received\x20objects\x20to\x20unwrap.\x0a'+'\x20\x20Use\x20this\x20when\x20you\x20want\x20to\x20receive\x20specific\x20objects\x20only\x20(not\x20all).\x0a'+'\x20\x20Example:\x20receive:\x20[{id:\x20\x270xobj1\x27,\x20type:\x20\x270x2::coin::Coin<0x2::sui::SUI>\x27}]\x0a'+'•\x20ReceivedBalance\x20({token_type,\x20balance,\x20received:\x20[{id,\x20balance,\x20payment}]})\x20—\x0a'+'\x20\x20receive\x20a\x20balance\x20record\x20from\x20a\x20specific\x20Payment/payer.\x0a'+'\x20\x20Use\x20this\x20for\x20precise\x20balance\x20targeting\x20(advanced\x20—\x20usually\x20after\x20querying\x0a'+'\x20\x20the\x20object\x27s\x20received\x20history\x20via\x20query_received).\x0a'+'\x20\x20Example:\x20receive:\x20{token_type:\x20\x270x2::sui::SUI\x27,\x20balance:\x201000000,\x20received:\x20[{id:\x20\x270xrec1\x27,\x20balance:\x201000000,\x20payment:\x20\x270xpay1\x27}]}\x0a'+'ANTI-PATTERN:\x20do\x20NOT\x20wrap\x20in\x20{result:\x20...}\x20—\x20pass\x20the\x20value\x20directly.';export const RECEIVE_FORMAT_BLOCK_BALANCE='\x0a\x0aACCEPTED\x20FORMATS\x20(F-06\x20unified\x20receive\x20operation\x20block):\x0a'+'•\x20\x27recently\x27\x20(string\x20literal)\x20—\x20auto-query\x20and\x20receive\x20ALL\x20recently\x20received\x20balance.\x0a'+'\x20\x20Use\x20this\x20for\x20the\x20common\x20case:\x20\x22deposit\x20all\x20recently\x20received\x20coins\x20into\x20pending\x20balance.\x22\x0a'+'\x20\x20Example:\x20receive:\x20\x27recently\x27\x0a'+'•\x20ReceivedBalance\x20({token_type,\x20balance,\x20received:\x20[{id,\x20balance,\x20payment}]})\x20—\x0a'+'\x20\x20receive\x20a\x20specific\x20balance\x20record\x20from\x20a\x20Payment/payer.\x0a'+'\x20\x20Use\x20this\x20when\x20targeting\x20a\x20specific\x20received\x20balance\x20(advanced).\x0a'+'\x20\x20Example:\x20receive:\x20{token_type:\x20\x270x2::sui::SUI\x27,\x20balance:\x201000000,\x20received:\x20[{id:\x20\x270xrec1\x27,\x20balance:\x201000000,\x20payment:\x20\x270xpay1\x27}]}\x0a'+'ANTI-PATTERN:\x20do\x20NOT\x20wrap\x20in\x20{result:\x20...}\x20—\x20pass\x20the\x20value\x20directly.';export const QueryReceivedResultSchema=z['object']({'result':z['union']([ReceivedBalanceSchema,z['array'](ReceivedNormalSchema)])['describe']('Received\x20CoinWrapper\x20object\x20record\x20or\x20received\x20other\x20objects\x20array')})['strict']()['describe']('Query\x20received\x20result');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';import{SemanticSummarySchema as a326a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a326a),LocalOperationErrorFields={'error_code':z['enum'](['invalid_parameter','guard_rejected','state_conflict','insufficient_balance','object_not_found','permission_denied','immutable_violation','network_error','rate_limit','gas_exceeded','bcs_error','signature_error','config_error','wip_verification_failed','unknown'])['optional']()['describe']('Error\x20classification\x20for\x20programmatic\x20recovery'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20can\x20be\x20retried\x20as-is'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20suggestion\x20for\x20AI\x20or\x20user')};export const LocalMarkConstraints={'nameMaxLength':0x40,'tagMaxLength':0x40,'tagMaxCount':0x32};export const LocalInfoConstraints={'nameMaxLength':0x40,'contentMaxLength':0x12c,'contentMaxCount':0x32,'defaultName':'Address\x20of\x20delivery'};export const AccountConstraints={'nameMaxLength':0x40};export const ErrorResultSchema=z['object']({'error':z['literal'](!![])['describe']('Always\x20true\x20for\x20error\x20responses'),'code':z['string']()['optional']()['describe']('Error\x20code\x20for\x20programmatic\x20handling'),'message':z['string']()['describe']('Human-readable\x20error\x20message'),'details':z['record'](z['string'](),z['string']())['optional']()['describe']('Additional\x20error\x20context')})['describe']('Error\x20response\x20structure');export const createResultSchema=a=>z['union']([z['object']({'success':z['literal'](!![]),'data':a}),ErrorResultSchema]);export const CoinBalanceSchema=z['object']({'coinType':z['string']()['describe']('Coin\x20type'),'coinObjectCount':z['number']()['describe']('Coin\x20object\x20count'),'totalBalance':z['string']()['describe']('Total\x20balance'),'lockedBalance':z['record'](z['string'](),z['string']())['describe']('Locked\x20balance')})['describe']('Coin\x20balance');export const CoinStructSchema=z['object']({'balance':z['string']()['describe']('Coin\x20balance'),'coinObjectId':z['string']()['describe']('Coin\x20object\x20ID'),'coinType':z['string']()['describe']('Coin\x20type'),'digest':z['string']()['describe']('Transaction\x20digest'),'previousTransaction':z['string']()['describe']('Previous\x20transaction\x20digest'),'version':z['union']([z['string'](),z['number']()])['describe']('Coin\x20object\x20version')})['describe']('Coin\x20object');export const PaginatedCoinsSchema=z['object']({'data':z['array'](CoinStructSchema)['describe']('Coin\x20object\x20list'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Next\x20query\x20cursor')})['describe']('Paginated\x20coin\x20objects');export const FaucetCoinInfoSchema=z['object']({'amount':z['number']()['describe']('Coin\x20amount'),'id':z['string']()['describe']('Coin\x20ID'),'transferTxDigest':z['string']()['describe']('Transfer\x20transaction\x20digest')})['describe']('Testnet\x20faucet\x20coin\x20info');export const EventIdSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20ID');export const WowEventSchema=z['discriminatedUnion']('bcsEncoding',[z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['unknown']())['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20address'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base64')['describe']('BCS\x20encoding\x20format')}),z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['unknown']())['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20ID'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base58')['describe']('BCS\x20encoding\x20format')})])['describe']('Blockchain\x20event');export const BalanceChangeSchema=z['object']({'amount':z['string']()['describe']('Balance\x20change\x20value,\x20negative\x20for\x20spending,\x20positive\x20for\x20receiving'),'coinType':z['string']()['describe']('Coin\x20type'),'owner':ObjectOwnerSchema['describe']('Owner\x20of\x20the\x20balance\x20change')})['describe']('Balance\x20change');export const GasCostSummarySchema=z['object']({'computationCost':z['string']()['describe']('Computation/execution\x20cost'),'nonRefundableStorageFee':z['string']()['describe']('Non-refundable\x20storage\x20fee'),'storageCost':z['string']()['describe']('Storage\x20cost'),'storageRebate':z['string']()['describe']('Storage\x20rebate')})['describe']('Transaction\x20fee\x20summary');export const WowObjectRefSchema=z['object']({'digest':z['string']()['describe']('Base64\x20string\x20of\x20object\x20digest'),'objectId':z['string']()['describe']('Hex\x20code\x20string\x20representing\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Object\x20version')})['describe']('Wow\x20object\x20reference');export const OwnedObjectRefSchema=z['object']({'owner':ObjectOwnerSchema['describe']('Owner'),'reference':WowObjectRefSchema['describe']('Object\x20reference')})['describe']('Owned\x20object\x20reference');export const TransactionBlockEffectsModifiedAtVersionsSchema=z['object']({'objectId':z['string']()['describe']('Object\x20ID'),'sequenceNumber':z['union']([z['string'](),z['number']()])['describe']('Sequence\x20number')})['describe']('Transaction\x20block\x20effects\x20modified\x20versions');export const WowMoveAbortSchema=z['object']({'error_code':z['union']([z['string'](),z['null']()])['optional']()['describe']('Error\x20code'),'function':z['union']([z['string'](),z['null']()])['optional']()['describe']('Function'),'line':z['union']([z['number'](),z['null']()])['optional']()['describe']('Line\x20number'),'module_id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Module\x20ID')})['describe']('Wow\x20Move\x20abort');export const ExecutionStatusSchema=z['object']({'status':z['union']([z['literal']('success'),z['literal']('failure')])['describe']('Execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message')})['describe']('Execution\x20status');export const WowGasDataSchema=z['object']({'budget':z['string']()['describe']('Budget'),'owner':z['string']()['describe']('Owner'),'payment':z['array'](WowObjectRefSchema)['describe']('Payment'),'price':z['string']()['describe']('Price')})['describe']('Wow\x20gas\x20data');export const WowTransactionBlockKindSchema=z['object']({'kind':z['string']()['describe']('Transaction\x20type')})['passthrough']()['describe']('Wow\x20transaction\x20block\x20kind');export const TransactionBlockDataSchema=z['object']({'gasData':WowGasDataSchema['describe']('Gas\x20data'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'sender':z['string']()['describe']('Sender'),'transaction':WowTransactionBlockKindSchema['describe']('Transaction')})['describe']('Transaction\x20block\x20data');export const WowTransactionBlockSchema=z['object']({'data':TransactionBlockDataSchema['describe']('Transaction\x20data'),'txSignatures':z['array'](z['string']())['describe']('Transaction\x20signatures')})['describe']('Wow\x20transaction\x20block');export const WowObjectChangeSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('published'),'digest':z['string']()['describe']('Digest'),'modules':z['array'](z['string']())['describe']('Modules'),'packageId':z['string']()['describe']('Package\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('transferred'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'recipient':ObjectOwnerSchema['describe']('Recipient'),'sender':z['string']()['describe']('Sender\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('mutated'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'previousVersion':z['union']([z['string'](),z['number']()])['describe']('Previous\x20version'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('deleted'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('wrapped'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('created'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')})])['describe']('Object\x20change\x20information');export const TransactionEffectsSchema=z['object']({'abortError':z['union']([WowMoveAbortSchema,z['null']()])['optional']()['describe']('Abort\x20error\x20if\x20transaction\x20failed\x20with\x20abort\x20code'),'created':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20newly\x20created\x20objects'),'deleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20(old\x20refs)\x20of\x20now\x20deleted\x20objects'),'dependencies':z['array'](z['string']())['optional']()['describe']('Set\x20of\x20transaction\x20digests\x20this\x20transaction\x20depends\x20on'),'eventsDigest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20events\x20emitted\x20during\x20execution'),'executedEpoch':z['union']([z['string'](),z['number']()])['describe']('Epoch\x20in\x20which\x20this\x20transaction\x20was\x20executed'),'gasObject':OwnedObjectRefSchema['describe']('Updated\x20gas\x20object\x20reference'),'gasUsed':GasCostSummarySchema['describe']('Gas\x20used'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'modifiedAtVersions':z['array'](TransactionBlockEffectsModifiedAtVersionsSchema)['optional']()['describe']('Version\x20of\x20each\x20modified\x20(mutated\x20or\x20deleted)\x20object\x20before\x20this\x20transaction\x20modified\x20it'),'mutated':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20mutated\x20objects,\x20including\x20gas\x20object'),'sharedObjects':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20shared\x20objects\x20used\x20in\x20this\x20transaction'),'status':ExecutionStatusSchema['describe']('Execution\x20status'),'transactionDigest':z['string']()['describe']('Transaction\x20digest'),'unwrapped':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20objects\x20unwrapped\x20in\x20this\x20transaction'),'unwrappedThenDeleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20previously\x20wrapped\x20in\x20other\x20objects\x20but\x20now\x20deleted'),'wrapped':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20now\x20wrapped\x20in\x20other\x20objects')})['describe']('Transaction\x20effects');export const WowTransactionBlockResponseSchema=z['object']({'balanceChanges':z['union']([z['array'](BalanceChangeSchema),z['null']()])['optional']()['describe']('Balance\x20changes'),'checkpoint':z['union']([z['string'](),z['null']()])['optional']()['describe']('Checkpoint\x20number\x20that\x20this\x20transaction\x20is\x20included\x20in\x20and\x20thus\x20completed'),'confirmedLocalExecution':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Confirmed\x20local\x20execution'),'digest':z['string']()['describe']('Transaction\x20digest'),'effects':z['union']([TransactionEffectsSchema,z['null']()])['optional']()['describe']('Transaction\x20effects'),'errors':z['array'](z['string']())['optional']()['describe']('Error\x20messages'),'events':z['union']([z['array'](WowEventSchema),z['null']()])['optional']()['describe']('Events'),'objectChanges':z['union']([z['array'](WowObjectChangeSchema),z['null']()])['optional']()['describe']('Object\x20changes'),'rawEffects':z['array'](z['number']())['optional']()['describe']('Raw\x20effects'),'rawTransaction':z['string']()['optional']()['describe']('Raw\x20transaction'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('Timestamp'),'transaction':z['union']([WowTransactionBlockSchema,z['null']()])['optional']()['describe']('Transaction\x20input\x20data')})['describe']('Wow\x20transaction\x20block\x20response');export const MarkParamSchema=z['object']({'name':z['object']({'value':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Mark\x20name\x20value\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'replaceExistName':z['boolean']()['optional']()['default'](![])['describe']('If\x20true,\x20replace\x20existing\x20mark\x20with\x20same\x20name;\x20if\x20false\x20(default),\x20throw\x20error\x20when\x20name\x20exists')})['optional']()['describe']('Mark\x20naming\x20configuration.\x20MUST\x20be\x20an\x20object\x20{value:\x20string,\x20replaceExistName?:\x20boolean},\x20NOT\x20a\x20plain\x20string.\x20Example:\x20{name:\x20{value:\x20\x27my-account\x27,\x20replaceExistName:\x20true}}'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20ONLY:\x20Parameters\x20for\x20creating\x20or\x20updating\x20a\x20LOCAL\x20mark.\x20This\x20data\x20is\x20stored\x20privately\x20on\x20your\x20device\x20and\x20will\x20NEVER\x20be\x20published\x20to\x20the\x20blockchain.\x20'+'For\x20public\x20on-chain\x20marks,\x20use\x20the\x20\x27personal\x27\x20tool\x20instead.\x20'+'IMPORTANT:\x20\x27name\x27\x20field\x20is\x20an\x20OBJECT\x20{value,\x20replaceExistName?},\x20not\x20a\x20string.\x20'+'FIX-011\x20cross-network\x20consistency:\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network.\x20'+'When\x20creating\x20marks\x20for\x20the\x20same\x20logical\x20object\x20on\x20different\x20networks\x20(e.g.\x20testnet\x20and\x20mainnet),\x20'+'use\x20the\x20SAME\x20name\x20value\x20to\x20keep\x20name-based\x20references\x20portable.\x20'+'Before\x20creating\x20a\x20mark\x20on\x20mainnet,\x20check\x20if\x20a\x20mark\x20with\x20the\x20same\x20name\x20already\x20exists\x20on\x20testnet\x20'+'(via\x20query_local\x20with\x20network=\x27testnet\x27)\x20and\x20replicate\x20the\x20same\x20name\x20on\x20mainnet\x20for\x20consistency.');export const MarkDataSchema=z['object']({'name':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['optional']()['describe']('Mark\x20name\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20last\x20modified')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20mark\x20data\x20structure\x20for\x20storing\x20address\x20names\x20and\x20tags\x20privately\x20on\x20your\x20device.\x20This\x20data\x20is\x20NEVER\x20published\x20to\x20the\x20blockchain.\x20CROSS-NETWORK\x20ISOLATION\x20(DOC-02):\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network\x20—\x20the\x20same\x20name\x20\x27my-service\x27\x20can\x20map\x20to\x20different\x20addresses\x20on\x20testnet\x20vs\x20mainnet.\x20When\x20switching\x20networks\x20(e.g.,\x20testnet→mainnet\x20deployment),\x20re-create\x20marks\x20with\x20the\x20same\x20names\x20pointing\x20to\x20the\x20new\x20mainnet\x20addresses.\x20This\x20enables\x20name-based\x20object\x20references\x20that\x20work\x20identically\x20across\x20networks\x20without\x20code\x20changes.');export const InfoDataInnerSchema=z['object']({'default':z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Default\x20value\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters')['describe']('Primary/default\x20value\x20for\x20this\x20info\x20(max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'contents':z['array'](z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Content\x20item\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters'))['max'](LocalInfoConstraints['contentMaxCount'],'Content\x20count\x20exceeds\x20maximum\x20of\x20'+LocalInfoConstraints['contentMaxCount'])['optional']()['describe']('Additional\x20content\x20values\x20(max\x20'+LocalInfoConstraints['contentMaxCount']+'\x20items,\x20each\x20max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20last\x20modified')})['describe']('Info\x20data\x20inner\x20structure');export const InfoDataSchema=InfoDataInnerSchema['extend']({'name':z['string']()['max'](LocalInfoConstraints['nameMaxLength'],'Info\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Unique\x20identifier\x20for\x20this\x20info\x20entry\x20(max\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20info\x20data\x20structure\x20for\x20storing\x20sensitive\x20personal\x20information\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20etc.\x20This\x20data\x20is\x20stored\x20ONLY\x20on\x20your\x20device\x20and\x20NEVER\x20published\x20to\x20the\x20blockchain.');export const LocalMarkFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20mark\x20name\x20(supports\x20fuzzy\x20match)'),'tags':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20tags\x20-\x20returns\x20marks\x20that\x20contain\x20ANY\x20of\x20the\x20specified\x20tags'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20address\x20(exact\x20match,\x20format:\x200x\x20+\x2064\x20hex\x20characters)'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20marks.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const LocalInfoFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20info\x20name\x20(supports\x20fuzzy\x20match)'),'default':z['string']()['optional']()['describe']('Filter\x20by\x20default\x20value\x20(supports\x20fuzzy\x20match)'),'contents':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20contents\x20-\x20returns\x20info\x20that\x20contains\x20ANY\x20of\x20the\x20specified\x20content\x20items'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20info.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryLocalInfoListSchema=z['object']({'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['describe']('Query\x20local\x20info\x20list\x20parameters');export const QueryAccountSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Whether\x20to\x20query\x20coin\x20balance\x20amount'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Query\x20cursor\x20for\x20pagination'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20objects\x20to\x20return')})['optional']()['describe']('Whether\x20to\x20query\x20coin\x20object\x20list'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['describe']('Used\x20to\x20query\x20account\x27s\x20coin\x20balance');export const QueryAccountResultSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID'),'address':z['string']()['optional']()['describe']('Account\x20ID'),'balance':CoinBalanceSchema['optional']()['describe']('Coin\x20balance\x20details'),'coin':PaginatedCoinsSchema['optional']()['describe']('Paginated\x20coin\x20object\x20list')})['describe']('Result\x20of\x20querying\x20account\x27s\x20coin\x20balance');export const AccountOperationSchema=z['object']({'gen':z['object']({'name':NameSchema['optional']()['describe']('Account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Use\x20empty\x20string\x20\x27\x27\x20or\x20omit\x20for\x20the\x20default\x20account.\x20'+'Recommended\x20convention:\x20<role>-<number>\x20(e.g.\x20shop-001,\x20user-001,\x20arb-001)\x20for\x20easy\x20filtering\x20and\x20batch\x20operations.'),'replaceExistName':z['boolean']()['optional']()['describe']('DISCOURAGED.\x20If\x20true,\x20an\x20existing\x20account\x20with\x20the\x20same\x20name\x20will\x20be\x20SUSPENDED\x20(not\x20just\x20renamed)\x20to\x20free\x20the\x20name\x20for\x20the\x20new\x20account.\x20'+'The\x20old\x20account\x20moves\x20to\x20the\x20Suspended\x20tab\x20and\x20cannot\x20sign\x20transactions\x20until\x20resumed\x20with\x20a\x20new\x20name.\x20'+'FORBIDDEN\x20on\x20the\x20default\x20account\x20(name=\x27\x27\x20or\x20omitted)\x20—\x20the\x20default\x20account\x20is\x20unique\x20and\x20cannot\x20be\x20replaced;\x20use\x20suspend()\x20explicitly\x20instead.\x20'+'Prefer\x20versioned\x20names\x20(e.g.\x20\x27shop_v2\x27)\x20over\x20replaceExistName\x20for\x20production.\x20Default:\x20false\x20(throws\x20AccountNameExist\x20on\x20collision).'),'messenger':z['boolean']()['optional']()['describe']('Enable\x20messenger\x20for\x20this\x20account.\x20true=enable,\x20false=disable,\x20omit=unchanged.\x20'+'Account\x20name\x20is\x20used\x20for\x20messenger\x20identity\x20lookup\x20(no\x20separate\x20messenger\x20name).')})['optional']()['describe']('Generate\x20new\x20account'),'faucet':z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;b['name']!==undefined&&b['name_or_address']===undefined&&(b['name_or_address']=b['name'],delete b['name']);}return a;},z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'network':FaucetNetworkSchema})['strict']())['optional']()['describe']('Distribute\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.')})['optional']()['describe']('Remove\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions),\x20and\x20delete\x20its\x20name'),'resume':z['object']({'address':WowAddressSchema,'name':NameSchema['optional']()['describe']('New\x20name\x20for\x20the\x20resumed\x20account.\x20Omit\x20to\x20leave\x20unnamed.')})['optional']()['describe']('Add\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.\x20Can\x20be\x20a\x20name\x20or\x20address.'),'new_name':NameSchema['describe']('New\x20account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Must\x20be\x20a\x20name\x20(not\x20an\x20address).')})['optional']()['describe']('Rename\x20account.\x20name_or_address\x20can\x20be\x20name\x20or\x20address,\x20new_name\x20must\x20be\x20a\x20name.'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.')})['optional']()['describe']('Swap\x20the\x20names\x20of\x20two\x20accounts'),'transfer':z['object']({'name_or_address_from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name_or_address_to':NameOrAddressSchema['optional']()['describe']('Recipient\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'amount':z['union']([z['number'](),z['string']()])['describe']('Amount\x20of\x20tokens\x20to\x20transfer'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Transfer\x20tokens\x20from\x20one\x20account\x20to\x20another'),'get':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20balance\x20amount'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Generate\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount\x20and\x20return'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'data':z['string']()['describe']('Data\x20to\x20sign.\x20If\x20data_encoding\x20is\x20not\x20specified,\x20treated\x20as\x20UTF-8\x20string.'),'data_encoding':z['union']([z['literal']('utf8')['describe']('Data\x20is\x20UTF-8\x20encoded\x20string'),z['literal']('base64')['describe']('Data\x20is\x20base64\x20encoded\x20bytes'),z['literal']('hex')['describe']('Data\x20is\x20hex\x20encoded\x20bytes\x20(with\x20or\x20without\x200x\x20prefix)')])['optional']()['describe']('Encoding\x20format\x20of\x20the\x20data\x20field.\x20If\x20not\x20specified,\x20defaults\x20to\x20utf8.')})['optional']()['describe']('Sign\x20data\x20with\x20account\x27s\x20private\x20key'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'enabled':z['boolean']()['describe']('true\x20to\x20enable\x20messenger,\x20false\x20to\x20disable')})['optional']()['describe']('Enable\x20or\x20disable\x20messenger\x20for\x20an\x20account')})['strict']()['refine'](a=>Object['keys'](a)['length']>0x0,'At\x20least\x20one\x20operation\x20(gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger)\x20must\x20be\x20specified')['describe']('Account\x20operations\x20(mutations\x20only:\x20gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger).\x20'+'Parameters\x20MUST\x20be\x20wrapped\x20in\x20the\x20operation\x20type\x20property\x20(e.g.\x20{transfer:\x20{...}},\x20NOT\x20{amount:\x20...}).\x20Unwrapped\x20parameters\x20are\x20rejected.\x20'+'TO\x20LIST\x20ALL\x20ACCOUNTS:\x20use\x20the\x20query_toolkit\x20tool\x20with\x20query_type=\x27account_list\x27\x20(returns\x20name,\x20address,\x20suspended\x20status,\x20messenger\x20status\x20for\x20all\x20local\x20accounts).\x20'+'This\x20separation\x20follows\x20CQRS:\x20account_operation\x20=\x20mutations,\x20query_toolkit\x20=\x20queries.\x20'+'Common\x20workflow\x20after\x20MCP\x20restart:\x20(1)\x20query_toolkit\x20query_type=\x27account_list\x27\x20to\x20see\x20all\x20accounts,\x20(2)\x20account_operation\x20with\x20the\x20appropriate\x20mutation.');export const AccountOperationResultSchema=z['object']({'gen':z['object']({'address':z['string']()['describe']('Newly\x20generated\x20account\x20ID'),'name':NameSchema['optional']()['describe']('Account\x20name'),'messenger':z['boolean']()['optional']()['describe']('Messenger\x20enabled\x20flag')})['optional']()['describe']('Result\x20of\x20generating\x20new\x20account'),'faucet':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20received\x20faucet\x20coins'),'result':z['array'](FaucetCoinInfoSchema)['describe']('List\x20of\x20distributed\x20test\x20coin\x20info'),'network':FaucetNetworkSchema})['optional']()['describe']('Result\x20of\x20distributing\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20was\x20suspended'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20suspended,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20removing\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions)'),'resume':z['object']({'address':WowAddressSchema['describe']('Account\x20ID\x20that\x20was\x20resumed'),'name':NameSchema['optional']()['describe']('New\x20name\x20assigned\x20to\x20the\x20account'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20resumed,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20adding\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address\x20that\x20was\x20renamed'),'new_name':NameSchema['describe']('New\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20rename\x20was\x20successful,\x20false\x20if\x20account\x20not\x20found\x20or\x20name\x20already\x20exists')})['optional']()['describe']('Result\x20of\x20renaming\x20account'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20swap\x20was\x20successful,\x20false\x20if\x20either\x20account\x20not\x20found')})['optional']()['describe']('Result\x20of\x20swapping\x20account\x20names'),'transfer':WowTransactionBlockResponseSchema['optional']()['describe']('Result\x20of\x20token\x20transfer\x20transaction'),'get':z['object']({'coin_address':z['string']()['optional']()['describe']('Newly\x20generated\x20coin\x20object\x20ID'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20coin\x20object\x20balance'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Result\x20of\x20generating\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20used\x20for\x20signing'),'signature':z['string']()['describe']('Signature\x20in\x20hex\x20format'),'publicKey':z['string']()['describe']('Public\x20key\x20in\x20hex\x20format'),'address':z['string']()['describe']('Account\x20address')})['optional']()['describe']('Result\x20of\x20signing\x20data\x20with\x20account'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'enabled':z['boolean']()['describe']('Messenger\x20enabled\x20flag')})['optional']()['describe']('Result\x20of\x20enabling\x20or\x20disabling\x20messenger\x20for\x20an\x20account')})['describe']('Results\x20of\x20account\x20operations');export const LocalMarkOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20marks'),'data':z['array'](MarkParamSchema)['min'](0x1)['describe']('Array\x20of\x20mark\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Add\x20one\x20or\x20more\x20marks'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20marks'),'names':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20mark\x20names\x20or\x20addresses\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20marks\x20by\x20name\x20or\x20address'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20marks')})['strict']()['optional']()['describe']('Remove\x20all\x20marks')})['strict']()['refine'](a=>a['add']!==undefined||a['remove']!==undefined||a['clear']!==undefined,{'message':'Exactly\x20one\x20operation\x20field\x20(add/remove/clear)\x20must\x20be\x20specified.\x20'+'CORRECT\x20format:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20or\x20{remove:\x20{op:\x27remove\x27,\x20names:[...]}}\x20or\x20{clear:\x20{op:\x27clear\x27}}.\x20'+'INCORRECT\x20flat\x20format\x20{op:\x27add\x27,\x20data:[...]}\x20will\x20silently\x20do\x20nothing.'})['describe']('Local\x20mark\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/clear)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}.');export const LocalMarkOperationResultSchema=z['object']({'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20marks\x20were\x20successfully\x20removed'),'add':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20added\x20mark\x20data'),'remove':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20removed\x20mark\x20data')})['describe']('Results\x20of\x20local\x20mark\x20operations\x20for\x20ID');export const LocalInfoOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20info'),'data':z['array'](InfoDataSchema)['min'](0x1)['describe']('Array\x20of\x20info\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Add\x20one\x20or\x20more\x20info\x20entries'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20info'),'data':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20info\x20names\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20info\x20entries\x20by\x20name'),'reset':z['object']({'op':z['literal']('reset')['describe']('Operation\x20type:\x20reset\x20contents'),'name':z['string']()['describe']('Name\x20of\x20info\x20entry\x20to\x20reset'),'contents':z['array'](z['string']())['describe']('New\x20content\x20list\x20to\x20replace\x20existing\x20contents')})['strict']()['optional']()['describe']('Reset\x20the\x20contents\x20of\x20an\x20existing\x20info\x20entry'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20info')})['strict']()['optional']()['describe']('Remove\x20all\x20info\x20entries')})['strict']()['refine'](a=>a['add']!==undefined||a['remove']!==undefined||a['reset']!==undefined||a['clear']!==undefined,{'message':'Exactly\x20one\x20operation\x20field\x20(add/remove/reset/clear)\x20must\x20be\x20specified.\x20'+'CORRECT\x20format:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20or\x20{remove:\x20{op:\x27remove\x27,\x20data:[...]}}\x20etc.\x20'+'INCORRECT\x20flat\x20format\x20{op:\x27add\x27,\x20data:[...]}\x20will\x20silently\x20do\x20nothing.'})['describe']('Local\x20info\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/reset/clear)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}.');export const LocalInfoOperationResultSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20successful')})['describe']('Results\x20of\x20local\x20info\x20operations');export const FetchTokenInfoOperationSchema=z['object']({'tokenType':z['union']([TokenTypeSchema,z['null']()])['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'alias':NameSchema['optional']()['describe']('Token\x20alias;\x20used\x20to\x20quickly\x20fetch\x20token\x20info'),'network':EntrypointSchema['optional']()})['describe']('Fetch\x20token\x20info\x20to\x20local\x20and\x20name\x20it');export const QueryLocalMarkListSchema=z['object']({'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['describe']('Query\x20local\x20mark\x20list\x20parameters');export const QueryLocalMarkListResultSchema=z['object']({'result':z['array'](MarkDataSchema)['describe']('Local\x20mark\x20list')})['describe']('Query\x20local\x20mark\x20list\x20result');export const AccountFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20account\x20name\x20(supports\x20fuzzy\x20match)'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20account\x20address\x20(supports\x20partial\x20match,\x20format:\x200x\x20+\x20hex\x20characters)'),'suspended':z['boolean']()['optional']()['describe']('Filter\x20by\x20suspension\x20status.\x20Omit\x20to\x20return\x20all\x20accounts\x20regardless\x20of\x20status'),'hasMessenger':z['boolean']()['optional']()['describe']('Filter\x20accounts\x20with\x20messenger\x20enabled'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range'),'includePubkey':z['boolean']()['optional']()['describe']('Include\x20pubkey\x20in\x20results\x20(default:\x20false).\x20Pubkey\x20is\x20large\x20(~900\x20bytes),\x20omit\x20unless\x20needed')})['describe']('Filter\x20criteria\x20for\x20querying\x20accounts.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryAccountListSchema=z['object']({'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['describe']('Query\x20account\x20list\x20parameters');export const AccountDataSchema=z['object']({'name':z['string']()['optional']()['describe']('Account\x20name'),'address':z['string']()['describe']('Account\x20address'),'pubkey':z['string']()['optional']()['describe']('Account\x20public\x20key'),'secret':z['string']()['optional']()['describe']('Account\x20secret\x20key'),'suspended':z['boolean']()['optional']()['describe']('Whether\x20account\x20is\x20suspended'),'createdAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20last\x20updated'),'messenger':z['boolean']()['optional']()['describe']('Whether\x20messenger\x20is\x20enabled\x20for\x20this\x20account'),'suspendedName':z['string']()['optional']()['describe']('Name\x20before\x20suspension\x20(set\x20by\x20suspend,\x20cleared\x20by\x20resume)')})['describe']('Account\x20data');export const QueryAccountListResultSchema=z['object']({'result':z['array'](AccountDataSchema)['describe']('Account\x20list')})['describe']('Query\x20account\x20list\x20result');export const QueryLocalInfoListResultSchema=z['object']({'result':z['array'](InfoDataSchema)['describe']('Local\x20info\x20list')})['describe']('Query\x20local\x20info\x20list\x20result');export const TokenTypeInfoSchema=z['object']({'type':z['string']()['describe']('Token\x20type'),'alias':z['string']()['optional']()['describe']('Token\x20alias'),'name':z['string']()['describe']('Token\x20name'),'symbol':z['string']()['describe']('Token\x20symbol'),'decimals':z['number']()['describe']('Number\x20of\x20decimal\x20places'),'description':z['string']()['describe']('Description\x20of\x20the\x20token'),'iconUrl':z['union']([z['string'](),z['null']()])['optional']()['describe']('URL\x20for\x20the\x20token\x20logo'),'id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Object\x20id\x20for\x20the\x20CoinMetadata\x20object')})['describe']('Token\x20type\x20info');export const TokenDataFilterSchema=z['object']({'alias_or_name':NameSchema['optional']()['describe']('Alias\x20or\x20name\x20filter'),'symbol':z['string']()['optional']()['describe']('Token\x20symbol'),'type':z['string']()['optional']()['describe']('Token\x20type')})['describe']('Token\x20data\x20filter');export const QueryLocalTokenListResultSchema=z['object']({'result':z['array'](TokenTypeInfoSchema)['describe']('Local\x20token\x20list')})['describe']('Query\x20local\x20token\x20list\x20result');export const AccountOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':AccountOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Account\x20operation\x20output\x20schema\x20with\x20discriminator');export const AccountOperationOutputWrappedSchema=z['object']({'result':AccountOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20account\x20operation')})['describe']('Account\x20operation\x20output\x20wrapped\x20schema');export const LocalMarkOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalMarkOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20mark\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalMarkOperationOutputWrappedSchema=z['object']({'result':LocalMarkOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20mark\x20operation')})['describe']('Local\x20mark\x20operation\x20output\x20wrapped\x20schema');export const LocalInfoOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalInfoOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20info\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalInfoOperationOutputWrappedSchema=z['object']({'result':LocalInfoOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20info\x20operation')})['describe']('Local\x20info\x20operation\x20output\x20wrapped\x20schema');export*from'./wip.js';
|
|
1
|
+
import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';import{SemanticSummarySchema as a327a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a327a),LocalOperationErrorFields={'error_code':z['enum'](['invalid_parameter','guard_rejected','state_conflict','insufficient_balance','object_not_found','permission_denied','immutable_violation','network_error','rate_limit','gas_exceeded','bcs_error','signature_error','config_error','wip_verification_failed','unknown'])['optional']()['describe']('Error\x20classification\x20for\x20programmatic\x20recovery'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20can\x20be\x20retried\x20as-is'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20suggestion\x20for\x20AI\x20or\x20user')};export const LocalMarkConstraints={'nameMaxLength':0x40,'tagMaxLength':0x40,'tagMaxCount':0x32};export const LocalInfoConstraints={'nameMaxLength':0x40,'contentMaxLength':0x12c,'contentMaxCount':0x32,'defaultName':'Address\x20of\x20delivery'};export const AccountConstraints={'nameMaxLength':0x40};export const ErrorResultSchema=z['object']({'error':z['literal'](!![])['describe']('Always\x20true\x20for\x20error\x20responses'),'code':z['string']()['optional']()['describe']('Error\x20code\x20for\x20programmatic\x20handling'),'message':z['string']()['describe']('Human-readable\x20error\x20message'),'details':z['record'](z['string'](),z['string']())['optional']()['describe']('Additional\x20error\x20context')})['describe']('Error\x20response\x20structure');export const createResultSchema=a=>z['union']([z['object']({'success':z['literal'](!![]),'data':a}),ErrorResultSchema]);export const CoinBalanceSchema=z['object']({'coinType':z['string']()['describe']('Coin\x20type'),'coinObjectCount':z['number']()['describe']('Coin\x20object\x20count'),'totalBalance':z['string']()['describe']('Total\x20balance'),'lockedBalance':z['record'](z['string'](),z['string']())['describe']('Locked\x20balance')})['describe']('Coin\x20balance');export const CoinStructSchema=z['object']({'balance':z['string']()['describe']('Coin\x20balance'),'coinObjectId':z['string']()['describe']('Coin\x20object\x20ID'),'coinType':z['string']()['describe']('Coin\x20type'),'digest':z['string']()['describe']('Transaction\x20digest'),'previousTransaction':z['string']()['describe']('Previous\x20transaction\x20digest'),'version':z['union']([z['string'](),z['number']()])['describe']('Coin\x20object\x20version')})['describe']('Coin\x20object');export const PaginatedCoinsSchema=z['object']({'data':z['array'](CoinStructSchema)['describe']('Coin\x20object\x20list'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Next\x20query\x20cursor')})['describe']('Paginated\x20coin\x20objects');export const FaucetCoinInfoSchema=z['object']({'amount':z['number']()['describe']('Coin\x20amount'),'id':z['string']()['describe']('Coin\x20ID'),'transferTxDigest':z['string']()['describe']('Transfer\x20transaction\x20digest')})['describe']('Testnet\x20faucet\x20coin\x20info');export const EventIdSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20ID');export const WowEventSchema=z['discriminatedUnion']('bcsEncoding',[z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['unknown']())['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20address'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base64')['describe']('BCS\x20encoding\x20format')}),z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['unknown']())['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20ID'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base58')['describe']('BCS\x20encoding\x20format')})])['describe']('Blockchain\x20event');export const BalanceChangeSchema=z['object']({'amount':z['string']()['describe']('Balance\x20change\x20value,\x20negative\x20for\x20spending,\x20positive\x20for\x20receiving'),'coinType':z['string']()['describe']('Coin\x20type'),'owner':ObjectOwnerSchema['describe']('Owner\x20of\x20the\x20balance\x20change')})['describe']('Balance\x20change');export const GasCostSummarySchema=z['object']({'computationCost':z['string']()['describe']('Computation/execution\x20cost'),'nonRefundableStorageFee':z['string']()['describe']('Non-refundable\x20storage\x20fee'),'storageCost':z['string']()['describe']('Storage\x20cost'),'storageRebate':z['string']()['describe']('Storage\x20rebate')})['describe']('Transaction\x20fee\x20summary');export const WowObjectRefSchema=z['object']({'digest':z['string']()['describe']('Base64\x20string\x20of\x20object\x20digest'),'objectId':z['string']()['describe']('Hex\x20code\x20string\x20representing\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Object\x20version')})['describe']('Wow\x20object\x20reference');export const OwnedObjectRefSchema=z['object']({'owner':ObjectOwnerSchema['describe']('Owner'),'reference':WowObjectRefSchema['describe']('Object\x20reference')})['describe']('Owned\x20object\x20reference');export const TransactionBlockEffectsModifiedAtVersionsSchema=z['object']({'objectId':z['string']()['describe']('Object\x20ID'),'sequenceNumber':z['union']([z['string'](),z['number']()])['describe']('Sequence\x20number')})['describe']('Transaction\x20block\x20effects\x20modified\x20versions');export const WowMoveAbortSchema=z['object']({'error_code':z['union']([z['string'](),z['null']()])['optional']()['describe']('Error\x20code'),'function':z['union']([z['string'](),z['null']()])['optional']()['describe']('Function'),'line':z['union']([z['number'](),z['null']()])['optional']()['describe']('Line\x20number'),'module_id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Module\x20ID')})['describe']('Wow\x20Move\x20abort');export const ExecutionStatusSchema=z['object']({'status':z['union']([z['literal']('success'),z['literal']('failure')])['describe']('Execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message')})['describe']('Execution\x20status');export const WowGasDataSchema=z['object']({'budget':z['string']()['describe']('Budget'),'owner':z['string']()['describe']('Owner'),'payment':z['array'](WowObjectRefSchema)['describe']('Payment'),'price':z['string']()['describe']('Price')})['describe']('Wow\x20gas\x20data');export const WowTransactionBlockKindSchema=z['object']({'kind':z['string']()['describe']('Transaction\x20type')})['passthrough']()['describe']('Wow\x20transaction\x20block\x20kind');export const TransactionBlockDataSchema=z['object']({'gasData':WowGasDataSchema['describe']('Gas\x20data'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'sender':z['string']()['describe']('Sender'),'transaction':WowTransactionBlockKindSchema['describe']('Transaction')})['describe']('Transaction\x20block\x20data');export const WowTransactionBlockSchema=z['object']({'data':TransactionBlockDataSchema['describe']('Transaction\x20data'),'txSignatures':z['array'](z['string']())['describe']('Transaction\x20signatures')})['describe']('Wow\x20transaction\x20block');export const WowObjectChangeSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('published'),'digest':z['string']()['describe']('Digest'),'modules':z['array'](z['string']())['describe']('Modules'),'packageId':z['string']()['describe']('Package\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('transferred'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'recipient':ObjectOwnerSchema['describe']('Recipient'),'sender':z['string']()['describe']('Sender\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('mutated'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'previousVersion':z['union']([z['string'](),z['number']()])['describe']('Previous\x20version'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('deleted'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('wrapped'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('created'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')})])['describe']('Object\x20change\x20information');export const TransactionEffectsSchema=z['object']({'abortError':z['union']([WowMoveAbortSchema,z['null']()])['optional']()['describe']('Abort\x20error\x20if\x20transaction\x20failed\x20with\x20abort\x20code'),'created':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20newly\x20created\x20objects'),'deleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20(old\x20refs)\x20of\x20now\x20deleted\x20objects'),'dependencies':z['array'](z['string']())['optional']()['describe']('Set\x20of\x20transaction\x20digests\x20this\x20transaction\x20depends\x20on'),'eventsDigest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20events\x20emitted\x20during\x20execution'),'executedEpoch':z['union']([z['string'](),z['number']()])['describe']('Epoch\x20in\x20which\x20this\x20transaction\x20was\x20executed'),'gasObject':OwnedObjectRefSchema['describe']('Updated\x20gas\x20object\x20reference'),'gasUsed':GasCostSummarySchema['describe']('Gas\x20used'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'modifiedAtVersions':z['array'](TransactionBlockEffectsModifiedAtVersionsSchema)['optional']()['describe']('Version\x20of\x20each\x20modified\x20(mutated\x20or\x20deleted)\x20object\x20before\x20this\x20transaction\x20modified\x20it'),'mutated':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20mutated\x20objects,\x20including\x20gas\x20object'),'sharedObjects':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20shared\x20objects\x20used\x20in\x20this\x20transaction'),'status':ExecutionStatusSchema['describe']('Execution\x20status'),'transactionDigest':z['string']()['describe']('Transaction\x20digest'),'unwrapped':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20objects\x20unwrapped\x20in\x20this\x20transaction'),'unwrappedThenDeleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20previously\x20wrapped\x20in\x20other\x20objects\x20but\x20now\x20deleted'),'wrapped':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20now\x20wrapped\x20in\x20other\x20objects')})['describe']('Transaction\x20effects');export const WowTransactionBlockResponseSchema=z['object']({'balanceChanges':z['union']([z['array'](BalanceChangeSchema),z['null']()])['optional']()['describe']('Balance\x20changes'),'checkpoint':z['union']([z['string'](),z['null']()])['optional']()['describe']('Checkpoint\x20number\x20that\x20this\x20transaction\x20is\x20included\x20in\x20and\x20thus\x20completed'),'confirmedLocalExecution':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Confirmed\x20local\x20execution'),'digest':z['string']()['describe']('Transaction\x20digest'),'effects':z['union']([TransactionEffectsSchema,z['null']()])['optional']()['describe']('Transaction\x20effects'),'errors':z['array'](z['string']())['optional']()['describe']('Error\x20messages'),'events':z['union']([z['array'](WowEventSchema),z['null']()])['optional']()['describe']('Events'),'objectChanges':z['union']([z['array'](WowObjectChangeSchema),z['null']()])['optional']()['describe']('Object\x20changes'),'rawEffects':z['array'](z['number']())['optional']()['describe']('Raw\x20effects'),'rawTransaction':z['string']()['optional']()['describe']('Raw\x20transaction'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('Timestamp'),'transaction':z['union']([WowTransactionBlockSchema,z['null']()])['optional']()['describe']('Transaction\x20input\x20data')})['describe']('Wow\x20transaction\x20block\x20response');export const MarkParamSchema=z['object']({'name':z['object']({'value':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Mark\x20name\x20value\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'replaceExistName':z['boolean']()['optional']()['default'](![])['describe']('If\x20true,\x20replace\x20existing\x20mark\x20with\x20same\x20name;\x20if\x20false\x20(default),\x20throw\x20error\x20when\x20name\x20exists')})['optional']()['describe']('Mark\x20naming\x20configuration.\x20MUST\x20be\x20an\x20object\x20{value:\x20string,\x20replaceExistName?:\x20boolean},\x20NOT\x20a\x20plain\x20string.\x20Example:\x20{name:\x20{value:\x20\x27my-account\x27,\x20replaceExistName:\x20true}}'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20ONLY:\x20Parameters\x20for\x20creating\x20or\x20updating\x20a\x20LOCAL\x20mark.\x20This\x20data\x20is\x20stored\x20privately\x20on\x20your\x20device\x20and\x20will\x20NEVER\x20be\x20published\x20to\x20the\x20blockchain.\x20'+'For\x20public\x20on-chain\x20marks,\x20use\x20the\x20\x27personal\x27\x20tool\x20instead.\x20'+'IMPORTANT:\x20\x27name\x27\x20field\x20is\x20an\x20OBJECT\x20{value,\x20replaceExistName?},\x20not\x20a\x20string.\x20'+'FIX-011\x20cross-network\x20consistency:\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network.\x20'+'When\x20creating\x20marks\x20for\x20the\x20same\x20logical\x20object\x20on\x20different\x20networks\x20(e.g.\x20testnet\x20and\x20mainnet),\x20'+'use\x20the\x20SAME\x20name\x20value\x20to\x20keep\x20name-based\x20references\x20portable.\x20'+'Before\x20creating\x20a\x20mark\x20on\x20mainnet,\x20check\x20if\x20a\x20mark\x20with\x20the\x20same\x20name\x20already\x20exists\x20on\x20testnet\x20'+'(via\x20query_local\x20with\x20network=\x27testnet\x27)\x20and\x20replicate\x20the\x20same\x20name\x20on\x20mainnet\x20for\x20consistency.');export const MarkDataSchema=z['object']({'name':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['optional']()['describe']('Mark\x20name\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20last\x20modified')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20mark\x20data\x20structure\x20for\x20storing\x20address\x20names\x20and\x20tags\x20privately\x20on\x20your\x20device.\x20This\x20data\x20is\x20NEVER\x20published\x20to\x20the\x20blockchain.\x20CROSS-NETWORK\x20ISOLATION\x20(DOC-02):\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network\x20—\x20the\x20same\x20name\x20\x27my-service\x27\x20can\x20map\x20to\x20different\x20addresses\x20on\x20testnet\x20vs\x20mainnet.\x20When\x20switching\x20networks\x20(e.g.,\x20testnet→mainnet\x20deployment),\x20re-create\x20marks\x20with\x20the\x20same\x20names\x20pointing\x20to\x20the\x20new\x20mainnet\x20addresses.\x20This\x20enables\x20name-based\x20object\x20references\x20that\x20work\x20identically\x20across\x20networks\x20without\x20code\x20changes.');export const InfoDataInnerSchema=z['object']({'default':z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Default\x20value\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters')['describe']('Primary/default\x20value\x20for\x20this\x20info\x20(max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'contents':z['array'](z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Content\x20item\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters'))['max'](LocalInfoConstraints['contentMaxCount'],'Content\x20count\x20exceeds\x20maximum\x20of\x20'+LocalInfoConstraints['contentMaxCount'])['optional']()['describe']('Additional\x20content\x20values\x20(max\x20'+LocalInfoConstraints['contentMaxCount']+'\x20items,\x20each\x20max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20last\x20modified')})['describe']('Info\x20data\x20inner\x20structure');export const InfoDataSchema=InfoDataInnerSchema['extend']({'name':z['string']()['max'](LocalInfoConstraints['nameMaxLength'],'Info\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Unique\x20identifier\x20for\x20this\x20info\x20entry\x20(max\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20info\x20data\x20structure\x20for\x20storing\x20sensitive\x20personal\x20information\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20etc.\x20This\x20data\x20is\x20stored\x20ONLY\x20on\x20your\x20device\x20and\x20NEVER\x20published\x20to\x20the\x20blockchain.');export const LocalMarkFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20mark\x20name\x20(supports\x20fuzzy\x20match)'),'tags':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20tags\x20-\x20returns\x20marks\x20that\x20contain\x20ANY\x20of\x20the\x20specified\x20tags'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20address\x20(exact\x20match,\x20format:\x200x\x20+\x2064\x20hex\x20characters)'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20marks.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const LocalInfoFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20info\x20name\x20(supports\x20fuzzy\x20match)'),'default':z['string']()['optional']()['describe']('Filter\x20by\x20default\x20value\x20(supports\x20fuzzy\x20match)'),'contents':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20contents\x20-\x20returns\x20info\x20that\x20contains\x20ANY\x20of\x20the\x20specified\x20content\x20items'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20info.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryLocalInfoListSchema=z['object']({'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['describe']('Query\x20local\x20info\x20list\x20parameters');export const QueryAccountSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Whether\x20to\x20query\x20coin\x20balance\x20amount'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Query\x20cursor\x20for\x20pagination'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20objects\x20to\x20return')})['optional']()['describe']('Whether\x20to\x20query\x20coin\x20object\x20list'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['describe']('Used\x20to\x20query\x20account\x27s\x20coin\x20balance');export const QueryAccountResultSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID'),'address':z['string']()['optional']()['describe']('Account\x20ID'),'balance':CoinBalanceSchema['optional']()['describe']('Coin\x20balance\x20details'),'coin':PaginatedCoinsSchema['optional']()['describe']('Paginated\x20coin\x20object\x20list')})['describe']('Result\x20of\x20querying\x20account\x27s\x20coin\x20balance');export const AccountOperationSchema=z['object']({'gen':z['object']({'name':NameSchema['optional']()['describe']('Account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Use\x20empty\x20string\x20\x27\x27\x20or\x20omit\x20for\x20the\x20default\x20account.\x20'+'Recommended\x20convention:\x20<role>-<number>\x20(e.g.\x20shop-001,\x20user-001,\x20arb-001)\x20for\x20easy\x20filtering\x20and\x20batch\x20operations.'),'replaceExistName':z['boolean']()['optional']()['describe']('DISCOURAGED.\x20If\x20true,\x20an\x20existing\x20account\x20with\x20the\x20same\x20name\x20will\x20be\x20SUSPENDED\x20(not\x20just\x20renamed)\x20to\x20free\x20the\x20name\x20for\x20the\x20new\x20account.\x20'+'The\x20old\x20account\x20moves\x20to\x20the\x20Suspended\x20tab\x20and\x20cannot\x20sign\x20transactions\x20until\x20resumed\x20with\x20a\x20new\x20name.\x20'+'FORBIDDEN\x20on\x20the\x20default\x20account\x20(name=\x27\x27\x20or\x20omitted)\x20—\x20the\x20default\x20account\x20is\x20unique\x20and\x20cannot\x20be\x20replaced;\x20use\x20suspend()\x20explicitly\x20instead.\x20'+'Prefer\x20versioned\x20names\x20(e.g.\x20\x27shop_v2\x27)\x20over\x20replaceExistName\x20for\x20production.\x20Default:\x20false\x20(throws\x20AccountNameExist\x20on\x20collision).'),'messenger':z['boolean']()['optional']()['describe']('Enable\x20messenger\x20for\x20this\x20account.\x20true=enable,\x20false=disable,\x20omit=unchanged.\x20'+'Account\x20name\x20is\x20used\x20for\x20messenger\x20identity\x20lookup\x20(no\x20separate\x20messenger\x20name).')})['optional']()['describe']('Generate\x20new\x20account'),'faucet':z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;b['name']!==undefined&&b['name_or_address']===undefined&&(b['name_or_address']=b['name'],delete b['name']);}return a;},z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'network':FaucetNetworkSchema})['strict']())['optional']()['describe']('Distribute\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.')})['optional']()['describe']('Remove\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions),\x20and\x20delete\x20its\x20name'),'resume':z['object']({'address':WowAddressSchema,'name':NameSchema['optional']()['describe']('New\x20name\x20for\x20the\x20resumed\x20account.\x20Omit\x20to\x20leave\x20unnamed.')})['optional']()['describe']('Add\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.\x20Can\x20be\x20a\x20name\x20or\x20address.'),'new_name':NameSchema['describe']('New\x20account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Must\x20be\x20a\x20name\x20(not\x20an\x20address).')})['optional']()['describe']('Rename\x20account.\x20name_or_address\x20can\x20be\x20name\x20or\x20address,\x20new_name\x20must\x20be\x20a\x20name.'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.')})['optional']()['describe']('Swap\x20the\x20names\x20of\x20two\x20accounts'),'transfer':z['object']({'name_or_address_from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name_or_address_to':NameOrAddressSchema['optional']()['describe']('Recipient\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'amount':z['union']([z['number'](),z['string']()])['describe']('Amount\x20of\x20tokens\x20to\x20transfer'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Transfer\x20tokens\x20from\x20one\x20account\x20to\x20another'),'get':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20balance\x20amount'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Generate\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount\x20and\x20return'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'data':z['string']()['describe']('Data\x20to\x20sign.\x20If\x20data_encoding\x20is\x20not\x20specified,\x20treated\x20as\x20UTF-8\x20string.'),'data_encoding':z['union']([z['literal']('utf8')['describe']('Data\x20is\x20UTF-8\x20encoded\x20string'),z['literal']('base64')['describe']('Data\x20is\x20base64\x20encoded\x20bytes'),z['literal']('hex')['describe']('Data\x20is\x20hex\x20encoded\x20bytes\x20(with\x20or\x20without\x200x\x20prefix)')])['optional']()['describe']('Encoding\x20format\x20of\x20the\x20data\x20field.\x20If\x20not\x20specified,\x20defaults\x20to\x20utf8.')})['optional']()['describe']('Sign\x20data\x20with\x20account\x27s\x20private\x20key'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'enabled':z['boolean']()['describe']('true\x20to\x20enable\x20messenger,\x20false\x20to\x20disable')})['optional']()['describe']('Enable\x20or\x20disable\x20messenger\x20for\x20an\x20account')})['strict']()['refine'](a=>Object['keys'](a)['length']>0x0,'At\x20least\x20one\x20operation\x20(gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger)\x20must\x20be\x20specified')['describe']('Account\x20operations\x20(mutations\x20only:\x20gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger).\x20'+'Parameters\x20MUST\x20be\x20wrapped\x20in\x20the\x20operation\x20type\x20property\x20(e.g.\x20{transfer:\x20{...}},\x20NOT\x20{amount:\x20...}).\x20Unwrapped\x20parameters\x20are\x20rejected.\x20'+'TO\x20LIST\x20ALL\x20ACCOUNTS:\x20use\x20the\x20query_toolkit\x20tool\x20with\x20query_type=\x27account_list\x27\x20(returns\x20name,\x20address,\x20suspended\x20status,\x20messenger\x20status\x20for\x20all\x20local\x20accounts).\x20'+'This\x20separation\x20follows\x20CQRS:\x20account_operation\x20=\x20mutations,\x20query_toolkit\x20=\x20queries.\x20'+'Common\x20workflow\x20after\x20MCP\x20restart:\x20(1)\x20query_toolkit\x20query_type=\x27account_list\x27\x20to\x20see\x20all\x20accounts,\x20(2)\x20account_operation\x20with\x20the\x20appropriate\x20mutation.');export const AccountOperationResultSchema=z['object']({'gen':z['object']({'address':z['string']()['describe']('Newly\x20generated\x20account\x20ID'),'name':NameSchema['optional']()['describe']('Account\x20name'),'messenger':z['boolean']()['optional']()['describe']('Messenger\x20enabled\x20flag')})['optional']()['describe']('Result\x20of\x20generating\x20new\x20account'),'faucet':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20received\x20faucet\x20coins'),'result':z['array'](FaucetCoinInfoSchema)['describe']('List\x20of\x20distributed\x20test\x20coin\x20info'),'network':FaucetNetworkSchema})['optional']()['describe']('Result\x20of\x20distributing\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20was\x20suspended'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20suspended,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20removing\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions)'),'resume':z['object']({'address':WowAddressSchema['describe']('Account\x20ID\x20that\x20was\x20resumed'),'name':NameSchema['optional']()['describe']('New\x20name\x20assigned\x20to\x20the\x20account'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20resumed,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20adding\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address\x20that\x20was\x20renamed'),'new_name':NameSchema['describe']('New\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20rename\x20was\x20successful,\x20false\x20if\x20account\x20not\x20found\x20or\x20name\x20already\x20exists')})['optional']()['describe']('Result\x20of\x20renaming\x20account'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20swap\x20was\x20successful,\x20false\x20if\x20either\x20account\x20not\x20found')})['optional']()['describe']('Result\x20of\x20swapping\x20account\x20names'),'transfer':WowTransactionBlockResponseSchema['optional']()['describe']('Result\x20of\x20token\x20transfer\x20transaction'),'get':z['object']({'coin_address':z['string']()['optional']()['describe']('Newly\x20generated\x20coin\x20object\x20ID'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20coin\x20object\x20balance'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Result\x20of\x20generating\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20used\x20for\x20signing'),'signature':z['string']()['describe']('Signature\x20in\x20hex\x20format'),'publicKey':z['string']()['describe']('Public\x20key\x20in\x20hex\x20format'),'address':z['string']()['describe']('Account\x20address')})['optional']()['describe']('Result\x20of\x20signing\x20data\x20with\x20account'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'enabled':z['boolean']()['describe']('Messenger\x20enabled\x20flag')})['optional']()['describe']('Result\x20of\x20enabling\x20or\x20disabling\x20messenger\x20for\x20an\x20account')})['describe']('Results\x20of\x20account\x20operations');export const LocalMarkOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20marks'),'data':z['array'](MarkParamSchema)['min'](0x1)['describe']('Array\x20of\x20mark\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Add\x20one\x20or\x20more\x20marks'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20marks'),'names':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20mark\x20names\x20or\x20addresses\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20marks\x20by\x20name\x20or\x20address'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20marks')})['strict']()['optional']()['describe']('Remove\x20all\x20marks')})['strict']()['refine'](a=>a['add']!==undefined||a['remove']!==undefined||a['clear']!==undefined,{'message':'Exactly\x20one\x20operation\x20field\x20(add/remove/clear)\x20must\x20be\x20specified.\x20'+'CORRECT\x20format:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20or\x20{remove:\x20{op:\x27remove\x27,\x20names:[...]}}\x20or\x20{clear:\x20{op:\x27clear\x27}}.\x20'+'INCORRECT\x20flat\x20format\x20{op:\x27add\x27,\x20data:[...]}\x20will\x20silently\x20do\x20nothing.'})['describe']('Local\x20mark\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/clear)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}.');export const LocalMarkOperationResultSchema=z['object']({'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20marks\x20were\x20successfully\x20removed'),'add':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20added\x20mark\x20data'),'remove':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20removed\x20mark\x20data')})['describe']('Results\x20of\x20local\x20mark\x20operations\x20for\x20ID');export const LocalInfoOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20info'),'data':z['array'](InfoDataSchema)['min'](0x1)['describe']('Array\x20of\x20info\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Add\x20one\x20or\x20more\x20info\x20entries'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20info'),'data':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20info\x20names\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20info\x20entries\x20by\x20name'),'reset':z['object']({'op':z['literal']('reset')['describe']('Operation\x20type:\x20reset\x20contents'),'name':z['string']()['describe']('Name\x20of\x20info\x20entry\x20to\x20reset'),'contents':z['array'](z['string']())['describe']('New\x20content\x20list\x20to\x20replace\x20existing\x20contents')})['strict']()['optional']()['describe']('Reset\x20the\x20contents\x20of\x20an\x20existing\x20info\x20entry'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20info')})['strict']()['optional']()['describe']('Remove\x20all\x20info\x20entries')})['strict']()['refine'](a=>a['add']!==undefined||a['remove']!==undefined||a['reset']!==undefined||a['clear']!==undefined,{'message':'Exactly\x20one\x20operation\x20field\x20(add/remove/reset/clear)\x20must\x20be\x20specified.\x20'+'CORRECT\x20format:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20or\x20{remove:\x20{op:\x27remove\x27,\x20data:[...]}}\x20etc.\x20'+'INCORRECT\x20flat\x20format\x20{op:\x27add\x27,\x20data:[...]}\x20will\x20silently\x20do\x20nothing.'})['describe']('Local\x20info\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/reset/clear)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}.');export const LocalInfoOperationResultSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20successful')})['describe']('Results\x20of\x20local\x20info\x20operations');export const FetchTokenInfoOperationSchema=z['object']({'tokenType':z['union']([TokenTypeSchema,z['null']()])['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'alias':NameSchema['optional']()['describe']('Token\x20alias;\x20used\x20to\x20quickly\x20fetch\x20token\x20info'),'network':EntrypointSchema['optional']()})['describe']('Fetch\x20token\x20info\x20to\x20local\x20and\x20name\x20it');export const QueryLocalMarkListSchema=z['object']({'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['describe']('Query\x20local\x20mark\x20list\x20parameters');export const QueryLocalMarkListResultSchema=z['object']({'result':z['array'](MarkDataSchema)['describe']('Local\x20mark\x20list')})['describe']('Query\x20local\x20mark\x20list\x20result');export const AccountFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20account\x20name\x20(supports\x20fuzzy\x20match)'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20account\x20address\x20(supports\x20partial\x20match,\x20format:\x200x\x20+\x20hex\x20characters)'),'suspended':z['boolean']()['optional']()['describe']('Filter\x20by\x20suspension\x20status.\x20Omit\x20to\x20return\x20all\x20accounts\x20regardless\x20of\x20status'),'hasMessenger':z['boolean']()['optional']()['describe']('Filter\x20accounts\x20with\x20messenger\x20enabled'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range'),'includePubkey':z['boolean']()['optional']()['describe']('Include\x20pubkey\x20in\x20results\x20(default:\x20false).\x20Pubkey\x20is\x20large\x20(~900\x20bytes),\x20omit\x20unless\x20needed')})['describe']('Filter\x20criteria\x20for\x20querying\x20accounts.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryAccountListSchema=z['object']({'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['describe']('Query\x20account\x20list\x20parameters');export const AccountDataSchema=z['object']({'name':z['string']()['optional']()['describe']('Account\x20name'),'address':z['string']()['describe']('Account\x20address'),'pubkey':z['string']()['optional']()['describe']('Account\x20public\x20key'),'secret':z['string']()['optional']()['describe']('Account\x20secret\x20key'),'suspended':z['boolean']()['optional']()['describe']('Whether\x20account\x20is\x20suspended'),'createdAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20last\x20updated'),'messenger':z['boolean']()['optional']()['describe']('Whether\x20messenger\x20is\x20enabled\x20for\x20this\x20account'),'suspendedName':z['string']()['optional']()['describe']('Name\x20before\x20suspension\x20(set\x20by\x20suspend,\x20cleared\x20by\x20resume)')})['describe']('Account\x20data');export const QueryAccountListResultSchema=z['object']({'result':z['array'](AccountDataSchema)['describe']('Account\x20list')})['describe']('Query\x20account\x20list\x20result');export const QueryLocalInfoListResultSchema=z['object']({'result':z['array'](InfoDataSchema)['describe']('Local\x20info\x20list')})['describe']('Query\x20local\x20info\x20list\x20result');export const TokenTypeInfoSchema=z['object']({'type':z['string']()['describe']('Token\x20type'),'alias':z['string']()['optional']()['describe']('Token\x20alias'),'name':z['string']()['describe']('Token\x20name'),'symbol':z['string']()['describe']('Token\x20symbol'),'decimals':z['number']()['describe']('Number\x20of\x20decimal\x20places'),'description':z['string']()['describe']('Description\x20of\x20the\x20token'),'iconUrl':z['union']([z['string'](),z['null']()])['optional']()['describe']('URL\x20for\x20the\x20token\x20logo'),'id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Object\x20id\x20for\x20the\x20CoinMetadata\x20object')})['describe']('Token\x20type\x20info');export const TokenDataFilterSchema=z['object']({'alias_or_name':NameSchema['optional']()['describe']('Alias\x20or\x20name\x20filter'),'symbol':z['string']()['optional']()['describe']('Token\x20symbol'),'type':z['string']()['optional']()['describe']('Token\x20type')})['describe']('Token\x20data\x20filter');export const QueryLocalTokenListResultSchema=z['object']({'result':z['array'](TokenTypeInfoSchema)['describe']('Local\x20token\x20list')})['describe']('Query\x20local\x20token\x20list\x20result');export const AccountOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':AccountOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Account\x20operation\x20output\x20schema\x20with\x20discriminator');export const AccountOperationOutputWrappedSchema=z['object']({'result':AccountOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20account\x20operation')})['describe']('Account\x20operation\x20output\x20wrapped\x20schema');export const LocalMarkOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalMarkOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20mark\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalMarkOperationOutputWrappedSchema=z['object']({'result':LocalMarkOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20mark\x20operation')})['describe']('Local\x20mark\x20operation\x20output\x20wrapped\x20schema');export const LocalInfoOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalInfoOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20info\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalInfoOperationOutputWrappedSchema=z['object']({'result':LocalInfoOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20info\x20operation')})['describe']('Local\x20info\x20operation\x20output\x20wrapped\x20schema');export*from'./wip.js';
|