/** * Mattermost Node - Version 1 * Discriminator: resource=channel, operation=search */ interface Credentials { mattermostApi: CredentialReference; } /** Search for a channel */ export type MattermostV1ChannelSearchParams = { resource: 'channel'; operation: 'search'; /** * The Mattermost Team. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ teamId?: string | Expression; /** * The search term for Channels in a Team */ term?: string | Expression | PlaceholderValue; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 100 */ limit?: number | Expression; }; export type MattermostV1ChannelSearchNode = { type: 'n8n-nodes-base.mattermost'; version: 1; credentials?: Credentials; config: NodeConfig; };