glitch-javascript-sdk 0.5.5 → 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/cjs/index.js +240 -181
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Events.d.ts +50 -0
- package/dist/esm/api/Users.d.ts +8 -0
- package/dist/esm/index.js +77 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +58 -0
- package/package.json +1 -1
- package/src/api/Events.ts +71 -0
- package/src/api/Users.ts +12 -0
- package/src/routes/EventsRoute.ts +5 -0
- package/src/routes/UserRoutes.ts +2 -0
package/dist/esm/api/Events.d.ts
CHANGED
|
@@ -332,5 +332,55 @@ 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 Avatars accent, that will dictate the void in which it responds.
|
|
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 setAIAccent<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
365
|
+
/**
|
|
366
|
+
* Sets the AI Avatar to that it willr respond to users in the chat.
|
|
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 setAIAvatarRespondToChat<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
375
|
+
/**
|
|
376
|
+
* Sets the AI Avatar so that it will respond to you.
|
|
377
|
+
*
|
|
378
|
+
* @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
|
|
379
|
+
*
|
|
380
|
+
* @param event_id The id of the event.
|
|
381
|
+
*
|
|
382
|
+
* @returns promise
|
|
383
|
+
*/
|
|
384
|
+
static setAIAvatarRespondToMe<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
335
385
|
}
|
|
336
386
|
export default Events;
|
package/dist/esm/api/Users.d.ts
CHANGED
|
@@ -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
|
@@ -31342,10 +31342,12 @@ var UserRoutes = /** @class */ (function () {
|
|
|
31342
31342
|
clearStripeAuth: { url: '/users/clearStripeAuth', method: HTTP_METHODS.DELETE },
|
|
31343
31343
|
clearTikTokAuth: { url: '/users/clearTikTokAuth', method: HTTP_METHODS.DELETE },
|
|
31344
31344
|
clearYoutubeAuth: { url: '/users/clearYoutubeAuth', method: HTTP_METHODS.DELETE },
|
|
31345
|
+
clearStreamElementsAuth: { url: '/users/clearStreamElementsAuth', method: HTTP_METHODS.DELETE },
|
|
31345
31346
|
getTipsReceivedForMonth: { url: '/users/getTipsReceivedForMonth', method: HTTP_METHODS.GET },
|
|
31346
31347
|
getTipsGivenForMonth: { url: '/users/getTipsGivenForMonth', method: HTTP_METHODS.GET },
|
|
31347
31348
|
aggregateMonthlyReceivedTips: { url: '/users/aggregateMonthlyReceivedTips', method: HTTP_METHODS.GET },
|
|
31348
31349
|
aggregateMonthlyGivenTips: { url: '/users/aggregateMonthlyGivenTips', method: HTTP_METHODS.GET },
|
|
31350
|
+
getYoutubeChannels: { url: '/users/getYoutubeChannels', method: HTTP_METHODS.GET },
|
|
31349
31351
|
};
|
|
31350
31352
|
return UserRoutes;
|
|
31351
31353
|
}());
|
|
@@ -31585,6 +31587,16 @@ var Users = /** @class */ (function () {
|
|
|
31585
31587
|
Users.aggregateMonthlyGivenTips = function (params) {
|
|
31586
31588
|
return Requests.processRoute(UserRoutes.routes.aggregateMonthlyGivenTips, undefined, undefined, params);
|
|
31587
31589
|
};
|
|
31590
|
+
/**
|
|
31591
|
+
* Returns the user associated Youtube a channels a user has.
|
|
31592
|
+
*
|
|
31593
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userCreateDonationPage
|
|
31594
|
+
*
|
|
31595
|
+
* @returns promise
|
|
31596
|
+
*/
|
|
31597
|
+
Users.getYoutubeChannels = function (params) {
|
|
31598
|
+
return Requests.processRoute(UserRoutes.routes.getYoutubeChannels, undefined, undefined, params);
|
|
31599
|
+
};
|
|
31588
31600
|
return Users;
|
|
31589
31601
|
}());
|
|
31590
31602
|
|
|
@@ -31621,6 +31633,11 @@ var EventsRoutes = /** @class */ (function () {
|
|
|
31621
31633
|
enableWidget: { url: '/events/{event_id}/enableWidget/{widget_id}', method: HTTP_METHODS.POST },
|
|
31622
31634
|
disableWidget: { url: '/events/{event_id}/disableWidget/{widget_id}', method: HTTP_METHODS.DELETE },
|
|
31623
31635
|
getTips: { url: '/events/{event_id}/tips', method: HTTP_METHODS.GET },
|
|
31636
|
+
setAIAvatarPersonalityAttribute: { url: '/events/{event_id}/setAIAvatarPersonalityAttribute', method: HTTP_METHODS.POST },
|
|
31637
|
+
setAIAvatarName: { url: '/events/{event_id}/setAIAvatarName', method: HTTP_METHODS.POST },
|
|
31638
|
+
setAIAccent: { url: '/events/{event_id}/setAIAccent', method: HTTP_METHODS.POST },
|
|
31639
|
+
setAIAvatarRespondToChat: { url: '/events/{event_id}/setAIAvatarRespondToChat', method: HTTP_METHODS.POST },
|
|
31640
|
+
setAIAvatarRespondToMe: { url: '/events/{event_id}/setAIAvatarRespondToMe', method: HTTP_METHODS.POST },
|
|
31624
31641
|
};
|
|
31625
31642
|
return EventsRoutes;
|
|
31626
31643
|
}());
|
|
@@ -32040,6 +32057,66 @@ var Events = /** @class */ (function () {
|
|
|
32040
32057
|
Events.getTips = function (event_id, params) {
|
|
32041
32058
|
return Requests.processRoute(EventsRoutes.routes.getTips, {}, { event_id: event_id }, params);
|
|
32042
32059
|
};
|
|
32060
|
+
/**
|
|
32061
|
+
* Sets the personality attribute of the AI to adjust how it will respond.
|
|
32062
|
+
*
|
|
32063
|
+
* @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
|
|
32064
|
+
*
|
|
32065
|
+
* @param event_id The id of the event.
|
|
32066
|
+
*
|
|
32067
|
+
* @returns promise
|
|
32068
|
+
*/
|
|
32069
|
+
Events.setAIAvatarPersonalityAttribute = function (event_id, data, params) {
|
|
32070
|
+
return Requests.processRoute(EventsRoutes.routes.setAIAvatarPersonalityAttribute, data, { event_id: event_id }, params);
|
|
32071
|
+
};
|
|
32072
|
+
/**
|
|
32073
|
+
* Sets the AI Avatars name, which it can respond too.
|
|
32074
|
+
*
|
|
32075
|
+
* @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
|
|
32076
|
+
*
|
|
32077
|
+
* @param event_id The id of the event.
|
|
32078
|
+
*
|
|
32079
|
+
* @returns promise
|
|
32080
|
+
*/
|
|
32081
|
+
Events.setAIAvatarName = function (event_id, data, params) {
|
|
32082
|
+
return Requests.processRoute(EventsRoutes.routes.setAIAvatarName, data, { event_id: event_id }, params);
|
|
32083
|
+
};
|
|
32084
|
+
/**
|
|
32085
|
+
* Sets the AI Avatars accent, that will dictate the void in which it responds.
|
|
32086
|
+
*
|
|
32087
|
+
* @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
|
|
32088
|
+
*
|
|
32089
|
+
* @param event_id The id of the event.
|
|
32090
|
+
*
|
|
32091
|
+
* @returns promise
|
|
32092
|
+
*/
|
|
32093
|
+
Events.setAIAccent = function (event_id, data, params) {
|
|
32094
|
+
return Requests.processRoute(EventsRoutes.routes.setAIAccent, data, { event_id: event_id }, params);
|
|
32095
|
+
};
|
|
32096
|
+
/**
|
|
32097
|
+
* Sets the AI Avatar to that it willr respond to users in the chat.
|
|
32098
|
+
*
|
|
32099
|
+
* @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
|
|
32100
|
+
*
|
|
32101
|
+
* @param event_id The id of the event.
|
|
32102
|
+
*
|
|
32103
|
+
* @returns promise
|
|
32104
|
+
*/
|
|
32105
|
+
Events.setAIAvatarRespondToChat = function (event_id, data, params) {
|
|
32106
|
+
return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToChat, data, { event_id: event_id }, params);
|
|
32107
|
+
};
|
|
32108
|
+
/**
|
|
32109
|
+
* Sets the AI Avatar so that it will respond to you.
|
|
32110
|
+
*
|
|
32111
|
+
* @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay
|
|
32112
|
+
*
|
|
32113
|
+
* @param event_id The id of the event.
|
|
32114
|
+
*
|
|
32115
|
+
* @returns promise
|
|
32116
|
+
*/
|
|
32117
|
+
Events.setAIAvatarRespondToMe = function (event_id, data, params) {
|
|
32118
|
+
return Requests.processRoute(EventsRoutes.routes.setAIAvatarRespondToMe, data, { event_id: event_id }, params);
|
|
32119
|
+
};
|
|
32043
32120
|
return Events;
|
|
32044
32121
|
}());
|
|
32045
32122
|
|