/** * Matrix Node - Version 1 * Discriminator: resource=message, operation=getAll */ interface Credentials { matrixApi: CredentialReference; } /** Get many messages from a room */ export type MatrixV1MessageGetAllParams = { resource: 'message'; operation: 'getAll'; /** * The token to start returning events from. This token can be obtained from a prev_batch token returned for each room by the sync API. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ roomId?: string | Expression; /** * 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; /** * Other Options * @default {} */ otherOptions?: { /** A JSON RoomEventFilter to filter returned events with. More information can be found on this <a href="https://matrix.org/docs/spec/client_server/r0.6.0">page</a>. */ filter?: string | Expression | PlaceholderValue; }; }; export type MatrixV1MessageGetAllOutput = { age?: number; content?: { body?: string; msgtype?: string; }; event_id?: string; origin_server_ts?: number; room_id?: string; sender?: string; type?: string; unsigned?: { age?: number; membership?: string; transaction_id?: string; }; user_id?: string; }; export type MatrixV1MessageGetAllNode = { type: 'n8n-nodes-base.matrix'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };