glitch-javascript-sdk 0.5.1 → 0.5.3

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
 
@@ -17282,7 +17348,10 @@ var EventsRoutes = /** @class */ (function () {
17282
17348
  enableDonations: { url: '/events/{event_id}/enableDonations', method: HTTP_METHODS.POST },
17283
17349
  disableDonations: { url: '/events/{event_id}/disableDonations', method: HTTP_METHODS.POST },
17284
17350
  sendInvite: { url: '/events/{event_id}/sendInvite', method: HTTP_METHODS.POST },
17285
- acceptInvite: { url: '/events/{event_id}/acceptInvite', method: HTTP_METHODS.POST }
17351
+ acceptInvite: { url: '/events/{event_id}/acceptInvite', method: HTTP_METHODS.POST },
17352
+ addTwitchMulticast: { url: '/events/{event_id}/addTwitchMulticast', method: HTTP_METHODS.POST },
17353
+ addFacebookMulticast: { url: '/events/{event_id}/addFacebookMulticast', method: HTTP_METHODS.POST },
17354
+ addYoutubeMulticast: { url: '/events/{event_id}/addYoutubeMulticast', method: HTTP_METHODS.POST },
17286
17355
  };
17287
17356
  return EventsRoutes;
17288
17357
  }());
@@ -17410,6 +17479,45 @@ var Events = /** @class */ (function () {
17410
17479
  Events.removeRTMPSource = function (event_id, stream_id, data, params) {
17411
17480
  return Requests.processRoute(EventsRoutes.routes.removeRTMPSource, data, { event_id: event_id, subid: stream_id }, params);
17412
17481
  };
17482
+ /**
17483
+ * Add a Twitch Stream to the current event. The user must have authenticatd with Twitch.
17484
+ *
17485
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource
17486
+ *
17487
+ * @param event_id The id of the event.
17488
+ * @param data The data to be passed when adding an RTMP source.
17489
+ *
17490
+ * @returns promise
17491
+ */
17492
+ Events.addTwitchMulticast = function (event_id, data, params) {
17493
+ return Requests.processRoute(EventsRoutes.routes.addTwitchMulticast, data, { event_id: event_id }, params);
17494
+ };
17495
+ /**
17496
+ * Add a Facebook Stream to the current event. The user must have authenticatd with Facebook.
17497
+ *
17498
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource
17499
+ *
17500
+ * @param event_id The id of the event.
17501
+ * @param data The data to be passed when adding an RTMP source.
17502
+ *
17503
+ * @returns promise
17504
+ */
17505
+ Events.addFacebookMulticast = function (event_id, data, params) {
17506
+ return Requests.processRoute(EventsRoutes.routes.addFacebookMulticast, data, { event_id: event_id }, params);
17507
+ };
17508
+ /**
17509
+ * Add a Youtube Stream to the current event. The user must have authenticatd with Google.
17510
+ *
17511
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource
17512
+ *
17513
+ * @param event_id The id of the event.
17514
+ * @param data The data to be passed when adding an RTMP source.
17515
+ *
17516
+ * @returns promise
17517
+ */
17518
+ Events.addYoutubeMulticast = function (event_id, data, params) {
17519
+ return Requests.processRoute(EventsRoutes.routes.addYoutubeMulticast, data, { event_id: event_id }, params);
17520
+ };
17413
17521
  /**
17414
17522
  * A function that should be run on an interval to set the event as live when the live stream is active.
17415
17523
  *