UNPKG

wowok_agent

Version:

Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.

1,233 lines 760 kB
#!/usr/bin/env node import { z } from "zod"; import { CallOutputSchema, ProtocolInfoQuerySchema, MessengerOperationOutputSchema, AccountOperationSchema, LocalMarkOperationSchema, LocalInfoOperationSchema, MessengerOperationInputSchema } from "./schema/index.js"; declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"operation_type", [z.ZodObject<{ operation_type: z.ZodLiteral<"service">; data: 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?: { received: { id: string; balance: string | number; payment: string; }[]; balance: string | number; token_type: string; } | "recently" | undefined; }, { object: string | { 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; }; 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?: { received: { id: string; balance: string | number; payment: string; }[]; balance: string | number; token_type: string; } | "recently" | undefined; }>; env: z.ZodOptional<z.ZodObject<{ account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>; permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; no_cache: z.ZodOptional<z.ZodBoolean>; network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>; referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; }, "strict", z.ZodTypeAny, { account: string; no_cache?: boolean | undefined; network?: import("wowok").ENTRYPOINT | undefined; permission_guard?: string[] | undefined; referrer?: string | undefined; }, { no_cache?: boolean | undefined; network?: import("wowok").ENTRYPOINT | undefined; account?: string | undefined; permission_guard?: string[] | undefined; referrer?: string | undefined; }>>; submission: z.ZodOptional<z.ZodObject<{ type: z.ZodLiteral<"submission">; guard: z.ZodArray<z.ZodObject<{ object: z.ZodEffects<z.ZodString, string, string>; impack: z.ZodBoolean; }, "strict", z.ZodTypeAny, { object: string; impack: boolean; }, { object: string; impack: boolean; }>, "many">; submission: z.ZodArray<z.ZodObject<{ guard: z.ZodEffects<z.ZodString, string, string>; submission: z.ZodArray<z.ZodObject<{ identifier: z.ZodNumber; b_submission: z.ZodBoolean; value_type: z.ZodUnion<[z.ZodLiteral<import("wowok").ValueType.Bool>, z.ZodLiteral<import("wowok").ValueType.Address>, z.ZodLiteral<import("wowok").ValueType.String>, z.ZodLiteral<import("wowok").ValueType.U8>, z.ZodLiteral<import("wowok").ValueType.U16>, z.ZodLiteral<import("wowok").ValueType.U32>, z.ZodLiteral<import("wowok").ValueType.U64>, z.ZodLiteral<import("wowok").ValueType.U128>, z.ZodLiteral<import("wowok").ValueType.U256>, z.ZodLiteral<import("wowok").ValueType.VecBool>, z.ZodLiteral<import("wowok").ValueType.VecAddress>, z.ZodLiteral<import("wowok").ValueType.VecString>, z.ZodLiteral<import("wowok").ValueType.VecU8>, z.ZodLiteral<import("wowok").ValueType.VecU16>, z.ZodLiteral<import("wowok").ValueType.VecU32>, z.ZodLiteral<import("wowok").ValueType.VecU64>, z.ZodLiteral<import("wowok").ValueType.VecU128>, z.ZodLiteral<import("wowok").ValueType.VecU256>, z.ZodLiteral<import("wowok").ValueType.VecVecU8>, z.ZodLiteral<"Bool">, z.ZodLiteral<"Address">, z.ZodLiteral<"String">, z.ZodLiteral<"U8">, z.ZodLiteral<"U16">, z.ZodLiteral<"U32">, z.ZodLiteral<"U64">, z.ZodLiteral<"U128">, z.ZodLiteral<"U256">, z.ZodLiteral<"VecBool">, z.ZodLiteral<"VecAddress">, z.ZodLiteral<"VecString">, z.ZodLiteral<"VecU8">, z.ZodLiteral<"VecU16">, z.ZodLiteral<"VecU32">, z.ZodLiteral<"VecU64">, z.ZodLiteral<"VecU128">, z.ZodLiteral<"VecU256">, z.ZodLiteral<"VecVecU8">, z.ZodLiteral<"bool">, z.ZodLiteral<"address">, z.ZodLiteral<"string">, z.ZodLiteral<"u8">, z.ZodLiteral<"u16">, z.ZodLiteral<"u32">, z.ZodLiteral<"u64">, z.ZodLiteral<"u128">, z.ZodLiteral<"u256">, z.ZodLiteral<"vecbool">, z.ZodLiteral<"vecaddress">, z.ZodLiteral<"vecstring">, z.ZodLiteral<"vecu8">, z.ZodLiteral<"vecu16">, z.ZodLiteral<"vecu32">, z.ZodLiteral<"vecu64">, z.ZodLiteral<"vecu128">, z.ZodLiteral<"vecu256">, z.ZodLiteral<"vecvecu8">]>; value: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[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; }>, z.ZodString]>, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodBoolean, "many">, z.ZodUnion<[z.ZodObject<{ entities: z.ZodArray<z.ZodObject<{ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; local_mark_