Dominevo
ReferenceHTTP API

addonSettings

The addonSettings router: 8 methods of the addon-settings capability, with tier, scope, input and output.

Capability addon-settings · scope system · mode singleton · source packages/types/src/capabilities/addon-settings.cap.ts:87.

Every method is called at /trpc/addonSettings.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getScopedSettingsqueryprotectedviewno
listScopedSettingsqueryprotectedviewno
updateScopedSettingsmutationadminadmin onlyno
readScopedValuesqueryprotectedviewno
getDeclaredSettingsKeysqueryadminadmin onlyno
unsetStoredSettingsKeysmutationadminadmin onlyno
getDeviceSettingsqueryprotectedviewno
updateDeviceSettingsmutationadminadmin onlyno

addonSettings.getScopedSettings

  • Kind: query — GET /trpc/addonSettings.getScopedSettings
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability addon-settings, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.getScopedSettings on your hub

Input

{ addonId: string; cap: string; scope: "cluster" | "device-defaults" | "node"; nodeId?: string }

Output

SettingsSchemaWithValuesSchema | null

Shapes: SettingsSchemaWithValuesSchema

addonSettings.listScopedSettings

  • Kind: query — GET /trpc/addonSettings.listScopedSettings
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability addon-settings, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.listScopedSettings on your hub

Input

{ addonId: string; nodeId?: string }

Output

({ cap: string; scope: "cluster" | "device-defaults" | "node"; sectionIds: string[] })[] | null

addonSettings.updateScopedSettings

  • Kind: mutation — POST /trpc/addonSettings.updateScopedSettings
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.updateScopedSettings on your hub

Input

{ addonId: string; cap: string; scope: "cluster" | "device-defaults" | "node"; nodeId?: string; patch: SettingsPatchSchema }

Output

SettingsUpdateResultSchema

Shapes: SettingsPatchSchema · SettingsUpdateResultSchema

addonSettings.readScopedValues

  • Kind: query — GET /trpc/addonSettings.readScopedValues
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability addon-settings, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.readScopedValues on your hub

Input

{ addonId: string; cap: string; scope: "cluster" | "device-defaults" | "node"; nodeId?: string }

Output

Record<string, unknown> | null

addonSettings.getDeclaredSettingsKeys

  • Kind: query — GET /trpc/addonSettings.getDeclaredSettingsKeys
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.getDeclaredSettingsKeys on your hub

Input

{ addonId: string; nodeId?: string }

Output

{ keys: string[] } | null

addonSettings.unsetStoredSettingsKeys

  • Kind: mutation — POST /trpc/addonSettings.unsetStoredSettingsKeys
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.unsetStoredSettingsKeys on your hub

Input

{ addonId: string; nodeId?: string; keys: string[] }

Output

{ removed: string[]; refused: ({ key: string; reason: string })[]; secretsCleared: number }

addonSettings.getDeviceSettings

  • Kind: query — GET /trpc/addonSettings.getDeviceSettings
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability addon-settings, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.getDeviceSettings on your hub

Input

{ addonId: string; deviceId: number; nodeId?: string }

Output

SettingsSchemaWithValuesSchema | null

Shapes: SettingsSchemaWithValuesSchema

addonSettings.updateDeviceSettings

  • Kind: mutation — POST /trpc/addonSettings.updateDeviceSettings
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=addonSettings.updateDeviceSettings on your hub

Input

{ addonId: string; deviceId: number; nodeId?: string; patch: SettingsPatchSchema }

Output

SettingsUpdateResultSchema

Shapes: SettingsPatchSchema · SettingsUpdateResultSchema