feat: add Script Builder frontend types and API client
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -93,6 +93,7 @@ export type {
|
||||
} from './kbAccelerator'
|
||||
|
||||
export * from './scripts'
|
||||
export * from './script-builder'
|
||||
export * from './integrations'
|
||||
export * from './notification'
|
||||
export type * from './public-templates'
|
||||
|
||||
47
frontend/src/types/script-builder.ts
Normal file
47
frontend/src/types/script-builder.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
export interface ScriptBuilderSessionSummary {
|
||||
id: string
|
||||
language: string
|
||||
title: string | null
|
||||
message_count: number
|
||||
latest_script_filename: string | null
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface ScriptBuilderSessionDetail {
|
||||
id: string
|
||||
language: string
|
||||
title: string | null
|
||||
messages: ScriptBuilderMessage[]
|
||||
latest_script: string | null
|
||||
latest_script_filename: string | null
|
||||
message_count: number
|
||||
ai_session_id: string | null
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface ScriptBuilderMessage {
|
||||
role: 'user' | 'assistant'
|
||||
content: string
|
||||
script?: string | null
|
||||
script_filename?: string | null
|
||||
line_count?: number | null
|
||||
timestamp: string
|
||||
}
|
||||
|
||||
export interface ScriptBuilderMessageResponse {
|
||||
role: 'assistant'
|
||||
content: string
|
||||
script: string | null
|
||||
script_filename: string | null
|
||||
line_count: number | null
|
||||
timestamp: string
|
||||
}
|
||||
|
||||
export interface SaveToLibraryRequest {
|
||||
name: string
|
||||
description?: string
|
||||
category_id?: string
|
||||
share_with_team?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user