chore: test deploy snapshot
This commit is contained in:
@@ -2371,6 +2371,29 @@ export async function createChatShareRoom(
|
||||
} satisfies ChatShareRoomSummary;
|
||||
}
|
||||
|
||||
export async function deleteChatShareRoom(token: string, sessionId: string) {
|
||||
const response = await requestChatApi<{
|
||||
ok: boolean;
|
||||
deleted: boolean;
|
||||
deletedSessionId: string;
|
||||
nextRoomSessionId?: string | null;
|
||||
}>(
|
||||
`/shares/${encodeURIComponent(token)}/rooms/${encodeURIComponent(sessionId)}`,
|
||||
{
|
||||
method: 'DELETE',
|
||||
},
|
||||
{
|
||||
allowUnauthenticated: true,
|
||||
},
|
||||
);
|
||||
|
||||
return {
|
||||
deleted: response.deleted === true,
|
||||
deletedSessionId: normalizeRequiredText(response.deletedSessionId),
|
||||
nextRoomSessionId: normalizeOptionalText(response.nextRoomSessionId),
|
||||
};
|
||||
}
|
||||
|
||||
export async function deleteChatConversationRequest(sessionId: string, requestId: string) {
|
||||
const response = await requestChatApi<{ ok: boolean; deleted: boolean; sessionId: string; requestId: string }>(
|
||||
`/conversations/${encodeURIComponent(sessionId)}/requests/${encodeURIComponent(requestId)}`,
|
||||
|
||||
Reference in New Issue
Block a user