Docs menu

Platform APIs

Slack API

Every handle of the Slack fake: the slack fixture, the people and objects a test creates on it, and what they read and wait for. How to test a Slack app or agent, step by step, is in the Slack guide.

Each call is shown in every SDK's language, with its required options (the table under it lists them all). Arguments go first; options are TypeScript's trailing object, Python's keyword arguments and Rust's builder setters. The variable names are the ones the calls return elsewhere on these pages, so user is a SlackUser handle.

Besides the errors listed with each method, most methods can fail with action_requires, cross_workspace_credential, fake_actor_in_live_world, internal, invalid_argument, live_misconfigured, live_not_allowlisted, not_found, session_not_found, unauthorized, unsupported_in_live: a bad request, a closed session, or live mode refusing or misconfigured.

SlackFixture#

Returned by Session.slack().

FieldPython / RustType
appappSlackApp
apiUrlapi_urlstring
teamteamSlackTeam
socketConnectionssocket_connectionsnumber

createUser()#

Create a person in the workspace.

const user = await slack.createUser({ name: "…" });
ParameterPython / RustTypeRequired
namenamestringyesoption
ididstringnooption
displayNamedisplay_namestringnooption
realNamereal_namestringnooption
emailemailstringnooption
timezonetimezonestringnooption
adminadminbooleannooption
ownerownerbooleannooption
guestguestbooleannooption
botbotbooleannooption
tokentokenstringnooption; read from CHANNELSTACK_SLACK_USER_{name}_TOKEN when left out
browserbrowser{ storageState: string }nooption

Returns SlackUser.

Errors invalid_auth, account_inactive.

users()#

The people this session created.

const users = await slack.users();

Returns SlackUsers.

createApp()#

Make another app in the workspace, with its own bot user, tokens and signing secret (decision 0027), or return the one made with this name and settings. Its events go to CHANNELSTACK_SLACK_APP_<NAME>_WEBHOOK_URL, or over its own Socket Mode connection.

const app = await slack.createApp({ name: "…" });
ParameterPython / RustTypeRequired
namenamestringyesoption
scopesscopesstring[]nooption
botEventsbot_eventsstring[]nooption

Returns SlackApp.

Live: refused with unsupported_in_live: not yet: live, the workspace holds only the app channelstack has credentials for.

apps()#

The apps this session used: the built-in one first, then each it got from createApp, in the order it first did. Another session's are not_found here.

const apps = await slack.apps();

Returns SlackApps.

Live: refused with unsupported_in_live: not yet: live, the workspace holds only the app channelstack has credentials for.

conversations()#

The session's conversations, the one with the newest message last.

const conversations = await slack.conversations();

Returns SlackConversations.

createChannel()#

Create a channel. Only the listed participants are members; include the app for it to receive events.

const conversation = await slack.createChannel({ name: "…" });
ParameterTypeRequired
namestringnooption
privatebooleannooption
participantsArray<SlackUser | SlackApp>nooption
topicstringnooption
purposestringnooption
sharedbooleannooption

Returns SlackConversation.

Errors name_taken, unsupported_in_fake.

deliveries()#

Every event channelstack sent the agent for this session, with every attempt.

const deliveries = await slack.deliveries({ app });
ParameterTypeRequired
appSlackAppnooption

Returns SlackDeliveries.

Live: refused with unsupported_in_live: Live, the platform delivers to the agent itself and channelstack isn't in the path (delivery chaos is fake-only).

calls()#

The Web API calls the agent made about this session's conversations, people and files. Calls about nothing a session owns (auth.test, users.list) are in no session.

const apiCalls = await slack.calls({ operation: "…" });
ParameterTypeRequired
operationstringnooption
errortrue | stringnooption

Returns SlackApiCalls.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

uninstallApp()#

The workspace uninstalls an app: the built-in one, or the one given. Undone when this session closes; run such tests on their own.

const uninstallDeliveries = await slack.uninstallApp({ app });
ParameterTypeRequired
appSlackAppnooption

Returns SlackUninstallDeliveries.

Errors account_inactive.

Live: refused with unsupported_in_live: it revokes the app's tokens, and reinstalling needs the OAuth consent flow in a browser (a dedicated job, not every run).

fault()#

Inject a fault: into the agent's Web API calls (removed when this session closes), or drop its Socket Mode connection once.

const fault = await slack.fault({ type });
ParameterPython / RustTypeRequired
typetype · r#type"rate_limit" | "latency" | "error" | "drop_socket"yesoption
operationoperationstringnooption
retryAfterretry_afterDurationnooption
delaydelayDurationnooption
afterafterDurationnooption
errorerrorstringnooption
timestimesnumbernooption
appappSlackAppnooption

Returns SlackFault.

Live: needs proxy mode: a fault changes what the agent's own calls get back, and only proxy mode sits between the agent and Slack. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

waitForCall()#

Waits for the next API call from the agent after the last one this handle returned: it polls calls() and never sleeps longer than it must.

const apiCall = await slack.waitForCall({ operation: "…" });
ParameterTypeRequired
operationstringnofilter
errortrue | stringnofilter
timeoutDurationnodefault 10s

Returns SlackApiCall. When the time is up, it fails with what it was waiting for.

SlackApp#

Returned by SlackFixture.createApp().

FieldPython / RustType
ididstring
namenamestring
kindkind"app"
botUserIdbot_user_idstring
botIdbot_idstring
botTokenbot_tokenstring
appTokenapp_tokenstring
signingSecretsigning_secretstring
scopesscopesstring[]

say()#

An app a test made writes a top-level message, as its own chat.postMessage would: in a conversation it is a member of, or in a DM with the people in to.

const message = await app.say("…", { channel });
ParameterTypeRequired
messagestring | SlackMessageInputyespositional
channelSlackConversationnooption
toSlackUser | SlackApp | Array<SlackUser | SlackApp>nooption

Returns SlackMessage.

Errors not_in_channel, cannot_dm_bot, no_text, msg_too_long.

Live: refused with unsupported_in_live: not yet: live, the workspace holds only the app channelstack has credentials for.

reply()#

An app a test made replies in a thread: pass the message that starts it, or any reply in it.

const message = await app.reply("…", { thread });
ParameterTypeRequired
messagestring | SlackMessageInputyespositional
threadSlackThread | SlackMessageyesoption

Returns SlackMessage.

Errors not_in_channel, no_text, msg_too_long.

Live: refused with unsupported_in_live: not yet: live, the workspace holds only the app channelstack has credentials for.

react()#

An app a test made reacts to a message.

const delivery = await app.react("…", { message });
ParameterTypeRequired
emojistringyespositional
messageSlackMessageyesoption

Returns SlackDelivery | undefined.

Errors not_in_channel, already_reacted.

Live: refused with unsupported_in_live: not yet: live, the workspace holds only the app channelstack has credentials for.

unreact()#

An app a test made takes its reaction back.

const delivery = await app.unreact("…", { message });
ParameterTypeRequired
emojistringyespositional
messageSlackMessageyesoption

Returns SlackDelivery | undefined.

Errors not_in_channel, no_reaction.

Live: refused with unsupported_in_live: not yet: live, the workspace holds only the app channelstack has credentials for.

SlackUser#

Returned by SlackFixture.createUser().

FieldPython / RustType
ididstring
namenamestring
kindkind"user"
displayNamedisplay_namestring
realNamereal_namestring
emailemailstring | undefined
isAdminis_adminboolean
isBotis_botboolean

say()#

Post a top-level message in a conversation, or in a DM with the people in to.

const message = await user.say("…", { channel });
ParameterTypeRequired
messagestring | SlackMessageInputyespositional
channelSlackConversationnooption
toSlackUser | SlackApp | Array<SlackUser | SlackApp>nooption
filesstring | FileInput[]nooption

Returns SlackMessage.

Errors not_in_channel, no_text, msg_too_long.

reply()#

Reply in a thread: pass the message that starts it, or any reply in it.

const message = await user.reply("…", { thread });
ParameterPython / RustTypeRequired
messagemessagestring | SlackMessageInputyespositional
threadthreadSlackThread | SlackMessageyesoption
alsoSendToChannelalso_send_to_channelbooleannooption
filesfilesstring | FileInput[]nooption

Returns SlackMessage.

Errors not_in_channel, no_text, msg_too_long.

edit()#

Edit one of this person's own messages.

const result = await user.edit("…", { message });
ParameterTypeRequired
textstring | SlackMessageInputyespositional
messageSlackMessageyesoption

Returns SlackMessage.

Errors not_in_channel, cant_update_message, no_text.

delete()#

Delete a message: this person's own, or anyone's for an admin.

await user.delete({ message });
ParameterTypeRequired
messageSlackMessageyesoption

Returns nothing.

Errors not_in_channel, cant_delete_message.

click()#

Click a button, found by its label or action_id: on a message, or on the app's latest message that has it in a thread or a conversation.

const delivery = await user.click("…", { message });
ParameterTypeRequired
buttonstring | SlackButtonRefyespositional
messageSlackMessagenooption
threadSlackThread | SlackMessagenooption
channelSlackConversationnooption

Returns SlackDelivery | undefined. While refused with not_found, it tries again until the wait's timeout.

Errors not_in_channel, dispatch_failed.

select()#

Choose from a select menu on a message: options by their text or value, the menu by its placeholder or action_id.

const delivery = await user.select(option, { menu: "…", message });
ParameterTypeRequired
optionstring | string[]yespositional
menustring | SlackMenuRefyesoption
messageSlackMessageyesoption

Returns SlackDelivery. While refused with not_found, it tries again until the wait's timeout.

Errors not_in_channel, dispatch_failed.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

shortcut()#

Run an app's message shortcut on a message: it goes to that app alone.

const delivery = await user.shortcut("…", { message });
ParameterPython / RustTypeRequired
callbackIdcallback_idstringyespositional
messagemessageSlackMessageyesoption
appappSlackAppnooption

Returns SlackDelivery.

Errors not_in_channel, dispatch_failed.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

runCommand()#

Run an app's slash command in a conversation, e.g. /deploy web staging: it goes to that app alone.

const delivery = await user.runCommand("…", { channel });
ParameterTypeRequired
commandstringyespositional
channelSlackConversationyesoption
appSlackAppnooption

Returns SlackDelivery.

Errors not_in_channel, dispatch_failed.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

stop()#

Press Stop on the app's work in a thread: what is streaming there ends, and the app is told.

const delivery = await user.stop({ thread });
ParameterTypeRequired
threadSlackThread | SlackMessageyesoption

Returns SlackDelivery.

Errors not_in_channel, stop_unavailable.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

openAgentThread()#

Open an app's split view: a new thread in this person's DM with that app, started from the channel they are looking at.

const thread = await user.openAgentThread({ from });
ParameterPython / RustTypeRequired
fromfrom_ · fromSlackConversationnooption
appappSlackAppnooption

Returns SlackThread.

Errors split_view_unavailable.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

pickPrompt()#

Pick one of the prompts the app suggested in a thread: this person says its message there.

const message = await user.pickPrompt("…", { thread });
ParameterTypeRequired
titlestringyespositional
threadSlackThread | SlackMessageyesoption

Returns SlackMessage. While refused with not_found, it tries again until the wait's timeout.

Errors not_in_channel.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

switchContext()#

Look at another channel while the split view stays open: the app is told the new context.

const delivery = await user.switchContext(channel, { thread });
ParameterTypeRequired
channelSlackConversationyespositional
threadSlackThread | SlackMessageyesoption

Returns SlackDelivery.

Errors not_in_channel, split_view_unavailable.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

modals()#

The modals the app opened for this person, in the order it opened them; open says which are still up.

const modals = await user.modals();

Returns SlackModals.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

react()#

Add an emoji reaction to a message.

const delivery = await user.react("…", { message });
ParameterTypeRequired
emojistringyespositional
messageSlackMessageyesoption

Returns SlackDelivery | undefined.

Errors not_in_channel, already_reacted.

unreact()#

Remove this person's emoji reaction from a message.

const delivery = await user.unreact("…", { message });
ParameterTypeRequired
emojistringyespositional
messageSlackMessageyesoption

Returns SlackDelivery | undefined.

Errors not_in_channel, no_reaction.

openDM()#

Open (or reuse) a DM with the app, another person, or several.

const conversation = await user.openDM(participants);
ParameterTypeRequired
participantsSlackUser | SlackApp | Array<SlackUser | SlackApp>yespositional

Returns SlackConversation.

invite()#

Invite people or the app to a channel.

await user.invite(participants, { channel });
ParameterTypeRequired
participantsSlackUser | SlackApp | Array<SlackUser | SlackApp>yespositional
channelSlackConversationyesoption

Returns nothing.

Errors not_in_channel, already_in_channel, method_not_supported_for_channel_type.

kick()#

Remove someone from a channel.

await user.kick(participant, { channel });
ParameterTypeRequired
participantSlackUser | SlackAppyespositional
channelSlackConversationyesoption

Returns nothing.

Errors not_in_channel, method_not_supported_for_channel_type.

ephemeral()#

Messages only this person can see.

const ephemeralMessages = await user.ephemeral();

Returns SlackEphemeralMessages. It reads once the app is quiet.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

waitForModal()#

Waits for the next open modal from the agent after the last one this handle returned: it polls modals() and never sleeps longer than it must.

const modal = await user.waitForModal();
ParameterTypeRequired
titlestring | RegExpnocontains, or matches
timeoutDurationnodefault 10s

Returns SlackModal. When the time is up, it fails with what it was waiting for.

SlackMessage#

Returned by SlackApp.say(), SlackApp.reply(), SlackUser.say(), SlackUser.reply().

FieldPython / RustType
channelchannelstring
tstsstring
conversationconversationSlackConversation
authorauthorSlackUser | SlackApp
texttextstring
blocksblocksunknown[]
filesfilesstring[]
postedAtposted_atstring
threadTsthread_tsstring | undefined
editededitedboolean
visibleTovisible_toSlackUser | undefined
threadthreadSlackThread
deliverydeliverySlackDelivery | undefined
streamstreamSlackStream | undefined

refresh()#

Re-read a message: its latest text, edits and deliveries.

const updated = await message.refresh();

Returns SlackMessage.

reactions()#

The reactions on a message, and who added each.

const reactions = await message.reactions();

Returns SlackReactions.

transcript()#

A message and the replies under it as a person would read them.

const transcript = await message.transcript({ as });
ParameterPython / RustTypeRequired
asas_ · r#asSlackUser | SlackAppnooption

Returns SlackTranscript.

deliveryFor()#

The first delivery this message caused to this app (decision 0027), or nothing when it wasn't told.

const delivery = await message.deliveryFor(app);
ParameterTypeRequired
appSlackAppyespositional

Returns SlackDelivery | undefined.

Live: refused with unsupported_in_live: Live, the platform delivers to the agent itself and channelstack isn't in the path (delivery chaos is fake-only).

deliveries()#

Every delivery this message caused to the agent.

const messageDeliveries = await message.deliveries();

Returns SlackMessageDeliveries.

Live: refused with unsupported_in_live: Live, the platform delivers to the agent itself and channelstack isn't in the path (delivery chaos is fake-only).

SlackConversation#

Returned by SlackFixture.createChannel(), SlackUser.openDM().

FieldType
idstring
kind"channel" | "private_channel" | "im" | "mpim"
namestring | undefined

latestMessage()#

The newest message of a conversation, replies included.

const message = await conversation.latestMessage();

Returns SlackMessage.

messages()#

Top-level messages of a conversation, oldest first.

const messages = await conversation.messages();

Returns SlackMessages.

members()#

The people and apps in a conversation.

const members = await conversation.members();

Returns SlackMembers.

transcript()#

The conversation as a person would read it, threads included.

const transcript = await conversation.transcript({ as });
ParameterPython / RustTypeRequired
asas_ · r#asSlackUser | SlackAppnooption

Returns SlackTranscript.

waitForMessage()#

Waits for the next message after the last one this handle returned: it polls messages() and never sleeps longer than it must.

const message = await conversation.waitForMessage({ from: "my-agent" });
ParameterPython / RustTypeRequired
fromfrom_ · fromSlackUser | SlackApp | stringnoa handle, or a name
timeouttimeoutDurationnodefault 10s

Returns SlackMessage. When the time is up, it fails with what it was waiting for.

SlackThread#

Returned by SlackUser.openAgentThread().

FieldType
channelstring
tsstring
conversationSlackConversation

suggestedPrompts()#

The prompts the app suggested in a thread.

const suggestedPrompts = await thread.suggestedPrompts();

Returns SlackSuggestedPrompts. It reads once the app is quiet.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

root()#

The message that starts a thread, as it is now.

const message = await thread.root();

Returns SlackMessage.

replies()#

Replies in a thread, oldest first, without the message that starts it.

const replies = await thread.replies();

Returns SlackReplies.

status()#

What the agent is doing in a thread: its status line, an open stream, or idle.

const threadStatus = await thread.status();

Returns SlackThreadStatus.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

transcript()#

A thread as a person would read it.

const transcript = await thread.transcript({ as });
ParameterPython / RustTypeRequired
asas_ · r#asSlackUser | SlackAppnooption

Returns SlackTranscript.

waitForReply()#

Waits for the next reply after the last one this handle returned: it polls replies() and never sleeps longer than it must.

const message = await thread.waitForReply({ from: "my-agent" });
ParameterPython / RustTypeRequired
fromfrom_ · fromSlackUser | SlackApp | stringnoa handle, or a name
timeouttimeoutDurationnodefault 10s

Returns SlackMessage. When the time is up, it fails with what it was waiting for.

latestReply()#

The latest reply, once the app is quiet. Waits for at least one: it polls replies() and never sleeps longer than it must.

const message = await thread.latestReply({ from: "my-agent" });
ParameterPython / RustTypeRequired
fromfrom_ · fromSlackUser | SlackApp | stringnoa handle, or a name
timeouttimeoutDurationnodefault 10s
quietForquiet_forDurationnodefault 750ms

Returns SlackMessage. When the time is up, it fails with what it was waiting for.

SlackDelivery#

Returned by SlackApp.react(), SlackApp.unreact(), SlackUser.click(), SlackUser.select().

FieldPython / RustType
ididstring
channelchannel"slack"
appappstring
typetype · r#typestring
eventTypeevent_typestring | undefined
eventIdevent_idstring | undefined
payloadpayloadunknown | undefined
attemptsattemptsDeliveryAttempt[]
statusstatus"pending" | "acknowledged" | "failed" | "timed_out" | "unreachable"

refresh()#

Re-read a delivery: its attempts and status.

const updated = await delivery.refresh();

Returns SlackDelivery.

Live: refused with unsupported_in_live: Live, the platform delivers to the agent itself and channelstack isn't in the path (delivery chaos is fake-only).

resend()#

Send the delivery again, unchanged or forged: a wrong signature, or a timestamp outside the replay window.

const deliveryAttempt = await delivery.resend({ badSignature });
ParameterPython / RustTypeRequired
badSignaturebad_signaturebooleannooption
stalestalebooleannooption
headersheadersRecord<string, string>nooption

Returns DeliveryAttempt.

Live: refused with unsupported_in_live: Live, the platform delivers to the agent itself and channelstack isn't in the path (delivery chaos is fake-only).

retry()#

Retry the way Slack does: the same payload, with X-Slack-Retry-Num and X-Slack-Retry-Reason.

const deliveryAttempt = await delivery.retry({ after });
ParameterTypeRequired
afterDurationnooption
reason"http_timeout" | "http_error" | "too_many_redirects"nooption

Returns DeliveryAttempt.

Live: refused with unsupported_in_live: Live, the platform delivers to the agent itself and channelstack isn't in the path (delivery chaos is fake-only).

settled()#

Waits for the delivery to settle: it polls refresh() and never sleeps longer than it must.

const updated = await delivery.settled();
ParameterTypeRequired
timeoutDurationnodefault 10s

Returns SlackDelivery. When the time is up, it fails with what it was waiting for.

SlackStream#

Returned by SlackStream.refresh().

FieldPython / RustType
channelchannelstring
tstsstring
statestate"open" | "stopped" | "completed"
chunkschunksstring[]
startedAtstarted_atstring
endedAtended_atstring | undefined

refresh()#

Re-read a streamed message's stream: its state and what was streamed so far.

const updated = await stream.refresh();

Returns SlackStream.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

ended()#

Waits for the stream to end: it polls refresh() and never sleeps longer than it must.

const updated = await stream.ended();
ParameterTypeRequired
timeoutDurationnodefault 10s

Returns SlackStream. When the time is up, it fails with what it was waiting for.

SlackModal#

FieldPython / RustType
viewIdview_idstring
useruserSlackUser
titletitlestring
blocksblocksunknown[]
openopenboolean
errorserrorsRecord<string, string>

values()#

What is filled in: each input by its label (or action_id), with the text a person sees in it.

const modalValues = await modal.values();

Returns SlackModalValues.

Live: needs proxy mode: no Slack API reads this back; proxy mode sees the agent's own calls. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

submit()#

Fill in inputs, by label or block_id.action_id, and submit the modal.

const delivery = await modal.submit();
ParameterTypeRequired
valuesRecord<string, string | string[]>nopositional

Returns SlackDelivery.

Errors dispatch_failed.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

close()#

Close the modal. The app is told only if it asked to be (notify_on_close).

const delivery = await modal.close();

Returns SlackDelivery | undefined.

Errors dispatch_failed.

Live: needs the browser actor: Slack sends this only when a person does it in the client; no API does it as a person. The browser actor doesn't do this yet (#47), so for now the call is refused with action_requires and the test is skipped.

SlackFault#

Returned by SlackFixture.fault().

FieldType
idstring

undo()#

Remove a fault.

await fault.undo();

Returns nothing. Disposing the handle calls it.

Live: needs proxy mode: a fault changes what the agent's own calls get back, and only proxy mode sits between the agent and Slack. Proxy mode doesn't read the app's calls back live yet (#24), so for now the call is refused with action_requires and the test is skipped.

Types#

Plain values the handles return and take.

SlackTeam#

FieldType
idstring
namestring

SlackApps#

type SlackApps = SlackApp[];

SlackMessageInput#

FieldType
textstring | undefined
blocksunknown[] | undefined
metadataSlackMessageMetadata | undefined

SlackMessageMetadata#

FieldType
event_typestring
event_payloadRecord<string, unknown>

SlackUsers#

type SlackUsers = SlackUser[];

SlackConversations#

type SlackConversations = SlackConversation[];

SlackButtonRef#

FieldPython / RustType
labellabelstring | undefined
actionIdaction_idstring | undefined
valuevaluestring | undefined

SlackMenuRef#

FieldPython / RustType
labellabelstring | undefined
actionIdaction_idstring | undefined

SlackSuggestedPrompts#

type SlackSuggestedPrompts = Array<{ title: string; message: string }>;

SlackModals#

type SlackModals = SlackModal[];

SlackModalValues#

type SlackModalValues = Record<string, string | string[] | undefined>;

SlackMessages#

type SlackMessages = SlackMessage[];

SlackMembers#

type SlackMembers = Array<SlackUser | SlackApp>;

SlackReplies#

type SlackReplies = SlackMessage[];

SlackReactions#

type SlackReactions = SlackReaction[];

SlackReaction#

FieldType
emojistring
byArray<SlackUser | SlackApp>

SlackThreadStatus#

FieldPython / RustType
statestate"working" | "streaming" | "stopped" | "idle"
texttextstring | undefined
sessionStatussession_status"active" | "processing" | "suspended" | "closed" | undefined

SlackTranscript#

FieldType
entriesSlackTranscriptEntry[]
textstring

SlackTranscriptEntry#

FieldPython / RustType
ididstring
authorauthorSlackPrincipal
atatstring
texttextstring
controlscontrolsstring[]
editededitedboolean
depthdepthnumber
filesfilesstring[]
alsoInChannelalso_in_channeltrue | undefined
streamingstreaming"open" | "stopped" | "completed" | undefined
visibleTovisible_toSlackPrincipal | undefined

SlackPrincipal#

FieldType
idstring
namestring
kind"user" | "app"

SlackEphemeralMessages#

type SlackEphemeralMessages = SlackMessage[];

SlackMessageDeliveries#

type SlackMessageDeliveries = SlackDelivery[];

SlackDeliveries#

type SlackDeliveries = SlackDelivery[];

SlackApiCalls#

type SlackApiCalls = SlackApiCall[];

SlackApiCall#

FieldPython / RustType
ididstring
channelchannel"slack"
operationoperationstring
methodmethodstring
pathpathstring
atatstring
durationMsduration_msnumber
requestrequestunknown | undefined
responseStatusresponse_statusnumber
responseresponseunknown | undefined
errorerrorstring | undefined

SlackUninstallDeliveries#

type SlackUninstallDeliveries = SlackDelivery[];

This page is generated from the control API's routes by codegen/src/emit/docs.ts: suggest changes there.