import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class Events { /** * List all the events * * @see https://api.glitch.fun/api/documentation#/Event%20Route/resourceEventList * * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Create a new event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/newEventResourceStorage * * @param data The data to be passed when creating an event. * * @returns Promise */ static create(data: object, params?: Record): AxiosPromise>; /** * Update a event * * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventStorage * * @param event_id The id of the event to update. * @param data The data to update. * * @returns promise */ static update(event_id: string, data: object, params?: Record): AxiosPromise>; /** * Retrieve the information for a single event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/showEventStorage * * @param event_id The id fo the event to retrieve. * * @returns promise */ static view(event_id: string, params?: Record): AxiosPromise>; /** * Deletes a event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/destoryEventStorage * * @param event_id The id of the event to delete. * @returns promise */ static delete(event_id: string, params?: Record): AxiosPromise>; /** * The event is synced with Invirtu for the lie streams. This will allow you to update * * * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventStorage * * @param event_id The id of the event to update. * @param data The data to update. * * @returns promise */ static updateInvirtuEvent(event_id: string, data: object, params?: Record): AxiosPromise>; /** * Add an RTMP source to multicast a stream too. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource * * @param event_id The id of the event. * @param data The data to be passed when adding an RTMP source. * * @returns promise */ static addRTMPSource(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Update an RTMP Source for multicasing. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource * * @param event_id The id of the event. * @param data The data to be passed when adding an RTMP source. * * @returns promise */ static updateRTMPSource(event_id: string, stream_id: string, data?: object, params?: Record): AxiosPromise>; /** * Remove a RTMP source for multicasing. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource * * @param event_id The id of the event. * @param data The data to be passed when adding an RTMP source. * * @returns promise */ static removeRTMPSource(event_id: string, stream_id: string, data?: object, params?: Record): AxiosPromise>; /** * Add a Twitch Stream to the current event. The user must have authenticatd with Twitch. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource * * @param event_id The id of the event. * @param data The data to be passed when adding an RTMP source. * * @returns promise */ static addTwitchMulticast(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Add a Facebook Stream to the current event. The user must have authenticatd with Facebook. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource * * @param event_id The id of the event. * @param data The data to be passed when adding an RTMP source. * * @returns promise */ static addFacebookMulticast(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Add a Youtube Stream to the current event. The user must have authenticatd with Google. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/addRTMPSource * * @param event_id The id of the event. * @param data The data to be passed when adding an RTMP source. * * @returns promise */ static addYoutubeMulticast(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * A function that should be run on an interval to set the event as live when the live stream is active. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/syncLive * * @param event_id The id of the event. * * @returns promise */ static syncAsLive(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Updates the main image for the event using a File object. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/uploadMainEventImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadMainImageFile(event_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * Updates the main image for the event using a Blob. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/uploadMainEventImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadMainImageBlob(event_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; /** * Updates the banner image for the event using a File object. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/uploadBannerEventImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadBannerImageFile(event_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * Updates the banner image for the event using a Blob. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/uploadBannerEventImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadBannerImageBlob(event_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; /** * Enable Broadcast Mode. Broadcast mode is when the live stream is broadcasted from the game play through a protocol * such as screen sharing. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/enableBroadcastMode * * @param event_id The id of the event. * * @returns promise */ static enableBroadcastMode(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Enable livestream mode, in which the stream will be delivered to the invirtu RTMP endpoint for * streaming. * * @param event_id The id of the event. * * @returns promise */ static enableLivestreamMode(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Sends content that will appear on-screen to the user. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/sendOnScreenContent * * @param event_id The id of the event. * @param data The information to send on-screen. * * @returns promise */ static sendOnScreenContent(event_id: string, data: object, params?: Record): AxiosPromise>; /** * Uploads an image that can be used and overlay later. A File object is used. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/uploadOverlayImage * * @param event_id The id of the event. * @param file The image as a file. * @param data Any additional data to be sent in the request. * * @returns promise */ static addOverlayAsFile(event_id: string, file: File, data?: object): AxiosPromise>; /** * Uploads an image that can be used and overlay later. A blob is used. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/uploadOverlayImage * * @param event_id The id of the event. * @param blob Image data as a blob * @param data Any additional data to be sent in the request. * * @returns promise */ static addOverlayAsBlob(event_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; /** * Deletes an overlay image. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/destoryOverlayStorage * * @param event_id The id of the event. * @param overlay_id The id of the overlay. * * @returns promise */ static removeOverlay(event_id: string, overlay_id: string, params?: Record): AxiosPromise>; /** * Enables an overlay so that it will appear on screen. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/enableOverlayImage * * @param event_id The id of the event. * @param overlay_id The id of the overlay. * * @returns promise */ static enableOverlay(event_id: string, overlay_id: string, data?: object, params?: Record): AxiosPromise>; /** * Disables the overlay so it no longer appears on-screen. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay * * @param event_id The id of the event. * * @returns promise */ static disableOverlay(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Enable the donations to appear on-screen * * @see https://api.glitch.fun/api/documentation#/Event%20Route/enableDonations * * @param event_id The id of the event. * * @returns promise */ static enableDonations(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Disable the donations and remove from the screen. * * @param event_id * @returns */ static disableDonations(event_id: string, data?: object, params?: Record): AxiosPromise>; static sendInvite(event_id: string, data: object, params?: Record): AxiosPromise>; static acceptInvite(event_id: string, token: string, params?: Record): AxiosPromise>; /** * Update a recording related to an event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording * * @param event_id The id of the event to update. * @param recording_id The id of the recording to update. * @param data The data to update. * * @returns promise */ static updateRecording(event_id: string, recording_id: string, data: object, params?: Record): AxiosPromise>; /** * Enable a widget for the current event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording * * @param event_id The id of the event to update. * @param widget_id The id of the widget to enable. * @param data The data, which should contain the roles. * * @returns promise */ static enableWidget(event_id: string, widget_id: string, data: object, params?: Record): AxiosPromise>; /** * Disable a widget for the current event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording * * @param event_id The id of the event to update. * @param widget_id The id of the widget to disable. * * @returns promise */ static disableWidget(event_id: string, widget_id: string, data: object, params?: Record): AxiosPromise>; /** * Get all the tips associated with the current event. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/updateEventRecording * * @param event_id The id of the event to update. * * @returns promise */ static getTips(event_id: string, params?: Record): AxiosPromise>; /** * Sets the personality attribute of the AI to adjust how it will respond. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay * * @param event_id The id of the event. * * @returns promise */ static setAIAvatarPersonalityAttribute(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Sets the AI Avatars name, which it can respond too. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay * * @param event_id The id of the event. * * @returns promise */ static setAIAvatarName(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Sets the AI Avatars accent, that will dictate the void in which it responds. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay * * @param event_id The id of the event. * * @returns promise */ static setAIAccent(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Sets the AI Avatar to that it willr respond to users in the chat. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay * * @param event_id The id of the event. * * @returns promise */ static setAIAvatarRespondToChat(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Sets the AI Avatar so that it will respond to you. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/disableOverlay * * @param event_id The id of the event. * * @returns promise */ static setAIAvatarRespondToMe(event_id: string, data?: object, params?: Record): AxiosPromise>; /** * Get the associated statistics for the campaign. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/getStreamStatistics * * @returns promise */ static statistics(event_id: string, params?: Record): AxiosPromise>; /** * Get the stream view counts for the campaign. * * @see https://api.glitch.fun/api/documentation#/Event%20Route/getEventStreamViewCounts * * @returns promise */ static getStreamViewCounts(event_id: string, params?: Record): AxiosPromise>; } export default Events;