/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { tagsCreate } from "../funcs/tagsCreate.js"; import { tagsDelete } from "../funcs/tagsDelete.js"; import { tagsList } from "../funcs/tagsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Tags extends ClientSDK { /** * List Tags * * @remarks * Lists tags belonging to the account. * * ## Requires api token with one of the following permissions * ``` * Read all data * ``` */ async list( request?: operations.GetTagsRequest | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(tagsList( this, request, options, )); } /** * Create Tags * * @remarks * Creates a new tag. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async create( request: operations.PostTagsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(tagsCreate( this, request, options, )); } /** * Delete Tag * * @remarks * Deletes a tag * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async delete( request: operations.DeleteTagsNameRequest, options?: RequestOptions, ): Promise { return unwrapAsync(tagsDelete( this, request, options, )); } }