glitch-javascript-sdk 0.5.6 → 0.5.7

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/index.d.ts CHANGED
@@ -1423,6 +1423,16 @@ declare class Events {
1423
1423
  * @returns promise
1424
1424
  */
1425
1425
  static setAIAvatarName<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
1426
+ /**
1427
+ * Sets the AI Avatars accent, that will dictate the void in which it responds.
1428
+ *
1429
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
1430
+ *
1431
+ * @param event_id The id of the event.
1432
+ *
1433
+ * @returns promise
1434
+ */
1435
+ static setAIAccent<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
1426
1436
  /**
1427
1437
  * Sets the AI Avatar to that it willr respond to users in the chat.
1428
1438
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Events.ts CHANGED
@@ -509,6 +509,21 @@ class Events {
509
509
  return Requests.processRoute(EventsRoutes.routes.setAIAvatarName, data, { event_id: event_id }, params);
510
510
  }
511
511
 
512
+ /**
513
+ * Sets the AI Avatars accent, that will dictate the void in which it responds.
514
+ *
515
+ * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
516
+ *
517
+ * @param event_id The id of the event.
518
+ *
519
+ * @returns promise
520
+ */
521
+ public static setAIAccent<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
522
+
523
+ return Requests.processRoute(EventsRoutes.routes.setAIAccent, data, { event_id: event_id }, params);
524
+ }
525
+
526
+
512
527
  /**
513
528
  * Sets the AI Avatar to that it willr respond to users in the chat.
514
529
  *
@@ -35,6 +35,7 @@ class EventsRoutes {
35
35
  getTips : {url : '/events/{event_id}/tips', method : HTTP_METHODS.GET},
36
36
  setAIAvatarPersonalityAttribute : {url : '/events/{event_id}/setAIAvatarPersonalityAttribute', method : HTTP_METHODS.POST},
37
37
  setAIAvatarName : {url : '/events/{event_id}/setAIAvatarName', method : HTTP_METHODS.POST},
38
+ setAIAccent : {url : '/events/{event_id}/setAIAccent', method : HTTP_METHODS.POST},
38
39
  setAIAvatarRespondToChat : {url : '/events/{event_id}/setAIAvatarRespondToChat', method : HTTP_METHODS.POST},
39
40
  setAIAvatarRespondToMe : {url : '/events/{event_id}/setAIAvatarRespondToMe', method : HTTP_METHODS.POST},
40
41
  };
@@ -19,6 +19,7 @@ class UserRoutes {
19
19
  clearStripeAuth : { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
20
20
  clearTikTokAuth : { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
21
21
  clearYoutubeAuth : { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
22
+ clearStreamElementsAuth : { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
22
23
  getTipsReceivedForMonth : { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
23
24
  getTipsGivenForMonth : { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
24
25
  aggregateMonthlyReceivedTips : { url: '/users/aggregateMonthlyReceivedTips', method: HTTP_METHODS.GET },