glitch-javascript-sdk 0.6.0 → 0.6.1

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/dist/index.d.ts CHANGED
@@ -1029,6 +1029,22 @@ declare class Users {
1029
1029
  * @returns promise
1030
1030
  */
1031
1031
  static clearYoutubeAuth<T>(): AxiosPromise<Response<T>>;
1032
+ /**
1033
+ * Clear Reddit authentication information from the current user.
1034
+ *
1035
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
1036
+ *
1037
+ * @returns promise
1038
+ */
1039
+ static clearRedditAuth<T>(): AxiosPromise<Response<T>>;
1040
+ /**
1041
+ * Clear Twitter authentication information from the current user.
1042
+ *
1043
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
1044
+ *
1045
+ * @returns promise
1046
+ */
1047
+ static clearTwitterAuth<T>(): AxiosPromise<Response<T>>;
1032
1048
  /**
1033
1049
  * Clear StreamElements authentication information from the current user.
1034
1050
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Users.ts CHANGED
@@ -231,6 +231,30 @@ class Users {
231
231
  return Requests.processRoute(UserRoutes.routes.clearYoutubeAuth, {});
232
232
  }
233
233
 
234
+ /**
235
+ * Clear Reddit authentication information from the current user.
236
+ *
237
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
238
+ *
239
+ * @returns promise
240
+ */
241
+ public static clearRedditAuth<T>(): AxiosPromise<Response<T>> {
242
+
243
+ return Requests.processRoute(UserRoutes.routes.clearRedditAuth, {});
244
+ }
245
+
246
+ /**
247
+ * Clear Twitter authentication information from the current user.
248
+ *
249
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
250
+ *
251
+ * @returns promise
252
+ */
253
+ public static clearTwitterAuth<T>(): AxiosPromise<Response<T>> {
254
+
255
+ return Requests.processRoute(UserRoutes.routes.clearTwitterAuth, {});
256
+ }
257
+
234
258
  /**
235
259
  * Clear StreamElements authentication information from the current user.
236
260
  *
@@ -19,6 +19,8 @@ class UserRoutes {
19
19
  clearStripeAuth : { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
20
20
  clearTikTokAuth : { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
21
21
  clearYoutubeAuth : { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
22
+ clearRedditAuth : { url: '/users/clearRedditAuth', method: HTTP_METHODS.DELETE },
23
+ clearTwitterAuth : { url: '/users/clearTwitterAuth', method: HTTP_METHODS.DELETE },
22
24
  clearStreamElementsAuth : { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
23
25
  getTipsReceivedForMonth : { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
24
26
  getTipsGivenForMonth : { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },