IHeadlessModuleRegistryItemMetaV1
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Common properties of a headless module registry item, v1.
export interface IHeadlessModuleRegistryItemMetaV1
Remarks
A headless module is a remote module without UI. The shell application mounts it once per page, in both the full application and the embedded (iframe) mode, and never in export mode. A typical use is a telemetry module that forwards the shell’s telemetry events to a third-party analytics tool.
The shell evaluates the requirements once, when it mounts the module. A headless module has no application scope, so requiredSettings is evaluated against the organization-level user settings, not against the settings of the active workspace.
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
“1.0” | (ALPHA) | ||
Record<string, unknown> | (ALPHA) (Optional) Configuration that the shell passes to the module when it mounts it. | ||
string | (ALPHA) | ||
boolean | (ALPHA) (Optional) Default is | ||
string | (ALPHA) (Optional) | ||
(ALPHA) (Optional) | |||
(ALPHA) (Optional) | |||
(ALPHA) (Optional) | |||
string | (ALPHA) (Optional) The shell uses the title only in logs and error reports. |
Property details
IHeadlessModuleRegistryItemMetaV1.apiVersionpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
apiVersion: "1.0";
IHeadlessModuleRegistryItemMetaV1.configpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Configuration that the shell passes to the module when it mounts it.
config?: Record<string, unknown>;
Remarks
The registry is an organization setting that every authenticated user of the organization can read. Put only public values here, for example the public project key of an analytics tool. Never put a server-side secret here. The shell does not read the values.
IHeadlessModuleRegistryItemMetaV1.idpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
id: string;
IHeadlessModuleRegistryItemMetaV1.isEnabledpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Default is true.
isEnabled?: boolean;
IHeadlessModuleRegistryItemMetaV1.maintainerpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
maintainer?: string;
IHeadlessModuleRegistryItemMetaV1.requiredEntitlementspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
requiredEntitlements?: RequiredEntitlements;
IHeadlessModuleRegistryItemMetaV1.requiredOrganizationPermissionspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
requiredOrganizationPermissions?: RequiredOrganizationPermissions;
IHeadlessModuleRegistryItemMetaV1.requiredSettingspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
requiredSettings?: RequiredSettings;
IHeadlessModuleRegistryItemMetaV1.titlepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
The shell uses the title only in logs and error reports.
title?: string;