Optionalopts: object = {}auth.test -> { ok, team_id, team, user_id, user, url }
List private channels the authenticated user is a member of.
Look up a Slack user by email, falling back to a full users.list scan if the email route is unavailable.
Upload a binary blob as a file-share message to a channel.
opaque, e.g. jsenc-
already padded ciphertext
Walk conversations.history forward from oldest_ts.
Returns messages in chronological order (oldest first).
Fetch a file's metadata (including the authenticated download URL).
Download a file's bytes via an authenticated fetch against
url_private. @slack/web-api does not expose a helper for this, so
we use the global fetch with an Authorization: Bearer <token>
header -- the same auth Slack expects for private file downloads.
Delete a file (fails closed on error — caller handles).
Delete a message from a channel.
Enumerate workspace connected apps. Used by slack doctor to
baseline the connected-app set (concern #7). The tokens:list API
is admin-only, so we fall back to apps.list with user scope.
Returns whatever Slack gives us; the caller hashes it.
Slack User OAuth token (xoxp-...)