import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class Teams { /** * List all the teams * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamsList * * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Create a new team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamCreate * * @param data The data to be passed when creating a team. * * @returns Promise */ static create(data: object, params?: Record): AxiosPromise>; /** * Update a team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamUpdate * * @param team_id The id of the team to update. * @param data The data to update. * * @returns promise */ static update(team_id: string, data: object, params?: Record): AxiosPromise>; /** * Retrieve the information for a single team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamShow * * @param team_id The id fo the team to retrieve. * * @returns promise */ static view(team_id: string, params?: Record): AxiosPromise>; /** * Deletes a team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamDelete * * @param team_id The id of the team to delete. * @returns promise */ static delete(team_id: string, params?: Record): AxiosPromise>; /** * Updates the main image for the team using a File object. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamUploadMainImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadMainImageFile(team_id: string, file: File, data?: object): AxiosPromise>; /** * Updates the main image for the team using a Blob. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamUploadMainImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadMainImageBlob(team_id: string, blob: Blob, data?: object): AxiosPromise>; /** * Updates the banner image for the team using a File object. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamUploadMainImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadBannerImageFile(team_id: string, file: File, data?: object): AxiosPromise>; /** * Updates the banner image for the team using a Blob. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamUploadMainImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadBannerImageBlob(team_id: string, blob: Blob, data?: object): AxiosPromise>; /** * List the invites that have been sent for the team to users. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamsUserInviteList * * @param team_id The id of the team * * @returns promise */ static listInvites(team_id: string, params?: Record): AxiosPromise>; /** * Send an invitation to a user to join the team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamSendInvite * * @param team_id The id of the team. * @param data The data that will be passed into sending an invite. * * @returns promise */ static sendInvite(team_id: string, data?: object): AxiosPromise>; /** * Accept an invite to a team. The JSON Web Token (JWT) must be related to the token. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamAcceptInvite * * @param team_id The id of the team * @param token The token required to accept the user. * * @returns promise */ static acceptInvite(team_id: string, token: string): AxiosPromise>; /** * List the users who are currently associated with the team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/teamUserList * * @param team_id The id of the team. * * @returns promise */ static listUsers(team_id: string, params?: Record): AxiosPromise>; /** * Add a user to a team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/createTeamUser * * @param team_id The id of the team. * @param data The data to be passed when adding a user. * * @returns promise */ static addUser(team_id: string, data?: object): AxiosPromise>; /** * Retrieves a single user and their information that is associated with a team. * * @see https://api.glitch.fun/api/documentation#/Teams%20Route/showTeamUser * * @param team_id The id of the team. * @param user_id The id of the user. * * @returns promise */ static getUser(team_id: string, user_id: string): AxiosPromise>; /** * Updates the users information associated with the team. * * @param team_id The id of the team. * @param user_id The id of the user. * * @returns promise */ static updatetUser(team_id: string, user_id: string, data?: object): AxiosPromise>; /** * Removes a user from a team. * * @param team_id The id of team. * @param user_id The id of the user. * * @returns promise */ static removetUser(team_id: string, user_id: string): AxiosPromise>; } export default Teams;