n8n-nodes-base
Version:
Base nodes of n8n
45 lines (41 loc) • 1.19 kB
text/typescript
/**
* Microsoft Teams Node - Version 1
* Discriminator: resource=chatMessage, operation=create
*/
interface Credentials {
microsoftTeamsOAuth2Api: CredentialReference;
}
/** Create a channel */
export type MicrosoftTeamsV1ChatMessageCreateParams = {
resource: 'chatMessage';
operation: 'create';
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
chatId?: string | Expression<string>;
/**
* The type of the content
* @default text
*/
messageType?: 'text' | 'html' | Expression<string>;
/**
* The content of the item
*/
message?: string | Expression<string> | PlaceholderValue;
/**
* Other options to set
* @default {}
*/
options?: {
/** Whether to append a link to this workflow at the end of the message. This is helpful if you have many workflows sending messages.
* @default true
*/
includeLinkToWorkflow?: boolean | Expression<boolean>;
};
};
export type MicrosoftTeamsV1ChatMessageCreateNode = {
type: 'n8n-nodes-base.microsoftTeams';
version: 1;
credentials?: Credentials;
config: NodeConfig<MicrosoftTeamsV1ChatMessageCreateParams>;
};