Create a new Keys instance.
Function for making API requests
Create a new key.
The key data including name, teamId, typeName and parameters
Promise with the created key
Delete a key.
The key ID to delete
Promise that resolves when the key is deleted
Get details of a specific key.
The key ID to retrieve
Optionaloptions: GetKeyOptions<C>Optional parameters for filtering the returned fields
Promise with the key details
List keys for a team.
Without cols the API returns only id and name. Request id together with visibility (or ['*'])
to also get visibility and, on locked keys, acl.
The team ID to list keys for
Optionaloptions: ListKeysOptions<C>Optional parameters for filtering
Promise with the list of keys
Lock a key: only the members of its access list can see it, and the caller becomes its sole admin.
Only the key's author can lock it. The API answers 400 (IM903) where locked connections are off for
the organization.
The key ID to lock
Promise with the key's ID and its new visibility
Make a locked key visible to the whole team again and clear its access list. Only an admin of the locked
key can do this. The API answers 400 (IM903) where locked connections are off for the organization.
The key ID to make team-visible
Promise with the key's ID and its new visibility
Update an existing key.
The key ID to update
The key properties to update
Promise with the updated key
Class providing methods for working with Make keys. Keys allow secure storage of sensitive information like API keys, passwords, and tokens that can be used in apps without exposing the actual values.