wowok_agent
Version:
Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.
1,439 lines (1,438 loc) • 94.2 kB
TypeScript
import { z } from "zod";
export declare const DepositSchema: z.ZodObject<{
coin: 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;
}>]>;
by_external_deposit_guard: z.ZodOptional<z.ZodString>;
payment_info: z.ZodObject<{
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
remark: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}>;
namedNewPayment: 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, {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>;
export declare const WithdrawSchema: z.ZodObject<{
amount: z.ZodUnion<[z.ZodObject<{
fixed: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strict", z.ZodTypeAny, {
fixed: string | number;
}, {
fixed: string | number;
}>, z.ZodObject<{
by_external_withdraw_guard: z.ZodString;
}, "strict", z.ZodTypeAny, {
by_external_withdraw_guard: string;
}, {
by_external_withdraw_guard: string;
}>]>;
recipient: 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;
}>;
payment_info: z.ZodObject<{
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
remark: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}>;
namedNewPayment: 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, {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>;
export declare const ExternalDepositGuardSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}, {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}, {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
guards: string[];
}, {
op: "remove";
guards: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>;
export declare const ExternalWithdrawGuardSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodNumber;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}, {
op: "add";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodNumber;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}, {
op: "set";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
guards: string[];
}, {
op: "remove";
guards: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>;
export declare const CallTreasury_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;
}>]>;
description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
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">]>>;
deposit: z.ZodOptional<z.ZodObject<{
coin: 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;
}>]>;
by_external_deposit_guard: z.ZodOptional<z.ZodString>;
payment_info: z.ZodObject<{
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
remark: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}>;
namedNewPayment: 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, {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>>;
withdraw: z.ZodOptional<z.ZodObject<{
amount: z.ZodUnion<[z.ZodObject<{
fixed: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strict", z.ZodTypeAny, {
fixed: string | number;
}, {
fixed: string | number;
}>, z.ZodObject<{
by_external_withdraw_guard: z.ZodString;
}, "strict", z.ZodTypeAny, {
by_external_withdraw_guard: string;
}, {
by_external_withdraw_guard: string;
}>]>;
recipient: 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;
}>;
payment_info: z.ZodObject<{
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
remark: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}>;
namedNewPayment: 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, {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>>;
external_deposit_guard: z.ZodOptional<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}, {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}, {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
guards: string[];
}, {
op: "remove";
guards: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
external_withdraw_guard: z.ZodOptional<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodNumber;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}, {
op: "add";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodNumber;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}, {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}, {
op: "set";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
guards: string[];
}, {
op: "remove";
guards: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
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.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;
}>, z.ZodNull]>>;
}, "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;
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;
um?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | null | undefined;
external_deposit_guard?: {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
} | {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
} | {
op: "remove";
guards: string[];
} | {
op: "clear";
} | undefined;
external_withdraw_guard?: {
op: "add";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
} | {
op: "set";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
} | {
op: "remove";
guards: string[];
} | {
op: "clear";
} | undefined;
receive?: {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
} | "recently" | undefined;
deposit?: {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
} | undefined;
withdraw?: {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
} | 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;
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;
um?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | null | undefined;
external_deposit_guard?: {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
} | {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
} | {
op: "remove";
guards: string[];
} | {
op: "clear";
} | undefined;
external_withdraw_guard?: {
op: "add";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
} | {
op: "set";
guards: {
identifier: number;
guard: string;
store_from_id?: number | null | undefined;
}[];
} | {
op: "remove";
guards: string[];
} | {
op: "clear";
} | undefined;
receive?: {
received: {
id: string;
balance: string | number;
payment: string;
}[];
balance: string | number;
token_type: string;
} | "recently" | undefined;
deposit?: {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
} | undefined;
withdraw?: {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
} | undefined;
}>;
export declare const CallTreasury_InputSchema: z.ZodObject<{
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;
}>]>;
description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
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">]>>;
deposit: z.ZodOptional<z.ZodObject<{
coin: 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;
}>]>;
by_external_deposit_guard: z.ZodOptional<z.ZodString>;
payment_info: z.ZodObject<{
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
remark: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}>;
namedNewPayment: 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, {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
coin: {
balance: string | number;
} | {
coin: string;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
by_external_deposit_guard?: string | undefined;
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>>;
withdraw: z.ZodOptional<z.ZodObject<{
amount: z.ZodUnion<[z.ZodObject<{
fixed: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strict", z.ZodTypeAny, {
fixed: string | number;
}, {
fixed: string | number;
}>, z.ZodObject<{
by_external_withdraw_guard: z.ZodString;
}, "strict", z.ZodTypeAny, {
by_external_withdraw_guard: string;
}, {
by_external_withdraw_guard: string;
}>]>;
recipient: 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;
}>;
payment_info: z.ZodObject<{
for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
remark: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
}, "strip", z.ZodTypeAny, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}, {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
}>;
namedNewPayment: 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, {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}, {
amount: {
fixed: string | number;
} | {
by_external_withdraw_guard: string;
};
recipient: {
name_or_address?: string | undefined;
local_mark_first?: boolean | undefined;
};
payment_info: {
index: string | number;
remark: string;
for_object?: string | null | undefined;
for_guard?: string | null | undefined;
};
namedNewPayment?: {
name?: string | undefined;
replaceExistName?: boolean | undefined;
tags?: string[] | undefined;
onChain?: boolean | undefined;
} | undefined;
}>>;
external_deposit_guard: z.ZodOptional<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}, {
op: "add";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"set">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}, {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}, {
op: "set";
guards: {
guard: string;
identifier?: number | null | undefined;
store_from_id?: number | null | undefined;
}[];
}>, z.ZodObject<{
op: z.ZodLiteral<"remove">;
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
}, "strict", z.ZodTypeAny, {
op: "remove";
guards: string[];
}, {
op: "remove";
guards: string[];
}>, z.ZodObject<{
op: z.ZodLiteral<"clear">;
}, "strict", z.ZodTypeAny, {
op: "clear";
}, {
op: "clear";
}>]>>;
external_withdraw_guard: z.ZodOptional<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
op: z.ZodLiteral<"add">;
guards: z.ZodArray<z.ZodObject<{
guard: z.ZodString;
identifier: z.ZodNumber;
store_from_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
}, "strip", z.ZodTypeAny, {
identifier: number;
guard: string;