import { DownloadMessageAttachmentVisualizationRequest, DownloadMessageAttachmentVisualizationResponse, GenieCancelResponseRequest, GenieCreateConversationMessageRequest, GenieCreateEvalRunRequest, GenieCreateMessageCommentRequest, GenieCreateSpaceRequest, GenieDeleteConversationMessageRequest, GenieDeleteConversationRequest, GenieEvalResultDetails, GenieEvalRunResponse, GenieExecuteMessageAttachmentQueryRequest, GenieExecuteMessageQueryRequest, GenieGenerateDownloadFullQueryResultRequest, GenieGenerateDownloadFullQueryResultResponse, GenieGetConversationMessageRequest, GenieGetDownloadFullQueryResultRequest, GenieGetDownloadFullQueryResultResponse, GenieGetEvalResultDetailsRequest, GenieGetEvalRunRequest, GenieGetMessageAttachmentQueryResultRequest, GenieGetMessageQueryResultRequest, GenieGetMessageQueryResultResponse, GenieGetQueryResultByAttachmentRequest, GenieGetSpaceRequest, GenieListConversationCommentsRequest, GenieListConversationCommentsResponse, GenieListConversationMessagesRequest, GenieListConversationMessagesResponse, GenieListConversationsRequest, GenieListConversationsResponse, GenieListEvalResultsRequest, GenieListEvalResultsResponse, GenieListEvalRunsRequest, GenieListEvalRunsResponse, GenieListMessageCommentsRequest, GenieListMessageCommentsResponse, GenieListSpacesRequest, GenieListSpacesResponse, GenieMessage, GenieMessageComment, GenieSendMessageFeedbackRequest, GenieSpace, GenieStartConversationRequest, GenieTrashSpaceRequest, GenieUpdateSpaceRequest } from "./model.js"; import { CallOptions } from "@databricks/sdk-options/call"; import { ClientOptions } from "@databricks/sdk-options/client"; import { LroOptions } from "@databricks/sdk-options/lro"; //#region src/v1/client.d.ts declare class GenieClient { private readonly options; private readonly logger; private readonly userAgent; private config; constructor(options: ClientOptions); private resolveConfig; /** Creates a Genie space from a serialized payload. */ createSpace(req: GenieCreateSpaceRequest, options?: CallOptions): Promise; /** * Download a rendered image of a message visualization attachment. * The response body is the raw PNG image, not a JSON payload. * This is only available if the attachment is a visualization and the message status is `COMPLETED`. * This endpoint is not supported for Private Link workspaces. */ downloadMessageAttachmentVisualization(req: DownloadMessageAttachmentVisualizationRequest, options?: CallOptions): Promise; /** * Cancels an in-flight agent-mode response. `response_id` is the id returned in the * `response.created` event from the agent-mode responses endpoint. The response stops at * the next agent boundary and its terminal state is returned. */ genieCancelResponse(req: GenieCancelResponseRequest, options?: CallOptions): Promise; /** * Sends a new message in a chat-mode [conversation](:method:genie/startconversation). * The AI response uses all previously created messages in the conversation to respond. */ private genieCreateConversationMessageBase; /** * Sends a new message in a chat-mode [conversation](:method:genie/startconversation). * The AI response uses all previously created messages in the conversation to respond. */ genieCreateConversationMessage(req: GenieCreateConversationMessageRequest, options?: CallOptions): Promise; /** Creates and runs chat-mode evaluations for multiple benchmark questions in a Genie space. */ genieCreateEvalRun(req: GenieCreateEvalRunRequest, options?: CallOptions): Promise; /** Create a comment on a conversation message. */ genieCreateMessageComment(req: GenieCreateMessageCommentRequest, options?: CallOptions): Promise; /** Delete a conversation. */ genieDeleteConversation(req: GenieDeleteConversationRequest, options?: CallOptions): Promise; /** Delete a conversation message. */ genieDeleteConversationMessage(req: GenieDeleteConversationMessageRequest, options?: CallOptions): Promise; /** Execute the SQL for a message query attachment. Use this API when the query attachment has expired and needs to be re-executed. */ genieExecuteMessageAttachmentQuery(req: GenieExecuteMessageAttachmentQueryRequest, options?: CallOptions): Promise; /** DEPRECATED: Use [Execute Message Attachment Query](:method:genie/executemessageattachmentquery) instead. */ genieExecuteMessageQuery(req: GenieExecuteMessageQueryRequest, options?: CallOptions): Promise; /** * Initiates a new SQL execution and returns a `download_id` and `download_id_signature` that you can use to track the progress of the download. * The query result is stored in an external link and can be retrieved using the [Get Download Full Query Result](:method:genie/getdownloadfullqueryresult) API. * Both `download_id` and `download_id_signature` must be provided when calling the Get endpoint. * * ---- * * ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.** * * When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated to download the * results. The URL contains temporary access credentials, so protect it and do not set an `Authorization` header in * the download request. * * * * * * See [Execute Statement](:method:statementexecution/executestatement) for more details. * * ---- */ genieGenerateDownloadFullQueryResult(req: GenieGenerateDownloadFullQueryResultRequest, options?: CallOptions): Promise; /** * Gets a message from a chat-mode or agent-mode conversation. * For a complete agent-mode transcript, use the List conversation items endpoint. */ genieGetConversationMessage(req: GenieGetConversationMessageRequest, options?: CallOptions): Promise; /** * After [Generating a Full Query Result Download](:method:genie/generatedownloadfullqueryresult) and successfully receiving a `download_id` and `download_id_signature`, use this API to poll the download progress. * Both `download_id` and `download_id_signature` are required to call this endpoint. * When the download is complete, the API returns the result in the `EXTERNAL_LINKS` disposition, containing one or more external links to the query result files. * * ---- * * ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.** * * When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated to download the * results. The URL contains temporary access credentials, so protect it and do not set an `Authorization` header in * the download request. * * * * * * See [Execute Statement](:method:statementexecution/executestatement) for more details. * * ---- */ genieGetDownloadFullQueryResult(req: GenieGetDownloadFullQueryResultRequest, options?: CallOptions): Promise; /** Get details for evaluation results. */ genieGetEvalResultDetails(req: GenieGetEvalResultDetailsRequest, options?: CallOptions): Promise; /** Get evaluation run details. */ genieGetEvalRun(req: GenieGetEvalRunRequest, options?: CallOptions): Promise; /** * Get the result of SQL query if the message has a query attachment. * This is only available if a message has a query attachment and the message status is `EXECUTING_QUERY` OR `COMPLETED`. */ genieGetMessageAttachmentQueryResult(req: GenieGetMessageAttachmentQueryResultRequest, options?: CallOptions): Promise; /** DEPRECATED: Use [Get Message Attachment Query Result](:method:genie/getmessageattachmentqueryresult) instead. */ genieGetMessageQueryResult(req: GenieGetMessageQueryResultRequest, options?: CallOptions): Promise; /** DEPRECATED: Use [Get Message Attachment Query Result](:method:genie/getmessageattachmentqueryresult) instead. */ genieGetQueryResultByAttachment(req: GenieGetQueryResultByAttachmentRequest, options?: CallOptions): Promise; /** Get details of a Genie Space. */ genieGetSpace(req: GenieGetSpaceRequest, options?: CallOptions): Promise; /** List all comments across all messages in a conversation. */ genieListConversationComments(req: GenieListConversationCommentsRequest, options?: CallOptions): Promise; /** * Lists messages in a chat-mode or agent-mode conversation. * Agent-mode messages are returned as GenieMessage projections. Use the List conversation items * endpoint for the complete reasoning and tool-call history. */ genieListConversationMessages(req: GenieListConversationMessagesRequest, options?: CallOptions): Promise; /** Get a list of conversations in a Genie Space. */ genieListConversations(req: GenieListConversationsRequest, options?: CallOptions): Promise; /** List evaluation results for a specific evaluation run. */ genieListEvalResults(req: GenieListEvalResultsRequest, options?: CallOptions): Promise; /** Lists all evaluation runs in a space. */ genieListEvalRuns(req: GenieListEvalRunsRequest, options?: CallOptions): Promise; /** List comments on a specific conversation message. */ genieListMessageComments(req: GenieListMessageCommentsRequest, options?: CallOptions): Promise; /** Get list of Genie Spaces. */ genieListSpaces(req: GenieListSpacesRequest, options?: CallOptions): Promise; /** Sends feedback for a message in a chat-mode or agent-mode conversation. */ genieSendMessageFeedback(req: GenieSendMessageFeedbackRequest, options?: CallOptions): Promise; /** Starts a new chat-mode conversation and sends its first message. */ private genieStartConversationBase; /** Starts a new chat-mode conversation and sends its first message. */ genieStartConversation(req: GenieStartConversationRequest, options?: CallOptions): Promise; /** Move a Genie Space to the trash. */ genieTrashSpace(req: GenieTrashSpaceRequest, options?: CallOptions): Promise; /** Updates a Genie space with a serialized payload. */ updateSpace(req: GenieUpdateSpaceRequest, options?: CallOptions): Promise; } declare class GenieCreateConversationMessageWaiter { private readonly client; readonly messageId: string; readonly conversationId: string; readonly spaceId: string; constructor(client: GenieClient, messageId: string, conversationId: string, spaceId: string); /** * Polls until the operation reaches a terminal state. * * Throws if a failure state is reached. */ wait(options?: LroOptions): Promise; /** Checks whether the operation has reached a terminal state. */ done(options?: CallOptions): Promise; } declare class GenieStartConversationWaiter { private readonly client; readonly messageId: string; readonly conversationId: string; readonly spaceId: string; constructor(client: GenieClient, messageId: string, conversationId: string, spaceId: string); /** * Polls until the operation reaches a terminal state. * * Throws if a failure state is reached. */ wait(options?: LroOptions): Promise; /** Checks whether the operation has reached a terminal state. */ done(options?: CallOptions): Promise; } //#endregion export { GenieClient, GenieCreateConversationMessageWaiter, GenieStartConversationWaiter }; //# sourceMappingURL=client.d.ts.map