@amityco/ts-sdk
Version:
Amity Social Cloud Typescript SDK
17 lines • 673 B
TypeScript
/**
* ```js
* import { UserRepository } from '@amityco/ts-sdk'
* const blockedUsers = await UserRepository.getAllBlockedUsers()
* ```
*
* Returns all blocked users as a non-paginated list (limit 100) with TTL-based caching (5-minute window).
* Within the TTL window, subsequent calls resolve instantly from the local store without any server call.
* After the TTL expires, the next call triggers a fresh server fetch.
*
* @returns A promise that resolves to an array of blocked {@link Amity.User} objects
*
* @category Block API
* @async
*/
export declare const getAllBlockedUsers: () => Promise<Amity.User[]>;
//# sourceMappingURL=getAllBlockedUsers.d.ts.map