/** * Projects — create / list / delete. * * Wire shape sourced from `@sylphx/contract` (ADR-084). Paths + methods * come from `projectsEndpoints`; hand-written types are forbidden here. */ import type { CreateProjectInput, Project, SylphxManifest, UpdateProjectInput } from '@sylphx/contract'; import type { Client } from './client.js'; /** * ADR-136 — Customer-facing latency dashboards namespace. * * Usage: * `import { projects } from '@sylphx/management'` * `await projects.insights.mergeToLive(client, 'prj_…')` * * Kept as a re-export rather than a flat top-level namespace so the * "what insights are available for a project" question maps one-to-one * with the API surface `GET /projects/:id/insights/*`. */ export * as insights from './projects-insights.js'; export interface OrgScopedRequestOptions { readonly orgId?: string; } export declare const list: (client: Client, options?: OrgScopedRequestOptions) => Promise; export declare const get: (client: Client, id: string, options?: OrgScopedRequestOptions) => Promise; export type CreateInput = CreateProjectInput; export interface ProjectManifestState { readonly manifest: SylphxManifest | null; readonly version: number | null; readonly updatedAt: string | null; } export interface ProjectManifestPutResult { readonly version: number; readonly updatedAt: string; } export declare const create: (client: Client, input: CreateInput) => Promise; export type UpdateInput = UpdateProjectInput; export declare const update: (client: Client, id: string, input: UpdateInput, options?: OrgScopedRequestOptions) => Promise; declare const _delete: (client: Client, id: string) => Promise; export { _delete as delete }; export declare const getManifest: (client: Client, id: string) => Promise; export declare const putManifest: (client: Client, id: string, manifest: SylphxManifest) => Promise; //# sourceMappingURL=projects.d.ts.map