@wowok/agent-mcp 2.2.8
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/README.md +56 -0
- package/dist/index.d.ts +15800 -0
- package/dist/index.js +1479 -0
- package/dist/schema/call/allocation.d.ts +1430 -0
- package/dist/schema/call/allocation.js +24 -0
- package/dist/schema/call/arbitration.d.ts +1974 -0
- package/dist/schema/call/arbitration.js +92 -0
- package/dist/schema/call/base.d.ts +7325 -0
- package/dist/schema/call/base.js +138 -0
- package/dist/schema/call/contact.d.ts +970 -0
- package/dist/schema/call/contact.js +37 -0
- package/dist/schema/call/demand.d.ts +1265 -0
- package/dist/schema/call/demand.js +47 -0
- package/dist/schema/call/guard.d.ts +951 -0
- package/dist/schema/call/guard.js +58 -0
- package/dist/schema/call/handler.d.ts +38 -0
- package/dist/schema/call/handler.js +171 -0
- package/dist/schema/call/index.d.ts +18 -0
- package/dist/schema/call/index.js +18 -0
- package/dist/schema/call/machine.d.ts +3974 -0
- package/dist/schema/call/machine.js +152 -0
- package/dist/schema/call/order.d.ts +974 -0
- package/dist/schema/call/order.js +34 -0
- package/dist/schema/call/payment.d.ts +404 -0
- package/dist/schema/call/payment.js +17 -0
- package/dist/schema/call/permission.d.ts +3017 -0
- package/dist/schema/call/permission.js +105 -0
- package/dist/schema/call/personal.d.ts +1472 -0
- package/dist/schema/call/personal.js +68 -0
- package/dist/schema/call/progress.d.ts +725 -0
- package/dist/schema/call/progress.js +26 -0
- package/dist/schema/call/proof.d.ts +320 -0
- package/dist/schema/call/proof.js +27 -0
- package/dist/schema/call/repository.d.ts +2358 -0
- package/dist/schema/call/repository.js +76 -0
- package/dist/schema/call/reward.d.ts +1232 -0
- package/dist/schema/call/reward.js +30 -0
- package/dist/schema/call/service.d.ts +3494 -0
- package/dist/schema/call/service.js +82 -0
- package/dist/schema/call/treasury.d.ts +2345 -0
- package/dist/schema/call/treasury.js +71 -0
- package/dist/schema/common/index.d.ts +843 -0
- package/dist/schema/common/index.js +347 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.js +7 -0
- package/dist/schema/local/index.d.ts +17522 -0
- package/dist/schema/local/index.js +855 -0
- package/dist/schema/local/wip.d.ts +784 -0
- package/dist/schema/local/wip.js +187 -0
- package/dist/schema/messenger/index.d.ts +4655 -0
- package/dist/schema/messenger/index.js +446 -0
- package/dist/schema/query/index.d.ts +73445 -0
- package/dist/schema/query/index.js +1324 -0
- package/dist/schema/utils/guard-parser.d.ts +20 -0
- package/dist/schema/utils/guard-parser.js +401 -0
- package/dist/schema/utils/guard-query-utils.d.ts +5 -0
- package/dist/schema/utils/guard-query-utils.js +22 -0
- package/dist/schema/utils/node-parser.d.ts +45 -0
- package/dist/schema/utils/node-parser.js +353 -0
- package/dist/schema/utils/permission-index-utils.d.ts +2 -0
- package/dist/schema/utils/permission-index-utils.js +7 -0
- package/package.json +48 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
|
|
3
|
+
import { VotingGuardSchema } from "../query/index.js";
|
|
4
|
+
import { BalanceTypeSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
5
|
+
export const DisputeSchema = z.object({
|
|
6
|
+
order: NameOrAddressSchema.describe("Order ID or name."),
|
|
7
|
+
description: DescriptionSchema.optional().describe("Dispute description."),
|
|
8
|
+
proposition: z.array(LongNameSchema).describe("List of dispute propositions."),
|
|
9
|
+
fee: CoinParamSchema.describe("Dispute processing fee."),
|
|
10
|
+
namedArb: NamedObjectSchema.optional().describe("Name for the newly created arbitration object.")
|
|
11
|
+
}).strict();
|
|
12
|
+
export const ConfirmSchema = z.object({
|
|
13
|
+
arb: NameOrAddressSchema,
|
|
14
|
+
voting_deadline: z.union([z.number().int().min(0), z.null()])
|
|
15
|
+
}).strict();
|
|
16
|
+
export const VotingDeadlineChangeSchema = z.object({
|
|
17
|
+
arb: NameOrAddressSchema,
|
|
18
|
+
voting_deadline: z.union([z.number(), z.null()])
|
|
19
|
+
}).strict();
|
|
20
|
+
export const VoteSchema = z.object({
|
|
21
|
+
arb: NameOrAddressSchema,
|
|
22
|
+
votes: z.array(z.number().int().min(0).max(255)),
|
|
23
|
+
voting_guard: NameOrAddressSchema.optional()
|
|
24
|
+
}).strict();
|
|
25
|
+
export const FeedbackSchema = z.object({
|
|
26
|
+
arb: NameOrAddressSchema,
|
|
27
|
+
feedback: DescriptionSchema.describe("Arbitration feedback."),
|
|
28
|
+
}).strict();
|
|
29
|
+
export const ArbitrationActionSchema = z.object({
|
|
30
|
+
arb: NameOrAddressSchema,
|
|
31
|
+
feedback: DescriptionSchema.describe("Arbitration feedback."),
|
|
32
|
+
indemnity: z.number().int().min(0)
|
|
33
|
+
}).strict();
|
|
34
|
+
export const ResetSchema = z.object({
|
|
35
|
+
arb: NameOrAddressSchema,
|
|
36
|
+
feedback: DescriptionSchema.describe("Arbitration feedback."),
|
|
37
|
+
}).strict();
|
|
38
|
+
export const ArbWithdrawSchema = z.object({
|
|
39
|
+
arb: NameOrAddressSchema,
|
|
40
|
+
}).strict();
|
|
41
|
+
export const FeesTransferToSchema = z.union([
|
|
42
|
+
z.object({
|
|
43
|
+
allocation: NameOrAddressSchema.describe("Allocation object ID or name.")
|
|
44
|
+
}).strict(),
|
|
45
|
+
z.object({
|
|
46
|
+
treasury: NameOrAddressSchema.describe("Treasury object ID or name.")
|
|
47
|
+
}).strict()
|
|
48
|
+
]);
|
|
49
|
+
export const FeesTransferSchema = z.object({
|
|
50
|
+
to: FeesTransferToSchema.describe("Transfer arbitration fees to the specified Allocation object or Treasury object."),
|
|
51
|
+
payment_remark: NameSchema.describe("Payment remark."),
|
|
52
|
+
payment_index: z.number().int().min(0).describe("Payment index."),
|
|
53
|
+
newPayment: NamedObjectSchema.optional().describe("Name for the newly created payment object.")
|
|
54
|
+
}).strict();
|
|
55
|
+
export const VotingGuardActionSchema = z.discriminatedUnion("op", [
|
|
56
|
+
z.object({
|
|
57
|
+
op: z.enum(["add", "set"]),
|
|
58
|
+
guards: z.array(VotingGuardSchema)
|
|
59
|
+
}).strict(),
|
|
60
|
+
z.object({
|
|
61
|
+
op: z.literal("remove"),
|
|
62
|
+
guards: z.array(NameOrAddressSchema)
|
|
63
|
+
}).strict(),
|
|
64
|
+
z.object({
|
|
65
|
+
op: z.literal("clear")
|
|
66
|
+
}).strict()
|
|
67
|
+
]);
|
|
68
|
+
export const CallArbitration_DataSchema = z.object({
|
|
69
|
+
object: TypedPermissionObjectSchema,
|
|
70
|
+
dispute: DisputeSchema.optional().describe("Create a new Arb object for the order."),
|
|
71
|
+
description: DescriptionSchema.optional().describe("Introduction of the Arbitration object."),
|
|
72
|
+
location: LongNameSchema.optional().describe("Arbitration location."),
|
|
73
|
+
fee: BalanceTypeSchema.optional().describe("Arbitration fee."),
|
|
74
|
+
pause: z.boolean().optional().describe("Whether to pause arbitration."),
|
|
75
|
+
confirm: ConfirmSchema.optional().describe("Confirm the materials submitted by the user for arbitration."),
|
|
76
|
+
voting_deadline_change: VotingDeadlineChangeSchema.optional().describe("Change the voting deadline."),
|
|
77
|
+
vote: VoteSchema.optional().describe("Vote on user propositions."),
|
|
78
|
+
feedback: FeedbackSchema.optional().describe("Arbitration feedback for the Arb object."),
|
|
79
|
+
arbitration: ArbitrationActionSchema.optional().describe("Provide a definitive arbitration result."),
|
|
80
|
+
reset: ResetSchema.optional().describe("User applies to resubmit materials and restart arbitration."),
|
|
81
|
+
arb_withdraw: ArbWithdrawSchema.optional().describe("Withdraw arbitration fees from the Arb object."),
|
|
82
|
+
fees_transfer: FeesTransferSchema.optional().describe("Distribute the withdrawn arbitration fees."),
|
|
83
|
+
usage_guard: z.union([NameOrAddressSchema, z.null()]).optional().describe("Set Guard for verification when users apply for arbitration; if Guard verification fails, users will not be able to apply for arbitration."),
|
|
84
|
+
voting_guard: VotingGuardActionSchema.optional().describe("Set Guard for verification during arbitration voting; if Guard verification fails, arbitration voting will fail."),
|
|
85
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."),
|
|
86
|
+
um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object.")
|
|
87
|
+
}).strict().describe("On-chain Arbitration operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create an Arbitration. NOTE:'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
88
|
+
export const CallArbitration_InputSchema = z.object({
|
|
89
|
+
data: CallArbitration_DataSchema,
|
|
90
|
+
env: CallEnvSchema.optional(),
|
|
91
|
+
submission: SubmissionCallSchema.optional(),
|
|
92
|
+
}).strict();
|