UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

27 lines (26 loc) 872 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FarcasterPostCastSchema = exports.FarcasterAccountDetailsSchema = void 0; const zod_1 = require("zod"); /** * Input argument schema for the account_details action. */ exports.FarcasterAccountDetailsSchema = zod_1.z .object({}) .strip() .describe("Input schema for retrieving account details"); /** * Input argument schema for the post cast action. */ exports.FarcasterPostCastSchema = zod_1.z .object({ castText: zod_1.z.string().max(280, "Cast text must be a maximum of 280 characters."), embeds: zod_1.z .array(zod_1.z.object({ url: zod_1.z.string().url("Embed URL must be a valid URL"), })) .max(2, "Maximum of 2 embeds allowed") .optional(), }) .strip() .describe("Input schema for posting a text-based cast");