Nurama Developers
Namespaces

tag

Methods and types of the `tag` namespace (`client.tag` / `bot.tag`).

Interfaces

CreateTagData

Data required to create a new tag

Properties

PropertyTypeDescription
color?stringOptional hex color code for the tag. If not provided, a color will be assigned automatically
namestringThe name of the tag
ownerResourceIdstringThe ID of the resource that will own this tag
ownerResourceTypeTagOwnerResourceTypeThe type of resource that will own this tag

GetTagsParams

Parameters for getting tags for a resource

Properties

PropertyTypeDescription
name?stringFilter tags by partial name match (case-insensitive)
sortBy?"createdAt" | "updatedAt" | "name"Sort tags by field

UpdateTagData

Data for updating an existing tag

Properties

PropertyTypeDescription
color?stringThe new hex color code for the tag
name?stringThe 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

ParameterTypeDescription
clientdefaultThe NuramaClient instance.

Returns

An object containing the tag-related methods.

NameTypeDescription
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.

On this page