Dominevo
ReferenceHTTP API

keychain

The keychain router: 7 methods of the keychain capability, with tier, scope, input and output.

Capability keychain · scope system · mode singleton · source packages/types/src/capabilities/keychain.cap.ts:98.

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

MethodKindTierToken scopeViewer
putmutationadminadmin onlyno
resolvequeryadminadmin onlyno
deletemutationadminadmin onlyno
deleteDeviceScopemutationadminadmin onlyno
releaseRecordRefsmutationadminadmin onlyno
listMetaqueryadminadmin onlyno
getStatequeryadminadmin onlyno

keychain.put

  • Kind: mutation — POST /trpc/keychain.put
  • 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=keychain.put on your hub

Input

{ ref: string; value: string }

Output

{ ref: string; version: number }

keychain.resolve

  • Kind: query — GET /trpc/keychain.resolve
  • 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=keychain.resolve on your hub

Input

{ refs: string[] }

Output

KeychainResolveResultSchema

Shapes: KeychainResolveResultSchema

keychain.delete

  • Kind: mutation — POST /trpc/keychain.delete
  • 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=keychain.delete on your hub

Input

{ refs: string[] }

Output

{ deleted: number }

keychain.deleteDeviceScope

  • Kind: mutation — POST /trpc/keychain.deleteDeviceScope
  • 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=keychain.deleteDeviceScope on your hub

Input

{ deviceId: number }

Output

{ refs: string[] }

keychain.releaseRecordRefs

  • Kind: mutation — POST /trpc/keychain.releaseRecordRefs
  • 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=keychain.releaseRecordRefs on your hub

Input

{ refs: string[]; onBehalfOf: string }

Output

{ released: number }

keychain.listMeta

  • Kind: query — GET /trpc/keychain.listMeta
  • 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=keychain.listMeta on your hub

Input

{}

Output

KeychainSecretMetaSchema[]

Shapes: KeychainSecretMetaSchema

keychain.getState

  • Kind: query — GET /trpc/keychain.getState
  • 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=keychain.getState on your hub

Input

{}

Output

KeychainStateSchema

Shapes: KeychainStateSchema