Skip to content

Commit 4efec1e

Browse files
committed
review: Add comments to ingest actions params
1 parent d4fb25a commit 4efec1e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

integrations/slack/src/actions/types.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,32 @@ interface ActionBaseParams {
1616
}
1717

1818
interface IngestSlackConversationWithConversation extends ActionBaseParams {
19+
/**
20+
* Used when the ingestion originates from a Slack conversation shortcut.
21+
* The target conversation in this case is both the conversation to ingest
22+
* and the one where notifications are sent.
23+
* Identified by the `channelId` and `messageTs` values.
24+
*/
1925
conversationToIngest: {
2026
channelId: string;
2127
messageTs: string;
2228
};
29+
/**
30+
* Not present when the ingestion is triggered directly from the conversation shortcut context.
31+
*/
2332
text?: never;
2433
}
2534

2635
interface IngestSlackConversationWithText extends ActionBaseParams {
36+
/**
37+
* Used when the ingestion originates from outside the conversation to ingest,
38+
* for example from a slash command that includes a permalink in the command text.
39+
* The `text` field contains the permalink identifying the target conversation.
40+
*/
2741
text: string;
42+
/**
43+
* Not present when the ingestion is triggered using a text or link reference.
44+
*/
2845
conversationToIngest?: never;
2946
}
3047

0 commit comments

Comments
 (0)