Code0 LogoCodeZero

ConfigManager

Stores per-project configurations received from Aquila

ConfigManager stores per-project configurations that Aquila sends after the gRPC connection is established. It extends BaseManager with key type bigint (projectId) and value type ProjectConfiguration.

The manager is updated automatically whenever Aquila sends new project configurations — you never write to it directly.

const config = action.configs.get(projectId);
config?.findConfig('API_KEY');

Interfaces

ProjectConfiguration

The configuration object stored for each project.

interface ProjectConfiguration {
  projectId: number | bigint;
  configValues: { identifier: string; value: PlainValue }[];
  findConfig: (identifier: string) => PlainValue | undefined;
}

Prop

Type

ConfigurationDefinition

Defines a per-project configuration field declared in the Action constructor. These are shown in the platform UI for each project using the action.

interface ConfigurationDefinition {
  identifier: string;
  type: string;
  name?: Translation[];
  description?: Translation[];
  hidden?: boolean;
  optional?: boolean;
  linkedDataTypes?: string[];
  defaultValue?: PlainValue;
}

Prop

Type

On this page