|
|
@@ -12,7 +12,7 @@ enum Api {
|
|
|
* @returns 流完成后的 thread_id、session_id
|
|
|
*/
|
|
|
export async function fetchTunnelInterpretation(
|
|
|
- params: { tun_id: string; tun_name: string },
|
|
|
+ params: { tun_id: string; tun_name: string; mode?: string },
|
|
|
onEvent: (event: SSERawEvent) => void
|
|
|
): Promise<{ thread_id: string; session_id: string }> {
|
|
|
return ssePost(Api.clickTun, params, onEvent);
|
|
|
@@ -25,7 +25,7 @@ export async function fetchTunnelInterpretation(
|
|
|
* @returns 流完成后的 thread_id、session_id
|
|
|
*/
|
|
|
export async function fetchDeviceInterpretation(
|
|
|
- params: { device_id: string; device_name: string; device_type: string },
|
|
|
+ params: { device_id: string; device_name: string; device_type: string; mode?: string },
|
|
|
onEvent: (event: SSERawEvent) => void
|
|
|
): Promise<{ thread_id: string; session_id: string }> {
|
|
|
return ssePost(Api.clickDevice, params, onEvent);
|