@wowok/agent-mcp 3.2.0 → 3.2.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/communication/wts-attestation.d.ts +34 -0
- package/dist/communication/wts-attestation.js +1 -0
- package/dist/config/exposure.d.ts +8 -8
- package/dist/config/judgment.d.ts +45 -20
- package/dist/config/rule-engine.d.ts +30 -20
- package/dist/config/rule-engine.js +1 -1
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exposure.js +1 -1
- package/dist/graph/onchain/facts.js +1 -1
- package/dist/graph/onchain/sdk-batch.d.ts +1 -0
- package/dist/graph/onchain/sdk-batch.js +1 -1
- package/dist/graph/onchain/sdk-dataplane.d.ts +1 -0
- package/dist/graph/onchain/sdk-dataplane.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +2 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.d.ts +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +1 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/allocation.json +31 -1
- package/dist/knowledge/builtin-templates.d.ts +3 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/discount-threshold.d.ts +15 -0
- package/dist/knowledge/discount-threshold.js +1 -0
- package/dist/knowledge/entity-recipient-guard.d.ts +21 -0
- package/dist/knowledge/entity-recipient-guard.js +1 -0
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-generalizer.d.ts +38 -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/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-topology.d.ts +34 -0
- package/dist/knowledge/machine-topology.js +1 -1
- package/dist/knowledge/onchain-constants.d.ts +2 -2
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +11 -0
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/strategy-manuals.d.ts +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +41 -0
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/tool-constraints.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/customer-interest.js +1 -1
- package/dist/participation/merchant-interest.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/index.d.ts +1 -0
- package/dist/playbooks/service-build/intent-analyzer.d.ts +1 -0
- package/dist/playbooks/service-build/intent-analyzer.js +1 -1
- package/dist/playbooks/service-build/machine-nodes.d.ts +1 -1
- package/dist/playbooks/service-build/machine-nodes.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +12 -1
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +27 -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 -0
- 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/reverse-mapping-refund-p0-5.spec.d.ts +1 -0
- package/dist/playbooks/service-build/reverse-mapping-refund-p0-5.spec.js +1 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.d.ts +1 -0
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/role/profiles.js +1 -1
- package/dist/role/types.d.ts +2 -0
- package/dist/role/types.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +7 -7
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +5 -5
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +5 -9
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +3 -2
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +1 -1
- package/dist/schema/call/payment.d.ts +1 -1
- package/dist/schema/call/permission.d.ts +1 -1
- package/dist/schema/call/personal.d.ts +1 -1
- package/dist/schema/call/progress.d.ts +1 -1
- package/dist/schema/call/proof.d.ts +2 -2
- package/dist/schema/call/repository.d.ts +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +5 -5
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +6 -2
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +8 -8
- package/dist/schema/goal/planning.d.ts +22 -15
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +39 -0
- package/dist/schema/industry-pack/index.js +1 -1
- package/dist/schema/industry-pack/modes.d.ts +15 -0
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +3 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +577 -18
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +160 -20
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +32 -28
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +818 -708
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +22 -6
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +32 -32
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +3 -3
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/utils/node-parser.js +1 -1
- package/dist/schema/watch/index.d.ts +2 -2
- package/dist/schema/workflow/index.d.ts +2 -2
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +6 -2
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/bridge_operation.schema.json +2 -10
- package/dist/schemas/evaluation_operation.output.json +2 -0
- package/dist/schemas/evaluation_operation.schema.json +2 -0
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/industry_pack_operation.output.json +196 -4
- package/dist/schemas/industry_pack_operation.schema.json +3 -1
- package/dist/schemas/intent_radar.output.json +2 -0
- package/dist/schemas/intent_radar.schema.json +1 -0
- package/dist/schemas/local_cache_operation.output.json +1536 -0
- package/dist/schemas/local_cache_operation.schema.json +101 -0
- package/dist/schemas/local_mark_operation.output.json +51 -36
- package/dist/schemas/local_mark_operation.schema.json +1 -0
- package/dist/schemas/messenger_operation.output.json +42 -4
- package/dist/schemas/messenger_operation.schema.json +358 -35
- package/dist/schemas/onchain_operations.schema.json +14 -14
- package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
- package/dist/schemas/onchain_operations_machine.schema.json +2 -2
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_reward.schema.json +1 -1
- package/dist/schemas/onchain_operations_service.schema.json +5 -5
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -1
- package/dist/schemas/onchain_table_data.output.json +16 -1
- package/dist/schemas/persona_operation.output.json +266 -0
- package/dist/schemas/persona_operation.schema.json +42 -0
- package/dist/schemas/query_toolkit.output.json +12 -5
- package/dist/schemas/query_toolkit.schema.json +18 -3
- package/dist/tools/handlers/benchmark-migration.d.ts +17 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/local.d.ts +1 -0
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/messenger.d.ts +9 -2
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/name-resolution.d.ts +4 -0
- package/dist/tools/handlers/name-resolution.js +1 -0
- package/dist/tools/handlers/name-resolution.spec.d.ts +1 -0
- package/dist/tools/handlers/name-resolution.spec.js +1 -0
- package/dist/tools/handlers/onchain-name-registration.d.ts +37 -0
- package/dist/tools/handlers/onchain-name-registration.js +1 -0
- package/dist/tools/handlers/onchain-name-registration.spec.d.ts +1 -0
- package/dist/tools/handlers/onchain-name-registration.spec.js +1 -0
- package/dist/tools/handlers/onchain.d.ts +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.d.ts +1 -0
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/local.js +1 -1
- package/dist/tools/sanitize-description-roundtrip.spec.d.ts +1 -0
- package/dist/tools/sanitize-description-roundtrip.spec.js +1 -0
- package/dist/tools/sanitize-output.d.ts +1 -0
- package/dist/tools/sanitize-output.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +4 -3
|
@@ -25,11 +25,11 @@ export declare const CallAllocation_CreateSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>]>;
|
|
26
26
|
sharing: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
27
27
|
mode: z.ZodUnion<readonly [z.ZodEnum<{
|
|
28
|
-
Amount: "Amount";
|
|
29
28
|
Surplus: "Surplus";
|
|
30
29
|
Rate: "Rate";
|
|
31
30
|
RateGross: "RateGross";
|
|
32
|
-
|
|
31
|
+
Amount: "Amount";
|
|
32
|
+
}>, z.ZodPipe<z.ZodNumber, z.ZodTransform<"Surplus" | "Rate" | "RateGross" | "Amount", number>>]>;
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
34
|
fix: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
35
35
|
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodNull]>>;
|
|
@@ -90,11 +90,11 @@ export declare const CallAllocation_DataSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
90
90
|
}, z.core.$strip>]>;
|
|
91
91
|
sharing: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
92
92
|
mode: z.ZodUnion<readonly [z.ZodEnum<{
|
|
93
|
-
Amount: "Amount";
|
|
94
93
|
Surplus: "Surplus";
|
|
95
94
|
Rate: "Rate";
|
|
96
95
|
RateGross: "RateGross";
|
|
97
|
-
|
|
96
|
+
Amount: "Amount";
|
|
97
|
+
}>, z.ZodPipe<z.ZodNumber, z.ZodTransform<"Surplus" | "Rate" | "RateGross" | "Amount", number>>]>;
|
|
98
98
|
}, z.core.$strip>>;
|
|
99
99
|
fix: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
100
100
|
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodNull]>>;
|
|
@@ -155,11 +155,11 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
|
|
|
155
155
|
}, z.core.$strip>]>;
|
|
156
156
|
sharing: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
157
157
|
mode: z.ZodUnion<readonly [z.ZodEnum<{
|
|
158
|
-
Amount: "Amount";
|
|
159
158
|
Surplus: "Surplus";
|
|
160
159
|
Rate: "Rate";
|
|
161
160
|
RateGross: "RateGross";
|
|
162
|
-
|
|
161
|
+
Amount: "Amount";
|
|
162
|
+
}>, z.ZodPipe<z.ZodNumber, z.ZodTransform<"Surplus" | "Rate" | "RateGross" | "Amount", number>>]>;
|
|
163
163
|
}, z.core.$strip>>;
|
|
164
164
|
fix: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
165
165
|
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodNull]>>;
|
|
@@ -211,8 +211,8 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
|
|
|
211
211
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
212
212
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
213
213
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
214
|
-
compact: "compact";
|
|
215
214
|
full: "full";
|
|
215
|
+
compact: "compact";
|
|
216
216
|
}>>;
|
|
217
217
|
confirm_mode: z.ZodOptional<z.ZodEnum<{
|
|
218
218
|
full: "full";
|
|
@@ -340,8 +340,8 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
340
340
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
341
341
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
342
342
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
343
|
-
compact: "compact";
|
|
344
343
|
full: "full";
|
|
344
|
+
compact: "compact";
|
|
345
345
|
}>>;
|
|
346
346
|
confirm_mode: z.ZodOptional<z.ZodEnum<{
|
|
347
347
|
full: "full";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{VotingGuardSchema}from'../query/index.js';import{BalanceTypeSchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';const ARB_CASE_FIELD=NameOrAddressSchema['describe']('Arb\x20CASE\x20object\x20—\x20the\x20single\x20dispute\x20case\x20created\x20by\x20`dispute`\x20(the\x20object\x20you\x20may\x20have\x20named\x20via\x20`namedArb`).\x20'+'NOT\x20the\x20arbitrator\x20registration\x20object:\x20that\x20one\x20goes\x20in\x20the\x20ROOT\x20`object`\x20field,\x20while\x20every\x20case-scoped\x20'+'operation\x20(confirm\x20/\x20voting_deadline_change\x20/\x20vote\x20/\x20feedback\x20/\x20arbitration\x20/\x20reset\x20/\x20arb_withdraw)\x20addresses\x20'+'the\x20case\x20through\x20THIS\x20field.\x20Accepts\x20the\x20Arb\x27s\x200x\x20address\x20or\x20its\x20LocalMark\x20name.');export const DisputeSchema=z['object']({'order':NameOrAddressSchema['describe']('Order\x20ID\x20or\x20name.'),'description':DescriptionSchema['optional']()['describe']('Dispute\x20description.'),'proposition':z['array'](LongNameSchema)['describe']('List\x20of\x20dispute\x20propositions.'),'fee':CoinParamSchema['describe']('Dispute\x20processing\x20fee.\x20FORMAT:\x20{balance:\x20<amount_in_smallest_unit>}\x20—\x20field\x20name\x20is\x20\x27balance\x27\x20(NOT\x20\x27amount\x27).\x20'+'The\x20token\x20type\x20and\x20precision\x20are\x20determined\x20by\x20the\x20Arbitration\x20object\x27s\x20type_parameter\x20(the\x20generic\x20type\x20set\x20when\x20the\x20Arbitration\x20was\x20created).\x20'+'For\x20WOW\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20WOW.\x20'+'For\x20tokens\x20with\x20different\x20decimals,\x20adjust\x20accordingly\x20(e.g.\x20USDC\x20has\x206\x20decimals,\x20so\x20{balance:\x2050000}\x20=\x200.05\x20USDC).\x20'+'docs#45:\x20the\x20fee\x20does\x20NOT\x20return\x20to\x20the\x20filer\x20on\x20a\x20win\x20—\x20it\x20stays\x20in\x20the\x20Arbitration\x20object\x20and\x20is\x20withdrawable\x20by\x20the\x20arbitrator.'),'namedArb':NamedObjectSchema['optional']()['describe']('RECOMMENDED:\x20Set\x20a\x20local\x20name\x20for\x20the\x20newly\x20created\x20Arb\x20(arbitration\x20case)\x20object.\x20'+'Without\x20this,\x20the\x20Arb\x20is\x20only\x20referenceable\x20by\x20its\x20on-chain\x20address.\x20'+'Example:\x20{name:\x20\x27my_dispute_v1\x27}\x20allows\x20subsequent\x20vote/feedback\x20operations\x20to\x20use\x20\x27my_dispute_v1\x27.')})['strict']();export const ConfirmSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number']()['int']()['min'](0x0),z['null']()])['default'](0x0)['describe']('Voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20(DEFAULT\x20when\x20omitted)\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately\x20(direct-verdict\x20flow);\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VotingDeadlineChangeSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number'](),z['null']()])['describe']('New\x20voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately;\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VoteSchema=z['object']({'arb':ARB_CASE_FIELD,'votes':z['array'](z['number']()['int']()['min'](0x0)['max'](0xff))['describe']('Proposition\x20INDICES\x20(0-based,\x20u8)\x20the\x20voter\x20agrees\x20with\x20—\x20e.g.\x20[0]\x20votes\x20for\x20the\x20first\x20proposition.\x20'+'Re-voting\x20REPLACES\x20the\x20voter\x27s\x20previous\x20vote\x20(old\x20weight\x20removed,\x20new\x20applied).\x20'+'Out-of-range\x20index\x20aborts\x20with\x20E_PROPOSITION_NOT_FOUND.'),'voting_guard':NameOrAddressSchema['optional']()['describe']('Voting\x20Guard\x20for\x20WEIGHTED\x20voting.\x20DECISION\x20RULE\x20(contract-enforced):\x0a'+'(A)\x20Arbitration\x20HAS\x20a\x20non-empty\x20voting_guard\x20list\x20→\x20plain\x20vote\x20is\x20REJECTED\x20on-chain\x20with\x20E_VOTING_GUARD_USED\x20(abort\x202).\x20'+'You\x20MUST\x20provide\x20this\x20field\x20set\x20to\x20ONE\x20guard\x20from\x20the\x20Arbitration\x27s\x20voting_guard\x20list,\x20and\x20fill\x20its\x20submission:\x20'+'when\x20the\x20guard\x27s\x20vote_weight\x20is\x20{GuardIdentifier:\x20pos},\x20the\x20number\x20you\x20submit\x20at\x20that\x20table\x20position\x20IS\x20the\x20vote\x20weight;\x20'+'when\x20it\x20is\x20{FixedValue:\x20v},\x20no\x20submission\x20is\x20needed\x20(weight\x20is\x20fixed).\x20The\x20SDK\x20then\x20routes\x20the\x20call\x20through\x20the\x20Guard-weighted\x20vote\x20path\x20via\x20a\x20Passport.\x20'+'Omitting\x20this\x20field\x20on\x20such\x20an\x20Arbitration\x20now\x20fails\x20fast\x20pre-call\x20with\x20the\x20list\x20of\x20valid\x20guards.\x0a'+'(B)\x20Arbitration\x20has\x20NO\x20voting_guard\x20→\x20omit\x20this\x20field;\x20the\x20SDK\x20uses\x20plain\x20vote\x20(weight\x201,\x20permission-gated),\x20or\x20the\x20passport-gated\x20vote\x20path\x20when\x20other\x20guards\x20require\x20it.\x0a'+'BOTH\x20(B)\x20paths\x20still\x20assert\x20ARBITRATION_VOTE=358\x20on-chain\x20(the\x20SDK\x20now\x20pre-checks\x20358\x20and\x20fails\x20fast\x20with\x20\x27Missing\x20permissions\x20358\x27).\x20'+'An\x20empty\x20voting_guard\x20means\x20EQUAL\x20WEIGHT\x20(1\x20person\x201\x20vote),\x20NOT\x20permissionless\x20—\x20there\x20is\x20no\x20permission-free\x20vote\x20entry.\x20'+'For\x20genuinely\x20open\x20voting,\x20configure\x20a\x20public\x20voting_guard\x20(op=\x22set\x22)\x20and\x20vote\x20via\x20path\x20(A):\x20the\x20weighted\x20passport\x20path\x20authorizes\x20by\x20the\x20guard\x20and\x20does\x20NOT\x20require\x20358.\x0a'+'The\x20Guard\x20(when\x20provided)\x20MUST\x20be\x20in\x20the\x20Arbitration\x27s\x20voting_guard\x20list\x20—\x20an\x20unlisted\x20guard\x20aborts\x20with\x20E_VOTING_GUARD_NOT_FOUND.')})['strict']();export const FeedbackSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbitrationActionSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.'),'indemnity':z['number']()['int']()['min'](0x0)})['strict']();export const ResetSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbWithdrawSchema=z['object']({'arb':ARB_CASE_FIELD})['strict']();export const FeesTransferToSchema=z['union']([z['object']({'allocation':NameOrAddressSchema['describe']('Allocation\x20object\x20ID\x20or\x20name.')})['strict'](),z['object']({'treasury':NameOrAddressSchema['describe']('Treasury\x20object\x20ID\x20or\x20name.\x20NOTE:\x20the\x20transferred\x20funds\x20arrive\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20Treasury\x20and\x20only\x20count\x20'+'after\x20the\x20Treasury\x20intakes\x20them\x20—\x20call\x20treasury\x20receive:\x20\x22recently\x22\x20(requires\x20permission\x20253\x20TREASURY_RECEIVE\x20on\x20the\x20Treasury).')})['strict']()]);export const FeesTransferSchema=z['object']({'to':FeesTransferToSchema['describe']('Transfer\x20arbitration\x20fees\x20to\x20the\x20specified\x20Allocation\x20object\x20or\x20Treasury\x20object.'),'payment_remark':NameSchema['describe']('Payment\x20remark.'),'payment_index':z['number']()['int']()['min'](0x0)['describe']('0-based\x20index\x20of\x20the\x20fee\x20payment\x20inside\x20the\x20Arb\x20case\x27s\x20fees\x20table\x20(query\x20the\x20Arb\x20case\x20with\x20onchain_operations\x20type\x20\x27q\x27\x20/\x20onchain_table_data\x20to\x20list\x20its\x20fees\x20and\x20their\x20indices).\x20REQUIRED\x20—\x20without\x20it\x20the\x20transfer\x20cannot\x20name\x20which\x20fee\x20record\x20to\x20move.'),'newPayment':NamedObjectSchema['optional']()['describe']('Name\x20for\x20the\x20newly\x20created\x20payment\x20object.')})['strict']();export const VotingGuardActionSchema=z['discriminatedUnion']('op',[z['object']({'op':z['enum'](['add','set']),'guards':z['array'](VotingGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallArbitration_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'dispute':DisputeSchema['optional']()['describe']('Create\x20a\x20new\x20Arb\x20object\x20for\x20the\x20order;\x20the\x20case\x20lands\x20directly\x20in\x20state\x201\x20(Arbitrator_confirming)\x20—\x20the\x20customer\x20does\x20not\x20confirm\x20at\x20filing\x20time.'),'description':DescriptionSchema['optional']()['describe']('Introduction\x20of\x20the\x20Arbitration\x20object.'),'location':LongNameSchema['optional']()['describe']('Arbitration\x20location.'),'fee':BalanceTypeSchema['optional']()['describe']('Arbitration\x20filing\x20fee.\x20FORMAT:\x20a\x20direct\x20amount\x20value\x20—\x20NOT\x20wrapped\x20in\x20'+'{balance:\x20...}\x20(that\x20CoinParam\x20shape\x20is\x20only\x20for\x20dispute.fee,\x20which\x20pays\x20a\x20coin\x20object).\x20'+'Accepted:\x20smallest-unit\x20number\x20or\x20string\x20(e.g.\x2050000000\x20=\x200.05\x20WOW\x20at\x209\x20decimals),\x20or\x20'+'display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x220.05WOW\x22)\x20—\x20the\x20Fund\x20Processing\x20Layer\x20'+'converts\x20it\x20using\x20the\x20Arbitration\x20object\x27s\x20own\x20token\x20decimals.\x20'+'Default\x200\x20on\x20creation:\x20disputes\x20are\x20then\x20free\x20(the\x20filer\x27s\x20coin\x20is\x20fully\x20refunded\x20on\x20'+'filing)\x20and\x20the\x20arbitrator\x20earns\x20no\x20per-case\x20fee.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20arbitration.'),'confirm':ConfirmSchema['optional']()['describe']('ARBITRATOR-side\x20material\x20confirmation\x20(from\x20state\x201):\x20moves\x20the\x20case\x20to\x20state\x202\x20(Voting).\x20'+'Customers\x20cannot\x20call\x20this\x20—\x20the\x20customer-side\x20step\x20is\x20order.arb_confirm\x20(state\x200\x20to\x201).'),'voting_deadline_change':VotingDeadlineChangeSchema['optional']()['describe']('Change\x20the\x20voting\x20deadline.'),'vote':VoteSchema['optional']()['describe']('Vote\x20on\x20user\x20propositions.'),'feedback':FeedbackSchema['optional']()['describe']('Arbitration\x20feedback\x20for\x20the\x20Arb\x20object.'),'arbitration':ArbitrationActionSchema['optional']()['describe']('Provide\x20a\x20definitive\x20arbitration\x20result.'),'reset':ResetSchema['optional']()['describe']('ARBITRATOR-side\x20reset\x20(arbitration\x20permission\x20holder;\x20valid\x20from\x20state\x204\x20Objectionable\x20or\x20state\x201):\x20voids\x20the\x20ruling,\x20'+'clears\x20the\x20indemnity\x20and\x20returns\x20the\x20case\x20to\x20state\x200\x20(Principal_confirming).\x20After\x20a\x20reset\x20ONLY\x20the\x20customer\x20can\x20advance\x20the\x20case\x20'+'again\x20via\x20order.arb_confirm\x20—\x20state\x200\x20has\x20no\x20timeout\x20and\x20the\x20fee\x20stays\x20locked\x20until\x20the\x20customer\x20re-confirms.'),'arb_withdraw':ArbWithdrawSchema['optional']()['describe']('Withdraw\x20arbitration\x20fees\x20from\x20the\x20Arb\x20object\x20(arbitrator).\x20Immediately\x20from\x20state\x205\x20(Finished);\x20from\x20state\x203\x20only\x20after\x2030\x20days\x20'+'from\x20the\x20ruling\x20time\x20(no\x20objection\x20filed\x20—\x20silence\x20=\x20acceptance);\x20rejected\x20in\x20states\x200/1/2.\x20'+'State\x204\x20(Objectionable)\x20can\x20NEVER\x20withdraw\x20(protocol\x20141):\x20a\x20contested\x20case\x20keeps\x20its\x20fee\x20escrowed\x20until\x20the\x20customer\x20'+'closes\x20the\x20objection\x20cycle\x20—\x20reset\x20→\x20order.arb_confirm\x20→\x20new\x20ruling\x20→\x20unchallenged\x20(or\x20accepted\x20via\x20finish).\x20'+'⚠️\x20TWO-STAGE\x20FEE\x20CASH-OUT\x20(verified\x20on\x20testnet):\x20this\x20call\x20does\x20NOT\x20pay\x20the\x20arbitrator\x27s\x20wallet\x20—\x20it\x20moves\x20the\x20case\x20fee\x20'+'into\x20the\x20Arbitration\x20(Registration)\x20object\x27s\x20own\x20balance\x20pool.\x20To\x20actually\x20receive\x20the\x20money:\x20'+'fees_transfer\x20(to\x20a\x20treasury\x20or\x20allocation)\x20→\x20treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20→\x20treasury\x20withdraw\x20→\x20'+'recipient\x20payment\x20receive.\x20A\x20successful\x20arb_withdraw\x20with\x20no\x20wallet\x20balance\x20change\x20is\x20EXPECTED,\x20not\x20a\x20failure.'),'fees_transfer':FeesTransferSchema['optional']()['describe']('Distribute\x20the\x20withdrawn\x20arbitration\x20fees.\x20Moves\x20the\x20Arbitration\x27s\x20ENTIRE\x20balance\x20in\x20ONE\x20call\x20—\x20there\x20is\x20NO\x20amount\x20parameter.\x20'+'The\x20balance\x20leaves\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20target\x20(allocation\x20or\x20treasury);\x20for\x20a\x20treasury\x20target,\x20intake\x20it\x20with\x20'+'treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20—\x20see\x20the\x20\x27to\x27\x20field\x20description.'),'usage_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20when\x20users\x20apply\x20for\x20arbitration;\x20if\x20Guard\x20verification\x20fails,\x20users\x20will\x20not\x20be\x20able\x20to\x20apply\x20for\x20arbitration.'),'voting_guard':VotingGuardActionSchema['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20during\x20arbitration\x20voting;\x20if\x20Guard\x20verification\x20fails,\x20arbitration\x20voting\x20will\x20fail.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Arbitration\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\x20Arbitration\x20operations.\x20TWO\x20OBJECT\x20KINDS\x20—\x20do\x20not\x20confuse\x20them\x20(§5.9):\x20the\x20ROOT\x20\x27object\x27\x20field\x20is\x20the\x20Arbitration\x20(arbitrator\x20REGISTRATION)\x20object;\x20the\x20Arb\x20(single\x20CASE)\x20created\x20by\x20\x27dispute\x27\x20is\x20addressed\x20via\x20each\x20case\x20operation\x27s\x20\x27arb\x27\x20field.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20an\x20Arbitration.\x20NOTE:\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⚠️\x20PERMISSION\x20RULE\x20(contract-enforced):\x20the\x20Arbitration\x27s\x20permission\x20MUST\x20be\x20DIFFERENT\x20from\x20the\x20permission\x20of\x20any\x20Service\x20it\x20will\x20be\x20bound\x20to\x20—\x20binding\x20an\x20Arbitration\x20that\x20SHARES\x20the\x20Service\x27s\x20Permission\x20aborts\x20with\x20E_ARBITRATION_PERMISSION_CONFLICT\x20(error\x2033).\x20Always\x20create\x20a\x20DEDICATED\x20Permission\x20object\x20for\x20each\x20Arbitration.\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 CallArbitration_InputSchema=z['object']({'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{VotingGuardSchema}from'../query/index.js';import{BalanceTypeSchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';const ARB_CASE_FIELD=NameOrAddressSchema['describe']('Arb\x20CASE\x20object\x20—\x20the\x20single\x20dispute\x20case\x20created\x20by\x20`dispute`\x20(the\x20object\x20you\x20may\x20have\x20named\x20via\x20`namedArb`).\x20'+'NOT\x20the\x20arbitrator\x20registration\x20object:\x20that\x20one\x20goes\x20in\x20the\x20ROOT\x20`object`\x20field,\x20while\x20every\x20case-scoped\x20'+'operation\x20(confirm\x20/\x20voting_deadline_change\x20/\x20vote\x20/\x20feedback\x20/\x20arbitration\x20/\x20reset\x20/\x20arb_withdraw)\x20addresses\x20'+'the\x20case\x20through\x20THIS\x20field.\x20Accepts\x20the\x20Arb\x27s\x200x\x20address\x20or\x20its\x20LocalMark\x20name.');export const DisputeSchema=z['object']({'order':NameOrAddressSchema['describe']('Order\x20ID\x20or\x20name.'),'description':DescriptionSchema['optional']()['describe']('Dispute\x20description.'),'proposition':z['array'](LongNameSchema)['describe']('List\x20of\x20dispute\x20propositions.'),'fee':CoinParamSchema['describe']('Dispute\x20processing\x20fee.\x20FORMAT:\x20{balance:\x20<amount_in_smallest_unit>}\x20—\x20field\x20name\x20is\x20\x27balance\x27\x20(NOT\x20\x27amount\x27).\x20'+'The\x20token\x20type\x20and\x20precision\x20are\x20determined\x20by\x20the\x20Arbitration\x20object\x27s\x20type_parameter\x20(the\x20generic\x20type\x20set\x20when\x20the\x20Arbitration\x20was\x20created).\x20'+'For\x20WOW\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20WOW.\x20'+'For\x20tokens\x20with\x20different\x20decimals,\x20adjust\x20accordingly\x20(e.g.\x20USDC\x20has\x206\x20decimals,\x20so\x20{balance:\x2050000}\x20=\x200.05\x20USDC).\x20'+'docs#45:\x20the\x20fee\x20does\x20NOT\x20return\x20to\x20the\x20filer\x20on\x20a\x20win\x20—\x20it\x20stays\x20in\x20the\x20Arbitration\x20object\x20and\x20is\x20withdrawable\x20by\x20the\x20arbitrator.'),'namedArb':NamedObjectSchema['optional']()['describe']('RECOMMENDED:\x20Set\x20a\x20local\x20name\x20for\x20the\x20newly\x20created\x20Arb\x20(arbitration\x20case)\x20object.\x20'+'Without\x20this,\x20the\x20Arb\x20is\x20only\x20referenceable\x20by\x20its\x20on-chain\x20address.\x20'+'Example:\x20{name:\x20\x27my_dispute_v1\x27}\x20allows\x20subsequent\x20vote/feedback\x20operations\x20to\x20use\x20\x27my_dispute_v1\x27.')})['strict']();export const ConfirmSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number']()['int']()['min'](0x0),z['null']()])['default'](null)['describe']('Voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'null\x20(DEFAULT\x20when\x20omitted)\x20=\x20open-ended\x20voting,\x20no\x20deadline;\x20parties\x20may\x20vote\x20at\x20any\x20time\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately\x20(arb.move\x20skips\x20the\x20deadline\x20assert\x20when\x20the\x20Option\x20is\x20none)\x20—\x20this\x20is\x20the\x20SAFE\x20default;\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20bounded\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours);\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20(every\x20vote\x20aborts\x20E_VOTING_DEADLINE_PASSED)\x20and\x20only\x20a\x20direct\x20verdict\x20is\x20possible.\x20Only\x20pass\x200\x20deliberately\x20when\x20you\x20truly\x20want\x20a\x20no-vote\x20verdict.\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VotingDeadlineChangeSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number'](),z['null']()])['describe']('New\x20voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately;\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VoteSchema=z['object']({'arb':ARB_CASE_FIELD,'votes':z['array'](z['number']()['int']()['min'](0x0)['max'](0xff))['describe']('Proposition\x20INDICES\x20(0-based,\x20u8)\x20the\x20voter\x20agrees\x20with\x20—\x20e.g.\x20[0]\x20votes\x20for\x20the\x20first\x20proposition.\x20'+'Re-voting\x20REPLACES\x20the\x20voter\x27s\x20previous\x20vote\x20(old\x20weight\x20removed,\x20new\x20applied).\x20'+'Out-of-range\x20index\x20aborts\x20with\x20E_PROPOSITION_NOT_FOUND.'),'voting_guard':NameOrAddressSchema['optional']()['describe']('Voting\x20Guard\x20for\x20WEIGHTED\x20voting.\x20DECISION\x20RULE\x20(contract-enforced):\x0a'+'(A)\x20Arbitration\x20HAS\x20a\x20non-empty\x20voting_guard\x20list\x20→\x20plain\x20vote\x20is\x20REJECTED\x20on-chain\x20with\x20E_VOTING_GUARD_USED\x20(abort\x202).\x20'+'You\x20MUST\x20provide\x20this\x20field\x20set\x20to\x20ONE\x20guard\x20from\x20the\x20Arbitration\x27s\x20voting_guard\x20list,\x20and\x20fill\x20its\x20submission:\x20'+'when\x20the\x20guard\x27s\x20vote_weight\x20is\x20{GuardIdentifier:\x20pos},\x20the\x20number\x20you\x20submit\x20at\x20that\x20table\x20position\x20IS\x20the\x20vote\x20weight;\x20'+'when\x20it\x20is\x20{FixedValue:\x20v},\x20no\x20submission\x20is\x20needed\x20(weight\x20is\x20fixed).\x20The\x20SDK\x20then\x20routes\x20the\x20call\x20through\x20the\x20Guard-weighted\x20vote\x20path\x20via\x20a\x20Passport.\x20'+'Omitting\x20this\x20field\x20on\x20such\x20an\x20Arbitration\x20now\x20fails\x20fast\x20pre-call\x20with\x20the\x20list\x20of\x20valid\x20guards.\x0a'+'(B)\x20Arbitration\x20has\x20NO\x20voting_guard\x20→\x20omit\x20this\x20field;\x20the\x20SDK\x20uses\x20plain\x20vote\x20(weight\x201,\x20permission-gated),\x20or\x20the\x20passport-gated\x20vote\x20path\x20when\x20other\x20guards\x20require\x20it.\x0a'+'BOTH\x20(B)\x20paths\x20still\x20assert\x20ARBITRATION_VOTE=358\x20on-chain\x20(the\x20SDK\x20now\x20pre-checks\x20358\x20and\x20fails\x20fast\x20with\x20\x27Missing\x20permissions\x20358\x27).\x20'+'An\x20empty\x20voting_guard\x20means\x20EQUAL\x20WEIGHT\x20(1\x20person\x201\x20vote),\x20NOT\x20permissionless\x20—\x20there\x20is\x20no\x20permission-free\x20vote\x20entry.\x20'+'For\x20genuinely\x20open\x20voting,\x20configure\x20a\x20public\x20voting_guard\x20(op=\x22set\x22)\x20and\x20vote\x20via\x20path\x20(A):\x20the\x20weighted\x20passport\x20path\x20authorizes\x20by\x20the\x20guard\x20and\x20does\x20NOT\x20require\x20358.\x0a'+'The\x20Guard\x20(when\x20provided)\x20MUST\x20be\x20in\x20the\x20Arbitration\x27s\x20voting_guard\x20list\x20—\x20an\x20unlisted\x20guard\x20aborts\x20with\x20E_VOTING_GUARD_NOT_FOUND.')})['strict']();export const FeedbackSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbitrationActionSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.'),'indemnity':z['number']()['int']()['min'](0x0)})['strict']();export const ResetSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbWithdrawSchema=z['object']({'arb':ARB_CASE_FIELD})['strict']();export const FeesTransferToSchema=z['union']([z['object']({'allocation':NameOrAddressSchema['describe']('Allocation\x20object\x20ID\x20or\x20name.')})['strict'](),z['object']({'treasury':NameOrAddressSchema['describe']('Treasury\x20object\x20ID\x20or\x20name.\x20NOTE:\x20the\x20transferred\x20funds\x20arrive\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20Treasury\x20and\x20only\x20count\x20'+'after\x20the\x20Treasury\x20intakes\x20them\x20—\x20call\x20treasury\x20receive:\x20\x22recently\x22\x20(requires\x20permission\x20253\x20TREASURY_RECEIVE\x20on\x20the\x20Treasury).')})['strict']()]);export const FeesTransferSchema=z['object']({'to':FeesTransferToSchema['describe']('Transfer\x20arbitration\x20fees\x20to\x20the\x20specified\x20Allocation\x20object\x20or\x20Treasury\x20object.'),'payment_remark':NameSchema['describe']('Payment\x20remark.'),'payment_index':z['number']()['int']()['min'](0x0)['describe']('0-based\x20index\x20of\x20the\x20fee\x20payment\x20inside\x20the\x20Arb\x20case\x27s\x20fees\x20table\x20(query\x20the\x20Arb\x20case\x20with\x20onchain_operations\x20type\x20\x27q\x27\x20/\x20onchain_table_data\x20to\x20list\x20its\x20fees\x20and\x20their\x20indices).\x20REQUIRED\x20—\x20without\x20it\x20the\x20transfer\x20cannot\x20name\x20which\x20fee\x20record\x20to\x20move.'),'newPayment':NamedObjectSchema['optional']()['describe']('Name\x20for\x20the\x20newly\x20created\x20payment\x20object.')})['strict']();export const VotingGuardActionSchema=z['discriminatedUnion']('op',[z['object']({'op':z['enum'](['add','set']),'guards':z['array'](VotingGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallArbitration_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'dispute':DisputeSchema['optional']()['describe']('Create\x20a\x20new\x20Arb\x20object\x20for\x20the\x20order;\x20the\x20case\x20lands\x20directly\x20in\x20state\x201\x20(Arbitrator_confirming)\x20—\x20the\x20customer\x20does\x20not\x20confirm\x20at\x20filing\x20time.'),'description':DescriptionSchema['optional']()['describe']('Introduction\x20of\x20the\x20Arbitration\x20object.'),'location':LongNameSchema['optional']()['describe']('Arbitration\x20location.'),'fee':BalanceTypeSchema['optional']()['describe']('Arbitration\x20filing\x20fee.\x20FORMAT:\x20a\x20direct\x20amount\x20value\x20—\x20NOT\x20wrapped\x20in\x20'+'{balance:\x20...}\x20(that\x20CoinParam\x20shape\x20is\x20only\x20for\x20dispute.fee,\x20which\x20pays\x20a\x20coin\x20object).\x20'+'Accepted:\x20smallest-unit\x20number\x20or\x20string\x20(e.g.\x2050000000\x20=\x200.05\x20WOW\x20at\x209\x20decimals),\x20or\x20'+'display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x220.05WOW\x22)\x20—\x20the\x20Fund\x20Processing\x20Layer\x20'+'converts\x20it\x20using\x20the\x20Arbitration\x20object\x27s\x20own\x20token\x20decimals.\x20'+'Default\x200\x20on\x20creation:\x20disputes\x20are\x20then\x20free\x20(the\x20filer\x27s\x20coin\x20is\x20fully\x20refunded\x20on\x20'+'filing)\x20and\x20the\x20arbitrator\x20earns\x20no\x20per-case\x20fee.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20arbitration.'),'confirm':ConfirmSchema['optional']()['describe']('ARBITRATOR-side\x20material\x20confirmation\x20(from\x20state\x201):\x20moves\x20the\x20case\x20to\x20state\x202\x20(Voting).\x20'+'Customers\x20cannot\x20call\x20this\x20—\x20the\x20customer-side\x20step\x20is\x20order.arb_confirm\x20(state\x200\x20to\x201).'),'voting_deadline_change':VotingDeadlineChangeSchema['optional']()['describe']('Change\x20the\x20voting\x20deadline.'),'vote':VoteSchema['optional']()['describe']('Vote\x20on\x20user\x20propositions.'),'feedback':FeedbackSchema['optional']()['describe']('Arbitration\x20feedback\x20for\x20the\x20Arb\x20object.'),'arbitration':ArbitrationActionSchema['optional']()['describe']('Provide\x20a\x20definitive\x20arbitration\x20result.'),'reset':ResetSchema['optional']()['describe']('ARBITRATOR-side\x20reset\x20(arbitration\x20permission\x20holder;\x20valid\x20from\x20state\x204\x20Objectionable\x20or\x20state\x201):\x20voids\x20the\x20ruling,\x20'+'clears\x20the\x20indemnity\x20and\x20returns\x20the\x20case\x20to\x20state\x200\x20(Principal_confirming).\x20After\x20a\x20reset\x20ONLY\x20the\x20customer\x20can\x20advance\x20the\x20case\x20'+'again\x20via\x20order.arb_confirm\x20—\x20state\x200\x20has\x20no\x20timeout\x20and\x20the\x20fee\x20stays\x20locked\x20until\x20the\x20customer\x20re-confirms.'),'arb_withdraw':ArbWithdrawSchema['optional']()['describe']('Withdraw\x20arbitration\x20fees\x20from\x20the\x20Arb\x20object\x20(arbitrator).\x20Immediately\x20from\x20state\x205\x20(Finished);\x20from\x20state\x203\x20only\x20after\x2030\x20days\x20'+'from\x20the\x20ruling\x20time\x20(no\x20objection\x20filed\x20—\x20silence\x20=\x20acceptance);\x20rejected\x20in\x20states\x200/1/2.\x20'+'State\x204\x20(Objectionable)\x20can\x20NEVER\x20withdraw\x20(protocol\x20141):\x20a\x20contested\x20case\x20keeps\x20its\x20fee\x20escrowed\x20until\x20the\x20customer\x20'+'closes\x20the\x20objection\x20cycle\x20—\x20reset\x20→\x20order.arb_confirm\x20→\x20new\x20ruling\x20→\x20unchallenged\x20(or\x20accepted\x20via\x20finish).\x20'+'⚠️\x20TWO-STAGE\x20FEE\x20CASH-OUT\x20(verified\x20on\x20testnet):\x20this\x20call\x20does\x20NOT\x20pay\x20the\x20arbitrator\x27s\x20wallet\x20—\x20it\x20moves\x20the\x20case\x20fee\x20'+'into\x20the\x20Arbitration\x20(Registration)\x20object\x27s\x20own\x20balance\x20pool.\x20To\x20actually\x20receive\x20the\x20money:\x20'+'fees_transfer\x20(to\x20a\x20treasury\x20or\x20allocation)\x20→\x20treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20→\x20treasury\x20withdraw\x20→\x20'+'recipient\x20payment\x20receive.\x20A\x20successful\x20arb_withdraw\x20with\x20no\x20wallet\x20balance\x20change\x20is\x20EXPECTED,\x20not\x20a\x20failure.'),'fees_transfer':FeesTransferSchema['optional']()['describe']('Distribute\x20the\x20withdrawn\x20arbitration\x20fees.\x20Moves\x20the\x20Arbitration\x27s\x20ENTIRE\x20balance\x20in\x20ONE\x20call\x20—\x20there\x20is\x20NO\x20amount\x20parameter.\x20'+'The\x20balance\x20leaves\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20target\x20(allocation\x20or\x20treasury);\x20for\x20a\x20treasury\x20target,\x20intake\x20it\x20with\x20'+'treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20—\x20see\x20the\x20\x27to\x27\x20field\x20description.'),'usage_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20when\x20users\x20apply\x20for\x20arbitration;\x20if\x20Guard\x20verification\x20fails,\x20users\x20will\x20not\x20be\x20able\x20to\x20apply\x20for\x20arbitration.'),'voting_guard':VotingGuardActionSchema['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20during\x20arbitration\x20voting;\x20if\x20Guard\x20verification\x20fails,\x20arbitration\x20voting\x20will\x20fail.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Arbitration\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\x20Arbitration\x20operations.\x20TWO\x20OBJECT\x20KINDS\x20—\x20do\x20not\x20confuse\x20them\x20(§5.9):\x20the\x20ROOT\x20\x27object\x27\x20field\x20is\x20the\x20Arbitration\x20(arbitrator\x20REGISTRATION)\x20object;\x20the\x20Arb\x20(single\x20CASE)\x20created\x20by\x20\x27dispute\x27\x20is\x20addressed\x20via\x20each\x20case\x20operation\x27s\x20\x27arb\x27\x20field.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20an\x20Arbitration.\x20NOTE:\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⚠️\x20PERMISSION\x20RULE\x20(contract-enforced):\x20the\x20Arbitration\x27s\x20permission\x20MUST\x20be\x20DIFFERENT\x20from\x20the\x20permission\x20of\x20any\x20Service\x20it\x20will\x20be\x20bound\x20to\x20—\x20binding\x20an\x20Arbitration\x20that\x20SHARES\x20the\x20Service\x27s\x20Permission\x20aborts\x20with\x20E_ARBITRATION_PERMISSION_CONFLICT\x20(error\x2033).\x20Always\x20create\x20a\x20DEDICATED\x20Permission\x20object\x20for\x20each\x20Arbitration.\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 CallArbitration_InputSchema=z['object']({'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -84,8 +84,8 @@ export declare const CallEnvSchema: z.ZodObject<{
|
|
|
84
84
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
85
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
86
86
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
87
|
-
compact: "compact";
|
|
88
87
|
full: "full";
|
|
88
|
+
compact: "compact";
|
|
89
89
|
}>>;
|
|
90
90
|
confirm_mode: z.ZodOptional<z.ZodEnum<{
|
|
91
91
|
full: "full";
|
|
@@ -2000,8 +2000,8 @@ export declare const VerifyMismatchSchema: z.ZodObject<{
|
|
|
2000
2000
|
created: "created";
|
|
2001
2001
|
modified: "modified";
|
|
2002
2002
|
released: "released";
|
|
2003
|
-
state: "state";
|
|
2004
2003
|
event: "event";
|
|
2004
|
+
state: "state";
|
|
2005
2005
|
}>;
|
|
2006
2006
|
expected: z.ZodString;
|
|
2007
2007
|
actual: z.ZodString;
|
|
@@ -2023,8 +2023,8 @@ export declare const VerifyReportSchema: z.ZodObject<{
|
|
|
2023
2023
|
created: "created";
|
|
2024
2024
|
modified: "modified";
|
|
2025
2025
|
released: "released";
|
|
2026
|
-
state: "state";
|
|
2027
2026
|
event: "event";
|
|
2027
|
+
state: "state";
|
|
2028
2028
|
}>;
|
|
2029
2029
|
expected: z.ZodString;
|
|
2030
2030
|
actual: z.ZodString;
|
|
@@ -3701,8 +3701,8 @@ export declare const CallOutputFailedSchema: z.ZodObject<{
|
|
|
3701
3701
|
created: "created";
|
|
3702
3702
|
modified: "modified";
|
|
3703
3703
|
released: "released";
|
|
3704
|
-
state: "state";
|
|
3705
3704
|
event: "event";
|
|
3705
|
+
state: "state";
|
|
3706
3706
|
}>;
|
|
3707
3707
|
expected: z.ZodString;
|
|
3708
3708
|
actual: z.ZodString;
|
|
@@ -5358,8 +5358,8 @@ export declare const CallOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5358
5358
|
created: "created";
|
|
5359
5359
|
modified: "modified";
|
|
5360
5360
|
released: "released";
|
|
5361
|
-
state: "state";
|
|
5362
5361
|
event: "event";
|
|
5362
|
+
state: "state";
|
|
5363
5363
|
}>;
|
|
5364
5364
|
expected: z.ZodString;
|
|
5365
5365
|
actual: z.ZodString;
|