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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import type { AccountScope } from '@platform/state/accountLifecycle';
import { captureAccountScope } from '@platform/state/accountLifecycle';
import {
createDurableSyncedWorkbenchPersistence,
type DurableHydratedWorkbenchSnapshot,
type DurableSyncedWorkbenchPersistence,
type DurableWorkbenchSaveResult,
type ProjectBoardAssignment,
type ProjectConflictInfo,
type RecoverableProjectDraft,
type UnloadJournalOutcome,
} from './durableSyncedPersistence';
export { serializeProjectDocument } from './projectDocument';
export { deserializeProjectDocument, deserializeProjectRecord } from './projectHydration';
export { ProjectDocumentTooLargeError, WorkbenchBackendUnavailableError } from './durableSyncedPersistence';
export type {
DurableHydratedWorkbenchSnapshot,
ProjectBoardAssignment,
ProjectConflictInfo,
RecoverableProjectDraft,
UnloadJournalOutcome,
};
export type WorkbenchSaveResult = DurableWorkbenchSaveResult;
export type SyncedWorkbenchPersistence = DurableSyncedWorkbenchPersistence;
export interface WorkbenchLoadOptions {
createNew?: boolean;
openProjectId?: string;
}
export const createSyncedWorkbenchPersistence = (
owner: AccountScope = captureAccountScope()
): SyncedWorkbenchPersistence => createDurableSyncedWorkbenchPersistence(owner);
export const clearAllWorkbenchData = async (owner: AccountScope = captureAccountScope()): Promise<void> => {
await createDurableSyncedWorkbenchPersistence(owner).clearWorkbench();
};