chore: test deploy snapshot

This commit is contained in:
2026-05-27 16:35:12 +09:00
parent e8a628ac34
commit 10805d242e
7 changed files with 1032 additions and 72 deletions

View File

@@ -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)}`,