UNPKG

wowok_agent

Version:

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

28 lines (27 loc) 2.15 kB
import { z } from 'zod'; import { CallEnvSchema, NamedObjectSchema } from './base.js'; import { DescriptionSchema } from '../common/index.js'; export const CallProof_DataSchema = z.object({ namedNew: NamedObjectSchema.optional(), description: DescriptionSchema.optional(), proof: z.string().max(10240).describe("Proof content. e.g. merkle tree root"), server_pubkey: z.string().max(1024).describe("Server public key"), server_signature: z.string().max(40480).describe("Server signature"), proof_type: z.union([z.number().int().min(0), z.string()]).describe("Proof type. 1: WTS proof; 1-100 reserved."), item_count: z.union([z.number().int().min(0), z.string(), z.null()]).optional().describe("Item count. e.g. number of items in the merkle tree"), about_address: z.union([NamedObjectSchema, z.null()]).optional().describe("About address. e.g. address of the entity being proved"), }).strict().describe("On-chain Proof creation. USAGE: Set 'namedNew' field with {name, tag?} to create a named Proof. Proof is an immutable object - it can only be created, not modified. The 'namedNew' field is CRITICAL and REQUIRED."); export const CallProof_InputSchema = z.object({ data: CallProof_DataSchema, env: CallEnvSchema.optional(), }).strict().describe("On-chain, create a new Proof object"); export const CallGenProof_InputSchema = z.object({ proof: z.string().max(10240).describe("Proof content. e.g. merkle tree root"), server_pubkey: z.string().max(1024).describe("Server public key"), server_signature: z.string().max(40480).describe("Server signature"), proof_type: z.union([z.number().int().min(0), z.string()]).describe("Proof type. 1: WTS proof; 1-100 reserved."), description: DescriptionSchema.optional(), item_count: z.union([z.number().int().min(0), z.string(), z.null()]).optional().describe("Item count. e.g. number of items in the merkle tree"), about_address: z.union([NamedObjectSchema, z.null()]).optional().describe("About address. e.g. address of the entity being proved"), env: CallEnvSchema.optional(), }).strict().describe("Generate a new Proof object on-chain");