import { whopApi } from "@/lib/whop-api";

const result = await whopApi.listDirectMessageConversations({
	// The `last_post_sent_at` timestamp to fetch channels before
	beforeTimestamp: "9999999",

	// Maximum number of channels to return
	limit: 10,

	// Filter by user or group name, e.g. 'Jack' or 'Fight Club'
	query: "some string",

	// Filter by status (accepted, requested, etc.)
	status: "accepted" /* Valid values: accepted | hidden | requested */,

	// Filter by unread status (true or false)
	unread: true,
});