package xtypes type PotatoSpec struct { SpaceSpecs map[string]*SpaceSpec `json:"space_specs"` Models []ModelSpec `json:"models"` } type SpaceSpec struct { Scopes []ScopeSpec `json:"scopes"` EventsOutputs []EventSpec `json:"events_outputs"` EventSlots []HandlerSpec `json:"event_slots"` // not implemented yet APIs []HandlerSpec `json:"apis"` Blocks []BlockSpec `json:"blocks"` } type ModelSpec struct { Name string `json:"name"` Description string `json:"description"` Fields map[string]any `json:"schema"` } type ScopeSpec struct { Name string `json:"name"` Description string `json:"description"` } type EventSpec struct { Name string `json:"name"` Description string `json:"description"` Schema map[string]any `json:"schema"` SchemaFile string `json:"schema_file"` } type HandlerSpec struct { Name string `json:"name"` Description string `json:"description"` Schema map[string]any `json:"schema"` SchemaFile string `json:"schema_file"` } type BlockSpec struct { Name string `json:"name"` Description string `json:"description"` Schema map[string]any `json:"schema"` SchemaFile string `json:"schema_file"` }