import { DirectusDeployment, DirectusDeploymentProject, DirectusDeploymentRun } from "../../../schema/deployment.cjs"; import { ApplyQueryFields } from "../../../types/output.cjs"; import { Query } from "../../../types/query.cjs"; import { RestCommand } from "../../types.cjs"; //#region src/rest/commands/read/deployment.d.ts type ReadDeploymentOutput, Item extends object = DirectusDeployment> = ApplyQueryFields; type ReadDeploymentProjectOutput, Item extends object = DirectusDeploymentProject> = ApplyQueryFields; type ReadDeploymentRunOutput, Item extends object = DirectusDeploymentRun> = ApplyQueryFields; interface DeploymentProjectListOutput { id: string | null; external_id: string; name: string; deployable: boolean; framework?: string; } interface DeploymentDashboardOutput { projects: Array<{ id: string; external_id: string; name: string; url?: string; framework?: string; deployable: boolean; latest_deployment?: { status: 'building' | 'ready' | 'error' | 'canceled'; created_at: string; finished_at?: string; }; }>; } interface DeploymentRunsOutput { id: string; project: string; external_id: string; target: string; status: 'building' | 'ready' | 'error' | 'canceled'; url?: string; date_created: string; finished_at?: string; author?: string; } /** * List all configured deployment providers. * @param query The query parameters * @returns An array of deployment objects. */ declare const readDeployments: >>(query?: TQuery) => RestCommand[], Schema>; /** * Get a deployment provider by type. * @param provider The provider type (e.g. 'vercel') * @param query The query parameters * @returns The deployment object. * @throws Will throw if provider is empty */ declare const readDeployment: >>(provider: string, query?: TQuery) => RestCommand, Schema>; /** * Get deployment dashboard for a provider. * Returns selected projects with latest deployment status and stats. * @param provider The provider type (e.g. 'vercel') * @returns Dashboard data with projects and stats. * @throws Will throw if provider is empty */ declare const readDeploymentDashboard: (provider: string) => RestCommand; /** * List projects for a deployment provider. * Returns merged DB + provider info (id is null if project not selected). * @param provider The provider type (e.g. 'vercel') * @returns An array of project objects with selection status. * @throws Will throw if provider is empty */ declare const readDeploymentProjects: (provider: string) => RestCommand; /** * Get a specific project from a deployment provider. * @param provider The provider type (e.g. 'vercel') * @param projectId The project ID * @param query The query parameters * @returns The project object. * @throws Will throw if provider or projectId is empty */ declare const readDeploymentProject: >>(provider: string, projectId: string, query?: TQuery) => RestCommand, Schema>; /** * List deployment runs for a project. * @param provider The provider type (e.g. 'vercel') * @param projectId The project ID * @param query Optional query parameters (search, limit, offset, meta) * @returns Deployment runs with optional meta for pagination. * @throws Will throw if provider or projectId is empty */ declare const readDeploymentRuns: (provider: string, projectId: string, query?: { search?: string; limit?: number; offset?: number; meta?: string; }) => RestCommand; /** * Get a specific deployment run with logs. * @param provider The provider type (e.g. 'vercel') * @param runId The run ID * @param query The query parameters (supports 'since' for incremental logs) * @returns The deployment run object with details and logs. * @throws Will throw if provider or runId is empty */ declare const readDeploymentRun: >>(provider: string, runId: string, query?: TQuery) => RestCommand, Schema>; //#endregion export { DeploymentDashboardOutput, DeploymentProjectListOutput, DeploymentRunsOutput, ReadDeploymentOutput, ReadDeploymentProjectOutput, ReadDeploymentRunOutput, readDeployment, readDeploymentDashboard, readDeploymentProject, readDeploymentProjects, readDeploymentRun, readDeploymentRuns, readDeployments }; //# sourceMappingURL=deployment.d.cts.map