@ambassify/guardian-client

API Client for Guardian service

Usage no npm install needed!

<script type="module">
  import ambassifyGuardianClient from 'https://cdn.skypack.dev/@ambassify/guardian-client';
</script>

README

@ambassify/guardian-client

API Client for Guardian service

GuardianApi

  • GuardianApi.isLegacySuperUserToken(decodedToken)
  • GuardianApi.isGuestToken(decodedToken)
  • GuardianApi.interpolateScope(scope, variables)
  • #logout(deviceId)
  • #token(payload)
  • #startPasswordReset(payload)
  • #getMfaConfig(userId)
  • #addMfaType(userId, type, config)
  • #removeMfaType(userId, type)
  • #getIdentities(userId)
  • #getIdentity(identityId)
  • #updateIdenityEmail(identityId, newEmail)
  • #deleteIdentity(identityId)
  • #getScopes()
  • #getScope(key)
  • #createScope(payload)
  • #getRoles()
  • #getRole(id)
  • #createRole(payload)
  • #deleteRole(id)
  • #addScopeToRole(id, scope)
  • #removeScopeFromRole(id, scope)
  • #getClients()
  • #getClient(id)
  • #createClient(payload)
  • #updateClient(id, payload)
  • #patchClient(id, payload)
  • #deleteClient(id)
  • #getInstallations()
  • #getInstallation(id)
  • #patchInstallation(id, payload)
  • #deleteInstallation(id)
  • #getAllApplicationTokens(query, options)
  • #getApplicationTokens(query, options)
  • #getApplicationToken(id)
  • #createApplicationToken(payload)
  • #deleteApplicationToken(id)
  • #getLegacyTokens(query, options)
  • #getLegacyToken(token)
  • #deleteLegacyToken(token)