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.

  • description (optional): Description of the Genie Space
  • space_id: Genie space ID
  • title: Title of the Genie Space
  • warehouse_id (optional): Warehouse associated with the Genie Space
  • serialized_space (optional): The contents of the Genie Space in serialized string form. This field is excluded in List Genie spaces responses. This field provides the structure of the JSON string that represents the space’s layout and components.