feat: add created_by and create/update request types for script templates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@ export interface ScriptTemplateListItem {
|
|||||||
id: string
|
id: string
|
||||||
category_id: string
|
category_id: string
|
||||||
team_id: string | null
|
team_id: string | null
|
||||||
|
created_by: string | null
|
||||||
name: string
|
name: string
|
||||||
slug: string
|
slug: string
|
||||||
description: string | null
|
description: string | null
|
||||||
@@ -94,3 +95,30 @@ export interface ScriptGenerationRecord {
|
|||||||
parameters_used: Record<string, unknown> // sensitive values already redacted by backend
|
parameters_used: Record<string, unknown> // sensitive values already redacted by backend
|
||||||
created_at: string
|
created_at: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ScriptTemplateCreateRequest {
|
||||||
|
category_id: string
|
||||||
|
name: string
|
||||||
|
description?: string | null
|
||||||
|
use_case?: string | null
|
||||||
|
script_body: string
|
||||||
|
parameters_schema: ScriptParametersSchema
|
||||||
|
tags?: string[]
|
||||||
|
complexity?: 'beginner' | 'intermediate' | 'advanced'
|
||||||
|
estimated_runtime?: string | null
|
||||||
|
requires_elevation?: boolean
|
||||||
|
requires_modules?: string[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ScriptTemplateUpdateRequest {
|
||||||
|
name?: string
|
||||||
|
description?: string | null
|
||||||
|
use_case?: string | null
|
||||||
|
script_body?: string
|
||||||
|
parameters_schema?: ScriptParametersSchema
|
||||||
|
tags?: string[]
|
||||||
|
complexity?: 'beginner' | 'intermediate' | 'advanced'
|
||||||
|
estimated_runtime?: string | null
|
||||||
|
requires_elevation?: boolean
|
||||||
|
requires_modules?: string[]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user