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.
@@ -299,5 +299,28 @@ declare class Events {
299
299
  * @returns promise
300
300
  */
301
301
  static updateRecording<T>(event_id: string, recording_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
302
+ /**
303
+ * Enable a widget for the current event.
304
+ *
305
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
306
+ *
307
+ * @param event_id The id of the event to update.
308
+ * @param widget_id The id of the widget to enable.
309
+ * @param data The data, which should contain the roles.
310
+ *
311
+ * @returns promise
312
+ */
313
+ static enableWidget<T>(event_id: string, widget_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
314
+ /**
315
+ * Disable a widget for the current event.
316
+ *
317
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
318
+ *
319
+ * @param event_id The id of the event to update.
320
+ * @param widget_id The id of the widget to disable.
321
+ *
322
+ * @returns promise
323
+ */
324
+ static disableWidget<T>(event_id: string, widget_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
302
325
  }
303
326
  export default Events;
@@ -111,5 +111,53 @@ declare class Users {
111
111
  * @returns promise
112
112
  */
113
113
  static createDonationPage<T>(): AxiosPromise<Response<T>>;
114
+ /**
115
+ * Clear Twitches authentication information from the current user.
116
+ *
117
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
118
+ *
119
+ * @returns promise
120
+ */
121
+ static clearTwitchAuth<T>(): AxiosPromise<Response<T>>;
122
+ /**
123
+ * Clear Facebook authentication information from the current user.
124
+ *
125
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
126
+ *
127
+ * @returns promise
128
+ */
129
+ static clearFacebookAuth<T>(): AxiosPromise<Response<T>>;
130
+ /**
131
+ * Clear Google authentication information from the current user.
132
+ *
133
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
134
+ *
135
+ * @returns promise
136
+ */
137
+ static clearGoogleAuth<T>(): AxiosPromise<Response<T>>;
138
+ /**
139
+ * Clear Stripe authentication information from the current user.
140
+ *
141
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
142
+ *
143
+ * @returns promise
144
+ */
145
+ static clearStripeAuth<T>(): AxiosPromise<Response<T>>;
146
+ /**
147
+ * Clear TikTok authentication information from the current user.
148
+ *
149
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
150
+ *
151
+ * @returns promise
152
+ */
153
+ static clearTikTokAuth<T>(): AxiosPromise<Response<T>>;
154
+ /**
155
+ * Clear YouTube authentication information from the current user.
156
+ *
157
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
158
+ *
159
+ * @returns promise
160
+ */
161
+ static clearYoutubeAuth<T>(): AxiosPromise<Response<T>>;
114
162
  }
115
163
  export default Users;
package/dist/esm/index.js CHANGED
@@ -31336,6 +31336,12 @@ var UserRoutes = /** @class */ (function () {
31336
31336
  uploadAvatar: { url: '/users/uploadAvatarImage', method: HTTP_METHODS.POST },
31337
31337
  uploadBanner: { url: '/users/uploadBannerImage', method: HTTP_METHODS.POST },
31338
31338
  createDonationPage: { url: '/users/createDonationPage', method: HTTP_METHODS.POST },
31339
+ clearTwitchAuth: { url: '/users/clearTwitchAuth', method: HTTP_METHODS.DELETE },
31340
+ clearFacebookAuth: { url: '/users/clearFacebookAuth', method: HTTP_METHODS.DELETE },
31341
+ clearGoogleAuth: { url: '/users/clearGoogleAuth', method: HTTP_METHODS.DELETE },
31342
+ clearStripeAuth: { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
31343
+ clearTikTokAuth: { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
31344
+ clearYoutubeAuth: { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
31339
31345
  };
31340
31346
  return UserRoutes;
31341
31347
  }());
@@ -31475,6 +31481,66 @@ var Users = /** @class */ (function () {
31475
31481
  Users.createDonationPage = function () {
31476
31482
  return Requests.processRoute(UserRoutes.routes.createDonationPage, {});
31477
31483
  };
31484
+ /**
31485
+ * Clear Twitches authentication information from the current user.
31486
+ *
31487
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31488
+ *
31489
+ * @returns promise
31490
+ */
31491
+ Users.clearTwitchAuth = function () {
31492
+ return Requests.processRoute(UserRoutes.routes.clearTwitchAuth, {});
31493
+ };
31494
+ /**
31495
+ * Clear Facebook authentication information from the current user.
31496
+ *
31497
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31498
+ *
31499
+ * @returns promise
31500
+ */
31501
+ Users.clearFacebookAuth = function () {
31502
+ return Requests.processRoute(UserRoutes.routes.clearFacebookAuth, {});
31503
+ };
31504
+ /**
31505
+ * Clear Google authentication information from the current user.
31506
+ *
31507
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31508
+ *
31509
+ * @returns promise
31510
+ */
31511
+ Users.clearGoogleAuth = function () {
31512
+ return Requests.processRoute(UserRoutes.routes.clearGoogleAuth, {});
31513
+ };
31514
+ /**
31515
+ * Clear Stripe authentication information from the current user.
31516
+ *
31517
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31518
+ *
31519
+ * @returns promise
31520
+ */
31521
+ Users.clearStripeAuth = function () {
31522
+ return Requests.processRoute(UserRoutes.routes.clearStripeAuth, {});
31523
+ };
31524
+ /**
31525
+ * Clear TikTok authentication information from the current user.
31526
+ *
31527
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31528
+ *
31529
+ * @returns promise
31530
+ */
31531
+ Users.clearTikTokAuth = function () {
31532
+ return Requests.processRoute(UserRoutes.routes.clearTikTokAuth, {});
31533
+ };
31534
+ /**
31535
+ * Clear YouTube authentication information from the current user.
31536
+ *
31537
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31538
+ *
31539
+ * @returns promise
31540
+ */
31541
+ Users.clearYoutubeAuth = function () {
31542
+ return Requests.processRoute(UserRoutes.routes.clearYoutubeAuth, {});
31543
+ };
31478
31544
  return Users;
31479
31545
  }());
31480
31546
 
@@ -31508,6 +31574,8 @@ var EventsRoutes = /** @class */ (function () {
31508
31574
  addTwitchMulticast: { url: '/events/{event_id}/addTwitchMulticast', method: HTTP_METHODS.POST },
31509
31575
  addFacebookMulticast: { url: '/events/{event_id}/addFacebookMulticast', method: HTTP_METHODS.POST },
31510
31576
  addYoutubeMulticast: { url: '/events/{event_id}/addYoutubeMulticast', method: HTTP_METHODS.POST },
31577
+ enableWidget: { url: '/events/{event_id}/enableWidget/{widget_id}', method: HTTP_METHODS.POST },
31578
+ disableWidget: { url: '/events/{event_id}/disableWidget/{widget_id}', method: HTTP_METHODS.DELETE },
31511
31579
  };
31512
31580
  return EventsRoutes;
31513
31581
  }());
@@ -31888,6 +31956,33 @@ var Events = /** @class */ (function () {
31888
31956
  Events.updateRecording = function (event_id, recording_id, data, params) {
31889
31957
  return Requests.processRoute(RecordingsRoute.routes.update, data, { event_id: event_id, recording_id: recording_id }, params);
31890
31958
  };
31959
+ /**
31960
+ * Enable a widget for the current event.
31961
+ *
31962
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
31963
+ *
31964
+ * @param event_id The id of the event to update.
31965
+ * @param widget_id The id of the widget to enable.
31966
+ * @param data The data, which should contain the roles.
31967
+ *
31968
+ * @returns promise
31969
+ */
31970
+ Events.enableWidget = function (event_id, widget_id, data, params) {
31971
+ return Requests.processRoute(EventsRoutes.routes.enableWidget, data, { event_id: event_id, widget_id: widget_id }, params);
31972
+ };
31973
+ /**
31974
+ * Disable a widget for the current event.
31975
+ *
31976
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording
31977
+ *
31978
+ * @param event_id The id of the event to update.
31979
+ * @param widget_id The id of the widget to disable.
31980
+ *
31981
+ * @returns promise
31982
+ */
31983
+ Events.disableWidget = function (event_id, widget_id, data, params) {
31984
+ return Requests.processRoute(EventsRoutes.routes.disableWidget, data, { event_id: event_id, widget_id: widget_id }, params);
31985
+ };
31891
31986
  return Events;
31892
31987
  }());
31893
31988