@finos/legend-extension-dsl-data-space
Version:
Legend extension for Data Space DSL
43 lines • 2.46 kB
TypeScript
/**
* Copyright (c) 2026-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type MappingModelCoverageAnalysisResult } from '@finos/legend-graph';
import { type TDSServiceSchema, type LegendAIConfig, type LegendAIModelContext, type LegendAIExecutableInfo } from '@finos/legend-lego/legend-ai';
import { type DiagramAnalysisResult } from '@finos/legend-extension-dsl-diagram';
import type { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
import { type DataSpaceExecutableAnalysisResult } from '../graph-manager/action/analytics/DataSpaceAnalysis.js';
/**
* Extracts a {@link LegendAIModelContext} from diagram metamodel objects.
* Diagrams always contain the actual Class metamodel references so this
* works even when elementDocs documentation is empty or incomplete.
*/
export declare function extractModelContextFromDiagrams(diagrams: DiagramAnalysisResult[]): LegendAIModelContext;
/**
* Enriches a {@link LegendAIModelContext} with mapping coverage data.
* Marks entities that are root-mapped (directly queryable by the orchestrator)
* so entity resolution can prefer them.
*/
export declare function enrichModelContextWithMappingCoverage(modelContext: LegendAIModelContext, mappingCoverage: MappingModelCoverageAnalysisResult | undefined): void;
export declare function extractExecutableInfo(executables: DataSpaceExecutableAnalysisResult[], modelContext: LegendAIModelContext, services: TDSServiceSchema[]): LegendAIExecutableInfo[];
export declare function extractTDSServicesFromDataSpace(viewerState: DataSpaceViewerState): Promise<TDSServiceSchema[]>;
export declare const DataSpaceLegendAIIntegration: ((props: {
dataSpaceViewerState: DataSpaceViewerState;
config: LegendAIConfig;
onClose?: () => void;
onMinimize?: () => void;
}) => import("react/jsx-runtime").JSX.Element) & {
displayName: string;
};
//# sourceMappingURL=DataSpaceLegendAIIntegration.d.ts.map