wowok_agent
Version:
Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.
1,459 lines (1,458 loc) • 137 kB
TypeScript
import { z } from "zod";
export declare const ServiceBuyItemSchema: z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
wip_hash: z.ZodString;
}, "strict", z.ZodTypeAny, {
name: string;
stock: string | number;
wip_hash: string;
}, {
name: string;
stock: string | number;
wip_hash: string;
}>;
export declare const BuySchema: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
wip_hash: z.ZodString;
}, "strict", z.ZodTypeAny, {
name: string;
stock: string | number;
wip_hash: string;
}, {
name: string;
stock: string | number;
wip_hash: string;
}>, "many">;
total_pay: z.ZodUnion<[z.ZodObject<{
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
balance: string | number;
}, {
balance: string | number;
}>, z.ZodObject<{
coin: z.ZodString;
}, "strip", z.ZodTypeAny, {
coin: string;
}, {
coin: string;
}>]>;
discount: z.ZodOptional<z.ZodString>;
payment_remark: z.ZodOptional<z.ZodString>;
payment_index: z.ZodOptional<z.ZodNumber>;
}, "strict", z.ZodTypeAny, {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
}, {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
}>;
export declare const DiscountSchema: z.ZodObject<{
name: z.ZodString;
discount_type: z.ZodUnion<[z.ZodLiteral<import("wowok").DiscountType.RATES>, z.ZodLiteral<import("wowok").DiscountType.FIXED>]>;
discount_value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
benchmark: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
time_ms_start: z.ZodOptional<z.ZodNumber>;
time_ms_end: z.ZodOptional<z.ZodNumber>;
count: z.ZodOptional<z.ZodNumber>;
recipient: z.ZodObject<{
entities: z.ZodArray<z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>, "many">;
check_all_founded: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}>;
transferable: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name: string;
recipient: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
};
discount_type: import("wowok").DiscountType;
discount_value: string | number;
count?: number | undefined;
benchmark?: string | number | undefined;
transferable?: boolean | undefined;
time_ms_start?: number | undefined;
time_ms_end?: number | undefined;
}, {
name: string;
recipient: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
};
discount_type: import("wowok").DiscountType;
discount_value: string | number;
count?: number | undefined;
benchmark?: string | number | undefined;
transferable?: boolean | undefined;
time_ms_start?: number | undefined;
time_ms_end?: number | undefined;
}>;
export declare const OrderNewSchema: z.ZodObject<{
buy: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
wip_hash: z.ZodString;
}, "strict", z.ZodTypeAny, {
name: string;
stock: string | number;
wip_hash: string;
}, {
name: string;
stock: string | number;
wip_hash: string;
}>, "many">;
total_pay: z.ZodUnion<[z.ZodObject<{
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
balance: string | number;
}, {
balance: string | number;
}>, z.ZodObject<{
coin: z.ZodString;
}, "strip", z.ZodTypeAny, {
coin: string;
}, {
coin: string;
}>]>;
discount: z.ZodOptional<z.ZodString>;
payment_remark: z.ZodOptional<z.ZodString>;
payment_index: z.ZodOptional<z.ZodNumber>;
}, "strict", z.ZodTypeAny, {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
}, {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
}>;
agents: z.ZodOptional<z.ZodObject<{
entities: z.ZodArray<z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>, "many">;
check_all_founded: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}>>;
order_required_info: z.ZodOptional<z.ZodString>;
transfer: z.ZodOptional<z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>>;
namedNewOrder: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>>;
namedNewAllocation: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>>;
namedNewProgress: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>>;
}, "strict", z.ZodTypeAny, {
buy: {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
};
transfer?: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
} | undefined;
agents?: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
} | undefined;
order_required_info?: string | undefined;
namedNewOrder?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewAllocation?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewProgress?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
buy: {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
};
transfer?: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
} | undefined;
agents?: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
} | undefined;
order_required_info?: string | undefined;
namedNewOrder?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewAllocation?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewProgress?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>;
export declare const SalesSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
sales: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
price: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
suspension: z.ZodBoolean;
wip: z.ZodString;
wip_hash: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}, {
op: "add";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
sales: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
price: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
suspension: z.ZodBoolean;
wip: z.ZodString;
wip_hash: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}, {
op: "set";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
sales_name: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
sales_name: string[];
}, {
op: "remove";
sales_name: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>;
export declare const CallService_DataSchema: z.ZodObject<{
object: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
} & {
permission: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
} & {
description: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
description?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
description?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>]>>;
} & {
type_parameter: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
}, "strict", z.ZodTypeAny, {
type_parameter: string;
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
permission?: string | {
name?: string | undefined;
description?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
type_parameter?: string | undefined;
permission?: string | {
name?: string | undefined;
description?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>]>;
order_new: z.ZodOptional<z.ZodObject<{
buy: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
wip_hash: z.ZodString;
}, "strict", z.ZodTypeAny, {
name: string;
stock: string | number;
wip_hash: string;
}, {
name: string;
stock: string | number;
wip_hash: string;
}>, "many">;
total_pay: z.ZodUnion<[z.ZodObject<{
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
balance: string | number;
}, {
balance: string | number;
}>, z.ZodObject<{
coin: z.ZodString;
}, "strip", z.ZodTypeAny, {
coin: string;
}, {
coin: string;
}>]>;
discount: z.ZodOptional<z.ZodString>;
payment_remark: z.ZodOptional<z.ZodString>;
payment_index: z.ZodOptional<z.ZodNumber>;
}, "strict", z.ZodTypeAny, {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
}, {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
}>;
agents: z.ZodOptional<z.ZodObject<{
entities: z.ZodArray<z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>, "many">;
check_all_founded: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}>>;
order_required_info: z.ZodOptional<z.ZodString>;
transfer: z.ZodOptional<z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>>;
namedNewOrder: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>>;
namedNewAllocation: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>>;
namedNewProgress: z.ZodOptional<z.ZodObject<{
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
onChain: z.ZodOptional<z.ZodBoolean>;
replaceExistName: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}, {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
}>>;
}, "strict", z.ZodTypeAny, {
buy: {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
};
transfer?: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
} | undefined;
agents?: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
} | undefined;
order_required_info?: string | undefined;
namedNewOrder?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewAllocation?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewProgress?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
buy: {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
};
transfer?: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
} | undefined;
agents?: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
} | undefined;
order_required_info?: string | undefined;
namedNewOrder?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewAllocation?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewProgress?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>>;
description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
location: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
sales: z.ZodOptional<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
sales: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
price: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
suspension: z.ZodBoolean;
wip: z.ZodString;
wip_hash: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}, {
op: "add";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
sales: z.ZodArray<z.ZodObject<{
name: z.ZodEffects<z.ZodString, string, string>;
price: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
stock: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
suspension: z.ZodBoolean;
wip: z.ZodString;
wip_hash: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}, {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}, {
op: "set";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
sales_name: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
sales_name: string[];
}, {
op: "remove";
sales_name: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
repositories: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set" | "add";
objects: string[];
}, {
op: "set" | "add";
objects: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
objects: string[];
}, {
op: "remove";
objects: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
rewards: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set" | "add";
objects: string[];
}, {
op: "set" | "add";
objects: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
objects: string[];
}, {
op: "remove";
objects: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
arbitrations: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set" | "add";
objects: string[];
}, {
op: "set" | "add";
objects: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
objects: string[];
}, {
op: "remove";
objects: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
machine: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
discount: z.ZodOptional<z.ZodObject<{
name: z.ZodString;
discount_type: z.ZodUnion<[z.ZodLiteral<import("wowok").DiscountType.RATES>, z.ZodLiteral<import("wowok").DiscountType.FIXED>]>;
discount_value: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
benchmark: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
time_ms_start: z.ZodOptional<z.ZodNumber>;
time_ms_end: z.ZodOptional<z.ZodNumber>;
count: z.ZodOptional<z.ZodNumber>;
recipient: z.ZodObject<{
entities: z.ZodArray<z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>, "many">;
check_all_founded: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}, {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
}>;
transferable: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name: string;
recipient: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
};
discount_type: import("wowok").DiscountType;
discount_value: string | number;
count?: number | undefined;
benchmark?: string | number | undefined;
transferable?: boolean | undefined;
time_ms_start?: number | undefined;
time_ms_end?: number | undefined;
}, {
name: string;
recipient: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
};
discount_type: import("wowok").DiscountType;
discount_value: string | number;
count?: number | undefined;
benchmark?: string | number | undefined;
transferable?: boolean | undefined;
time_ms_start?: number | undefined;
time_ms_end?: number | undefined;
}>>;
discount_destroy: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
customer_required: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
order_allocators: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
description: z.ZodEffects<z.ZodString, string, string>;
threshold: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
allocators: z.ZodArray<z.ZodObject<{
guard: z.ZodEffects<z.ZodString, string, string>;
sharing: z.ZodArray<z.ZodObject<{
who: z.ZodUnion<[z.ZodObject<{
GuardIdentifier: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
GuardIdentifier: number;
}, {
GuardIdentifier: number;
}>, z.ZodObject<{
Entity: z.ZodObject<{
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
local_mark_first: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}, {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}>;
}, "strip", z.ZodTypeAny, {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
}, {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
}>, z.ZodObject<{
Signer: z.ZodLiteral<"signer">;
}, "strip", z.ZodTypeAny, {
Signer: "signer";
}, {
Signer: "signer";
}>]>;
sharing: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
mode: z.ZodEnum<["Amount", "Rate", "Surplus"]>;
}, "strip", z.ZodTypeAny, {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}, {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}>, "many">;
fix: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
max: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
sharing: {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}[];
max?: string | number | null | undefined;
fix?: string | number | undefined;
}, {
guard: string;
sharing: {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}[];
max?: string | number | null | undefined;
fix?: string | number | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
description: string;
threshold: string | number;
allocators: {
guard: string;
sharing: {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}[];
max?: string | number | null | undefined;
fix?: string | number | undefined;
}[];
}, {
description: string;
threshold: string | number;
allocators: {
guard: string;
sharing: {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}[];
max?: string | number | null | undefined;
fix?: string | number | undefined;
}[];
}>, z.ZodNull]>>;
buy_guard: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
compensation_fund_add: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
balance: string | number;
}, {
balance: string | number;
}>, z.ZodObject<{
coin: z.ZodString;
}, "strip", z.ZodTypeAny, {
coin: string;
}, {
coin: string;
}>]>>;
setting_locked_time_add: z.ZodOptional<z.ZodNumber>;
compensation_fund_receive: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
token_type: z.ZodEffects<z.ZodString, string, string>;
received: z.ZodArray<z.ZodObject<{
id: z.ZodString;
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
payment: z.ZodString;
}, "strict", z.ZodTypeAny, {
id: string;
balance: string | number;
payment: string;
}, {
id: string;
balance: string | number;
payment: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
}, {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
}>, z.ZodLiteral<"recently">]>>;
owner_receive: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
id: z.ZodString;
type: z.ZodString;
content_raw: z.ZodOptional<z.ZodAny>;
}, "strict", z.ZodTypeAny, {
type: string;
id: string;
content_raw?: any;
}, {
type: string;
id: string;
content_raw?: any;
}>, "many">, z.ZodObject<{
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
token_type: z.ZodEffects<z.ZodString, string, string>;
received: z.ZodArray<z.ZodObject<{
id: z.ZodString;
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
payment: z.ZodString;
}, "strict", z.ZodTypeAny, {
id: string;
balance: string | number;
payment: string;
}, {
id: string;
balance: string | number;
payment: string;
}>, "many">;
}, "strict", z.ZodTypeAny, {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
}, {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
}>, z.ZodLiteral<"recently">]>>;
um: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
pause: z.ZodOptional<z.ZodBoolean>;
publish: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
object: string | {
type_parameter: string;
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
permission?: string | {
name?: string | undefined;
description?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
};
description?: string | undefined;
location?: string | undefined;
owner_receive?: {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
} | "recently" | {
type: string;
id: string;
content_raw?: any;
}[] | undefined;
rewards?: {
op: "set" | "add";
objects: string[];
} | {
op: "remove";
objects: string[];
} | {
op: "clear";
} | undefined;
um?: string | null | undefined;
discount?: {
name: string;
recipient: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
};
discount_type: import("wowok").DiscountType;
discount_value: string | number;
count?: number | undefined;
benchmark?: string | number | undefined;
transferable?: boolean | undefined;
time_ms_start?: number | undefined;
time_ms_end?: number | undefined;
} | undefined;
machine?: string | null | undefined;
sales?: {
op: "add";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
} | {
op: "set";
sales: {
name: string;
wip: string;
price: string | number;
stock: string | number;
suspension: boolean;
wip_hash: string;
}[];
} | {
op: "remove";
sales_name: string[];
} | {
op: "clear";
} | undefined;
repositories?: {
op: "set" | "add";
objects: string[];
} | {
op: "remove";
objects: string[];
} | {
op: "clear";
} | undefined;
buy_guard?: string | null | undefined;
customer_required?: string[] | undefined;
arbitrations?: {
op: "set" | "add";
objects: string[];
} | {
op: "remove";
objects: string[];
} | {
op: "clear";
} | undefined;
order_allocators?: {
description: string;
threshold: string | number;
allocators: {
guard: string;
sharing: {
who: {
GuardIdentifier: number;
} | {
Entity: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
} | {
Signer: "signer";
};
sharing: string | number;
mode: "Amount" | "Rate" | "Surplus";
}[];
max?: string | number | null | undefined;
fix?: string | number | undefined;
}[];
} | null | undefined;
pause?: boolean | undefined;
publish?: boolean | undefined;
order_new?: {
buy: {
items: {
name: string;
stock: string | number;
wip_hash: string;
}[];
total_pay: {
balance: string | number;
} | {
coin: string;
};
discount?: string | undefined;
payment_remark?: string | undefined;
payment_index?: number | undefined;
};
transfer?: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
} | undefined;
agents?: {
entities: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
}[];
check_all_founded?: boolean | undefined;
} | undefined;
order_required_info?: string | undefined;
namedNewOrder?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewAllocation?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
namedNewProgress?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
} | undefined;
discount_destroy?: string[] | undefined;
compensation_fund_add?: {
balance: string | number;
} | {
coin: string;
} | undefined;
setting_locked_time_add?: number | undefined;
compensation_fund_receive?: {