glitch-javascript-sdk 0.5.2 → 0.5.4

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/cjs/index.js CHANGED
@@ -17114,6 +17114,12 @@ var UserRoutes = /** @class */ (function () {
17114
17114
  uploadAvatar: { url: '/users/uploadAvatarImage', method: HTTP_METHODS.POST },
17115
17115
  uploadBanner: { url: '/users/uploadBannerImage', method: HTTP_METHODS.POST },
17116
17116
  createDonationPage: { url: '/users/createDonationPage', method: HTTP_METHODS.POST },
17117
+ clearTwitchAuth: { url: '/users/clearTwitchAuth', method: HTTP_METHODS.DELETE },
17118
+ clearFacebookAuth: { url: '/users/clearFacebookAuth', method: HTTP_METHODS.DELETE },
17119
+ clearGoogleAuth: { url: '/users/clearGoogleAuth', method: HTTP_METHODS.DELETE },
17120
+ clearStripeAuth: { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
17121
+ clearTikTokAuth: { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
17122
+ clearYoutubeAuth: { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
17117
17123
  };
17118
17124
  return UserRoutes;
17119
17125
  }());
@@ -17253,6 +17259,66 @@ var Users = /** @class */ (function () {
17253
17259
  Users.createDonationPage = function () {
17254
17260
  return Requests.processRoute(UserRoutes.routes.createDonationPage, {});
17255
17261
  };
17262
+ /**
17263
+ * Clear Twitches authentication information from the current user.
17264
+ *
17265
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17266
+ *
17267
+ * @returns promise
17268
+ */
17269
+ Users.clearTwitchAuth = function () {
17270
+ return Requests.processRoute(UserRoutes.routes.clearTwitchAuth, {});
17271
+ };
17272
+ /**
17273
+ * Clear Facebook authentication information from the current user.
17274
+ *
17275
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17276
+ *
17277
+ * @returns promise
17278
+ */
17279
+ Users.clearFacebookAuth = function () {
17280
+ return Requests.processRoute(UserRoutes.routes.clearFacebookAuth, {});
17281
+ };
17282
+ /**
17283
+ * Clear Google authentication information from the current user.
17284
+ *
17285
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17286
+ *
17287
+ * @returns promise
17288
+ */
17289
+ Users.clearGoogleAuth = function () {
17290
+ return Requests.processRoute(UserRoutes.routes.clearGoogleAuth, {});
17291
+ };
17292
+ /**
17293
+ * Clear Stripe authentication information from the current user.
17294
+ *
17295
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17296
+ *
17297
+ * @returns promise
17298
+ */
17299
+ Users.clearStripeAuth = function () {
17300
+ return Requests.processRoute(UserRoutes.routes.clearStripeAuth, {});
17301
+ };
17302
+ /**
17303
+ * Clear TikTok authentication information from the current user.
17304
+ *
17305
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17306
+ *
17307
+ * @returns promise
17308
+ */
17309
+ Users.clearTikTokAuth = function () {
17310
+ return Requests.processRoute(UserRoutes.routes.clearTikTokAuth, {});
17311
+ };
17312
+ /**
17313
+ * Clear YouTube authentication information from the current user.
17314
+ *
17315
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
17316
+ *
17317
+ * @returns promise
17318
+ */
17319
+ Users.clearYoutubeAuth = function () {
17320
+ return Requests.processRoute(UserRoutes.routes.clearYoutubeAuth, {});
17321
+ };
17256
17322
  return Users;
17257
17323
  }());
17258
17324
 
@@ -17286,6 +17352,8 @@ var EventsRoutes = /** @class */ (function () {
17286
17352
  addTwitchMulticast: { url: '/events/{event_id}/addTwitchMulticast', method: HTTP_METHODS.POST },
17287
17353
  addFacebookMulticast: { url: '/events/{event_id}/addFacebookMulticast', method: HTTP_METHODS.POST },
17288
17354
  addYoutubeMulticast: { url: '/events/{event_id}/addYoutubeMulticast', method: HTTP_METHODS.POST },
17355
+ enableWidget: { url: '/events/{event_id}/enableWidget/{widget_id}', method: HTTP_METHODS.POST },
17356
+ disableWidget: { url: '/events/{event_id}/disableWidget/{widget_id}', method: HTTP_METHODS.DELETE },
17289
17357
  };
17290
17358
  return EventsRoutes;
17291
17359
  }());
@@ -17666,6 +17734,33 @@ var Events = /** @class */ (function () {
17666
17734
  Events.updateRecording = function (event_id, recording_id, data, params) {
17667
17735
  return Requests.processRoute(RecordingsRoute.routes.update, data, { event_id: event_id, recording_id: recording_id }, params);
17668
17736
  };
17737
+ /**
17738
+ * Enable a widget for the current event.
17739
+ *
17740
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
17741
+ *
17742
+ * @param event_id The id of the event to update.
17743
+ * @param widget_id The id of the widget to enable.
17744
+ * @param data The data, which should contain the roles.
17745
+ *
17746
+ * @returns promise
17747
+ */
17748
+ Events.enableWidget = function (event_id, widget_id, data, params) {
17749
+ return Requests.processRoute(EventsRoutes.routes.enableWidget, data, { event_id: event_id, widget_id: widget_id }, params);
17750
+ };
17751
+ /**
17752
+ * Disable a widget for the current event.
17753
+ *
17754
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
17755
+ *
17756
+ * @param event_id The id of the event to update.
17757
+ * @param widget_id The id of the widget to disable.
17758
+ *
17759
+ * @returns promise
17760
+ */
17761
+ Events.disableWidget = function (event_id, widget_id, data, params) {
17762
+ return Requests.processRoute(EventsRoutes.routes.disableWidget, data, { event_id: event_id, widget_id: widget_id }, params);
17763
+ };
17669
17764
  return Events;
17670
17765
  }());
17671
17766