BlockUsersResponse
Defined in: src/types/blocks.ts:49
The response from a block or unblock call. All three inner keys are optional:
a block call populates added_users, an unblock call populates
removed_users, and either may include failed_users for per-user failures.
Indexable
Section titled “Indexable”[
key:string]:unknown
Additional Graph fields not explicitly typed above.
Properties
Section titled “Properties”block_users
Section titled “block_users”block_users:
object
Defined in: src/types/blocks.ts:53
The per-outcome breakdown of the request.
Index Signature
Section titled “Index Signature”[key: string]: unknown
Additional Graph fields not explicitly typed above.
added_users?
Section titled “added_users?”
optionaladded_users?:BlockedUser[]
Users successfully blocked (block calls).
failed_users?
Section titled “failed_users?”
optionalfailed_users?:FailedBlockUser[]
Users that could not be processed, with per-user error detail.
removed_users?
Section titled “removed_users?”
optionalremoved_users?:BlockedUser[]
Users successfully unblocked (unblock calls).
messaging_product
Section titled “messaging_product”messaging_product:
"whatsapp"
Defined in: src/types/blocks.ts:51
Always whatsapp for the Cloud API.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.