File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 139139 * @property {boolean? } [is_upsert]
140140 */
141141
142- /**
142+ /**
143143 * @typedef {Object } AgentCodeScriptUpdateModel
144144 * @property {AgentCodeScriptViewModel[]? } [code_scripts]
145145 * @property {AgentCodeScriptUpdateOptions? } [options]
146146 */
147147
148+ /**
149+ * @typedef {Object } AgentDeleteOptions
150+ * @property {boolean? } [delete_role_agents]
151+ * @property {boolean? } [delete_user_agents]
152+ * @property {AgentCodeScriptViewModel[]? } [to_delete_code_scripts]
153+ */
154+
148155/**
149156 * @typedef {Object } AgentCodeScriptGenerateModel
150157 * @property {string? } [text]
Original file line number Diff line number Diff line change @@ -68,10 +68,11 @@ export async function saveAgent(agent) {
6868/**
6969 * Delete agent detail
7070 * @param {string } agentId
71+ * @param {import('$agentTypes').AgentDeleteOptions | null } options
7172 */
72- export async function deleteAgent ( agentId ) {
73+ export async function deleteAgent ( agentId , options = null ) {
7374 let url = endpoints . agentDetailUrl . replace ( "{id}" , agentId ) ;
74- await axios . delete ( url ) ;
75+ await axios . delete ( url , { data : options ? { options } : { } } ) ;
7576}
7677
7778/**
You can’t perform that action at this time.
0 commit comments