in lib/connection.ts [112:121]
private getMethodsFromInterface(api: API) {
return Object.keys(api).reduce((acc, key) => {
if (typeof api[key] === 'object') {
acc.push(...this.getMethodsFromInterface(api[key] as API).map(subKey => `${key}.${subKey}`));
} else {
acc.push(key);
}
return acc;
}, [] as string[]);
}