n8n-nodes-base
Version:
Base nodes of n8n
30 lines (26 loc) • 917 B
text/typescript
/**
* Mattermost Node - Version 1
* Discriminator: resource=channel, operation=addUser
*/
interface Credentials {
mattermostApi: CredentialReference;
}
/** Add a user to a channel */
export type MattermostV1ChannelAddUserParams = {
resource: 'channel';
operation: 'addUser';
/**
* The ID of the channel to invite user to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
channelId?: string | Expression<string>;
/**
* The ID of the user to invite into channel. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
userId?: string | Expression<string>;
};
export type MattermostV1ChannelAddUserNode = {
type: 'n8n-nodes-base.mattermost';
version: 1;
credentials?: Credentials;
config: NodeConfig<MattermostV1ChannelAddUserParams>;
};