Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

541 B
Raw Blame
export type CanvasVersionScope = 'state' | 'document' | 'snapshot';

export interface CanvasLoadDiagnostic {
  readonly path: string;
  readonly message: string;
}

export type CanvasLoadRefusal = (
  | { status: 'unsupported-version'; scope: CanvasVersionScope; version: number }
  | { status: 'invalid'; scope: CanvasVersionScope; diagnostics: readonly CanvasLoadDiagnostic[] }
) & { raw: unknown };

export type CanvasLoadResult<T> =
  | { status: 'loaded'; value: T; diagnostics: readonly CanvasLoadDiagnostic[] }
  | CanvasLoadRefusal;