import type { DatabricksRawProtocolClient } from "./raw-protocol-client.js"; export declare const DATABRICKS_AGENT_SERVICES_API = "/api/2.1/unity-catalog/agent-services"; export declare const DATABRICKS_AGENT_SERVICE_SECURABLE = "AGENT_SERVICE"; export type DatabricksAgentServicePrivilege = "EXECUTE" | "READ_METADATA" | "MANAGE" | "MANAGE_ACCESS_CONTROL" | "ALL_PRIVILEGES"; export interface DatabricksAgentServiceConnection { name: string; } export interface DatabricksAgentServiceConfig { connection: DatabricksAgentServiceConnection; base_path?: string; system_prompt?: string; } export interface DatabricksAgentService { name: string; full_name?: string | null; owner?: string | null; agent_service_type: "AGENT_SERVICE_TYPE_EXTERNAL"; comment?: string; created_at?: number; created_by?: string; updated_at?: number; updated_by?: string; config: DatabricksAgentServiceConfig; } export interface DatabricksAgentServiceList { agent_services?: DatabricksAgentService[]; next_page_token?: string; } export interface DatabricksAgentServiceCreateOptions { catalog: string; schema: string; id: string; /** Unity Catalog HTTP connection as `name`, `catalog.schema.name`, or either form prefixed by `connections/`. */ connection: string; /** Path on the external service. Fabric Harness Apps expose `/responses`. */ basePath?: string; comment?: string; systemPrompt?: string; } export interface DatabricksAgentServiceUpdateOptions { comment?: string; basePath?: string; systemPrompt?: string; } export interface DatabricksAgentServicePermission { principal?: string; privileges?: Array<{ privilege?: DatabricksAgentServicePrivilege; inherited_from_object?: string[]; }>; } export interface DatabricksAgentServicePermissions { privilege_assignments?: DatabricksAgentServicePermission[]; } export interface DatabricksAgentServiceGrantChange { principal: string; add?: DatabricksAgentServicePrivilege[]; remove?: DatabricksAgentServicePrivilege[]; } export interface DatabricksAgentServicesOptions { /** * Agent Services is a Databricks Beta. Requiring this flag prevents preview * APIs from being enabled accidentally in production configuration. */ acknowledgeBeta: true; } /** * Typed lifecycle client for Unity Catalog Agent Services. * * Databricks currently supports registration, discovery and grants only. This * client intentionally has no invoke method until runtime invocation is part of * the Agent Services API. */ export declare class DatabricksAgentServices { private readonly client; constructor(client: DatabricksRawProtocolClient, options: DatabricksAgentServicesOptions); create(options: DatabricksAgentServiceCreateOptions): Promise; get(fullName: string): Promise; list(options?: { catalog?: string; schema?: string; pageToken?: string; }): Promise; update(fullName: string, options: DatabricksAgentServiceUpdateOptions): Promise; delete(fullName: string): Promise; permissions(fullName: string): Promise; updatePermissions(fullName: string, changes: DatabricksAgentServiceGrantChange[]): Promise; grant(fullName: string, principal: string, privileges?: DatabricksAgentServicePrivilege[]): Promise; revoke(fullName: string, principal: string, privileges?: DatabricksAgentServicePrivilege[]): Promise; } export declare function databricksAgentServices(client: DatabricksRawProtocolClient, options: DatabricksAgentServicesOptions): DatabricksAgentServices; //# sourceMappingURL=agent-services.d.ts.map