@insignia-education/api-sdk-js 0.15.112 → 0.15.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/v1/Users.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Users.js
CHANGED
|
@@ -273,6 +273,8 @@ export default class Users {
|
|
|
273
273
|
linkToken: () => client.post(`${base}/link-token`),
|
|
274
274
|
/** Fallback flow: completes a link the bot proposed after an organic (no-payload) /start, given the { chat_id, username, expires_at, signature } it replied with. */
|
|
275
275
|
connect: (data) => client.post(`${base}/connect`, data),
|
|
276
|
+
/** Undoes connect()/linkToken() — clears telegram/telegram_chat_id/telegram_verified_at, so the account reads as never-connected. */
|
|
277
|
+
disconnect: () => client.del(base),
|
|
276
278
|
};
|
|
277
279
|
}
|
|
278
280
|
}
|