@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.
Files changed (62) hide show
  1. package/README.md +56 -0
  2. package/dist/index.d.ts +15800 -0
  3. package/dist/index.js +1479 -0
  4. package/dist/schema/call/allocation.d.ts +1430 -0
  5. package/dist/schema/call/allocation.js +24 -0
  6. package/dist/schema/call/arbitration.d.ts +1974 -0
  7. package/dist/schema/call/arbitration.js +92 -0
  8. package/dist/schema/call/base.d.ts +7325 -0
  9. package/dist/schema/call/base.js +138 -0
  10. package/dist/schema/call/contact.d.ts +970 -0
  11. package/dist/schema/call/contact.js +37 -0
  12. package/dist/schema/call/demand.d.ts +1265 -0
  13. package/dist/schema/call/demand.js +47 -0
  14. package/dist/schema/call/guard.d.ts +951 -0
  15. package/dist/schema/call/guard.js +58 -0
  16. package/dist/schema/call/handler.d.ts +38 -0
  17. package/dist/schema/call/handler.js +171 -0
  18. package/dist/schema/call/index.d.ts +18 -0
  19. package/dist/schema/call/index.js +18 -0
  20. package/dist/schema/call/machine.d.ts +3974 -0
  21. package/dist/schema/call/machine.js +152 -0
  22. package/dist/schema/call/order.d.ts +974 -0
  23. package/dist/schema/call/order.js +34 -0
  24. package/dist/schema/call/payment.d.ts +404 -0
  25. package/dist/schema/call/payment.js +17 -0
  26. package/dist/schema/call/permission.d.ts +3017 -0
  27. package/dist/schema/call/permission.js +105 -0
  28. package/dist/schema/call/personal.d.ts +1472 -0
  29. package/dist/schema/call/personal.js +68 -0
  30. package/dist/schema/call/progress.d.ts +725 -0
  31. package/dist/schema/call/progress.js +26 -0
  32. package/dist/schema/call/proof.d.ts +320 -0
  33. package/dist/schema/call/proof.js +27 -0
  34. package/dist/schema/call/repository.d.ts +2358 -0
  35. package/dist/schema/call/repository.js +76 -0
  36. package/dist/schema/call/reward.d.ts +1232 -0
  37. package/dist/schema/call/reward.js +30 -0
  38. package/dist/schema/call/service.d.ts +3494 -0
  39. package/dist/schema/call/service.js +82 -0
  40. package/dist/schema/call/treasury.d.ts +2345 -0
  41. package/dist/schema/call/treasury.js +71 -0
  42. package/dist/schema/common/index.d.ts +843 -0
  43. package/dist/schema/common/index.js +347 -0
  44. package/dist/schema/index.d.ts +7 -0
  45. package/dist/schema/index.js +7 -0
  46. package/dist/schema/local/index.d.ts +17522 -0
  47. package/dist/schema/local/index.js +855 -0
  48. package/dist/schema/local/wip.d.ts +784 -0
  49. package/dist/schema/local/wip.js +187 -0
  50. package/dist/schema/messenger/index.d.ts +4655 -0
  51. package/dist/schema/messenger/index.js +446 -0
  52. package/dist/schema/query/index.d.ts +73445 -0
  53. package/dist/schema/query/index.js +1324 -0
  54. package/dist/schema/utils/guard-parser.d.ts +20 -0
  55. package/dist/schema/utils/guard-parser.js +401 -0
  56. package/dist/schema/utils/guard-query-utils.d.ts +5 -0
  57. package/dist/schema/utils/guard-query-utils.js +22 -0
  58. package/dist/schema/utils/node-parser.d.ts +45 -0
  59. package/dist/schema/utils/node-parser.js +353 -0
  60. package/dist/schema/utils/permission-index-utils.d.ts +2 -0
  61. package/dist/schema/utils/permission-index-utils.js +7 -0
  62. package/package.json +48 -0
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+ import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, SubmissionCallSchema, CallEnvSchema } from "./base.js";
3
+ import { AmountFromDepositGuardSchema, AmountFromWithdrawGuardSchema, PaymentInfoSchema } from "../query/index.js";
4
+ import { AccountOrMark_AddressSchema, DescriptionSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema, NameOrAddressSchema } from "../common/index.js";
5
+ import { BalanceTypeSchema } from "../common/index.js";
6
+ export const DepositSchema = z.object({
7
+ coin: CoinParamSchema.describe("Asset to deposit"),
8
+ by_external_deposit_guard: z.string().optional().describe("Deposit by verifying the specified Guard object ID or name; if not specified, deposit through Permission"),
9
+ payment_info: PaymentInfoSchema,
10
+ namedNewPayment: NamedObjectSchema.optional().describe("After deposit, create a new Payment object. You can specify a name for this object"),
11
+ }).strict();
12
+ export const WithdrawSchema = z.object({
13
+ amount: z.union([
14
+ z.object({ fixed: BalanceTypeSchema
15
+ }).strict().describe("Fixed withdrawal amount, this method can only withdraw through Permission"),
16
+ z.object({ by_external_withdraw_guard: z.string().describe("Withdraw by verifying the specified Guard object ID or name (the amount is the value of the index number corresponding to the Guard object); if not specified, withdraw through Permission") }).strict(),
17
+ ]).describe("Withdrawal amount"),
18
+ recipient: AccountOrMark_AddressSchema.describe("ID or account to receive assets"),
19
+ payment_info: PaymentInfoSchema,
20
+ namedNewPayment: NamedObjectSchema.optional().describe("After withdrawal, create a new Payment object. You can specify a name for this object"),
21
+ }).strict();
22
+ export const ExternalDepositGuardSchema = z.discriminatedUnion("op", [
23
+ z.object({
24
+ op: z.literal("add"),
25
+ guards: z.array(AmountFromDepositGuardSchema),
26
+ }).strict(),
27
+ z.object({
28
+ op: z.literal("set"),
29
+ guards: z.array(AmountFromDepositGuardSchema),
30
+ }).strict(),
31
+ z.object({
32
+ op: z.literal("remove"),
33
+ guards: z.array(NameOrAddressSchema).describe("List of Guard object IDs or names to remove"),
34
+ }).strict(),
35
+ z.object({
36
+ op: z.literal("clear"),
37
+ }).strict(),
38
+ ]);
39
+ export const ExternalWithdrawGuardSchema = z.discriminatedUnion("op", [
40
+ z.object({
41
+ op: z.literal("add"),
42
+ guards: z.array(AmountFromWithdrawGuardSchema),
43
+ }).strict(),
44
+ z.object({
45
+ op: z.literal("set"),
46
+ guards: z.array(AmountFromWithdrawGuardSchema),
47
+ }).strict(),
48
+ z.object({
49
+ op: z.literal("remove"),
50
+ guards: z.array(NameOrAddressSchema).describe("List of Guard object IDs or names to remove"),
51
+ }).strict(),
52
+ z.object({
53
+ op: z.literal("clear"),
54
+ }).strict(),
55
+ ]);
56
+ export const CallTreasury_DataSchema = z.object({
57
+ object: TypedPermissionObjectSchema,
58
+ description: DescriptionSchema.optional(),
59
+ receive: ReceivedBalanceOrRecentlySchema.optional().describe("Receive CoinWrapper objects received by the object and deposit them into its balance."),
60
+ deposit: DepositSchema.optional().describe("Deposit to Treasury object"),
61
+ withdraw: WithdrawSchema.optional().describe("Withdraw from Treasury object"),
62
+ external_deposit_guard: ExternalDepositGuardSchema.optional().describe("Set external deposit Guard for Treasury object"),
63
+ external_withdraw_guard: ExternalWithdrawGuardSchema.optional().describe("Set external withdrawal Guard for Treasury object"),
64
+ 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."),
65
+ um: z.union([NamedObjectSchema, z.null()]).optional().describe("Contact object."),
66
+ }).strict().describe("On-chain Treasury operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create a Treasury. 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.");
67
+ export const CallTreasury_InputSchema = z.object({
68
+ data: CallTreasury_DataSchema,
69
+ env: CallEnvSchema.optional(),
70
+ submission: SubmissionCallSchema.optional(),
71
+ }).strict();