2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-10-12 01:05:16 -07:00
|
|
|
|
|
|
|
export class MatrixApi implements ICredentialType {
|
|
|
|
name = 'matrixApi';
|
|
|
|
displayName = 'Matrix API';
|
|
|
|
documentationUrl = 'matrix';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-10-12 01:05:16 -07:00
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-12 01:05:16 -07:00
|
|
|
default: '',
|
|
|
|
},
|
2020-10-15 14:01:07 -07:00
|
|
|
{
|
|
|
|
displayName: 'Homeserver URL',
|
|
|
|
name: 'homeserverUrl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-15 14:01:07 -07:00
|
|
|
default: 'https://matrix-client.matrix.org',
|
|
|
|
},
|
2020-10-12 01:05:16 -07:00
|
|
|
];
|
|
|
|
}
|