UNPKG

@casual-simulation/aux-vm-browser

Version:

A set of utilities required to securely run an AUX in a web browser.

53 lines 1.93 kB
import type { BotPanelManager } from './BotPanelManager'; import type { ProgressManager, RecordsManager } from '@casual-simulation/aux-vm'; import type { RemoteSimulation } from '@casual-simulation/aux-vm-client'; import type { ConsoleMessages } from '@casual-simulation/aux-common'; import type { Bot } from '@casual-simulation/aux-common'; import type { Observable } from 'rxjs'; import type { IdePortalManager } from './IdePortalManager'; import type { AuthHelper } from './AuthHelper'; import type { LivekitManager } from './LivekitManager'; /** * Defines an interface for objects that represent bot simulations. */ export interface BrowserSimulation extends RemoteSimulation { /** * Gets the bots panel manager. */ botPanel: BotPanelManager; /** * Gets the IDE portal manager. */ idePortal: IdePortalManager; /** * Gets the progress manager. */ progress: ProgressManager; /** * Gets the authentication helper. */ auth: AuthHelper; /** * The observable list of console messages from the simulation. */ consoleMessages: Observable<ConsoleMessages>; /** * Gets the records manager. */ records: RecordsManager; /** * Gets the Livekit manager. */ livekit: LivekitManager; /** * Edits the given bot and tag as if the user edited it manually. * This means adding the correct recent bot record in addition to actually updating the bot. * Diff bots are also supported. * @param bot The bot to update. * @param tag The tag to update. * @param value The value that the tag should be set to. * @param space The space that the tag should be set in. If specified, then the tag mask in the given space will be set to the given value. */ editBot(bot: Bot, tag: string, value: any, space?: string): Promise<void>; } //# sourceMappingURL=BrowserSimulation.d.ts.map