/** * Turns a schedule name into a schedule id. * * Every schedule endpoint takes an id in the path and nothing else — the * `scheduleIdentifierType` parameter these tools used to send is not part of * the JSM Operations API at all (the only `identifierType` in the spec is on * /v1/roles), so a name went out as a path segment and came back 404. The * timeline endpoint is id-only too, so this resolution has to happen here. */ import type { JsmClient } from "../../services/client.js"; export interface ResolvedSchedule { id: string; /** The schedule's real name, when we looked it up. Used for headings. */ name?: string; } /** Thrown for a name that matches no schedule, or more than one. */ export declare class ScheduleLookupError extends Error { } /** Exposed for tests, so one case's cached schedule cannot answer the next. */ export declare function clearScheduleCache(): void; export declare function resolveScheduleId(client: JsmClient, identifier: string, identifierType: "id" | "name"): Promise; //# sourceMappingURL=resolve-schedule.d.ts.map