@ahqstore/plugin-api - v0.0.12
    Preparing search index...

    Enumeration Capability

    An enum that defines capabilities that your plugin possesses

    Index

    Enumeration Members

    AppInstallationSource: 1

    This defines that this plugin also acts as an external app installation source.

    You are requried to register search and appGet

    Please note that apps installed from external sources will never be updated by AHQ Store

    HTTP: 5

    This gives access to the fetch api (no any other fancy api)

    You can HTTP fetch any url, provided its https://

    InfiniteTimeout: 6

    Allows HTTP Request to set timeouts longer than 10_000ms

    API v1 else its a NOOP

    RequestClientRestart: 4

    This allows your application to request Client (i.e. Application) frontend restart.

    This is useful for cases like CSS Theming, or CSS Injection You can restart the client and then request CSS Injection

    RequestsEvents: 0

    This allows your app to get events related to lifecycle of your plugin.

    The events are :-

    • CommonStateUpdated: Emitted when the common state gets updated
    • ThemeUpdate: Emitted when the theme updates
    UpdatesState: 7

    Allows to update the Plugin State.

    API v1 else its a NOOP

    UsesState: 2

    This means that the application is allowed to use state data that is set by the pluginUI.html or settings.html

    Generally Worker Plugins aren't allowed to access this state. But this capability allows them to

    UsesTheming: 3

    This allows the app to inject custom css like theme updates

    This allows you to style the UI

    This also allows you to get the current Theme preference

    like, if its dark mode or light mode, if vibrant visuals (transparency) is enabled etc