import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Skills extends APIResource { /** * Org-active skills left-joined against the caller's own enablement, in one call. * Requires X-Tenant-Id header. */ retrieveEnabled(params?: SkillRetrieveEnabledParams | null | undefined, options?: RequestOptions): APIPromise; /** * Batch enable/disable skills for the current user. Idempotent. Requires * X-Tenant-Id header. */ toggle(params: SkillToggleParams, options?: RequestOptions): APIPromise; } /** * Org-active skills for the caller, each flagged with their own enablement state. */ export interface SkillRetrieveEnabledResponse { skills: Array; } export declare namespace SkillRetrieveEnabledResponse { /** * A single org-active skill, annotated with the caller's own enablement state. */ interface Skill { id: string; is_enabled_by_user: boolean; name: string; /** * Supported admin skill types. */ type: 'library' | 'github' | 'upload' | 'manual'; url: string; description?: string | null; } } /** * Batch skill toggle response. */ export interface SkillToggleResponse { results: Array; } export declare namespace SkillToggleResponse { /** * Single skill toggle result. */ interface Result { skill_id: string; status: string; enabled?: boolean | null; error?: string | null; } } export interface SkillRetrieveEnabledParams { /** * Query param: Search query for skill name or description */ search?: string; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export interface SkillToggleParams { /** * Body param */ items: Array; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace SkillToggleParams { /** * Single skill enable/disable request item. */ interface Item { enabled: boolean; skill_id: string; } } export declare namespace Skills { export { type SkillRetrieveEnabledResponse as SkillRetrieveEnabledResponse, type SkillToggleResponse as SkillToggleResponse, type SkillRetrieveEnabledParams as SkillRetrieveEnabledParams, type SkillToggleParams as SkillToggleParams, }; } //# sourceMappingURL=skills.d.ts.map