glitch-javascript-sdk 0.5.5 → 0.5.6

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.
@@ -332,5 +332,45 @@ declare class Events {
332
332
  * @returns promise
333
333
  */
334
334
  static getTips<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
335
+ /**
336
+ * Sets the personality attribute of the AI to adjust how it will respond.
337
+ *
338
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
339
+ *
340
+ * @param event_id The id of the event.
341
+ *
342
+ * @returns promise
343
+ */
344
+ static setAIAvatarPersonalityAttribute<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
345
+ /**
346
+ * Sets the AI Avatars name, which it can respond too.
347
+ *
348
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
349
+ *
350
+ * @param event_id The id of the event.
351
+ *
352
+ * @returns promise
353
+ */
354
+ static setAIAvatarName<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
355
+ /**
356
+ * Sets the AI Avatar to that it willr respond to users in the chat.
357
+ *
358
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
359
+ *
360
+ * @param event_id The id of the event.
361
+ *
362
+ * @returns promise
363
+ */
364
+ static setAIAvatarRespondToChat<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
365
+ /**
366
+ * Sets the AI Avatar so that it will respond to you.
367
+ *
368
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
369
+ *
370
+ * @param event_id The id of the event.
371
+ *
372
+ * @returns promise
373
+ */
374
+ static setAIAvatarRespondToMe<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
335
375
  }
336
376
  export default Events;
@@ -191,5 +191,13 @@ declare class Users {
191
191
  * @returns promise
192
192
  */
193
193
  static aggregateMonthlyGivenTips<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
194
+ /**
195
+ * Returns the user associated Youtube a channels a user has.
196
+ *
197
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
198
+ *
199
+ * @returns promise
200
+ */
201
+ static getYoutubeChannels<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
194
202
  }
195
203
  export default Users;
package/dist/esm/index.js CHANGED
@@ -31346,6 +31346,7 @@ var UserRoutes = /** @class */ (function () {
31346
31346
  getTipsGivenForMonth: { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
31347
31347
  aggregateMonthlyReceivedTips: { url: '/users/aggregateMonthlyReceivedTips', method: HTTP_METHODS.GET },
31348
31348
  aggregateMonthlyGivenTips: { url: '/users/aggregateMonthlyGivenTips', method: HTTP_METHODS.GET },
31349
+ getYoutubeChannels: { url: '/users/getYoutubeChannels', method: HTTP_METHODS.GET },
31349
31350
  };
31350
31351
  return UserRoutes;
31351
31352
  }());
@@ -31585,6 +31586,16 @@ var Users = /** @class */ (function () {
31585
31586
  Users.aggregateMonthlyGivenTips = function (params) {
31586
31587
  return Requests.processRoute(UserRoutes.routes.aggregateMonthlyGivenTips, undefined, undefined, params);
31587
31588
  };
31589
+ /**
31590
+ * Returns the user associated Youtube a channels a user has.
31591
+ *
31592
+ * @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
31593
+ *
31594
+ * @returns promise
31595
+ */
31596
+ Users.getYoutubeChannels = function (params) {
31597
+ return Requests.processRoute(UserRoutes.routes.getYoutubeChannels, undefined, undefined, params);
31598
+ };
31588
31599
  return Users;
31589
31600
  }());
31590
31601
 
@@ -31621,6 +31632,10 @@ var EventsRoutes = /** @class */ (function () {
31621
31632
  enableWidget: { url: '/events/{event_id}/enableWidget/{widget_id}', method: HTTP_METHODS.POST },
31622
31633
  disableWidget: { url: '/events/{event_id}/disableWidget/{widget_id}', method: HTTP_METHODS.DELETE },
31623
31634
  getTips: { url: '/events/{event_id}/tips', method: HTTP_METHODS.GET },
31635
+ setAIAvatarPersonalityAttribute: { url: '/events/{event_id}/setAIAvatarPersonalityAttribute', method: HTTP_METHODS.POST },
31636
+ setAIAvatarName: { url: '/events/{event_id}/setAIAvatarName', method: HTTP_METHODS.POST },
31637
+ setAIAvatarRespondToChat: { url: '/events/{event_id}/setAIAvatarRespondToChat', method: HTTP_METHODS.POST },
31638
+ setAIAvatarRespondToMe: { url: '/events/{event_id}/setAIAvatarRespondToMe', method: HTTP_METHODS.POST },
31624
31639
  };
31625
31640
  return EventsRoutes;
31626
31641
  }());
@@ -32040,6 +32055,54 @@ var Events = /** @class */ (function () {
32040
32055
  Events.getTips = function (event_id, params) {
32041
32056
  return Requests.processRoute(EventsRoutes.routes.getTips, {}, { event_id: event_id }, params);
32042
32057
  };
32058
+ /**
32059
+ * Sets the personality attribute of the AI to adjust how it will respond.
32060
+ *
32061
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
32062
+ *
32063
+ * @param event_id The id of the event.
32064
+ *
32065
+ * @returns promise
32066
+ */
32067
+ Events.setAIAvatarPersonalityAttribute = function (event_id, data, params) {
32068
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarPersonalityAttribute, data, { event_id: event_id }, params);
32069
+ };
32070
+ /**
32071
+ * Sets the AI Avatars name, which it can respond too.
32072
+ *
32073
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
32074
+ *
32075
+ * @param event_id The id of the event.
32076
+ *
32077
+ * @returns promise
32078
+ */
32079
+ Events.setAIAvatarName = function (event_id, data, params) {
32080
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarName, data, { event_id: event_id }, params);
32081
+ };
32082
+ /**
32083
+ * Sets the AI Avatar to that it willr respond to users in the chat.
32084
+ *
32085
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
32086
+ *
32087
+ * @param event_id The id of the event.
32088
+ *
32089
+ * @returns promise
32090
+ */
32091
+ Events.setAIAvatarRespondToChat = function (event_id, data, params) {
32092
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToChat, data, { event_id: event_id }, params);
32093
+ };
32094
+ /**
32095
+ * Sets the AI Avatar so that it will respond to you.
32096
+ *
32097
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
32098
+ *
32099
+ * @param event_id The id of the event.
32100
+ *
32101
+ * @returns promise
32102
+ */
32103
+ Events.setAIAvatarRespondToMe = function (event_id, data, params) {
32104
+ return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToMe, data, { event_id: event_id }, params);
32105
+ };
32043
32106
  return Events;
32044
32107
  }());
32045
32108