@wowok/agent-mcp 3.3.1 → 3.3.2
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/chain-semantics/field-capability.js +1 -1
- package/dist/chain-semantics/freeze-map.js +1 -1
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/guard-verbs.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/composition/audit.d.ts +5 -0
- package/dist/composition/audit.js +1 -1
- package/dist/composition/blueprint-view.d.ts +0 -1
- package/dist/composition/blueprint-view.js +1 -1
- package/dist/composition/compile.d.ts +4 -2
- package/dist/composition/compile.js +1 -1
- package/dist/composition/inflight.d.ts +8 -4
- package/dist/composition/inflight.js +1 -1
- package/dist/customer/industry-risks.js +1 -1
- package/dist/customer/user-preferences.js +1 -1
- package/dist/extensions/business-modules.d.ts +7 -2
- package/dist/extensions/business-modules.js +1 -1
- package/dist/extensions/industry-audit.spec.js +1 -1
- package/dist/extensions/industry-pack.d.ts +3 -2
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/graph/onchain/project-relationship.js +1 -1
- package/dist/knowledge/acquisition-flywheel.js +1 -1
- package/dist/knowledge/allocation-ledger.d.ts +4 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +1 -0
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +1 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/arb-fund-facts.d.ts +5 -0
- package/dist/knowledge/arb-fund-facts.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +4 -3
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/plan.json +48 -2
- package/dist/knowledge/baselines/rules/reward.json +1 -1
- package/dist/knowledge/builtin-templates.d.ts +9 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/discount-threshold.js +1 -1
- package/dist/knowledge/guard-bindings.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-submission-brief.d.ts +5 -0
- package/dist/knowledge/guard-submission-brief.js +1 -1
- package/dist/knowledge/guard-submission-prompt.d.ts +2 -1
- package/dist/knowledge/guard-submission-prompt.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/industry-generalizer.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/industry-strategy.js +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-puzzle.d.ts +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/scenario-modes.d.ts +2 -2
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/scenario-topology.js +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-index.d.ts +19 -0
- package/dist/knowledge/template-index.js +1 -0
- package/dist/knowledge/template-loader.d.ts +36 -0
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +7 -0
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/tool-constraints.js +1 -1
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/radar-core.d.ts +1 -0
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/defaults.js +1 -1
- package/dist/persona/topology-focus.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/game-theory.d.ts +4 -1
- package/dist/playbooks/service-build/game-theory.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +25 -1
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/migration-planner.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/pipeline-actions.d.ts +4 -1
- package/dist/playbooks/service-build/pipeline-actions.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.d.ts +4 -0
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/relationship/derivation.d.ts +1 -1
- package/dist/review/index.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +35 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +46 -3
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/contact.js +1 -1
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/progress.d.ts +6 -3
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +2 -2
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +8 -4
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +54 -0
- package/dist/schema/goal/planning.d.ts +86 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/local/index.d.ts +39 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +20 -5
- package/dist/schema/operations.js +1 -1
- package/dist/schema/query/bi.d.ts +2 -0
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +24 -12
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.d.ts +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +28 -3
- package/dist/schemas/benchmark_migration_operation.schema.json +87 -0
- package/dist/schemas/goal_operation.schema.json +94 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_operations.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +409 -119
- package/dist/schemas/onchain_operations_allocation.schema.json +290 -6
- package/dist/schemas/onchain_operations_arbitration.schema.json +2 -2
- package/dist/schemas/onchain_operations_contact.schema.json +2 -2
- package/dist/schemas/onchain_operations_demand.schema.json +3 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +63 -63
- package/dist/schemas/onchain_operations_machine.schema.json +1 -1
- package/dist/schemas/onchain_operations_order.schema.json +2 -2
- package/dist/schemas/onchain_operations_progress.schema.json +7 -3
- package/dist/schemas/onchain_operations_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_repository.schema.json +2 -2
- package/dist/schemas/onchain_operations_reward.schema.json +8 -8
- package/dist/schemas/onchain_operations_service.schema.json +20 -18
- package/dist/schemas/onchain_operations_treasury.schema.json +7 -7
- package/dist/schemas/query_toolkit.output.json +67 -53
- package/dist/schemas/workflow_operation.schema.json +1 -1
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/file-export.js +1 -1
- package/dist/tools/handlers/industry-pack.d.ts +1 -0
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +24 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.d.ts +1 -1
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/registry/agent.js +1 -1
- package/dist/tools/wip-deploy-assist.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{CallEnvSchema,SubmissionCallSchema,ObjectsSchema}from'./base.js';import{ProgressNamedOperatorSchema}from'./machine.js';import{NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const ProgressNextSchema=z['object']({'next_node_name':NameSchema['describe']('Next\x20node\x20name.'),'forward':NameSchema['describe']('Next\x20forward\x20name.')})['strict']()['describe']('Specify\x20a\x20specific\x20operation\x20between\x20current\x20node\x20and\x20next\x20node.');export const OperateSchema=z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;if(b['op']===undefined&&'hold'in b){const c=b['hold'];typeof c==='boolean'&&(b['op']=c?'hold':'next',delete b['hold']);}b['op']===undefined&&!('hold'in b)&&(b['op']='next');}return a;},z['object']({'operation':ProgressNextSchema,'op':z['enum'](['next','hold','unhold','adminUnhold'])['default']('next')['describe']('Operation\x20type\x20on\x20the\x20forward\x20(CANONICAL\x20form\x20—\x20prefer\x20this).\x20DEFAULT:\x20\x27next\x27\x20when\x20omitted.\x20'+'\x27next\x27\x20=\x20advance\x20the\x20forward\x20(accomplish);\x20'+'\x27hold\x27\x20=\x20set\x20hold\x20to\x20block\x20the\x20forward;\x20'+'\x27unhold\x27\x20=\x20self-unhold,\x20release\x20own\x20hold\x20(no\x20224\x20permission\x20needed);\x20'+'\x27adminUnhold\x27\x20=\x20force-release\x20hold\x20via\x20224\x20permission\x20(PROGRESS_UNHOLD).\x20'+'LEGACY\x20ALIAS:\x20`hold:\x20boolean`\x20is\x20auto-converted\x20to\x20`op`\x20—\x20`hold:true`→`op:\x27hold\x27`,\x20`hold:false`→`op:\x27next\x27`.\x20'+'New\x20code\x20should\x20use\x20`op`\x20directly.'),'message':z['string']()['optional']()['describe']('Message\x20attached\x20to\x20the\x20forward\x20advance;\x20recorded\x20permanently\x20in\x20on-chain\x20History.\x20REVIEW-TYPE\x20FORWARDS:\x20de-facto\x20REQUIRED\x20here\x20—\x20the\x20review\x20text\x20is\x20this\x20message\x20(the\x20reward\x20claim\x20guard\x20does\x20not\x20read\x20it,\x20but\x20a\x20no-message\x20Review\x20forward\x20has\x20failed\x20repeatedly\x20on\x20mainnet\x20until\x20the\x20message\x20was\x20added).\x20Always\x20include\x20message:\x20\x27<review\x20text>\x27\x20when\x20advancing\x20a\x20Review-named\x20forward.')})['strict']())['describe']('Advance\x20Progress\x20object.\x20CANONICAL\x20form:\x20{operation,\x20op:\x20\x27next\x27|\x27hold\x27|\x27unhold\x27|\x27adminUnhold\x27,\x20message?}\x20—\x20\x27next\x27\x20is\x20the\x20default\x20when\x20op\x20is\x20omitted.\x20LEGACY\x20form\x20(auto-converted):\x20{operation,\x20hold:\x20boolean,\x20message?}\x20where\x20hold:true→op:\x27hold\x27,\x20hold:false→op:\x27next\x27.');export const ProgressReviewClaimSchema=z['object']({'reward':NameOrAddressSchema['describe']('Reward\x20object\x20ID\x20or\x20name\x20to\x20claim\x20from.\x20Resolve\x20it\x20from\x20the\x20service\x27s\x20rewards\x20list\x20(service_panorama\x20/\x20service_quote\x20reward_terms)\x20—\x20never\x20guess\x20an\x20address.'),'guard':NameOrAddressSchema['describe']('Guard\x20object\x20that\x20gates\x20this\x20claim.\x20MUST\x20be\x20covered\x20by\x20this\x20call\x27s\x20passport\x20submission\x20(one\x20of\x20the\x20submission.guard\x20entries,\x20same\x20address),\x20otherwise\x20the\x20chain\x20aborts.')})['strict']()['describe']('Claim\x20a\x20review\x20incentive\x20reward\x20after\x20the\x20forward\x20succeeds\x20(review_mode\x20\x27review_reward\x27\x20services).');export const ProgressReviewSchema=z['object']({'repository':NameOrAddressSchema['describe']('Repository\x20object\x20ID\x20or\x20name\x20that\x20stores\x20the\x20structured\x20reputation\x20record.\x20The\x20matching\x20policy\x20key\x20must\x20accept\x20a\x20JSON\x20payload\x20{rating,\x20tags?,\x20orderRef?}.\x20id_from\x20options\x20(C30):\x20Signer\x20=\x20one\x20record\x20per\x20BUYER\x20(rewrite\x20=\x20own-record\x20overwrite);\x20None\x20+\x20a\x20write_guard\x20with\x20id_from_submission\x20=\x20one\x20record\x20per\x20bound\x20OBJECT/ORDER\x20(the\x20row\x20id\x20is\x20the\x20raw\x20bound\x20Order\x20address\x20—\x20the\x20verified\x20once-per-order\x20review\x20shape);\x20Clock\x20=\x20append-only\x20log.\x20PREFERRED:\x20the\x20service\x27s\x20review\x20repository\x20EMITTED\x20BY\x20THE\x20BUILD\x20PLAN\x20when\x20review_mode\x20was\x20set\x20(AR-1)\x20—\x20resolve\x20it\x20from\x20the\x20service\x27s\x20repositories\x20list\x20(service_panorama\x20/\x20onchain_objects,\x20name\x20suffix\x20\x27_review\x27)\x20—\x20never\x20guess\x20an\x20address.'),'
|
|
1
|
+
import{z}from'zod';import{CallEnvSchema,SubmissionCallSchema,ObjectsSchema}from'./base.js';import{ProgressNamedOperatorSchema}from'./machine.js';import{NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const ProgressNextSchema=z['object']({'next_node_name':NameSchema['describe']('Next\x20node\x20name.'),'forward':NameSchema['describe']('Next\x20forward\x20name.')})['strict']()['describe']('Specify\x20a\x20specific\x20operation\x20between\x20current\x20node\x20and\x20next\x20node.');export const OperateSchema=z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;if(b['op']===undefined&&'hold'in b){const c=b['hold'];typeof c==='boolean'&&(b['op']=c?'hold':'next',delete b['hold']);}b['op']===undefined&&!('hold'in b)&&(b['op']='next');}return a;},z['object']({'operation':ProgressNextSchema,'op':z['enum'](['next','hold','unhold','adminUnhold'])['default']('next')['describe']('Operation\x20type\x20on\x20the\x20forward\x20(CANONICAL\x20form\x20—\x20prefer\x20this).\x20DEFAULT:\x20\x27next\x27\x20when\x20omitted.\x20'+'\x27next\x27\x20=\x20advance\x20the\x20forward\x20(accomplish);\x20'+'\x27hold\x27\x20=\x20set\x20hold\x20to\x20block\x20the\x20forward;\x20'+'\x27unhold\x27\x20=\x20self-unhold,\x20release\x20own\x20hold\x20(no\x20224\x20permission\x20needed);\x20'+'\x27adminUnhold\x27\x20=\x20force-release\x20hold\x20via\x20224\x20permission\x20(PROGRESS_UNHOLD).\x20'+'LEGACY\x20ALIAS:\x20`hold:\x20boolean`\x20is\x20auto-converted\x20to\x20`op`\x20—\x20`hold:true`→`op:\x27hold\x27`,\x20`hold:false`→`op:\x27next\x27`.\x20'+'New\x20code\x20should\x20use\x20`op`\x20directly.'),'message':z['string']()['optional']()['describe']('Message\x20attached\x20to\x20the\x20forward\x20advance;\x20recorded\x20permanently\x20in\x20on-chain\x20History.\x20REVIEW-TYPE\x20FORWARDS:\x20de-facto\x20REQUIRED\x20here\x20—\x20the\x20review\x20text\x20is\x20this\x20message\x20(the\x20reward\x20claim\x20guard\x20does\x20not\x20read\x20it,\x20but\x20a\x20no-message\x20Review\x20forward\x20has\x20failed\x20repeatedly\x20on\x20mainnet\x20until\x20the\x20message\x20was\x20added).\x20Always\x20include\x20message:\x20\x27<review\x20text>\x27\x20when\x20advancing\x20a\x20Review-named\x20forward.')})['strict']())['describe']('Advance\x20Progress\x20object.\x20CANONICAL\x20form:\x20{operation,\x20op:\x20\x27next\x27|\x27hold\x27|\x27unhold\x27|\x27adminUnhold\x27,\x20message?}\x20—\x20\x27next\x27\x20is\x20the\x20default\x20when\x20op\x20is\x20omitted.\x20LEGACY\x20form\x20(auto-converted):\x20{operation,\x20hold:\x20boolean,\x20message?}\x20where\x20hold:true→op:\x27hold\x27,\x20hold:false→op:\x27next\x27.');export const ProgressReviewClaimSchema=z['object']({'reward':NameOrAddressSchema['describe']('Reward\x20object\x20ID\x20or\x20name\x20to\x20claim\x20from.\x20Resolve\x20it\x20from\x20the\x20service\x27s\x20rewards\x20list\x20(service_panorama\x20/\x20service_quote\x20reward_terms)\x20—\x20never\x20guess\x20an\x20address.'),'guard':NameOrAddressSchema['describe']('Guard\x20object\x20that\x20gates\x20this\x20claim.\x20MUST\x20be\x20covered\x20by\x20this\x20call\x27s\x20passport\x20submission\x20(one\x20of\x20the\x20submission.guard\x20entries,\x20same\x20address),\x20otherwise\x20the\x20chain\x20aborts.')})['strict']()['describe']('Claim\x20a\x20review\x20incentive\x20reward\x20after\x20the\x20forward\x20succeeds\x20(review_mode\x20\x27review_reward\x27\x20services).');export const ProgressReviewSchema=z['object']({'repository':NameOrAddressSchema['describe']('Repository\x20object\x20ID\x20or\x20name\x20that\x20stores\x20the\x20structured\x20reputation\x20record.\x20The\x20matching\x20policy\x20key\x20must\x20accept\x20a\x20JSON\x20payload\x20{rating,\x20tags?,\x20orderRef?}.\x20id_from\x20options\x20(C30):\x20Signer\x20=\x20one\x20record\x20per\x20BUYER\x20(rewrite\x20=\x20own-record\x20overwrite);\x20None\x20+\x20a\x20write_guard\x20with\x20id_from_submission\x20=\x20one\x20record\x20per\x20bound\x20OBJECT/ORDER\x20(the\x20row\x20id\x20is\x20the\x20raw\x20bound\x20Order\x20address\x20—\x20the\x20verified\x20once-per-order\x20review\x20shape);\x20Clock\x20=\x20append-only\x20log.\x20PREFERRED:\x20the\x20service\x27s\x20review\x20repository\x20EMITTED\x20BY\x20THE\x20BUILD\x20PLAN\x20when\x20review_mode\x20was\x20set\x20(AR-1)\x20—\x20resolve\x20it\x20from\x20the\x20service\x27s\x20repositories\x20list\x20(service_panorama\x20/\x20onchain_objects,\x20name\x20suffix\x20\x27_review\x27)\x20—\x20never\x20guess\x20an\x20address.'),'policy':NameSchema['optional']()['describe']('Policy\x20RULE\x20NAME\x20to\x20write\x20under\x20(the\x20repository\x27s\x20PolicyRule\x20whose\x20value_type\x20is\x20String\x20—\x20the\x20chain\x20writes\x20the\x20structured\x20record\x20as\x20a\x20JSON\x20string\x20row).\x20MUST\x20match\x20an\x20existing\x20policy\x20of\x20the\x20target\x20repository.\x20Default\x20\x27review\x27\x20(the\x20compile-emitted\x20review\x20policy\x20name).\x20A\x20mismatch\x20aborts\x20the\x20write\x20AFTER\x20the\x20forward\x20—\x20the\x20review-edge\x20credential\x20is\x20single-use,\x20so\x20the\x20row\x20can\x20never\x20be\x20re-written;\x20resolve\x20the\x20exact\x20name\x20from\x20the\x20build\x20plan\x20/\x20service_panorama\x20before\x20calling.'),'rating':z['enum'](['like','dislike'])['describe']('Buyer\x20rating.\x20Ratings\x20NEVER\x20affect\x20settlement\x20(the\x20settlement\x20anchor\x20is\x20the\x20delivered\x20moment,\x20not\x20this\x20review)\x20—\x20this\x20is\x20reputation\x20only.'),'tags':z['array'](NameSchema)['optional']()['describe']('Optional\x20structured\x20tags\x20for\x20statistics\x20and\x20market\x20exposure\x20(e.g.\x20[\x27fast_delivery\x27,\x27good_quality\x27]).'),'orderRef':NameOrAddressSchema['optional']()['describe']('Order\x20ID\x20or\x20name\x20this\x20review\x20is\x20about\x20—\x20written\x20into\x20the\x20structured\x20row\x20payload\x20as\x20the\x20\x27orderRef\x27\x20field\x20({rating,\x20tags?,\x20orderRef?}).\x20Takes\x20precedence\x20over\x20data.task\x20when\x20both\x20are\x20present.\x20Set\x20it\x20explicitly\x20whenever\x20the\x20reviewed\x20order\x20differs\x20from\x20data.task,\x20or\x20when\x20data.task\x20is\x20unset.'),'reward_claim':ProgressReviewClaimSchema['optional']()['describe']('Optional\x20reward\x20claim\x20chained\x20after\x20the\x20repository\x20write\x20(fail-isolated:\x20a\x20failed\x20claim\x20never\x20undoes\x20the\x20write\x20or\x20the\x20forward).'),'write_guard':NameOrAddressSchema['optional']()['describe']('Policy\x20write\x20guard\x20for\x20the\x20repository\x20write.\x20DEFAULT:\x20the\x20first\x20guard\x20of\x20this\x20call\x27s\x20passport\x20submission\x20(the\x20review-edge\x20credential).\x20Required\x20when\x20the\x20matched\x20Repository\x20policy\x20uses\x20id_from=None\x20with\x20declared\x20guards\x20(the\x20chain\x20aborts\x20with\x2022,\x20E_POLICY_WRITE_GUARD_REQUIRED,\x20otherwise).\x20The\x20guard\x20MUST\x20be\x20covered\x20by\x20the\x20passport\x20submission.')})['strict']()['describe']('Structured\x20buyer\x20review,\x20chained\x20after\x20THIS\x20forward\x20succeeds.\x20Carrier\x20split\x20(do\x20not\x20duplicate):\x20the\x20review\x20TEXT\x20goes\x20in\x20operate.message\x20(permanent\x20on-chain\x20History);\x20THIS\x20block\x20writes\x20only\x20the\x20structured\x20reputation\x20record\x20(+\x20optional\x20reward\x20claim)\x20from\x20the\x20same\x20passport\x20submission.\x20Both\x20chained\x20steps\x20are\x20fail-isolated\x20and\x20reported\x20in\x20semantic.review_steps.');export const CallProgress_DataSchema=z['object']({'object':NameOrAddressSchema['describe']('Progress\x20object\x20ID\x20or\x20name.'),'task':NameOrAddressSchema['optional']()['describe']('Task\x20ID.\x20Cannot\x20be\x20changed\x20after\x20setting.'),'repository':ObjectsSchema['optional']()['describe']('Consensus\x20data\x20Repository\x20object\x20list.'),'progress_namedOperator':ProgressNamedOperatorSchema['optional']()['describe']('Manage\x20operators\x20for\x20Progress\x20permission\x20namespace.'),'operate':OperateSchema['optional']()['describe']('Advance\x20Progress\x20object.\x20op\x20field\x20selects\x20the\x20operation:\x20next/hold/unhold/adminUnhold.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Progress\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20the\x20bound\x20Machine\x27s\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'review':ProgressReviewSchema['optional']()['describe']('Structured\x20review\x20composite\x20(REVIEW\x20component):\x20after\x20this\x20forward\x20succeeds,\x20write\x20the\x20structured\x20reputation\x20record\x20into\x20a\x20Repository\x20(+\x20optional\x20reward\x20claim),\x20reusing\x20this\x20call\x27s\x20passport\x20submission.\x20Requires\x20operate\x20(the\x20chain\x20fires\x20only\x20after\x20a\x20successful\x20forward).')})['strict']()['describe']('On-chain,\x20operate\x20an\x20existing\x20Progress\x20object.');export const CallProgress_InputSchema=z['object']({'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{WithPermissionObjectSchema,ObjectsSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{AccountOrMark_AddressSchema,DescriptionSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';import{PolicyRuleSchema}from'../query/index.js';import{SupportedValueSchema}from'../common/index.js';export const RepositoryIdSchema=z['union']([z['string'](),z['number'](),AccountOrMark_AddressSchema])['describe']('Data\x20item\x20ID.\x20Supports:\x20plain\x20string(bigint),\x20number\x20(such\x20as\x20timestamp),\x20or\x20AccountOrMark_Address\x20format.');export const KeyDataSchema=z['object']({'id':RepositoryIdSchema,'data':SupportedValueSchema})['strict']()['describe']('Data\x20ID\x20and\x20value.');export const RepDataItemSchema=z['object']({'data':z['array'](KeyDataSchema)['describe']('Data\x20item\x20list.\x20MUST\x20be\x20non-empty\x20unless\x20the\x20matching\x20policy\x20guard\x20sets\x20BOTH\x20id_from_submission\x20AND\x20data_from_submission\x20(then\x20pass\x20data:[]\x20—\x20the\x20id\x20AND\x20value\x20are\x20derived\x20from\x20the\x20passport\x20submission\x20table,\x20and\x20any\x20item-level\x20id/data\x20would\x20be\x20ignored).\x20With\x20only\x20ONE\x20of\x20the\x20two\x20submission\x20settings,\x20\x27data\x27\x20must\x20carry\x20the\x20missing\x20side;\x20with\x20none,\x20\x27data\x27\x20is\x20required.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20REQUIRED\x20for\x20data_add\x20items\x20when\x20the\x20matching\x20policy\x20uses\x20id_from=None(0):\x20it\x20must\x20reference\x20one\x20of\x20that\x20policy\x27s\x20write_guard\x20guards,\x20otherwise\x20the\x20chain\x20aborts\x20with\x2022\x20(E_POLICY_WRITE_GUARD_REQUIRED).\x20Optional\x20for\x20Clock/Signer\x20policies.')})['strict']()['describe']('List\x20of\x20data\x20items\x20to\x20write.');export const SignerOrClockBaseSchema=z['object']({'name':NameSchema['describe']('Data\x20item\x20name.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20Used\x20to\x20specify\x20the\x20policy\x20write\x20permissions\x20and\x20rules\x20corresponding\x20to\x20this\x20Guard.')})['strict']()['describe']('Specify\x20data\x20items\x20by\x20name\x20and\x20ID.\x20ID\x20is\x20the\x20on-chain\x20timestamp\x20or\x20signer\x20ID\x20(depending\x20on\x20how\x20write_guard\x20specifies\x20the\x20ID\x20source).');export const SignerOrClockSchema=z['object']({'name':NameSchema['describe']('Data\x20item\x20name.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20Used\x20to\x20specify\x20the\x20policy\x20write\x20permissions\x20and\x20rules\x20corresponding\x20to\x20this\x20Guard.'),'data':SupportedValueSchema})['strict']()['describe']('Specify\x20data\x20items\x20by\x20name\x20and\x20data.\x20ID\x20is\x20the\x20on-chain\x20timestamp\x20or\x20signer\x20ID\x20(depending\x20on\x20how\x20write_guard\x20specifies\x20the\x20ID\x20source).');export const DataRemoveItemSchema=z['object']({'id':z['array'](RepositoryIdSchema)['describe']('Data\x20item\x20ID\x20list.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20REQUIRED\x20for\x20data_remove\x20items\x20when\x20the\x20matching\x20policy\x20uses\x20id_from=None(0);\x20optional\x20for\x20Clock/Signer\x20policies.')})['strict']()['describe']('Delete\x20data\x20items\x20by\x20name\x20and\x20ID\x20list.');export const PoliciesAddSetSchema=z['object']({'op':z['enum'](['add','set']),'policy':z['array'](PolicyRuleSchema)['describe']('Policy\x20rule\x20list.')})['strict']()['describe']('op:\x27set\x27\x20REPLACES\x20THE\x20WHOLE\x20policy\x20list\x20(policies\x20not\x20included\x20are\x20deleted,\x20and\x20once\x20the\x20Permission\x20is\x20locked\x20they\x20cannot\x20be\x20restored)\x20—\x20use\x20op:\x27add\x27\x20to\x20append\x20or\x20update\x20individual\x20policies\x20without\x20touching\x20the\x20others.');export const PoliciesRemoveSchema=z['object']({'op':z['literal']('remove'),'policy':z['array'](NameSchema)['describe']('Policy\x20rule\x20name\x20list.')})['strict']()['describe']('Remove\x20policy\x20rules.');export const PoliciesClearSchema=z['object']({'op':z['literal']('clear')})['strict']()['describe']('Clear\x20policy\x20rules.');export const PoliciesSchema=z['discriminatedUnion']('op',[PoliciesAddSetSchema,PoliciesRemoveSchema,PoliciesClearSchema]);export const DataAddWithItemsSchema=z['object']({'name':NameSchema['describe']('Data\x20item\x20name.\x20Must\x20match\x20the\x20name\x20in\x20PolicyRule.'),'items':z['array'](RepDataItemSchema)['describe']('List\x20of\x20data\x20items\x20to\x20add.\x20WORKED\x20EXAMPLES\x20by\x20policy\x20id_from\x20mode\x20—\x20(a)\x20id_from=None(0),\x20policy\x20has\x20NO\x20write\x20guards:\x20items:[{data:[{id:\x220x2::example::0x123...\x22,\x20data:\x22value\x22}]}]\x20(no\x20write_guard).\x20(b)\x20id_from=None(0),\x20policy\x20HAS\x20write\x20guards\x20without\x20submission\x20settings:\x20items:[{write_guard:\x22<policy\x20guard>\x22,\x20data:[{id:...,\x20data:...}]}].\x20(c)\x20id_from=None(0),\x20policy\x20guard\x20sets\x20BOTH\x20id_from_submission\x20AND\x20data_from_submission:\x20items:[{write_guard:\x22<policy\x20guard>\x22,\x20data:[]}]\x20—\x20the\x20id\x20AND\x20value\x20come\x20from\x20the\x20passport\x20submission\x20table\x20(send\x20\x27submission\x27\x20in\x20the\x20same\x20call);\x20item-level\x20id/data\x20are\x20IGNORED\x20for\x20such\x20guards\x20and\x20one\x20record\x20is\x20written\x20per\x20guard.\x20(d)\x20id_from=Clock(1)/Signer(2):\x20use\x20the\x20SignerOrClock\x20form\x20{name,\x20data,\x20write_guard?}\x20instead\x20—\x20the\x20id\x20is\x20derived\x20on-chain\x20from\x20the\x20transaction\x20clock\x20or\x20signer;\x20write_guard\x20is\x20required\x20when\x20the\x20policy\x20declares\x20guards.')})['strict']()['describe']('Add\x20data\x20by\x20name\x20and\x20data\x20item\x20list.\x20Each\x20data\x20item\x20contains\x20name,\x20ID,\x20and\x20data\x20parts,\x20where\x20name\x20and\x20ID\x20together\x20form\x20the\x20unique\x20key\x20for\x20the\x20data.\x20See\x20\x27items\x27\x20for\x20worked\x20examples\x20per\x20policy\x20id_from\x20mode.');export const DataAddSchema=z['union']([SignerOrClockSchema,DataAddWithItemsSchema]);export const DataRemoveSchema=z['union']([SignerOrClockBaseSchema,z['object']({'name':NameSchema['describe']('Data\x20item\x20name.\x20Must\x20match\x20the\x20name\x20in\x20PolicyRule.'),'items':z['array'](DataRemoveItemSchema)['describe']('List\x20of\x20data\x20items\x20to\x20delete.')})['strict']()]);export const CallRepository_DataSchema=z['object']({'object':WithPermissionObjectSchema,'description':DescriptionSchema['optional'](),'policies':PoliciesSchema['optional']()['describe']('Write\x20and\x20read\x20permission\x20rules\x20governing\x20the\x20data\x20records\x20of\x20this\x20Repository.\x20NOTE\x20the\x20PLURAL\x20field\x20name\x20here\x20—\x20the\x20Permission\x20object\x27s\x20equivalent\x20field\x20is\x20singular\x20\x27policy\x27\x20(set/add/remove\x20ops);\x20do\x20not\x20carry\x20one\x20spelling\x20to\x20the\x20other.'),'data_add':DataAddSchema['optional']()['describe']('Add\x20data\x20items\x20to\x20an\x20ALREADY-EXISTING\x20Repository.\x20TWO-PHASE:\x20if\x20\x27object\x27\x20creates\x20a\x20NEW\x20Repository\x20in\x20this\x20same\x20call,\x20data_add\x20FAILS\x20(\x27Repository\x20content\x20not\x20ready\x27)\x20—\x20first\x20create\x20the\x20Repository\x20(one\x20call),\x20then\x20add\x20data\x20in\x20a\x20follow-up\x20call.\x20The\x20data_add.name\x20must\x20match\x20a\x20policy\x20rule\x20name\x20defined\x20in\x20\x27policies\x27.\x20SUBMISSION\x20GUARDS:\x20when\x20the\x20matched\x20policy\x20guard\x20sets\x20both\x20id_from_submission\x20and\x20data_from_submission,\x20the\x20id\x20AND\x20value\x20are\x20read\x20from\x20the\x20passport\x20submission\x20table\x20—\x20pass\x20items:[{write_guard,\x20data:[]}]\x20with\x20a\x20\x27submission\x27\x20in\x20the\x20same\x20call;\x20empty\x20items\x20or\x20entries\x20that\x20would\x20write\x20nothing\x20are\x20rejected\x20instead\x20of\x20silently\x20succeeding.\x20See\x20DataAddWithItemsSchema.items\x20for\x20worked\x20examples\x20per\x20id_from\x20mode.'),'data_remove':DataRemoveSchema['optional']()['describe']('Delete\x20data\x20items'),'rewards':ObjectsSchema['optional']()['describe']('Reward\x20objects\x20bound\x20to\x20this\x20Repository\x20to\x20incentivize\x20data\x20contribution.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Repository\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Repository\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20permission,\x20...}\x20to\x20create\x20a\x20Repository.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallRepository_InputSchema=z['object']({'data':CallRepository_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
1
|
+
import{z}from'zod';import{WithPermissionObjectSchema,ObjectsSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{AccountOrMark_AddressSchema,DescriptionSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';import{PolicyRuleSchema}from'../query/index.js';import{SupportedValueSchema}from'../common/index.js';export const RepositoryIdSchema=z['union']([z['string'](),z['number'](),AccountOrMark_AddressSchema])['describe']('Data\x20item\x20ID.\x20Supports:\x20plain\x20string(bigint),\x20number\x20(such\x20as\x20timestamp),\x20or\x20AccountOrMark_Address\x20format.');export const KeyDataSchema=z['object']({'id':RepositoryIdSchema,'data':SupportedValueSchema})['strict']()['describe']('Data\x20ID\x20and\x20value.');export const RepDataItemSchema=z['object']({'data':z['array'](KeyDataSchema)['describe']('Data\x20item\x20list.\x20MUST\x20be\x20non-empty\x20unless\x20the\x20matching\x20policy\x20guard\x20sets\x20BOTH\x20id_from_submission\x20AND\x20data_from_submission\x20(then\x20pass\x20data:[]\x20—\x20the\x20id\x20AND\x20value\x20are\x20derived\x20from\x20the\x20passport\x20submission\x20table,\x20and\x20any\x20item-level\x20id/data\x20would\x20be\x20ignored).\x20With\x20only\x20ONE\x20of\x20the\x20two\x20submission\x20settings,\x20\x27data\x27\x20must\x20carry\x20the\x20missing\x20side;\x20with\x20none,\x20\x27data\x27\x20is\x20required.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20REQUIRED\x20for\x20data_add\x20items\x20when\x20the\x20matching\x20policy\x20uses\x20id_from=None(0):\x20it\x20must\x20reference\x20one\x20of\x20that\x20policy\x27s\x20write_guard\x20guards,\x20otherwise\x20the\x20chain\x20aborts\x20with\x2022\x20(E_POLICY_WRITE_GUARD_REQUIRED).\x20Optional\x20for\x20Clock/Signer\x20policies.')})['strict']()['describe']('List\x20of\x20data\x20items\x20to\x20write.');export const SignerOrClockBaseSchema=z['object']({'name':NameSchema['describe']('Data\x20item\x20name.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20Used\x20to\x20specify\x20the\x20policy\x20write\x20permissions\x20and\x20rules\x20corresponding\x20to\x20this\x20Guard.')})['strict']()['describe']('Specify\x20data\x20items\x20by\x20name\x20and\x20ID.\x20ID\x20is\x20the\x20on-chain\x20timestamp\x20or\x20signer\x20ID\x20(depending\x20on\x20how\x20write_guard\x20specifies\x20the\x20ID\x20source).');export const SignerOrClockSchema=z['object']({'name':NameSchema['describe']('Data\x20item\x20name.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20Used\x20to\x20specify\x20the\x20policy\x20write\x20permissions\x20and\x20rules\x20corresponding\x20to\x20this\x20Guard.'),'data':SupportedValueSchema})['strict']()['describe']('Specify\x20data\x20items\x20by\x20name\x20and\x20data.\x20ID\x20is\x20the\x20on-chain\x20timestamp\x20or\x20signer\x20ID\x20(depending\x20on\x20how\x20write_guard\x20specifies\x20the\x20ID\x20source).');export const DataRemoveItemSchema=z['object']({'id':z['array'](RepositoryIdSchema)['describe']('Data\x20item\x20ID\x20list.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Guard\x20ID\x20or\x20name.\x20REQUIRED\x20for\x20data_remove\x20items\x20when\x20the\x20matching\x20policy\x20uses\x20id_from=None(0);\x20optional\x20for\x20Clock/Signer\x20policies.')})['strict']()['describe']('Delete\x20data\x20items\x20by\x20name\x20and\x20ID\x20list.');export const PoliciesAddSetSchema=z['object']({'op':z['enum'](['add','set']),'policy':z['array'](PolicyRuleSchema)['describe']('Policy\x20rule\x20list.')})['strict']()['describe']('op:\x27set\x27\x20REPLACES\x20THE\x20WHOLE\x20policy\x20list\x20(policies\x20not\x20included\x20are\x20deleted,\x20and\x20once\x20the\x20Permission\x20is\x20locked\x20they\x20cannot\x20be\x20restored)\x20—\x20use\x20op:\x27add\x27\x20to\x20append\x20or\x20update\x20individual\x20policies\x20without\x20touching\x20the\x20others.');export const PoliciesRemoveSchema=z['object']({'op':z['literal']('remove'),'policy':z['array'](NameSchema)['describe']('Policy\x20rule\x20name\x20list.')})['strict']()['describe']('Remove\x20policy\x20rules.');export const PoliciesClearSchema=z['object']({'op':z['literal']('clear')})['strict']()['describe']('Clear\x20policy\x20rules.');export const PoliciesSchema=z['discriminatedUnion']('op',[PoliciesAddSetSchema,PoliciesRemoveSchema,PoliciesClearSchema]);export const DataAddWithItemsSchema=z['object']({'name':NameSchema['describe']('Data\x20item\x20name.\x20Must\x20match\x20the\x20name\x20in\x20PolicyRule.'),'items':z['array'](RepDataItemSchema)['describe']('List\x20of\x20data\x20items\x20to\x20add.\x20WORKED\x20EXAMPLES\x20by\x20policy\x20id_from\x20mode\x20—\x20(a)\x20id_from=None(0),\x20policy\x20has\x20NO\x20write\x20guards:\x20items:[{data:[{id:\x220x2::example::0x123...\x22,\x20data:\x22value\x22}]}]\x20(no\x20write_guard).\x20(b)\x20id_from=None(0),\x20policy\x20HAS\x20write\x20guards\x20without\x20submission\x20settings:\x20items:[{write_guard:\x22<policy\x20guard>\x22,\x20data:[{id:...,\x20data:...}]}].\x20(c)\x20id_from=None(0),\x20policy\x20guard\x20sets\x20BOTH\x20id_from_submission\x20AND\x20data_from_submission:\x20items:[{write_guard:\x22<policy\x20guard>\x22,\x20data:[]}]\x20—\x20the\x20id\x20AND\x20value\x20come\x20from\x20the\x20passport\x20submission\x20table\x20(send\x20\x27submission\x27\x20in\x20the\x20same\x20call);\x20item-level\x20id/data\x20are\x20IGNORED\x20for\x20such\x20guards\x20and\x20one\x20record\x20is\x20written\x20per\x20guard.\x20(d)\x20id_from=Clock(1)/Signer(2):\x20use\x20the\x20SignerOrClock\x20form\x20{name,\x20data,\x20write_guard?}\x20instead\x20—\x20the\x20id\x20is\x20derived\x20on-chain\x20from\x20the\x20transaction\x20clock\x20or\x20signer;\x20write_guard\x20is\x20required\x20when\x20the\x20policy\x20declares\x20guards.')})['strict']()['describe']('Add\x20data\x20by\x20name\x20and\x20data\x20item\x20list.\x20Each\x20data\x20item\x20contains\x20name,\x20ID,\x20and\x20data\x20parts,\x20where\x20name\x20and\x20ID\x20together\x20form\x20the\x20unique\x20key\x20for\x20the\x20data.\x20See\x20\x27items\x27\x20for\x20worked\x20examples\x20per\x20policy\x20id_from\x20mode.');export const DataAddSchema=z['union']([SignerOrClockSchema,DataAddWithItemsSchema]);export const DataRemoveSchema=z['union']([SignerOrClockBaseSchema,z['object']({'name':NameSchema['describe']('Data\x20item\x20name.\x20Must\x20match\x20the\x20name\x20in\x20PolicyRule.'),'items':z['array'](DataRemoveItemSchema)['describe']('List\x20of\x20data\x20items\x20to\x20delete.')})['strict']()]);export const CallRepository_DataSchema=z['object']({'object':WithPermissionObjectSchema,'description':DescriptionSchema['optional'](),'policies':PoliciesSchema['optional']()['describe']('Write\x20and\x20read\x20permission\x20rules\x20governing\x20the\x20data\x20records\x20of\x20this\x20Repository.\x20NOTE\x20the\x20PLURAL\x20field\x20name\x20here\x20—\x20the\x20Permission\x20object\x27s\x20equivalent\x20field\x20is\x20singular\x20\x27policy\x27\x20(set/add/remove\x20ops);\x20do\x20not\x20carry\x20one\x20spelling\x20to\x20the\x20other.'),'data_add':DataAddSchema['optional']()['describe']('Add\x20data\x20items\x20to\x20an\x20ALREADY-EXISTING\x20Repository.\x20TWO\x20INPUT\x20SHAPES\x20(union,\x20KLM-FIND-12,\x20klook-mn\x20261019):\x20single-value\x20{name,\x20data,\x20write_guard?}\x20for\x20id_from=Clock(1)/Signer(2)\x20policies,\x20OR\x20batched\x20{name,\x20items:[{write_guard?,\x20data:[...]}]}\x20for\x20id_from=None(0)\x20policies.\x20TWO-PHASE:\x20if\x20\x27object\x27\x20creates\x20a\x20NEW\x20Repository\x20in\x20this\x20same\x20call,\x20data_add\x20FAILS\x20(\x27Repository\x20content\x20not\x20ready\x27)\x20—\x20first\x20create\x20the\x20Repository\x20(one\x20call),\x20then\x20add\x20data\x20in\x20a\x20follow-up\x20call.\x20The\x20data_add.name\x20must\x20match\x20a\x20policy\x20rule\x20name\x20defined\x20in\x20\x27policies\x27.\x20SUBMISSION\x20GUARDS:\x20when\x20the\x20matched\x20policy\x20guard\x20sets\x20both\x20id_from_submission\x20and\x20data_from_submission,\x20the\x20id\x20AND\x20value\x20are\x20read\x20from\x20the\x20passport\x20submission\x20table\x20—\x20pass\x20items:[{write_guard,\x20data:[]}]\x20with\x20a\x20\x27submission\x27\x20in\x20the\x20same\x20call;\x20empty\x20items\x20or\x20entries\x20that\x20would\x20write\x20nothing\x20are\x20rejected\x20instead\x20of\x20silently\x20succeeding.\x20See\x20DataAddWithItemsSchema.items\x20for\x20worked\x20examples\x20per\x20id_from\x20mode.'),'data_remove':DataRemoveSchema['optional']()['describe']('Delete\x20data\x20items'),'rewards':ObjectsSchema['optional']()['describe']('Reward\x20objects\x20bound\x20to\x20this\x20Repository\x20to\x20incentivize\x20data\x20contribution.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Repository\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Repository\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20permission,\x20...}\x20to\x20create\x20a\x20Repository.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallRepository_InputSchema=z['object']({'data':CallRepository_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -55,7 +55,7 @@ export declare const CallReward_DataSchema: z.ZodObject<{
|
|
|
55
55
|
expiration_time: z.ZodOptional<z.ZodNumber>;
|
|
56
56
|
store_from_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
57
57
|
}, z.core.$strip>>>;
|
|
58
|
-
|
|
58
|
+
guard_remove: z.ZodOptional<z.ZodString>;
|
|
59
59
|
guard_expiration_time: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
60
60
|
owner_receive: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"recently">, z.ZodString, z.ZodArray<z.ZodObject<{
|
|
61
61
|
id: z.ZodString;
|
|
@@ -144,7 +144,7 @@ export declare const CallReward_InputSchema: z.ZodObject<{
|
|
|
144
144
|
expiration_time: z.ZodOptional<z.ZodNumber>;
|
|
145
145
|
store_from_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
146
146
|
}, z.core.$strip>>>;
|
|
147
|
-
|
|
147
|
+
guard_remove: z.ZodOptional<z.ZodString>;
|
|
148
148
|
guard_expiration_time: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
149
149
|
owner_receive: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"recently">, z.ZodString, z.ZodArray<z.ZodObject<{
|
|
150
150
|
id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|