@rocket.chat/forked-matrix-bot-sdk
Version:
TypeScript/JavaScript SDK for Matrix bots and appservices
30 lines (29 loc) • 675 B
TypeScript
/**
* This is the response format documented in
* https://matrix.org/docs/spec/application_service/r0.1.2#get-matrix-app-v1-thirdparty-protocol-protocol
* @category Application services
*/
export interface IApplicationServiceProtocol {
user_fields: string[];
location_fields: string[];
icon: string;
field_types: {
[field: string]: IFieldType;
};
instances: {
[name: string]: IProtocolInstance;
};
}
interface IFieldType {
regexp: string;
placeholder: string;
}
interface IProtocolInstance {
desc: string;
icon: string;
fields: {
[field: string]: string;
};
network_id: string;
}
export {};