import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class SocialPosts { /** * List all the Posts. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList * * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Give a tip to another user * * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin * * @returns A promise */ static create(data?: object, params?: Record): AxiosPromise>; /** * Retrieve the information for a single post. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage * * @param post_id The id fo the post to retrieve. * * @returns promise */ static view(post_id: string, params?: Record): AxiosPromise>; /** * Update the informationa bout a post, as long as it hasn't been posted. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage * * @param post_id The id fo the post to retrieve. * * @returns promise */ static update(post_id: string, data?: object, params?: Record): AxiosPromise>; /** * Deletes a post. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/destoryPostStorage * * @param post_id The id of the post to delete. * @returns promise */ static delete(post_id: string, params?: Record): AxiosPromise>; /** * Dispute a post as being fraudulent.,s * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/disputePost * * @param post_id The id fo the post to retrieve. * * @returns promise */ static dispute(post_id: string, data?: object, params?: Record): AxiosPromise>; /** * Get the change of the post metrics over a period of time. * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory * * @param post_id The id fo the post to retrieve. * * @returns promise */ static history(post_id: string, params?: Record): AxiosPromise>; /** * Get the change progression of a social media post over period of time. * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory * * @param post_id The id fo the post to retrieve. * * @returns promise */ static progression(params?: Record): AxiosPromise>; /** * Add media to a social media post. * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/addMediaToSocialMediaPost * * @param post_id The ID of the social media post. * @param data The data to be sent in the request body. * * @returns promise */ static addMedia(post_id: string, data?: object, params?: Record): AxiosPromise>; /** * Remove media from a social media post. * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/removeMediaFromSocialMediaPost * * @param post_id The ID of the social media post. * @param media_id The ID of the media to remove. * * @returns promise */ static removeMedia(post_id: string, media_id: string, params?: Record): AxiosPromise>; /** * Reschedule a post that has failed. * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/addMediaToSocialMediaPost * * @param post_id The ID of the social media post. * @param data The data to be sent in the request body. * * @returns promise */ static reschedule(post_id: string, data?: object, params?: Record): AxiosPromise>; /** * Get the reports for a social media post * * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList * * @returns promise */ static reports(post_id: string, params?: Record): AxiosPromise>; /** * Update the information about a post impressions, for posts who API do not give view counts. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage * * @param post_id The id fo the post to retrieve. * * @returns promise */ static updatePostImpressions(post_id: string, data?: object, params?: Record): AxiosPromise>; /** * Get reports on all the the short links * * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList * * @returns promise */ static shortLinkReports(params?: Record): AxiosPromise>; /** * List comments for a social media post. * * @param post_id The ID of the social media post. * @param params Optional query parameters for filtering and sorting. * @returns A promise */ static listComments(post_id: string, params?: Record): AxiosPromise>; /** * Sync comments from the social media platform for a specific post. * * @param post_id The ID of the social media post. * @param params Optional query parameters (e.g., limit). * @returns A promise */ static syncComments(post_id: string, params?: Record): AxiosPromise>; /** * Get a list of all comments that are pending a response. * * @param params Optional query parameters for filtering. * @returns A promise */ static listPendingResponses(params?: Record): AxiosPromise>; /** * Retrieve a single comment by its ID. * * @param comment_id The ID of the comment. * @param params Optional query parameters (e.g., include_thread). * @returns A promise */ static viewComment(comment_id: string, params?: Record): AxiosPromise>; /** * Post a reply to a comment. * * @param comment_id The ID of the comment to reply to. * @param data The content of the reply. * @returns A promise */ static replyToComment(comment_id: string, data: object): AxiosPromise>; /** * Moderate a comment (approve, reject, spam, hide, show). * * @param comment_id The ID of the comment to moderate. * @param data The moderation action and optional reason. * @returns A promise */ static moderateComment(comment_id: string, data: object): AxiosPromise>; /** * Mark a comment as needing a response. * * @param comment_id The ID of the comment. * @returns A promise */ static markCommentForResponse(comment_id: string): AxiosPromise>; /** * Get the full thread for a given comment. * * @param comment_id The ID of a comment within the thread. * @returns A promise */ static getCommentThread(comment_id: string): AxiosPromise>; /** * Trigger a manual update of a comment's metrics from its platform. * * @param comment_id The ID of the comment to update. * @returns A promise */ static updateCommentMetrics(comment_id: string): AxiosPromise>; /** * Create a new top-level comment on a post. * * @param post_id The ID of the social media post to comment on. * @param data The content of the comment. * @returns A promise */ static createComment(post_id: string, data: object): AxiosPromise>; /** * Get game install attribution data for a specific social media post. * * @param post_id The ID of the social media post. * @param params Optional query parameters (start_date, end_date, confidence_threshold). * @returns A promise */ static getPostAttribution(post_id: string, params?: Record): AxiosPromise>; /** * Get a report of all social media posts for a title that are converting to game installs. * * @param params Query parameters (title_id, start_date, end_date, confidence_threshold). * @returns A promise */ static getSocialPostAttributionReport(params: Record): AxiosPromise>; /** * Get a summary of clicks for each short link in a post. * * @param post_id The ID of the social media post. * @returns A promise */ static getLinkSummary(post_id: string): AxiosPromise>; /** * Trigger a historical sync for a specific platform for the current user. * * @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/syncHistory * * @param platform The platform to sync (e.g., 'twitter', 'youtube', 'bluesky'). * * @returns promise */ static syncHistory(platform: string, params?: Record): AxiosPromise>; /** * Perform a social action (Like, Repost, Vote) on a post. * * @param post_id The ID of the social media post. * @param action The action to perform. * @returns promise */ static performAction(post_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise>; /** * Perform a social action (Like, Repost, Vote) on a comment. * * @param comment_id The ID of the comment. * @param action The action to perform. * @returns promise */ static performCommentAction(comment_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise>; /** * Get ad creative performance matrix. */ static creativePerformance(params: Record): AxiosPromise>; /** * List social media conversations. * * @see https://api.glitch.fun/api/documentation#/Social%20Messaging/listSocialConversations * * @param params Query parameters (scheduler_id, platform, page, per_page). * @returns promise */ static listConversations(params?: Record): AxiosPromise>; /** * Sync conversations from external platform. * * @see https://api.glitch.fun/api/documentation#/Social%20Messaging/syncSocialConversations * * @param data Body parameters (platform, scheduler_id). * @returns promise */ static syncConversations(data: object): AxiosPromise>; /** * Get a specific conversation. * * @see https://api.glitch.fun/api/documentation#/Social%20Messaging/getSocialConversation * * @param conversation_id The ID of the conversation. * @returns promise */ static getConversation(conversation_id: string): AxiosPromise>; /** * List messages in a conversation. * * @see https://api.glitch.fun/api/documentation#/Social%20Messaging/listSocialMessages * * @param conversation_id The ID of the conversation. * @param params Query parameters (sync, page, per_page). * @returns promise */ static getConversationMessages(conversation_id: string, params?: Record): AxiosPromise>; /** * Send a Direct Message. * * @see https://api.glitch.fun/api/documentation#/Social%20Messaging/sendSocialMessage * * @param data Body parameters (message, conversation_id, recipient_id, platform, scheduler_id, media_ids). * @returns promise */ static sendSocialMessage(data: object): AxiosPromise>; /** * Reply to a high-intent TikTok comment via Direct Message. * * @param comment_id The ID of the comment. * @param data { message: string } */ static replyViaDm(comment_id: string, data: { message: string; }): AxiosPromise>; /** * List all discovered Reddit questions (Admin Only). * * @param params Query parameters: status, subreddit, is_question. */ static listRedditQuestions(params?: Record): AxiosPromise>; /** * Retrieve details for a specific discovered Reddit question (Admin Only). * * @param id The UUID of the question. */ static viewRedditQuestion(id: string, params?: Record): AxiosPromise>; /** * Update a Reddit question's status or metadata (Admin Only). * * @param id The UUID of the question. * @param data { status: 'pending'|'answered'|'ignored', metadata?: object } */ static updateRedditQuestion(id: string, data: object, params?: Record): AxiosPromise>; /** * Delete a discovered Reddit question (Admin Only). * * @param id The UUID of the question. */ static deleteRedditQuestion(id: string, params?: Record): AxiosPromise>; /** * Optimize a Reddit post for a specific subreddit using the AI engine (Admin Only). * * @param data { subreddit: string, content: string, title_id: string } */ static optimizeRedditPost(data: { subreddit: string; content: string; title_id: string; }): AxiosPromise>; /** * Get a report attributing game installs, wishlists, and purchases to specific social media posts. * * @param params Filter object: * - title_id: string (Required) * - start_date?: string (YYYY-MM-DD) * - end_date?: string (YYYY-MM-DD) * - confidence_threshold?: number (0-100) */ static getSocialPostAttribution(params: { title_id: string; start_date?: string; end_date?: string; confidence_threshold?: number; }): AxiosPromise>; /** * Get a report attributing game installs and revenue to specific UTM sources and campaigns. * * @param params Filter object: * - title_id: string (Required) * - start_date?: string (YYYY-MM-DD) * - end_date?: string (YYYY-MM-DD) * - confidence_threshold?: number (0-100) */ static getUtmAttribution(params: { title_id: string; start_date?: string; end_date?: string; confidence_threshold?: number; }): AxiosPromise>; static getInfluencerAttribution(params: { title_id: string; start_date?: string; end_date?: string; confidence_threshold?: number; }): AxiosPromise>; } export default SocialPosts;