Skip to content

Variable: GenieSpaceSchema

const GenieSpaceSchema: ZodObject<{ description: ZodOptional<ZodString>; serialized_space: ZodOptional<ZodString>; space_id: ZodString; title: ZodString; warehouse_id: ZodOptional<ZodString>; }, $strip>

GenieSpace widened with an optional serialized_space field carrying a JSON-string representation of the space’s full definition (catalogs, schemas, tables, sample questions, prompts, etc.) as exported by the workspace export endpoint.

The base SDK shape (description, space_id, title, warehouse_id) covers the directory-listing surface - enough to route a chat. serialized_space is opt-in so callers that need the full space schema (e.g. to seed a system prompt or to ship the definition to an agent) can attach it without a second type.