import { RobotsDirectiveSummary, RobotsJobRow, RobotsRowResponse, RobotsSyncResponse } from '../../../types/robots'; import { MuxAsset } from '../content-types/mux-asset/types'; /** Marks the jobs this plugin creates. Directive runs can't carry it: their create body is only `asset_id`. */ export declare const ROBOTS_PASSTHROUGH = "mux:cms:strapi:"; /** Newest first. Queried by Mux asset id, so jobs stored before the asset reached this Strapi still show. */ declare function listRows(assetId: string): Promise; declare const robotsService: () => { listRows: typeof listRows; /** * The one Mux read when the Robots tab opens: capability, and jobs missing here. Also writes stored * results the video doesn't show yet, whether or not Mux answers. * * Robots v1 lists the jobs of both versions, each linked to its own version's route: that link is * how rows stored before 4.0 learn their version. */ syncAsset(muxAsset: MuxAsset): Promise; /** `values` are the run form's values, checked against the catalog. */ createJob({ userId, muxAsset, workflow, values, }: { userId: number | null; muxAsset: MuxAsset; workflow: unknown; values: unknown; }): Promise; runDirective({ userId, muxAsset, directiveId, }: { userId: number | null; muxAsset: MuxAsset; directiveId: unknown; }): Promise; cancelJob(row: RobotsJobRow): Promise; /** * Reads a finished job's outputs and units from Mux, once, for a row that only has the list * summary. Webhooks normally store them; this covers jobs that finished before the asset was here. */ loadJobDetail(row: RobotsJobRow): Promise; /** * Robots v1 lists the directives of both versions, each linked to its own version's route. * `complete` is false when there may be more directives than one listing returns. `timeoutMs` * replaces the client's 60 s for callers that can't wait that long. */ listDirectives({ timeoutMs }?: { timeoutMs?: number; }): Promise<{ directives: RobotsDirectiveSummary[]; complete: boolean; }>; /** Drops a placeholder Mux never confirmed, once the person says nothing is running. */ dismissPending(row: RobotsJobRow): Promise; }; export default robotsService; export type RobotsService = ReturnType;