/ src / data / models / namespacesResponse.ts
namespacesResponse.ts
 1  /**
 2   * Generated by orval v7.9.0 🍺
 3   * Do not edit manually.
 4   * Cogni API
 5   * A minimal FastAPI that directly passes user queries to OpenAI, augmented with Cogni memory.
 6   * OpenAPI spec version: 0.1.0
 7   */
 8  import type { NamespacesResponseRequestedBranch } from './namespacesResponseRequestedBranch';
 9  import type { NamespaceInfo } from './namespaceInfo';
10  
11  /**
12   * Enhanced response for namespaces endpoint that includes current context.
13  Uses proper NamespaceInfo typing for frontend TypeScript generation.
14   */
15  export interface NamespacesResponse {
16    /** Currently active Dolt branch for this operation */
17    active_branch: string;
18    /** Branch requested by client (may differ from active_branch for read operations) */
19    requested_branch?: NamespacesResponseRequestedBranch;
20    /** UTC ISO timestamp when the operation was performed */
21    timestamp: string;
22    /** List of all available namespaces with metadata */
23    namespaces: NamespaceInfo[];
24    /** Total number of namespaces available */
25    total_count: number;
26  }