mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-27 21:01:57 +00:00
* Implement copilot for user database * Fix minor bugs * fix bugs * Add user database copilot * Add placeholder text on copilot * Add AFEC adn killswitch * Add new v2 sampledatabase endpoint * Add telemetry * fix telemetry bug * Add query edited telemetry * add authorization header * Add back to the staging env for phoenix * point to stage for phoenix * Preview commit for test env * Preview link for staging * change the staging url * fix lint, unit tests * fix lint, unit tests * fix formatting
40 lines
686 B
TypeScript
40 lines
686 B
TypeScript
import Explorer from "Explorer/Explorer";
|
|
|
|
export interface GenerateSQLQueryResponse {
|
|
apiVersion: string;
|
|
sql: string;
|
|
explanation: string;
|
|
generateStart: string;
|
|
generateEnd: string;
|
|
}
|
|
|
|
enum MessageSource {
|
|
User,
|
|
AI,
|
|
AIExplanation,
|
|
}
|
|
|
|
export interface CopilotMessage {
|
|
source: MessageSource;
|
|
message: string;
|
|
sqlQuery?: string;
|
|
explanation?: string;
|
|
}
|
|
|
|
export interface FeedbackParams {
|
|
likeQuery: boolean;
|
|
generatedQuery: string;
|
|
userPrompt: string;
|
|
description?: string;
|
|
contact?: string;
|
|
}
|
|
|
|
export interface QueryCopilotProps {
|
|
explorer: Explorer;
|
|
}
|
|
|
|
export interface CopilotSchemaAllocationInfo {
|
|
databaseId: string;
|
|
containerId: string;
|
|
}
|