main
ts 58 lines 1.17 KB
Raw
1 export interface InventoryQueryRequest {
2 technology?: string
3 category?: string
4 tag?: string
5 q?: string
6 limit?: number
7 offset?: number
8 refresh?: boolean
9 include?: string
10 }
11
12 export interface InvokeCopilotActionRequest {
13 copilot_action_name: string
14 agent_names: string[]
15 parameters: Record<string, string | number>
16 }
17
18 export interface CopilotActionListResponse {
19 copilot_actions: CopilotAction[]
20 total: number
21 count: number
22 limit: number
23 offset: number
24 has_more: boolean
25 next_offset: number | number
26 prev_offset: null | number
27 }
28
29 export interface CopilotAction {
30 copilot_action_name: string
31 description: string
32 technology: string
33 icon?: string
34 script_parameters: ScriptParameter[]
35 repo_url: string
36 script_name?: string
37 version?: string
38 last_updated?: Date
39 category?: null | string
40 tags?: null | string[]
41 }
42
43 export type ScriptParameterType = "boolean" | "integer" | "string"
44
45 export interface ScriptParameter {
46 name: string
47 type: ScriptParameterType
48 required: boolean
49 description?: string
50 default?: string | number | boolean | null
51 enum?: string[] | null
52 arg_position?: string
53 }
54
55 export interface CopilotActionInvokeResponse {
56 session_id?: string
57 flow_id?: string
58 }