Home / File/ SupermodelArtifact.ts — typescript-sdk Source File

SupermodelArtifact.ts — typescript-sdk Source File

Architecture documentation for SupermodelArtifact.ts, a typescript file in the typescript-sdk codebase. 2 imports, 1 dependents.

File typescript CodeGraph IR 2 imports 1 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  9304565f_42d3_68a0_a8b9_0e2f54de3150["SupermodelArtifact.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  9304565f_42d3_68a0_a8b9_0e2f54de3150 --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  9304565f_42d3_68a0_a8b9_0e2f54de3150 --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3["SupermodelIR.ts"]
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3 --> 9304565f_42d3_68a0_a8b9_0e2f54de3150
  style 9304565f_42d3_68a0_a8b9_0e2f54de3150 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/* tslint:disable */
/* eslint-disable */
/**
 * Supermodel
 * Code Graphing & Analysis API
 *
 * The version of the OpenAPI document: 0.9.3
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface SupermodelArtifact
 */
export interface SupermodelArtifact {
    /**
     * Unique identifier for the artifact.
     * @type {string}
     * @memberof SupermodelArtifact
     */
    id: string;
    /**
     * Artifact kind such as graph, summary, or embedding.
     * @type {string}
     * @memberof SupermodelArtifact
     */
    kind: string;
    /**
     * Human-readable name for the artifact.
     * @type {string}
     * @memberof SupermodelArtifact
     */
    label: string;
    /**
     * Additional metadata for consuming the artifact.
     * @type {{ [key: string]: any; }}
     * @memberof SupermodelArtifact
     */
    metadata?: { [key: string]: any; };
}

/**
 * Check if a given object implements the SupermodelArtifact interface.
 */
export function instanceOfSupermodelArtifact(value: object): value is SupermodelArtifact {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('kind' in value) || value['kind'] === undefined) return false;
    if (!('label' in value) || value['label'] === undefined) return false;
    return true;
}

export function SupermodelArtifactFromJSON(json: any): SupermodelArtifact {
    return SupermodelArtifactFromJSONTyped(json, false);
}

export function SupermodelArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelArtifact {
    if (json == null) {
        return json;
    }
    return {
        
        'id': json['id'],
        'kind': json['kind'],
        'label': json['label'],
        'metadata': json['metadata'] == null ? undefined : json['metadata'],
    };
}

export function SupermodelArtifactToJSON(value?: SupermodelArtifact | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'id': value['id'],
        'kind': value['kind'],
        'label': value['label'],
        'metadata': value['metadata'],
    };
}

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does SupermodelArtifact.ts do?
SupermodelArtifact.ts is a source file in the typescript-sdk codebase, written in typescript. It belongs to the CodeGraph domain, IR subdomain.
What functions are defined in SupermodelArtifact.ts?
SupermodelArtifact.ts defines 4 function(s): SupermodelArtifactFromJSON, SupermodelArtifactFromJSONTyped, SupermodelArtifactToJSON, instanceOfSupermodelArtifact.
What does SupermodelArtifact.ts depend on?
SupermodelArtifact.ts imports 2 module(s): mapValues, runtime.ts.
What files import SupermodelArtifact.ts?
SupermodelArtifact.ts is imported by 1 file(s): SupermodelIR.ts.
Where is SupermodelArtifact.ts in the architecture?
SupermodelArtifact.ts is located at src/models/SupermodelArtifact.ts (domain: CodeGraph, subdomain: IR, directory: src/models).

Analyze Your Own Codebase

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

Try Supermodel Free