UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

22 lines (21 loc) 771 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetCABSchema = void 0; const zod_1 = require("zod"); /** * Input schema for get CAB action. */ exports.GetCABSchema = zod_1.z.discriminatedUnion("type", [ zod_1.z.object({ type: zod_1.z.literal("networkFilter"), tokenTickers: zod_1.z.array(zod_1.z.string()).optional(), networks: zod_1.z.array(zod_1.z.number()).describe("The networks to get the balance for."), }), zod_1.z.object({ type: zod_1.z.literal("networkType"), tokenTickers: zod_1.z.array(zod_1.z.string()).optional(), networkType: zod_1.z .enum(["mainnet", "testnet"]) .describe("The type of network to get the balance for."), }), ]);