/** * 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 { DataSpaceDocResponse } from '@finos/legend-application-studio'; import type { DataSpace } from '@finos/legend-extension-dsl-data-space/graph'; /** * One title or description LegendAI proposes for a data space, for the user to * accept or reject. `read` and `write` locate the target by name/path/index * on whichever data space instance they are given, so they keep working on * the element found in a rebuilt graph. */ export type DataSpaceAISuggestionRow = { key: string; groupKey: string; groupLabel: string; fieldLabel: string; currentValue: string | undefined; suggestedValue: string; read: (dataSpace: DataSpace) => string | undefined; write: (dataSpace: DataSpace, value: string) => void; }; export declare const buildDataSpaceAISuggestionRows: (dataSpace: DataSpace, suggestion: DataSpaceDocResponse) => DataSpaceAISuggestionRow[]; /** * Rows whose current value is empty are pre-selected; when the user asked to * regenerate everything, all rows are. */ export declare const isDataSpaceAISuggestionRowSelectedByDefault: (row: DataSpaceAISuggestionRow, overwrite: boolean) => boolean; /** * Flattens the fields a suggestion wrote so the applied value can be compared * with what is eventually pushed. */ export declare const serializeDataSpaceAISuggestionFields: (dataSpace: DataSpace, rows: DataSpaceAISuggestionRow[]) => string; //# sourceMappingURL=DataSpaceAISuggestion.d.ts.map