wowok_agent 2.1.38 → 2.1.40
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/index.d.ts +45 -2
- package/dist/index.js +1 -1319
- package/dist/schema/call/allocation.js +1 -27
- package/dist/schema/call/arbitration.js +1 -106
- package/dist/schema/call/base.js +1 -152
- package/dist/schema/call/contact.js +1 -41
- package/dist/schema/call/demand.js +1 -51
- package/dist/schema/call/guard.d.ts +6 -6
- package/dist/schema/call/guard.js +1 -67
- package/dist/schema/call/handler.d.ts +0 -45
- package/dist/schema/call/handler.js +1 -230
- package/dist/schema/call/index.js +1 -19
- package/dist/schema/call/machine.js +1 -164
- package/dist/schema/call/order.js +1 -39
- package/dist/schema/call/payment.js +1 -20
- package/dist/schema/call/permission.js +1 -118
- package/dist/schema/call/personal.js +1 -81
- package/dist/schema/call/progress.js +1 -28
- package/dist/schema/call/proof.js +1 -27
- package/dist/schema/call/repository.js +1 -85
- package/dist/schema/call/reward.d.ts +12 -0
- package/dist/schema/call/reward.js +1 -46
- package/dist/schema/call/service.js +1 -88
- package/dist/schema/call/treasury.d.ts +84 -0
- package/dist/schema/call/treasury.js +1 -76
- package/dist/schema/common/index.js +1 -395
- package/dist/schema/index.js +1 -8
- package/dist/schema/local/index.js +1 -913
- package/dist/schema/local/wip.js +1 -230
- package/dist/schema/messenger/index.d.ts +4 -6
- package/dist/schema/messenger/index.js +1 -479
- package/dist/schema/query/index.d.ts +155 -0
- package/dist/schema/query/index.js +1 -1256
- package/dist/schema/utils/guard-parser.js +1 -410
- package/dist/schema/utils/guard-query-utils.js +1 -22
- package/dist/schema/utils/node-parser.d.ts +0 -14
- package/dist/schema/utils/node-parser.js +1 -382
- package/dist/schema/utils/permission-index-utils.js +1 -10
- package/package.json +6 -3
|
@@ -1,46 +1 @@
|
|
|
1
|
-
import { z }
|
|
2
|
-
import { TypedPermissionObjectSchema, CoinParamSchema, CallEnvSchema, SubmissionCallSchema, } from "./base.js";
|
|
3
|
-
import { RewardGuardSchema } from "../query/index.js";
|
|
4
|
-
import { BalanceTypeSchema, ReceivedObjectsOrRecentlySchema, ReceivedBalanceOrRecentlySchema, NameOrAddressSchema, GuardIdentifierSchema, DescriptionSchema } from "../common/index.js";
|
|
5
|
-
// Recipient 类型定义
|
|
6
|
-
export const RecipientGuardIdentifierSchema = z.object({
|
|
7
|
-
type: z.literal("GuardIdentifier"),
|
|
8
|
-
GuardIdentifier: GuardIdentifierSchema,
|
|
9
|
-
}).strict().describe("Get recipient ID from specified data index in Guard table. The ID must be of address type.");
|
|
10
|
-
export const RecipientEntitySchema = z.object({
|
|
11
|
-
type: z.literal("Entity"),
|
|
12
|
-
Entity: NameOrAddressSchema,
|
|
13
|
-
}).strict().describe("Fixed entity ID");
|
|
14
|
-
export const RecipientSignerSchema = z.object({
|
|
15
|
-
type: z.literal("Signer"),
|
|
16
|
-
Signer: z.boolean(),
|
|
17
|
-
}).strict().describe("Signer ID");
|
|
18
|
-
// RewardRecord 类型定义
|
|
19
|
-
export const RewardRecordSchema = z.object({
|
|
20
|
-
amount: BalanceTypeSchema,
|
|
21
|
-
time: z.number().int(),
|
|
22
|
-
}).strict().describe("Reward amount and time");
|
|
23
|
-
// RecipientRecord 类型定义
|
|
24
|
-
export const RecipientRecordSchema = z.object({
|
|
25
|
-
guard: NameOrAddressSchema,
|
|
26
|
-
total: BalanceTypeSchema,
|
|
27
|
-
amount: z.array(RewardRecordSchema),
|
|
28
|
-
}).strict().describe("Reward recipient record");
|
|
29
|
-
// 主 Schema
|
|
30
|
-
export const CallReward_DataSchema = z.object({
|
|
31
|
-
object: TypedPermissionObjectSchema,
|
|
32
|
-
claim: NameOrAddressSchema.optional().describe("Guard object ID. Used to verify Guard and start the reward distribution process corresponding to this Guard."),
|
|
33
|
-
description: DescriptionSchema.optional(),
|
|
34
|
-
coin_add: CoinParamSchema.optional().describe("Add amount to Reward object."),
|
|
35
|
-
receive: ReceivedBalanceOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects received by Reward object and store them in pending balance."),
|
|
36
|
-
guard_add: z.array(RewardGuardSchema).optional().describe("Add Guard to Reward object."),
|
|
37
|
-
guard_remove_expired: z.boolean().optional().describe("Whether to remove expired Guard."),
|
|
38
|
-
guard_expiration_time: z.union([z.number().int().min(1), z.null()]).optional().describe("Add expiration time(ms). Before this time expires, new Guard and fund allocation rules cannot be added."),
|
|
39
|
-
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."),
|
|
40
|
-
um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object."),
|
|
41
|
-
}).strict().describe("On-chain Reward operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create a Reward. 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.");
|
|
42
|
-
export const CallReward_InputSchema = z.object({
|
|
43
|
-
data: CallReward_DataSchema,
|
|
44
|
-
env: CallEnvSchema.optional(),
|
|
45
|
-
submission: SubmissionCallSchema.optional(),
|
|
46
|
-
}).strict();
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema}from'../query/index.js';import{BalanceTypeSchema,ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,GuardIdentifierSchema,DescriptionSchema}from'../common/index.js';export const RecipientGuardIdentifierSchema=z['object']({'type':z['literal']('GuardIdentifier'),'GuardIdentifier':GuardIdentifierSchema})['strict']()['describe']('Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.');export const RecipientEntitySchema=z['object']({'type':z['literal']('Entity'),'Entity':NameOrAddressSchema})['strict']()['describe']('Fixed\x20entity\x20ID');export const RecipientSignerSchema=z['object']({'type':z['literal']('Signer'),'Signer':z['boolean']()})['strict']()['describe']('Signer\x20ID');export const RewardRecordSchema=z['object']({'amount':BalanceTypeSchema,'time':z['number']()['int']()})['strict']()['describe']('Reward\x20amount\x20and\x20time');export const RecipientRecordSchema=z['object']({'guard':NameOrAddressSchema,'total':BalanceTypeSchema,'amount':z['array'](RewardRecordSchema)})['strict']()['describe']('Reward\x20recipient\x20record');export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('Guard\x20object\x20ID.\x20Used\x20to\x20verify\x20Guard\x20and\x20start\x20the\x20reward\x20distribution\x20process\x20corresponding\x20to\x20this\x20Guard.'),'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.'),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.'),'guard_remove_expired':z['boolean']()['optional']()['describe']('Whether\x20to\x20remove\x20expired\x20Guard.'),'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\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object.')})['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.');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -1,88 +1 @@
|
|
|
1
|
-
import { z }
|
|
2
|
-
import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
|
|
3
|
-
import { AllocatorsSchema, DiscountTypeSchema, ServiceSaleSchema } from "../query/index.js";
|
|
4
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, NotEmptyNameSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
5
|
-
import { BalanceTypeSchema } from "../common/index.js";
|
|
6
|
-
// ServiceBuyItem 接口
|
|
7
|
-
export const ServiceBuyItemSchema = z.object({
|
|
8
|
-
name: LongNameSchema.describe("Name of the product or service to purchase"),
|
|
9
|
-
stock: BalanceTypeSchema.describe("Quantity of the product or service to purchase"),
|
|
10
|
-
wip_hash: z.string().describe("WIP file hash of the item"),
|
|
11
|
-
}).strict();
|
|
12
|
-
// Buy 接口
|
|
13
|
-
export const BuySchema = z.object({
|
|
14
|
-
items: z.array(ServiceBuyItemSchema).describe("List of products or services to purchase"),
|
|
15
|
-
total_pay: CoinParamSchema.describe("Actual payment amount"),
|
|
16
|
-
discount: z.string().optional().describe("Discount object ID or name"),
|
|
17
|
-
payment_remark: z.string().optional().describe("Payment remark"),
|
|
18
|
-
payment_index: z.number().optional().describe("Payment index"),
|
|
19
|
-
}).strict();
|
|
20
|
-
// Discount 接口
|
|
21
|
-
export const DiscountSchema = z.object({
|
|
22
|
-
name: z.string().describe("Discount name"),
|
|
23
|
-
discount_type: DiscountTypeSchema.describe("Discount type"),
|
|
24
|
-
discount_value: BalanceTypeSchema.describe("Discount value"),
|
|
25
|
-
benchmark: z.union([z.number(), z.string()]).optional().describe("Discount benchmark value. Discount is only applied if the amount exceeds this value"),
|
|
26
|
-
time_ms_start: z.number().optional().describe("Discount start time (milliseconds)"),
|
|
27
|
-
time_ms_end: z.number().optional().describe("Discount end time (milliseconds)"),
|
|
28
|
-
count: z.number().optional().describe("Discount usage count"),
|
|
29
|
-
recipient: ManyAccountOrMark_AddressSchema.describe("Discount recipient"),
|
|
30
|
-
transferable: z.boolean().optional().describe("Whether the discount object recipient can transfer the discount object"),
|
|
31
|
-
}).strict();
|
|
32
|
-
// OrderNew 接口
|
|
33
|
-
export const OrderNewSchema = z.object({
|
|
34
|
-
buy: BuySchema,
|
|
35
|
-
agents: ManyAccountOrMark_AddressSchema.optional().describe("Order agents. Agents can operate the order, such as canceling the order, modifying the order status, etc.; but cannot receive the funds received by the order."),
|
|
36
|
-
order_required_info: z.string().optional().describe("Contact object ID or WTS Proof object"),
|
|
37
|
-
transfer: AccountOrMark_AddressSchema.optional().describe("Set the new owner of the order. Requires order owner permission to set."),
|
|
38
|
-
namedNewOrder: NamedObjectSchema.optional().describe("Set the local name of the order object."),
|
|
39
|
-
namedNewAllocation: NamedObjectSchema.optional().describe("Set the local name of the order's Allocation object."),
|
|
40
|
-
namedNewProgress: NamedObjectSchema.optional().describe("Set the local name of the order's Progress object."),
|
|
41
|
-
}).strict();
|
|
42
|
-
// Sales 操作类型
|
|
43
|
-
export const SalesSchema = z.discriminatedUnion("op", [
|
|
44
|
-
z.object({
|
|
45
|
-
op: z.literal("add"),
|
|
46
|
-
sales: z.array(ServiceSaleSchema),
|
|
47
|
-
}).strict().describe("Add new sales products or services."),
|
|
48
|
-
z.object({
|
|
49
|
-
op: z.literal("set"),
|
|
50
|
-
sales: z.array(ServiceSaleSchema),
|
|
51
|
-
}).strict().describe("Set sales products or services."),
|
|
52
|
-
z.object({
|
|
53
|
-
op: z.literal("remove"),
|
|
54
|
-
sales_name: z.array(LongNameSchema.describe("Sales name")),
|
|
55
|
-
}).strict().describe("Remove existing sales products or services."),
|
|
56
|
-
z.object({
|
|
57
|
-
op: z.literal("clear"),
|
|
58
|
-
}).strict().describe("Clear all sales products or services."),
|
|
59
|
-
]);
|
|
60
|
-
// CallService_Data 接口
|
|
61
|
-
export const CallService_DataSchema = z.object({
|
|
62
|
-
object: TypedPermissionObjectSchema,
|
|
63
|
-
order_new: OrderNewSchema.optional().describe("Create new order."),
|
|
64
|
-
description: DescriptionSchema.optional(),
|
|
65
|
-
location: LongNameSchema.optional().describe("Location of the Service"),
|
|
66
|
-
sales: SalesSchema.optional().describe("Service sales products or services list."),
|
|
67
|
-
repositories: ObjectsSchema.optional().describe("Service Repository object list."),
|
|
68
|
-
rewards: ObjectsSchema.optional().describe("Service Reward object list."),
|
|
69
|
-
arbitrations: ObjectsSchema.optional().describe("Service Arbitration object list."),
|
|
70
|
-
machine: z.union([NameOrAddressSchema, z.null()]).optional().describe("Service Machine object ID or name. The Machine object must be in published state."),
|
|
71
|
-
discount: DiscountSchema.optional().describe("Issue discount."),
|
|
72
|
-
discount_destroy: z.array(NameOrAddressSchema).optional().describe("Destroy existing discount object ID list."),
|
|
73
|
-
customer_required: z.array(NotEmptyNameSchema).optional().describe("Customer required information. Such as phone, email, etc."),
|
|
74
|
-
order_allocators: z.union([AllocatorsSchema, z.null()]).optional().describe("Order fund allocator."),
|
|
75
|
-
buy_guard: z.union([NameOrAddressSchema, z.null()]).optional().describe("Buy guard object ID or name."),
|
|
76
|
-
compensation_fund_add: CoinParamSchema.optional().describe("Compensation fund. Used to claim compensation based on the arbitration result of the Arb object when resolving order disputes."),
|
|
77
|
-
compensation_locked_time_add: z.number().optional().describe("Lock time for compensation funds added to orders (milliseconds)."),
|
|
78
|
-
compensation_fund_receive: ReceivedBalanceOrRecentlySchema.optional().describe("Receive order compensation funds."),
|
|
79
|
-
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."),
|
|
80
|
-
um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name."),
|
|
81
|
-
pause: z.boolean().optional().describe("Whether to pause accepting new orders."),
|
|
82
|
-
publish: z.boolean().optional().describe("Whether to publish the Service. After publishing, customers can place orders; at the same time, service commitments such as machine, order_allocators, arbitrations, etc. will be immutable."),
|
|
83
|
-
}).strict().describe("On-chain Service operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create a Service. 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.");
|
|
84
|
-
export const CallService_InputSchema = z.object({
|
|
85
|
-
data: CallService_DataSchema,
|
|
86
|
-
env: CallEnvSchema.optional(),
|
|
87
|
-
submission: SubmissionCallSchema.optional(),
|
|
88
|
-
}).strict();
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,ObjectsSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{AllocatorsSchema,DiscountTypeSchema,ServiceSaleSchema}from'../query/index.js';import{AccountOrMark_AddressSchema,DescriptionSchema,LongNameSchema,ManyAccountOrMark_AddressSchema,NameOrAddressSchema,NotEmptyNameSchema,ReceivedBalanceOrRecentlySchema,ReceivedObjectsOrRecentlySchema}from'../common/index.js';import{BalanceTypeSchema}from'../common/index.js';export const ServiceBuyItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20to\x20purchase'),'stock':BalanceTypeSchema['describe']('Quantity\x20of\x20the\x20product\x20or\x20service\x20to\x20purchase'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')})['strict']();export const BuySchema=z['object']({'items':z['array'](ServiceBuyItemSchema)['describe']('List\x20of\x20products\x20or\x20services\x20to\x20purchase'),'total_pay':CoinParamSchema['describe']('Actual\x20payment\x20amount'),'discount':z['string']()['optional']()['describe']('Discount\x20object\x20ID\x20or\x20name'),'payment_remark':z['string']()['optional']()['describe']('Payment\x20remark'),'payment_index':z['number']()['optional']()['describe']('Payment\x20index')})['strict']();export const DiscountSchema=z['object']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type'),'discount_value':BalanceTypeSchema['describe']('Discount\x20value'),'benchmark':z['union']([z['number'](),z['string']()])['optional']()['describe']('Discount\x20benchmark\x20value.\x20Discount\x20is\x20only\x20applied\x20if\x20the\x20amount\x20exceeds\x20this\x20value'),'time_ms_start':z['number']()['optional']()['describe']('Discount\x20start\x20time\x20(milliseconds)'),'time_ms_end':z['number']()['optional']()['describe']('Discount\x20end\x20time\x20(milliseconds)'),'count':z['number']()['optional']()['describe']('Discount\x20usage\x20count'),'recipient':ManyAccountOrMark_AddressSchema['describe']('Discount\x20recipient'),'transferable':z['boolean']()['optional']()['describe']('Whether\x20the\x20discount\x20object\x20recipient\x20can\x20transfer\x20the\x20discount\x20object')})['strict']();export const OrderNewSchema=z['object']({'buy':BuySchema,'agents':ManyAccountOrMark_AddressSchema['optional']()['describe']('Order\x20agents.\x20Agents\x20can\x20operate\x20the\x20order,\x20such\x20as\x20canceling\x20the\x20order,\x20modifying\x20the\x20order\x20status,\x20etc.;\x20but\x20cannot\x20receive\x20the\x20funds\x20received\x20by\x20the\x20order.'),'order_required_info':z['string']()['optional']()['describe']('Contact\x20object\x20ID\x20or\x20WTS\x20Proof\x20object'),'transfer':AccountOrMark_AddressSchema['optional']()['describe']('Set\x20the\x20new\x20owner\x20of\x20the\x20order.\x20Requires\x20order\x20owner\x20permission\x20to\x20set.'),'namedNewOrder':NamedObjectSchema['optional']()['describe']('Set\x20the\x20local\x20name\x20of\x20the\x20order\x20object.'),'namedNewAllocation':NamedObjectSchema['optional']()['describe']('Set\x20the\x20local\x20name\x20of\x20the\x20order\x27s\x20Allocation\x20object.'),'namedNewProgress':NamedObjectSchema['optional']()['describe']('Set\x20the\x20local\x20name\x20of\x20the\x20order\x27s\x20Progress\x20object.')})['strict']();export const SalesSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'sales':z['array'](ServiceSaleSchema)})['strict']()['describe']('Add\x20new\x20sales\x20products\x20or\x20services.'),z['object']({'op':z['literal']('set'),'sales':z['array'](ServiceSaleSchema)})['strict']()['describe']('Set\x20sales\x20products\x20or\x20services.'),z['object']({'op':z['literal']('remove'),'sales_name':z['array'](LongNameSchema['describe']('Sales\x20name'))})['strict']()['describe']('Remove\x20existing\x20sales\x20products\x20or\x20services.'),z['object']({'op':z['literal']('clear')})['strict']()['describe']('Clear\x20all\x20sales\x20products\x20or\x20services.')]);export const CallService_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'order_new':OrderNewSchema['optional']()['describe']('Create\x20new\x20order.'),'description':DescriptionSchema['optional'](),'location':LongNameSchema['optional']()['describe']('Location\x20of\x20the\x20Service'),'sales':SalesSchema['optional']()['describe']('Service\x20sales\x20products\x20or\x20services\x20list.'),'repositories':ObjectsSchema['optional']()['describe']('Service\x20Repository\x20object\x20list.'),'rewards':ObjectsSchema['optional']()['describe']('Service\x20Reward\x20object\x20list.'),'arbitrations':ObjectsSchema['optional']()['describe']('Service\x20Arbitration\x20object\x20list.'),'machine':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Service\x20Machine\x20object\x20ID\x20or\x20name.\x20The\x20Machine\x20object\x20must\x20be\x20in\x20published\x20state.'),'discount':DiscountSchema['optional']()['describe']('Issue\x20discount.'),'discount_destroy':z['array'](NameOrAddressSchema)['optional']()['describe']('Destroy\x20existing\x20discount\x20object\x20ID\x20list.'),'customer_required':z['array'](NotEmptyNameSchema)['optional']()['describe']('Customer\x20required\x20information.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['optional']()['describe']('Order\x20fund\x20allocator.'),'buy_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Buy\x20guard\x20object\x20ID\x20or\x20name.'),'compensation_fund_add':CoinParamSchema['optional']()['describe']('Compensation\x20fund.\x20Used\x20to\x20claim\x20compensation\x20based\x20on\x20the\x20arbitration\x20result\x20of\x20the\x20Arb\x20object\x20when\x20resolving\x20order\x20disputes.'),'compensation_locked_time_add':z['number']()['optional']()['describe']('Lock\x20time\x20for\x20compensation\x20funds\x20added\x20to\x20orders\x20(milliseconds).'),'compensation_fund_receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Receive\x20order\x20compensation\x20funds.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20accepting\x20new\x20orders.'),'publish':z['boolean']()['optional']()['describe']('Whether\x20to\x20publish\x20the\x20Service.\x20After\x20publishing,\x20customers\x20can\x20place\x20orders;\x20at\x20the\x20same\x20time,\x20service\x20commitments\x20such\x20as\x20machine,\x20order_allocators,\x20arbitrations,\x20etc.\x20will\x20be\x20immutable.')})['strict']()['describe']('On-chain\x20Service\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Service.\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 CallService_InputSchema=z['object']({'data':CallService_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|