@prismshadow/penguin-server · packages/server/src/plugin/config-page.ts:141

PluginConfigAdmin

interface

What the settings page reads and writes.

API

@Interface()
export abstract class PluginConfigAdmin {
  abstract describe(): PluginConfigEntry[];
  abstract set(name: string, update: Record<string, unknown>): Promise<PluginConfigEntry>;
  abstract run(name: string, action: string): Promise<PluginConfigActionResult>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Moduleexported by
@Provideprovided by
@Useconsumed by (1)

Members (3)

describe

describe(): PluginConfigEntry[]

Every declared group, in order, with its live notices; values masked.

@returnsPluginConfigEntry[]

set

set(name: string, update: Record<string, unknown>): Promise<PluginConfigEntry>

Validates and stores one update; answers that entry, masked, with its notices once its card's status has settled.

@paramnamestring
@paramupdateRecord<string, unknown>
@returnsPromise<PluginConfigEntry>

run

run(name: string, action: string): Promise<PluginConfigActionResult>

Runs one group's action and says what happened; throws PluginConfigError for an unknown one.

@paramnamestring
@paramactionstring
@returnsPromise<PluginConfigActionResult>