@punkbit/test24jan
Version:
A standalone package for Fleek Agents AI user-interface
339 lines (338 loc) • 10.4 kB
TypeScript
import { z } from 'zod';
/** Schema for the form builder, which is
* slightly different than the final characterfile.
* We need it due to how React Hook Form handles arrays.
*/
export declare const characterFormSchema: z.ZodObject<{
name: z.ZodString;
username: z.ZodOptional<z.ZodString>;
plugins: z.ZodArray<z.ZodString, "many">;
modelProvider: z.ZodEnum<["openai", "anthropic", "claude_vertex", "grok", "groq", "llama_cloud", "llama_local", "ollama", "google", "redpill", "openrouter", "heurist", "together", "eternalai", "galadriel", "falai", "gaianet", "ali_bailian", "volengine", "nanogpt", "hyperbolic", "venice", "akash_chat_api", "livepeer"]>;
clients: z.ZodArray<z.ZodEnum<["discord", "twitter", "telegram", "farcaster", "lens", "auto", "slack", "github"]>, "many">;
settings: z.ZodObject<{
secrets: z.ZodRecord<z.ZodString, z.ZodString>;
voice: z.ZodObject<{
model: z.ZodString;
}, "strip", z.ZodTypeAny, {
model: string;
}, {
model: string;
}>;
}, "strip", z.ZodTypeAny, {
secrets: Record<string, string>;
voice: {
model: string;
};
}, {
secrets: Record<string, string>;
voice: {
model: string;
};
}>;
bio: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
lore: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
knowledge: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">>;
messageExamples: z.ZodArray<z.ZodArray<z.ZodObject<{
user: z.ZodString;
content: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
}, "strip", z.ZodTypeAny, {
content: {
text: string;
};
user: string;
}, {
content: {
text: string;
};
user: string;
}>, "many">, "many">;
postExamples: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
style: z.ZodObject<{
all: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
chat: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
post: z.ZodArray<z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
all: {
name: string;
}[];
chat: {
name: string;
}[];
post: {
name: string;
}[];
}, {
all: {
name: string;
}[];
chat: {
name: string;
}[];
post: {
name: string;
}[];
}>;
topics: z.ZodArray<z.ZodString, "many">;
adjectives: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
name: string;
style: {
all: {
name: string;
}[];
chat: {
name: string;
}[];
post: {
name: string;
}[];
};
plugins: string[];
modelProvider: "openai" | "anthropic" | "claude_vertex" | "grok" | "groq" | "llama_cloud" | "llama_local" | "ollama" | "google" | "redpill" | "openrouter" | "heurist" | "together" | "eternalai" | "galadriel" | "falai" | "gaianet" | "ali_bailian" | "volengine" | "nanogpt" | "hyperbolic" | "venice" | "akash_chat_api" | "livepeer";
clients: ("auto" | "discord" | "twitter" | "telegram" | "farcaster" | "lens" | "slack" | "github")[];
settings: {
secrets: Record<string, string>;
voice: {
model: string;
};
};
bio: {
name: string;
}[];
lore: {
name: string;
}[];
messageExamples: {
content: {
text: string;
};
user: string;
}[][];
postExamples: {
name: string;
}[];
topics: string[];
adjectives: string[];
username?: string | undefined;
knowledge?: {
name: string;
}[] | undefined;
}, {
name: string;
style: {
all: {
name: string;
}[];
chat: {
name: string;
}[];
post: {
name: string;
}[];
};
plugins: string[];
modelProvider: "openai" | "anthropic" | "claude_vertex" | "grok" | "groq" | "llama_cloud" | "llama_local" | "ollama" | "google" | "redpill" | "openrouter" | "heurist" | "together" | "eternalai" | "galadriel" | "falai" | "gaianet" | "ali_bailian" | "volengine" | "nanogpt" | "hyperbolic" | "venice" | "akash_chat_api" | "livepeer";
clients: ("auto" | "discord" | "twitter" | "telegram" | "farcaster" | "lens" | "slack" | "github")[];
settings: {
secrets: Record<string, string>;
voice: {
model: string;
};
};
bio: {
name: string;
}[];
lore: {
name: string;
}[];
messageExamples: {
content: {
text: string;
};
user: string;
}[][];
postExamples: {
name: string;
}[];
topics: string[];
adjectives: string[];
username?: string | undefined;
knowledge?: {
name: string;
}[] | undefined;
}>;
export type CharacterFormSchema = z.infer<typeof characterFormSchema>;
/** Schema for the characterfile JSON file */
export declare const characterfileSchema: z.ZodObject<{
name: z.ZodString;
username: z.ZodOptional<z.ZodString>;
plugins: z.ZodArray<z.ZodString, "many">;
modelProvider: z.ZodEnum<["openai", "anthropic", "claude_vertex", "grok", "groq", "llama_cloud", "llama_local", "ollama", "google", "redpill", "openrouter", "heurist", "together", "eternalai", "galadriel", "falai", "gaianet", "ali_bailian", "volengine", "nanogpt", "hyperbolic", "venice", "akash_chat_api", "livepeer"]>;
clients: z.ZodArray<z.ZodEnum<["discord", "twitter", "telegram", "farcaster", "lens", "auto", "slack", "github"]>, "many">;
settings: z.ZodObject<{
secrets: z.ZodRecord<z.ZodString, z.ZodString>;
voice: z.ZodObject<{
model: z.ZodString;
}, "strip", z.ZodTypeAny, {
model: string;
}, {
model: string;
}>;
}, "strip", z.ZodTypeAny, {
secrets: Record<string, string>;
voice: {
model: string;
};
}, {
secrets: Record<string, string>;
voice: {
model: string;
};
}>;
bio: z.ZodArray<z.ZodString, "many">;
lore: z.ZodArray<z.ZodString, "many">;
knowledge: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
messageExamples: z.ZodArray<z.ZodArray<z.ZodObject<{
user: z.ZodString;
content: z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>;
}, "strip", z.ZodTypeAny, {
content: {
text: string;
};
user: string;
}, {
content: {
text: string;
};
user: string;
}>, "many">, "many">;
postExamples: z.ZodArray<z.ZodString, "many">;
style: z.ZodObject<{
all: z.ZodArray<z.ZodString, "many">;
chat: z.ZodArray<z.ZodString, "many">;
post: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
all: string[];
chat: string[];
post: string[];
}, {
all: string[];
chat: string[];
post: string[];
}>;
topics: z.ZodArray<z.ZodString, "many">;
adjectives: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
name: string;
style: {
all: string[];
chat: string[];
post: string[];
};
plugins: string[];
modelProvider: "openai" | "anthropic" | "claude_vertex" | "grok" | "groq" | "llama_cloud" | "llama_local" | "ollama" | "google" | "redpill" | "openrouter" | "heurist" | "together" | "eternalai" | "galadriel" | "falai" | "gaianet" | "ali_bailian" | "volengine" | "nanogpt" | "hyperbolic" | "venice" | "akash_chat_api" | "livepeer";
clients: ("auto" | "discord" | "twitter" | "telegram" | "farcaster" | "lens" | "slack" | "github")[];
settings: {
secrets: Record<string, string>;
voice: {
model: string;
};
};
bio: string[];
lore: string[];
messageExamples: {
content: {
text: string;
};
user: string;
}[][];
postExamples: string[];
topics: string[];
adjectives: string[];
username?: string | undefined;
knowledge?: string[] | undefined;
}, {
name: string;
style: {
all: string[];
chat: string[];
post: string[];
};
plugins: string[];
modelProvider: "openai" | "anthropic" | "claude_vertex" | "grok" | "groq" | "llama_cloud" | "llama_local" | "ollama" | "google" | "redpill" | "openrouter" | "heurist" | "together" | "eternalai" | "galadriel" | "falai" | "gaianet" | "ali_bailian" | "volengine" | "nanogpt" | "hyperbolic" | "venice" | "akash_chat_api" | "livepeer";
clients: ("auto" | "discord" | "twitter" | "telegram" | "farcaster" | "lens" | "slack" | "github")[];
settings: {
secrets: Record<string, string>;
voice: {
model: string;
};
};
bio: string[];
lore: string[];
messageExamples: {
content: {
text: string;
};
user: string;
}[][];
postExamples: string[];
topics: string[];
adjectives: string[];
username?: string | undefined;
knowledge?: string[] | undefined;
}>;
export type CharacterfileSchema = z.infer<typeof characterfileSchema>;