feat(embed): always show channel key via detail API

Fetch publish tokens when opening an embed channel drawer so deploy snippets
stay available after browser restarts, while list endpoints still omit secrets.
This commit is contained in:
wizardchen
2026-06-26 14:50:03 +08:00
committed by lyingbug
parent ecaedf1196
commit 6932c3a85d
8 changed files with 58 additions and 39 deletions
+4
View File
@@ -111,6 +111,10 @@ export async function createEmbedChannel(agentId: string, data: Partial<EmbedCha
return post<{ success: boolean; data: EmbedChannel }>(`/api/v1/agents/${agentId}/embed-channels`, data)
}
export async function getEmbedChannel(channelId: string) {
return get<{ success: boolean; data: EmbedChannel }>(`/api/v1/embed-channels/${channelId}`)
}
export async function updateEmbedChannel(channelId: string, data: Partial<EmbedChannel>) {
return put<{ success: boolean; data: EmbedChannel }>(`/api/v1/embed-channels/${channelId}`, data)
}