Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
form.ts971 B
import { z } from "zod"; import { PropertySchema, PropertySchemaList, PropertyType, } from "src/api/openapi-schema"; import { CoverImageSchema, NodeMetadataSchema } from "@/lib/library/metadata"; const CoverImageFormSchema = z.union([ CoverImageSchema, z.object({ asset_id: z.string(), }), ]); const PropertyTypes = Object.keys(PropertyType) as unknown as readonly [ PropertyType, ...PropertyType[], ]; export const FormNodePropertySchema = z.object({ fid: z.string().optional(), name: z.string(), type: z.enum(PropertyTypes), sort: z.string(), value: z.string(), }); export type FormNodeProperty = z.infer<typeof FormNodePropertySchema>; // NOTE: Yes, SchemaSchema is intentional... export const FormNodeChildPropertySchemaSchema = z.object({ fid: z.string(), name: z.string(), sort: z.string(), type: z.enum(PropertyTypes), }); export type FormNodeChildPropertySchema = z.infer< typeof FormNodeChildPropertySchemaSchema >;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server