mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add experimental tasks logs endpoint (#19958)
Fixes coder/internal#901
This commit is contained in:
Generated
+18
@@ -2883,6 +2883,24 @@ export interface Task {
|
||||
readonly updated_at: string;
|
||||
}
|
||||
|
||||
// From codersdk/aitasks.go
|
||||
export interface TaskLogEntry {
|
||||
readonly id: number;
|
||||
readonly content: string;
|
||||
readonly type: TaskLogType;
|
||||
readonly time: string;
|
||||
}
|
||||
|
||||
// From codersdk/aitasks.go
|
||||
export type TaskLogType = "input" | "output";
|
||||
|
||||
export const TaskLogTypes: TaskLogType[] = ["input", "output"];
|
||||
|
||||
// From codersdk/aitasks.go
|
||||
export interface TaskLogsResponse {
|
||||
readonly logs: readonly TaskLogEntry[];
|
||||
}
|
||||
|
||||
// From codersdk/aitasks.go
|
||||
export interface TaskSendRequest {
|
||||
readonly input: string;
|
||||
|
||||
Reference in New Issue
Block a user