@lightdash-tools/common 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/generated/openapi-types.d.ts +16509 -8229
- package/dist/types/lightdash-api.d.ts +1 -1
- package/dist/types/v1/ai-agents.d.ts +5 -3
- package/dist/types/v1/index.d.ts +1 -0
- package/dist/types/v1/lightdash-api.d.ts +4 -2
- package/dist/types/v2/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/types/generated/openapi-types.ts +26059 -17489
- package/src/types/lightdash-api.ts +1 -0
- package/src/types/v1/ai-agents.ts +5 -3
- package/src/types/v1/index.ts +1 -0
- package/src/types/v1/lightdash-api.ts +4 -2
- package/src/types/v2/index.ts +1 -1
|
@@ -25,4 +25,4 @@ export declare namespace LightdashApi {
|
|
|
25
25
|
export import V1 = V1Api.V1;
|
|
26
26
|
export import V2 = V2Api;
|
|
27
27
|
}
|
|
28
|
-
export type { Project, OrganizationProject, Organization, SpaceQuery, ChartAsCodeListResults, ChartAsCodeUpsertResults, UpsertChartAsCodeBody, DashboardBasicDetailsWithTileTypes, DashboardAsCodeListResults, DashboardAsCodeUpsertResults, UpsertDashboardAsCodeBody, SpaceSummary, Space, CreateSpace, UpdateSpace, AddSpaceUserAccess, AddSpaceGroupAccess, SpaceMemberRole, ProjectMemberProfile, ProjectMemberRole, CreateProjectMember, UpdateProjectMember, ProjectGroupAccess, CreateProjectGroupAccessBody, UpdateProjectGroupAccess, AuthenticatedUser, MetricQueryRequest, CompileQueryRequest, ExecuteAsyncMetricQueryRequestParams, ExecuteAsyncSqlQueryRequestParams, ExecuteAsyncSavedChartRequestParams, ExecuteAsyncDashboardChartRequestParams, ExecuteAsyncUnderlyingDataRequestParams, RunQueryResults, CompiledQueryResults, ExecuteAsyncMetricQueryResults, ExecuteAsyncDashboardChartResults, ExecuteAsyncSqlQueryResults, AiAgentSummary, AiAgentAdminSortField, AiAgentsAdminThreadsResult, GetAiOrganizationSettingsResult, UpdateAiOrganizationSettings, UpdateAiOrganizationSettingsResult, GetAdminThreadsParams, AiAgent, CreateAiAgent, UpdateAiAgent, AiAgentThreadSummary, AiAgentThread, CreateAgentThreadBody, CreateAgentThreadMessageBody, CreateAgentThreadMessageResult, GenerateAgentThreadBody, GenerateAgentThreadResult, CreateEvaluationPrompt, CreateEvaluationBody, CreateEvaluationResult, UpdateEvaluationBody, AppendEvaluationBody, AiAgentEvaluationSummary, AiAgentEvaluation, AiAgentEvaluationRunSummary, AiAgentEvaluationRunsListResponse, AiAgentEvaluationRun, AiAgentEvaluationRunResult, AiModelOption, ReadinessScore, AiAgentExploreAccessSummary, ExploreAccessSummaryBody, AiAgentUserPreferences, GetAgentSuggestionsParams, AgentSuggestion, AgentSuggestionPromptChip, AgentSuggestionNavigateChip, AgentSuggestionTool, AgentSuggestionChip, AgentSuggestions, GenerateThreadTitleResult, CloneThreadBody, AiAgentDocument, AiAgentDocumentSummary, AiAgentDocumentContent, CreateAgentDocumentBody, UpdateAgentDocumentContentBody, UpdateAgentDocumentSettingsBody, AiAgentVerifiedArtifact, AiAgentVerifiedArtifactsListResult, ListVerifiedArtifactsParams, AiAgentVerifiedQuestion, AiArtifact, AiAgentThreadMessageVizQuery, UpdateMessageFeedbackBody, AiMcpServerAuthType, AiMcpCredentialScope, AiMcpServerConnectionStatus, AiMcpServer, AiMcpServerTool, AiAgentMcpServerTool, CreateProjectMcpServerBody, AiAgentMcpServerToolUpdate, UpdateAgentMcpServerToolsBody, SqlApprovalDecision, SubmitSqlApprovalBody, SubmitSqlApprovalResult, AiRouterRouteRequest, AiRouterRouteResponseResult, ApiExploresResults, ApiExploreResults, } from './v1/lightdash-api';
|
|
28
|
+
export type { Project, OrganizationProject, Organization, SpaceQuery, ChartAsCodeListResults, ChartAsCodeUpsertResults, UpsertChartAsCodeBody, DashboardBasicDetailsWithTileTypes, DashboardAsCodeListResults, DashboardAsCodeUpsertResults, UpsertDashboardAsCodeBody, SpaceSummary, Space, CreateSpace, UpdateSpace, AddSpaceUserAccess, AddSpaceGroupAccess, SpaceMemberRole, ProjectMemberProfile, ProjectMemberRole, CreateProjectMember, UpdateProjectMember, ProjectGroupAccess, CreateProjectGroupAccessBody, UpdateProjectGroupAccess, AuthenticatedUser, MetricQueryRequest, CompileQueryRequest, ExecuteAsyncMetricQueryRequestParams, ExecuteAsyncSqlQueryRequestParams, ExecuteAsyncSavedChartRequestParams, ExecuteAsyncDashboardChartRequestParams, ExecuteAsyncUnderlyingDataRequestParams, RunQueryResults, CompiledQueryResults, ExecuteAsyncMetricQueryResults, ExecuteAsyncDashboardChartResults, ExecuteAsyncSqlQueryResults, AiAgentSummary, AiAgentAdminSortField, AiAgentsAdminThreadsResult, GetAiOrganizationSettingsResult, UpdateAiOrganizationSettings, UpdateAiOrganizationSettingsResult, GetAdminThreadsParams, AiAgent, CreateAiAgent, UpdateAiAgent, AiAgentThreadSummary, AiAgentThread, CreateAgentThreadBody, CreateAgentThreadMessageBody, CreateAgentThreadMessageResult, GenerateAgentThreadBody, GenerateAgentThreadResult, CreateEvaluationPrompt, CreateEvaluationBody, CreateEvaluationResult, UpdateEvaluationBody, AppendEvaluationBody, AiAgentEvaluationSummary, AiAgentEvaluation, AiAgentEvaluationRunSummary, AiAgentEvaluationRunsListResponse, AiAgentEvaluationRun, AiAgentEvaluationRunResult, AiModelOption, ReadinessScore, AiAgentExploreAccessSummary, ExploreAccessSummaryBody, AiAgentUserPreferences, GetAgentSuggestionsParams, AgentSuggestion, AgentSuggestionPromptChip, AgentSuggestionNavigateChip, AgentSuggestionTool, AgentSuggestionChip, AgentSuggestions, GenerateThreadTitleResult, CloneThreadBody, AiAgentDocument, AiAgentDocumentSummary, AiAgentDocumentContent, CreateAgentDocumentBody, UpdateAgentDocumentContentBody, UpdateAgentDocumentSettingsBody, AiAgentVerifiedArtifact, AiAgentVerifiedArtifactsListResult, ListVerifiedArtifactsParams, AiAgentVerifiedQuestion, AiArtifact, AiAgentThreadMessageVizQuery, UpdateMessageFeedbackBody, AiMcpServerAuthType, AiMcpCredentialScope, AiMcpServerConnectionStatus, AiProjectMcpServer, AiMcpServer, AiMcpServerTool, AiAgentMcpServerTool, CreateProjectMcpServerBody, AiAgentMcpServerToolUpdate, UpdateAgentMcpServerToolsBody, SqlApprovalDecision, SubmitSqlApprovalBody, SubmitSqlApprovalResult, AiRouterRouteRequest, AiRouterRouteResponseResult, ApiExploresResults, ApiExploreResults, } from './v1/lightdash-api';
|
|
@@ -20,7 +20,7 @@ export declare namespace AiAgents {
|
|
|
20
20
|
projectUuids?: string[];
|
|
21
21
|
agentUuids?: string[];
|
|
22
22
|
userUuids?: string[];
|
|
23
|
-
createdFrom?: '
|
|
23
|
+
createdFrom?: components['schemas']['AiThreadCreatedFrom'];
|
|
24
24
|
humanScore?: number;
|
|
25
25
|
dateFrom?: string;
|
|
26
26
|
dateTo?: string;
|
|
@@ -133,7 +133,7 @@ export declare namespace AiAgents {
|
|
|
133
133
|
/** Options for cloning a thread from a prompt (POST …/clone/{promptUuid}). */
|
|
134
134
|
interface CloneThreadBody {
|
|
135
135
|
promptUuid: string;
|
|
136
|
-
createdFrom?: '
|
|
136
|
+
createdFrom?: components['schemas']['AiClonedThreadCreatedFrom'];
|
|
137
137
|
}
|
|
138
138
|
/** Full knowledge document (POST create response). */
|
|
139
139
|
type AiAgentDocument = components['schemas']['AiAgentDocument'];
|
|
@@ -173,7 +173,9 @@ export declare namespace AiAgents {
|
|
|
173
173
|
type AiMcpCredentialScope = components['schemas']['AiMcpCredentialScope'];
|
|
174
174
|
/** MCP server connection status. */
|
|
175
175
|
type AiMcpServerConnectionStatus = components['schemas']['AiMcpServerConnectionStatus'];
|
|
176
|
-
/** Project MCP server record. */
|
|
176
|
+
/** Project MCP server record returned by GET …/aiAgents/mcpServers (includes attachedAgentCount). */
|
|
177
|
+
type AiProjectMcpServer = components['schemas']['AiProjectMcpServer'];
|
|
178
|
+
/** MCP server record returned by create and per-agent list. */
|
|
177
179
|
type AiMcpServer = components['schemas']['AiMcpServer'];
|
|
178
180
|
/** MCP tool discovered on a project server. */
|
|
179
181
|
type AiMcpServerTool = components['schemas']['AiMcpServerTool'];
|
package/dist/types/v1/index.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ export declare namespace V1 {
|
|
|
141
141
|
type AiMcpServerAuthType = A.AiMcpServerAuthType;
|
|
142
142
|
type AiMcpCredentialScope = A.AiMcpCredentialScope;
|
|
143
143
|
type AiMcpServerConnectionStatus = A.AiMcpServerConnectionStatus;
|
|
144
|
+
type AiProjectMcpServer = A.AiProjectMcpServer;
|
|
144
145
|
type AiMcpServer = A.AiMcpServer;
|
|
145
146
|
type AiMcpServerTool = A.AiMcpServerTool;
|
|
146
147
|
type AiAgentMcpServerTool = A.AiAgentMcpServerTool;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { V2 as V2Namespace } from '../v2/index';
|
|
9
9
|
import { V1 as V1Namespace } from './index';
|
|
10
|
+
import type { components } from '../generated/openapi-types';
|
|
11
|
+
import type { Content } from '../v2/content';
|
|
10
12
|
import type { AiAgents, AiAgents as AiAgentsTypes } from './ai-agents';
|
|
11
13
|
import type { Charts } from './charts';
|
|
12
14
|
import type { Dashboards } from './dashboards';
|
|
@@ -23,8 +25,6 @@ import type { Spaces } from './spaces';
|
|
|
23
25
|
import type { Tags } from './tags';
|
|
24
26
|
import type { Users } from './users';
|
|
25
27
|
import type { Validation } from './validation';
|
|
26
|
-
import type { components } from '../generated/openapi-types';
|
|
27
|
-
import type { Content } from '../v2/content';
|
|
28
28
|
export type { Projects, Organizations, Queries, Charts, Dashboards, Spaces, SpaceAccess, Users, Groups, AiAgents, ProjectAccess, Explores, Validation, Metrics, Schedulers, Tags, Content, };
|
|
29
29
|
/**
|
|
30
30
|
* Main namespace for all Lightdash API models.
|
|
@@ -193,6 +193,7 @@ export declare namespace LightdashApi {
|
|
|
193
193
|
type AiMcpServerAuthType = AiAgentsTypes.AiMcpServerAuthType;
|
|
194
194
|
type AiMcpCredentialScope = AiAgentsTypes.AiMcpCredentialScope;
|
|
195
195
|
type AiMcpServerConnectionStatus = AiAgentsTypes.AiMcpServerConnectionStatus;
|
|
196
|
+
type AiProjectMcpServer = AiAgentsTypes.AiProjectMcpServer;
|
|
196
197
|
type AiMcpServer = AiAgentsTypes.AiMcpServer;
|
|
197
198
|
type AiMcpServerTool = AiAgentsTypes.AiMcpServerTool;
|
|
198
199
|
type AiAgentMcpServerTool = AiAgentsTypes.AiAgentMcpServerTool;
|
|
@@ -343,6 +344,7 @@ export type UpdateMessageFeedbackBody = AiAgents.UpdateMessageFeedbackBody;
|
|
|
343
344
|
export type AiMcpServerAuthType = AiAgents.AiMcpServerAuthType;
|
|
344
345
|
export type AiMcpCredentialScope = AiAgents.AiMcpCredentialScope;
|
|
345
346
|
export type AiMcpServerConnectionStatus = AiAgents.AiMcpServerConnectionStatus;
|
|
347
|
+
export type AiProjectMcpServer = AiAgents.AiProjectMcpServer;
|
|
346
348
|
export type AiMcpServer = AiAgents.AiMcpServer;
|
|
347
349
|
export type AiMcpServerTool = AiAgents.AiMcpServerTool;
|
|
348
350
|
export type AiAgentMcpServerTool = AiAgents.AiAgentMcpServerTool;
|
package/dist/types/v2/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* V2 API type barrel. Re-exports the same surface as LightdashApi.V2.
|
|
3
3
|
* Domain files remain at types/*.ts; see ADR-0003 (file layout follow-up).
|
|
4
4
|
*/
|
|
5
|
-
import type { Content as Con } from './content';
|
|
6
5
|
import type { AiAgents as A } from '../v1/ai-agents';
|
|
7
6
|
import type { Charts as C } from '../v1/charts';
|
|
8
7
|
import type { Dashboards as D } from '../v1/dashboards';
|
|
@@ -14,6 +13,7 @@ import type { Queries as Q } from '../v1/queries';
|
|
|
14
13
|
import type { SpaceAccess as SA } from '../v1/space-access';
|
|
15
14
|
import type { Spaces as S } from '../v1/spaces';
|
|
16
15
|
import type { Users as U } from '../v1/users';
|
|
16
|
+
import type { Content as Con } from './content';
|
|
17
17
|
export declare namespace V2 {
|
|
18
18
|
namespace Content {
|
|
19
19
|
type ApiContentResponse = Con.ApiContentResponse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash-tools/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Shared utilities and types for Lightdash AI.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"types": "dist/index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"yaml": "^2.9.0",
|
|
17
|
-
"zod": "
|
|
17
|
+
"zod": "4.6.7"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^25.9.3",
|