Skip to content

Latest commit

 

History

History
317 lines (298 loc) · 50.4 KB

kibana-plugin-core-server.md

File metadata and controls

317 lines (298 loc) · 50.4 KB

Home > kibana-plugin-core-server

kibana-plugin-core-server package

The Kibana Core APIs for server-side plugins.

A plugin requires a kibana.json file at it's root directory that follows the manfiest schema to define static plugin information required to load the plugin.

A plugin's server/index file must contain a named import, plugin, that implements PluginInitializer which returns an object that implements Plugin.

The plugin integrates with the core system via lifecycle events: setup, start, and stop. In each lifecycle method, the plugin will receive the corresponding core services available (either CoreSetup or CoreStart) and any interfaces returned by dependency plugins' lifecycle method. Anything returned by the plugin's lifecycle method will be exposed to downstream dependencies when their corresponding lifecycle methods are invoked.

Classes

Class Description
BasePath Access or manipulate the Kibana base path
CspConfig CSP configuration for use in Kibana.
ElasticsearchConfig Wrapper of config schema.
KibanaRequest Kibana specific abstraction for an incoming request.
LegacyClusterClient Represents an Elasticsearch cluster API client created by the platform. It allows to call API on behalf of the internal Kibana user and the actual user that is derived from the request headers (via asScoped(...)).
LegacyElasticsearchErrorHelpers Helpers for working with errors returned from the Elasticsearch service.Since the internal data of errors are subject to change, consumers of the Elasticsearch service should always use these helpers to classify errors instead of checking error internals such as body.error.header[WWW-Authenticate]
LegacyScopedClusterClient Serves the same purpose as the normal cluster client but exposes an additional asCurrentUser method that doesn't use credentials of the Kibana internal user (as asInternalUser does) to request Elasticsearch API, but rather passes HTTP headers extracted from the current user request to the API instead.
RouteValidationError Error to return when the validation is not successful.
SavedObjectsClient
SavedObjectsErrorHelpers
SavedObjectsRepository
SavedObjectsSerializer A serializer that can be used to manually convert raw or sanitized documents to the other kind.
SavedObjectsUtils
SavedObjectTypeRegistry Registry holding information about all the registered saved object types.

Enumerations

Enumeration Description
AuthResultType
AuthStatus Status indicating an outcome of the authentication.

Functions

Function Description
assertNever(x) Can be used in switch statements to ensure we perform exhaustive checks, see https://www.typescriptlang.org/docs/handbook/advanced-types.html\#exhaustiveness-checking
deepFreeze(object) Apply Object.freeze to a value recursively and convert the return type to Readonly variant recursively
exportSavedObjectsToStream({ types, objects, search, savedObjectsClient, exportSizeLimit, includeReferencesDeep, excludeExportDetails, namespace, }) Generates sorted saved object stream to be used for export. See the options for more detailed information.
getFlattenedObject(rootValue) Flattens a deeply nested object to a map of dot-separated paths pointing to all primitive values **and arrays** from rootValue.example: getFlattenedObject({ a: { b: 1, c: [2,3] } }) // => { 'a.b': 1, 'a.c': [2,3] }
importSavedObjectsFromStream({ readStream, objectLimit, overwrite, createNewCopies, savedObjectsClient, typeRegistry, namespace, }) Import saved objects from given stream. See the options for more detailed information.
isRelativeUrl(candidatePath) Determine if a url is relative. Any url including a protocol, hostname, or port is not considered relative. This means that absolute *paths* are considered to be relative *urls*
modifyUrl(url, urlModifier) Takes a URL and a function that takes the meaningful parts of the URL as a key-value object, modifies some or all of the parts, and returns the modified parts formatted again as a url.Url Parts sent: - protocol - slashes (does the url have the //) - auth - hostname (just the name of the host, no port or auth information) - port - pathname (the path after the hostname, no query or hash, starts with a slash if there was a path) - query (always an object, even when no query on original url) - hashWhy? - The default url library in node produces several conflicting properties on the "parsed" output. Modifying any of these might lead to the modifications being ignored (depending on which property was modified) - It's not always clear whether to use path/pathname, host/hostname, so this tries to add helpful constraints
resolveSavedObjectsImportErrors({ readStream, objectLimit, retries, savedObjectsClient, typeRegistry, namespace, createNewCopies, }) Resolve and return saved object import errors. See the options for more detailed informations.

Interfaces

Interface Description
AssistanceAPIResponse
AssistantAPIClientParams
AuditableEvent Event to audit.
Auditor Provides methods to log user actions and access events.
AuditorFactory Creates Auditor instance bound to the current user credentials.
AuditTrailSetup
Authenticated
AuthNotHandled
AuthRedirected
AuthRedirectedParams Result of auth redirection.
AuthResultParams Result of successful authentication.
AuthToolkit A tool set defining an outcome of Auth interceptor for incoming request.
Capabilities The read-only set of capabilities available for the current UI session. Capabilities are simple key-value pairs of (string, boolean), where the string denotes the capability ID, and the boolean is a flag indicating if the capability is enabled or disabled.
CapabilitiesSetup APIs to manage the Capabilities that will be used by the application.Plugins relying on capabilities to toggle some of their features should register them during the setup phase using the registerProvider method.Plugins having the responsibility to restrict capabilities depending on a given context should register their capabilities switcher using the registerSwitcher method.Refers to the methods documentation for complete description and examples.
CapabilitiesStart APIs to access the application Capabilities.
ConfigDeprecationFactory Provides helpers to generates the most commonly used ConfigDeprecation when invoking a ConfigDeprecationProvider.See methods documentation for more detailed examples.
ContextSetup An object that handles registration of context providers and configuring handlers with context.
CoreSetup Context passed to the plugins setup method.
CoreStart Context passed to the plugins start method.
CoreStatus Status of core services.
CountResponse
CustomHttpResponseOptions HTTP response parameters for a response with adjustable status code.
DeleteDocumentResponse
DeprecationAPIClientParams
DeprecationAPIResponse
DeprecationInfo
DeprecationSettings UiSettings deprecation field options.
DiscoveredPlugin Small container object used to expose information about discovered plugins that may or may not have been started.
ElasticsearchServiceSetup
ElasticsearchServiceStart
ElasticsearchStatusMeta
EnvironmentMode
ErrorHttpResponseOptions HTTP response parameters
Explanation
FakeRequest Fake request object created manually by Kibana plugins.
GetResponse
HttpAuth
HttpResources HttpResources service is responsible for serving static & dynamic assets for Kibana application via HTTP. Provides API allowing plug-ins to respond with: - a pre-configured HTML page bootstrapping Kibana client app - custom HTML page - custom JS script file.
HttpResourcesRenderOptions Allows to configure HTTP response parameters
HttpResourcesServiceToolkit Extended set of KibanaResponseFactory helpers used to respond with HTML or JS resource.
HttpResponseOptions HTTP response parameters
HttpServerInfo
HttpServiceSetup Kibana HTTP Service provides own abstraction for work with HTTP stack. Plugins don't have direct access to hapi server and its primitives anymore. Moreover, plugins shouldn't rely on the fact that HTTP Service uses one or another library under the hood. This gives the platform flexibility to upgrade or changing our internal HTTP stack without breaking plugins. If the HTTP Service lacks functionality you need, we are happy to discuss and support your needs.
HttpServiceStart
IClusterClient Represents an Elasticsearch cluster API client created by the platform. It allows to call API on behalf of the internal Kibana user and the actual user that is derived from the request headers (via asScoped(...)).
IContextContainer An object that handles registration of context providers and configuring handlers with context.
ICspConfig CSP configuration for use in Kibana.
ICustomClusterClient See IClusterClient
IKibanaResponse A response data object, expected to returned as a result of RequestHandler execution
IKibanaSocket A tiny abstraction for TCP socket.
ImageValidation
IndexSettingsDeprecationInfo
IRenderOptions
IRouter Registers route handlers for specified resource path and method. See RouteConfig and RequestHandler for more information about arguments to route registrations.
IScopedClusterClient Serves the same purpose as the normal cluster client but exposes an additional asCurrentUser method that doesn't use credentials of the Kibana internal user (as asInternalUser does) to request Elasticsearch API, but rather passes HTTP headers extracted from the current user request to the API instead.
IUiSettingsClient Server-side client that provides access to the advanced settings stored in elasticsearch. The settings provide control over the behavior of the Kibana application. For example, a user can specify how to display numeric or date fields. Users can adjust the settings via Management UI.
KibanaRequestEvents Request events.
KibanaRequestRoute Request specific route information exposed to a handler.
LegacyAPICaller
LegacyCallAPIOptions The set of options that defines how API call should be made and result be processed.
LegacyElasticsearchError @deprecated. The new elasticsearch client doesn't wrap errors anymore.
LegacyRequest
LegacyServiceSetupDeps
LegacyServiceStartDeps
Logger Logger exposes all the necessary methods to log any type of information and this is the interface used by the logging consumers including plugins.
LoggerContextConfigInput
LoggerFactory The single purpose of LoggerFactory interface is to define a way to retrieve a context-based logger instance.
LoggingServiceSetup Provides APIs to plugins for customizing the plugin's logger.
LogMeta Contextual metadata
MetricsServiceSetup APIs to retrieves metrics gathered and exposed by the core platform.
NodesVersionCompatibility
OnPostAuthToolkit A tool set defining an outcome of OnPostAuth interceptor for incoming request.
OnPreAuthToolkit A tool set defining an outcome of OnPreAuth interceptor for incoming request.
OnPreResponseExtensions Additional data to extend a response.
OnPreResponseInfo Response status code.
OnPreResponseToolkit A tool set defining an outcome of OnPreResponse interceptor for incoming request.
OnPreRoutingToolkit A tool set defining an outcome of OnPreRouting interceptor for incoming request.
OpsMetrics Regroups metrics gathered by all the collectors. This contains metrics about the os/runtime, the kibana process and the http server.
OpsOsMetrics OS related metrics
OpsProcessMetrics Process related metrics
OpsServerMetrics server related metrics
PackageInfo
Plugin The interface that should be returned by a PluginInitializer.
PluginConfigDescriptor Describes a plugin configuration properties.
PluginInitializerContext Context that's available to plugins during initialization stage.
PluginManifest Describes the set of required and optional properties plugin can define in its mandatory JSON manifest file.
RequestHandlerContext Plugin specific context passed to a route handler.Provides the following clients and services: - savedObjects.client - Saved Objects client which uses the credentials of the incoming request - savedObjects.typeRegistry - Type registry containing all the registered types. - elasticsearch.client - Elasticsearch data client which uses the credentials of the incoming request - elasticsearch.legacy.client - The legacy Elasticsearch data client which uses the credentials of the incoming request - uiSettings.client - uiSettings client which uses the credentials of the incoming request - uiSettings.auditor - AuditTrail client scoped to the incoming request
RouteConfig Route specific configuration.
RouteConfigOptions Additional route options.
RouteConfigOptionsBody Additional body options for a route
RouteValidationResultFactory Validation result factory to be used in the custom validation function to return the valid data or validation errorsSee RouteValidationFunction.
RouteValidatorConfig The configuration object to the RouteValidator class. Set params, query and/or body to specify the validation logic to follow for that property.
RouteValidatorOptions Additional options for the RouteValidator class to modify its default behaviour.
SavedObject
SavedObjectAttributes The data for a Saved Object is stored as an object in the attributes property.
SavedObjectMigrationContext Migration context provided when invoking a migration handler
SavedObjectMigrationMap A map of migration functions to be used for a given type. The map's keys must be valid semver versions.For a given document, only migrations with a higher version number than that of the document will be applied. Migrations are executed in order, starting from the lowest version and ending with the highest one.
SavedObjectReference A reference to another saved object.
SavedObjectsAddToNamespacesOptions
SavedObjectsAddToNamespacesResponse
SavedObjectsBaseOptions
SavedObjectsBulkCreateObject
SavedObjectsBulkGetObject
SavedObjectsBulkResponse
SavedObjectsBulkUpdateObject
SavedObjectsBulkUpdateOptions
SavedObjectsBulkUpdateResponse
SavedObjectsCheckConflictsObject
SavedObjectsCheckConflictsResponse
SavedObjectsClientProviderOptions Options to control the creation of the Saved Objects Client.
SavedObjectsClientWrapperOptions Options passed to each SavedObjectsClientWrapperFactory to aid in creating the wrapper instance.
SavedObjectsComplexFieldMapping See SavedObjectsFieldMapping for documentation.
SavedObjectsCoreFieldMapping See SavedObjectsFieldMapping for documentation.
SavedObjectsCreateOptions
SavedObjectsDeleteByNamespaceOptions
SavedObjectsDeleteFromNamespacesOptions
SavedObjectsDeleteFromNamespacesResponse
SavedObjectsDeleteOptions
SavedObjectsExportOptions Options controlling the export operation.
SavedObjectsExportResultDetails Structure of the export result details entry
SavedObjectsFindOptions
SavedObjectsFindResponse Return type of the Saved Objects find() method.*Note*: this type is different between the Public and Server Saved Objects clients.
SavedObjectsFindResult
SavedObjectsImportAmbiguousConflictError Represents a failure to import due to a conflict, which can be resolved in different ways with an overwrite.
SavedObjectsImportConflictError Represents a failure to import due to a conflict.
SavedObjectsImportError Represents a failure to import.
SavedObjectsImportMissingReferencesError Represents a failure to import due to missing references.
SavedObjectsImportOptions Options to control the import operation.
SavedObjectsImportResponse The response describing the result of an import.
SavedObjectsImportRetry Describes a retry operation for importing a saved object.
SavedObjectsImportSuccess Represents a successful import.
SavedObjectsImportUnknownError Represents a failure to import due to an unknown reason.
SavedObjectsImportUnsupportedTypeError Represents a failure to import due to having an unsupported saved object type.
SavedObjectsIncrementCounterOptions
SavedObjectsMappingProperties Describe the fields of a saved object type.
SavedObjectsMigrationLogger
SavedObjectsMigrationVersion Information about the migrations that have been applied to this SavedObject. When Kibana starts up, KibanaMigrator detects outdated documents and migrates them based on this value. For each migration that has been applied, the plugin's name is used as a key and the latest migration version as the value.
SavedObjectsRawDoc A raw document as represented directly in the saved object index.
SavedObjectsRepositoryFactory Factory provided when invoking a client factory provider See SavedObjectsServiceSetup.setClientFactoryProvider
SavedObjectsResolveImportErrorsOptions Options to control the "resolve import" operation.
SavedObjectsServiceSetup Saved Objects is Kibana's data persistence mechanism allowing plugins to use Elasticsearch for storing and querying state. The SavedObjectsServiceSetup API exposes methods for registering Saved Object types, creating and registering Saved Object client wrappers and factories.
SavedObjectsServiceStart Saved Objects is Kibana's data persisentence mechanism allowing plugins to use Elasticsearch for storing and querying state. The SavedObjectsServiceStart API provides a scoped Saved Objects client for interacting with Saved Objects.
SavedObjectStatusMeta Meta information about the SavedObjectService's status. Available to plugins via CoreSetup.status.
SavedObjectsType
SavedObjectsTypeManagementDefinition Configuration options for the type's management section.
SavedObjectsTypeMappingDefinition Describe a saved object type mapping.
SavedObjectsUpdateOptions
SavedObjectsUpdateResponse
SearchResponse
ServiceStatus The current status of a service at a point in time.
SessionCookieValidationResult Return type from a function to validate cookie contents.
SessionStorage Provides an interface to store and retrieve data across requests.
SessionStorageCookieOptions Configuration used to create HTTP session storage based on top of cookie mechanism.
SessionStorageFactory SessionStorage factory to bind one to an incoming request
ShardsInfo
ShardsResponse
StatusServiceSetup API for accessing status of Core and this plugin's dependencies as well as for customizing this plugin's status.
StringValidationRegex StringValidation with regex object
StringValidationRegexString StringValidation as regex string
UiSettingsParams UiSettings parameters defined by the plugins.
UiSettingsServiceSetup
UiSettingsServiceStart
URLMeaningfulParts We define our own typings because the current version of @types/node declares properties to be optional "hostname?: string". Although, parse call returns "hostname: null | string".
UserProvidedValues Describes the values explicitly set by user.

Variables

Variable Description
kibanaResponseFactory Set of helpers used to create KibanaResponse to form HTTP response on an incoming request. Should be returned as a result of RequestHandler execution.
ServiceStatusLevels The current "level" of availability of a service.
validBodyOutput The set of valid body.output

Type Aliases

Type Alias Description
AppenderConfigType
AuditTrailStart
AuthenticationHandler See AuthToolkit.
AuthHeaders Auth Headers map
AuthResult
CapabilitiesProvider See CapabilitiesSetup
CapabilitiesSwitcher See CapabilitiesSetup
ConfigDeprecation Configuration deprecation returned from ConfigDeprecationProvider that handles a single deprecation from the configuration.
ConfigDeprecationLogger Logger interface used when invoking a ConfigDeprecation
ConfigDeprecationProvider A provider that should returns a list of ConfigDeprecation.See ConfigDeprecationFactory for more usage examples.
ConfigPath
DestructiveRouteMethod Set of HTTP methods changing the state of the server.
ElasticsearchClient Client used to query the elasticsearch cluster.
ElasticsearchClientConfig Configuration options to be used to create a cluster client using the createClient API
Freezable
GetAuthHeaders Get headers to authenticate a user against Elasticsearch.
GetAuthState Gets authentication state for a request. Returned by auth interceptor.
HandlerContextType Extracts the type of the first argument of a HandlerFunction to represent the type of the context.
HandlerFunction A function that accepts a context object and an optional number of additional arguments. Used for the generic types in IContextContainer
HandlerParameters Extracts the types of the additional arguments of a HandlerFunction, excluding the HandlerContextType.
Headers Http request headers to read.
HttpResourcesRequestHandler Extended version of RequestHandler having access to HttpResourcesServiceToolkit to respond with HTML or JS resources.
HttpResourcesResponseOptions HTTP Resources response parameters
HttpResponsePayload Data send to the client as a response payload.
IBasePath Access or manipulate the Kibana base pathBasePath
IContextProvider A function that returns a context value for a specific key of given context type.
ILegacyClusterClient Represents an Elasticsearch cluster API client created by the platform. It allows to call API on behalf of the internal Kibana user and the actual user that is derived from the request headers (via asScoped(...)).See LegacyClusterClient.
ILegacyCustomClusterClient Represents an Elasticsearch cluster API client created by a plugin. It allows to call API on behalf of the internal Kibana user and the actual user that is derived from the request headers (via asScoped(...)).See LegacyClusterClient.
ILegacyScopedClusterClient Serves the same purpose as "normal" ClusterClient but exposes additional callAsCurrentUser method that doesn't use credentials of the Kibana internal user (as callAsInternalUser does) to request Elasticsearch API, but rather passes HTTP headers extracted from the current user request to the API.See LegacyScopedClusterClient.
IsAuthenticated Returns authentication status for a request.
ISavedObjectsRepository See SavedObjectsRepository
ISavedObjectTypeRegistry See SavedObjectTypeRegistry for documentation.
KibanaRequestRouteOptions Route options: If 'GET' or 'OPTIONS' method, body options won't be returned.
KibanaResponseFactory Creates an object containing request response payload, HTTP headers, error details, and other data transmitted to the client.
KnownHeaders Set of well-known HTTP headers.
LegacyElasticsearchClientConfig
LifecycleResponseFactory Creates an object containing redirection or error response with error details, HTTP headers, and other data transmitted to the client.
LoggerConfigType
MIGRATION_ASSISTANCE_INDEX_ACTION
MIGRATION_DEPRECATION_LEVEL
MutatingOperationRefreshSetting Elasticsearch Refresh setting for mutating operation
OnPostAuthHandler See OnPostAuthToolkit.
OnPreAuthHandler See OnPreAuthToolkit.
OnPreResponseHandler See OnPreRoutingToolkit.
OnPreRoutingHandler See OnPreRoutingToolkit.
PluginConfigSchema Dedicated type for plugin configuration schema.
PluginInitializer The plugin export at the root of a plugin's server directory should conform to this interface.
PluginName Dedicated type for plugin name/id that is supposed to make Map/Set/Arrays that use it as a key or value more obvious.
PluginOpaqueId
PublicUiSettingsParams A sub-set of UiSettingsParams exposed to the client-side.
RedirectResponseOptions HTTP response parameters for redirection response
RequestHandler A function executed when route path matched requested resource path. Request handler is expected to return a result of one of KibanaResponseFactory functions.
RequestHandlerContextContainer An object that handles registration of http request context providers.
RequestHandlerContextProvider Context provider for request handler. Extends request context object with provided functionality or data.
RequestHandlerWrapper Type-safe wrapper for RequestHandler function.
ResponseError Error message and optional data send to the client in case of error.
ResponseErrorAttributes Additional data to provide error details.
ResponseHeaders Http response headers to set.
RouteContentType The set of supported parseable Content-Types
RouteMethod The set of common HTTP methods supported by Kibana routing.
RouteRegistrar Route handler common definition
RouteValidationFunction The custom validation function if @kbn/config-schema is not a valid solution for your specific plugin requirements.
RouteValidationSpec Allowed property validation options: either @kbn/config-schema validations or custom validation functionsSee RouteValidationFunction for custom validation.
RouteValidatorFullConfig Route validations config and options merged into one object
SafeRouteMethod Set of HTTP methods not changing the state of the server.
SavedObjectAttribute Type definition for a Saved Object attribute value
SavedObjectAttributeSingle Don't use this type, it's simply a helper type for SavedObjectAttribute
SavedObjectMigrationFn A migration function for a saved object type used to migrate it to a given version
SavedObjectSanitizedDoc Describes Saved Object documents that have passed through the migration framework and are guaranteed to have a references root property.
SavedObjectsClientContract Saved Objects is Kibana's data persisentence mechanism allowing plugins to use Elasticsearch for storing plugin state.## SavedObjectsClient errorsSince the SavedObjectsClient has its hands in everything we are a little paranoid about the way we present errors back to to application code. Ideally, all errors will be either:1. Caused by bad implementation (ie. undefined is not a function) and as such unpredictable 2. An error that has been classified and decorated appropriately by the decorators in SavedObjectsErrorHelpersType 1 errors are inevitable, but since all expected/handle-able errors should be Type 2 the isXYZError() helpers exposed at SavedObjectsErrorHelpers should be used to understand and manage error responses from the SavedObjectsClient.Type 2 errors are decorated versions of the source error, so if the elasticsearch client threw an error it will be decorated based on its type. That means that rather than looking for error.body.error.type or doing substring checks on error.body.error.reason, just use the helpers to understand the meaning of the error:```js if (SavedObjectsErrorHelpers.isNotFoundError(error)) { // handle 404 }if (SavedObjectsErrorHelpers.isNotAuthorizedError(error)) { // 401 handling should be automatic, but in case you wanted to know }// always rethrow the error unless you handle it throw error; ```### 404s from missing indexFrom the perspective of application code and APIs the SavedObjectsClient is a black box that persists objects. One of the internal details that users have no control over is that we use an elasticsearch index for persistance and that index might be missing.At the time of writing we are in the process of transitioning away from the operating assumption that the SavedObjects index is always available. Part of this transition is handling errors resulting from an index missing. These used to trigger a 500 error in most cases, and in others cause 404s with different error messages.From my (Spencer) perspective, a 404 from the SavedObjectsApi is a 404; The object the request/call was targeting could not be found. This is why #14141 takes special care to ensure that 404 errors are generic and don't distinguish between index missing or document missing.See SavedObjectsClient See SavedObjectsErrorHelpers
SavedObjectsClientFactory Describes the factory used to create instances of the Saved Objects Client.
SavedObjectsClientFactoryProvider Provider to invoke to retrieve a SavedObjectsClientFactory.
SavedObjectsClientWrapperFactory Describes the factory used to create instances of Saved Objects Client Wrappers.
SavedObjectsFieldMapping Describe a saved object type mapping field.Please refer to elasticsearch documentation For the mapping documentation
SavedObjectsNamespaceType The namespace type dictates how a saved object can be interacted in relation to namespaces. Each type is mutually exclusive: * single (default): this type of saved object is namespace-isolated, e.g., it exists in only one namespace. * multiple: this type of saved object is shareable, e.g., it can exist in one or more namespaces. * agnostic: this type of saved object is global.
SavedObjectUnsanitizedDoc Describes Saved Object documents from Kibana < 7.0.0 which don't have a references root property defined. This type should only be used in migrations.
ScopeableRequest A user credentials container. It accommodates the necessary auth credentials to impersonate the current user.See KibanaRequest.
ServiceStatusLevel A convenience type that represents the union of each value in ServiceStatusLevels.
SharedGlobalConfig
StartServicesAccessor Allows plugins to get access to APIs available in start inside async handlers. Promise will not resolve until Core and plugin dependencies have completed start. This should only be used inside handlers registered during setup that will only be executed after start lifecycle.
StringValidation Allows regex objects or a regex string
UiSettingsType UI element type to represent the settings.