glitch-javascript-sdk 0.5.0 → 0.5.2

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
@@ -17282,7 +17282,10 @@ var EventsRoutes = /** @class */ (function () {
17282
17282
  enableDonations: { url: '/events/{event_id}/enableDonations', method: HTTP_METHODS.POST },
17283
17283
  disableDonations: { url: '/events/{event_id}/disableDonations', method: HTTP_METHODS.POST },
17284
17284
  sendInvite: { url: '/events/{event_id}/sendInvite', method: HTTP_METHODS.POST },
17285
- acceptInvite: { url: '/events/{event_id}/acceptInvite', method: HTTP_METHODS.POST }
17285
+ acceptInvite: { url: '/events/{event_id}/acceptInvite', method: HTTP_METHODS.POST },
17286
+ addTwitchMulticast: { url: '/events/{event_id}/addTwitchMulticast', method: HTTP_METHODS.POST },
17287
+ addFacebookMulticast: { url: '/events/{event_id}/addFacebookMulticast', method: HTTP_METHODS.POST },
17288
+ addYoutubeMulticast: { url: '/events/{event_id}/addYoutubeMulticast', method: HTTP_METHODS.POST },
17286
17289
  };
17287
17290
  return EventsRoutes;
17288
17291
  }());
@@ -17410,6 +17413,45 @@ var Events = /** @class */ (function () {
17410
17413
  Events.removeRTMPSource = function (event_id, stream_id, data, params) {
17411
17414
  return Requests.processRoute(EventsRoutes.routes.removeRTMPSource, data, { event_id: event_id, subid: stream_id }, params);
17412
17415
  };
17416
+ /**
17417
+ * Add a Twitch Stream to the current event. The user must have authenticatd with Twitch.
17418
+ *
17419
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource
17420
+ *
17421
+ * @param event_id The id of the event.
17422
+ * @param data The data to be passed when adding an RTMP source.
17423
+ *
17424
+ * @returns promise
17425
+ */
17426
+ Events.addTwitchMulticast = function (event_id, data, params) {
17427
+ return Requests.processRoute(EventsRoutes.routes.addTwitchMulticast, data, { event_id: event_id }, params);
17428
+ };
17429
+ /**
17430
+ * Add a Facebook Stream to the current event. The user must have authenticatd with Facebook.
17431
+ *
17432
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource
17433
+ *
17434
+ * @param event_id The id of the event.
17435
+ * @param data The data to be passed when adding an RTMP source.
17436
+ *
17437
+ * @returns promise
17438
+ */
17439
+ Events.addFacebookMulticast = function (event_id, data, params) {
17440
+ return Requests.processRoute(EventsRoutes.routes.addFacebookMulticast, data, { event_id: event_id }, params);
17441
+ };
17442
+ /**
17443
+ * Add a Youtube Stream to the current event. The user must have authenticatd with Google.
17444
+ *
17445
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource
17446
+ *
17447
+ * @param event_id The id of the event.
17448
+ * @param data The data to be passed when adding an RTMP source.
17449
+ *
17450
+ * @returns promise
17451
+ */
17452
+ Events.addYoutubeMulticast = function (event_id, data, params) {
17453
+ return Requests.processRoute(EventsRoutes.routes.addYoutubeMulticast, data, { event_id: event_id }, params);
17454
+ };
17413
17455
  /**
17414
17456
  * A function that should be run on an interval to set the event as live when the live stream is active.
17415
17457
  *
@@ -18405,7 +18447,8 @@ var TipPackagePurchaseRoute = /** @class */ (function () {
18405
18447
  }
18406
18448
  TipPackagePurchaseRoute.routes = {
18407
18449
  stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
18408
- stripePaymentIntent: { url: '/tipspackagepurchases/stripepaymentintent', method: HTTP_METHODS.POST },
18450
+ getStripePaymentIntent: { url: '/tipspackagepurchases/getstripepaymentintent', method: HTTP_METHODS.POST },
18451
+ processStripePaymentIntent: { url: '/tipspackagepurchases/processstripepaymentintent', method: HTTP_METHODS.POST },
18409
18452
  };
18410
18453
  return TipPackagePurchaseRoute;
18411
18454
  }());
@@ -18430,8 +18473,18 @@ var TipPackagePurchases = /** @class */ (function () {
18430
18473
  *
18431
18474
  * @returns A promise
18432
18475
  */
18433
- TipPackagePurchases.stripePaymentIntent = function (data, params) {
18434
- return Requests.processRoute(TipPackagePurchaseRoute.routes.stripePaymentIntent, data, {}, params);
18476
+ TipPackagePurchases.getStripePaymentIntent = function (data, params) {
18477
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.getStripePaymentIntent, data, {}, params);
18478
+ };
18479
+ /**
18480
+ * Process the stripe payment intent after payment is complete.
18481
+ *
18482
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
18483
+ *
18484
+ * @returns A promise
18485
+ */
18486
+ TipPackagePurchases.processStripePaymentIntent = function (data, params) {
18487
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.processStripePaymentIntent, data, {}, params);
18435
18488
  };
18436
18489
  return TipPackagePurchases;
18437
18490
  }());