Namespaces
tag
Methods and types of the `tag` namespace (`client.tag` / `bot.tag`).
Interfaces
CreateTagData
Data required to create a new tag
Properties
GetTagsParams
Parameters for getting tags for a resource
Properties
| Property | Type | Description |
|---|---|---|
name? | string | Filter tags by partial name match (case-insensitive) |
sortBy? | "createdAt" | "updatedAt" | "name" | Sort tags by field |
UpdateTagData
Data for updating an existing tag
Properties
| Property | Type | Description |
|---|---|---|
color? | string | The new hex color code for the tag |
name? | string | The new name for the tag |
Type Aliases
Tags
type Tags = Tag[];Array of tags
Functions
default()
function default(client): {
createTag: Promise<Tag>;
deleteTag: Promise<Tag>;
getTags: Promise<Tags>;
updateTag: Promise<Tag>;
};Defines tag-related methods for the NuramaClient.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | default | The NuramaClient instance. |
Returns
An object containing the tag-related methods.
| Name | Type | Description |
|---|---|---|
createTag() | (tagData) => Promise<Tag> | Creates a new tag for a specific resource. |
deleteTag() | (tagId) => Promise<Tag> | Deletes a tag permanently. |
getTags() | ( ownerResourceType, ownerResourceId, params? ) => Promise<Tags> | Retrieves all tags for a specific resource. |
updateTag() | (tagId, updateData) => Promise<Tag> | Updates an existing tag. |