2026-08-16 14:45:02 +07:00
|
|
|
import { orpc } from "@/lib/orpc/client";
|
2026-07-26 11:27:21 +07:00
|
|
|
import type { PaginatedRecordings } from "@/lib/types";
|
|
|
|
|
|
|
|
|
|
export const recordingsApi = {
|
|
|
|
|
list: (
|
|
|
|
|
limit?: number,
|
|
|
|
|
channelId?: string,
|
|
|
|
|
userId?: string,
|
|
|
|
|
cursor?: string,
|
2026-08-16 13:25:10 +07:00
|
|
|
) =>
|
2026-08-16 14:45:02 +07:00
|
|
|
orpc.recordings.list({
|
2026-08-16 13:25:10 +07:00
|
|
|
limit,
|
|
|
|
|
channelId,
|
|
|
|
|
userId,
|
|
|
|
|
cursor,
|
|
|
|
|
}) as unknown as Promise<PaginatedRecordings>,
|
2026-07-26 11:27:21 +07:00
|
|
|
|
2026-08-16 13:25:10 +07:00
|
|
|
delete: (id: string) =>
|
2026-08-16 14:45:02 +07:00
|
|
|
orpc.recordings.delete({ id }) as unknown as Promise<{ ok: boolean }>,
|
2026-07-26 11:27:21 +07:00
|
|
|
};
|