Home / Type/ SupermodelIR Type — typescript-sdk Architecture

SupermodelIR Type — typescript-sdk Architecture

Architecture documentation for the SupermodelIR type/interface in SupermodelIR.ts from the typescript-sdk codebase.

Entity Profile

Source Code

src/models/SupermodelIR.ts lines 52–113

export interface SupermodelIR {
    /**
     * Repository slug the IR was generated from.
     * @type {string}
     * @memberof SupermodelIR
     */
    repo: string;
    /**
     * Version identifier for the IR content.
     * @type {string}
     * @memberof SupermodelIR
     */
    version: string;
    /**
     * Version of the IR schema.
     * @type {string}
     * @memberof SupermodelIR
     */
    schemaVersion: string;
    /**
     * Timestamp when the IR was generated.
     * @type {Date}
     * @memberof SupermodelIR
     */
    generatedAt: Date;
    /**
     * High-level metadata and summary insights including filesProcessed, classes, functions, types, primaryLanguage, and domains count.
     * @type {{ [key: string]: any; }}
     * @memberof SupermodelIR
     */
    summary?: { [key: string]: any; };
    /**
     * 
     * @type {SupermodelIRStats}
     * @memberof SupermodelIR
     */
    stats: SupermodelIRStats;
    /**
     * 
     * @type {CodeGraphEnvelopeMetadata}
     * @memberof SupermodelIR
     */
    metadata: CodeGraphEnvelopeMetadata;
    /**
     * Array of discovered domain entities
     * @type {Array<DomainSummary>}
     * @memberof SupermodelIR
     */
    domains: Array<DomainSummary>;
    /**
     * 
     * @type {SupermodelIRGraph}
     * @memberof SupermodelIR
     */
    graph: SupermodelIRGraph;
    /**
     * Per-source statistics and metadata for parse graph, call graph, and domain classification.
     * @type {Array<SupermodelArtifact>}
     * @memberof SupermodelIR
     */
    artifacts?: Array<SupermodelArtifact>;
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free