UNPKG

portkey-ai

Version:
29 lines (28 loc) 1.13 kB
import { ApiClientInterface } from '../_types/generalTypes'; import { ApiResource } from '../apiResource'; import { APIPromise, RequestOptions } from '../baseClient'; export interface LabelBody { name: string; organisation_id?: string; workspace_id?: string; description?: string; color_code?: string; } export interface LabelsQuery { organisation_id?: string; workspace_id?: string; search?: string; current_page?: number; page_size?: number; } export declare class Labels extends ApiResource { create(_body: LabelBody, params?: ApiClientInterface, opts?: RequestOptions): APIPromise<any>; list(_query?: LabelsQuery, params?: ApiClientInterface, opts?: RequestOptions): APIPromise<any>; retrieve(labelId: string, params?: ApiClientInterface, opts?: RequestOptions): APIPromise<any>; update(labelId: string, _body?: { name?: string; description?: string; color_code?: string; }, params?: ApiClientInterface, opts?: RequestOptions): APIPromise<any>; delete(labelId: string, params?: ApiClientInterface, opts?: RequestOptions): APIPromise<any>; }