import Response from "../util/Response"; import { AxiosPromise } from "axios"; export interface GameShowScheduleTicketTypeInput { name: string; description?: string | null; kind: 'early_bird' | 'regular' | 'other'; price_cents: number; currency: string; quantity_available?: number | null; sales_start_at?: string | null; sales_end_at?: string | null; sort_order?: number; is_active?: boolean; } export interface GameShowFestivalTicketTypeInput extends GameShowScheduleTicketTypeInput { scope: 'session' | 'festival' | 'track' | 'bundle'; schedule_item_id?: string | null; track_block_id?: string | null; schedule_item_ids?: string[] | null; } export interface GameShowScheduleTicketPurchaseInput { ticket_type_id: string; email: string; first_name?: string; last_name?: string; quantity: number; payment_method_id?: string; } export interface GameShowScheduleTicketRefundInput { amount_cents: number; reason?: string; } export interface GameShowTitleCandidate { id: string; name: string; developer?: string | null; publisher?: string | null; short_description?: string | null; image_main?: string | null; image_banner?: string | null; is_live: boolean; already_in_showcase: boolean; community?: { id: string; name: string; } | null; } export interface GameShowTitleCandidateSearchParams { q: string; page?: number; per_page?: number; } declare class GameShows { /** * List all the GameShows. * * @see https://api.glitch.fun/api/documentation#/GameShows/getGameShows * * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Create a new game show. * * @see https://api.glitch.fun/api/documentation#/GameShows/createGameShow * * @param data The data to be passed when creating a game show. * * @returns Promise */ static create(data: object, params?: Record): AxiosPromise>; /** * Update a game show. * * @see https://api.glitch.fun/api/documentation#/GameShows/updateGameShow * * @param show_id The id of the game show to update. * @param data The data to update. * * @returns promise */ static update(show_id: string, data: object, params?: Record): AxiosPromise>; /** * Retrieve the information for a single game show. * * @see https://api.glitch.fun/api/documentation#/GameShows/getGameShowByUuid * * @param show_id The id fo the game show to retrieve. * * @returns promise */ static view(show_id: string, params?: Record): AxiosPromise>; /** * Deletes a game show. * * @see https://api.glitch.fun/api/documentation#/GameShows/deleteGameShow * * @param show_id The id of the game show to delete. * @returns promise */ static delete(show_id: string, params?: Record): AxiosPromise>; /** * Updates the main image for the game show using a File object. * * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowLogo * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadLogoFile(show_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * Updates the main image for the game show using a Blob. * * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowLogo * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadLogoBlob(show_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; /** * Updates the banner image for the game show using a File object. * * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowBannerImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadBannerImageFile(show_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * Updates the banner image for the game show using a Blob. * * @see https://api.glitch.fun/api/documentation#/GameShows/uploadGameShowBannerImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadBannerImageBlob(show_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; /** * Register a title to a game show. */ static registerTitle(show_id: string, data: object, params?: Record): AxiosPromise>; /** List the active ordered custom-question schema used by public registration. */ static listRegistrationQuestions(show_id: string, params?: Record): AxiosPromise>; /** List active, inactive, and archived custom questions for organizers. */ static manageRegistrationQuestions(show_id: string, params?: Record): AxiosPromise>; /** Create one schema-driven custom developer-registration question. */ static createRegistrationQuestion(show_id: string, data: object, params?: Record): AxiosPromise>; /** Update wording, validation, visibility, ordering, or stable choices. */ static updateRegistrationQuestion(show_id: string, question_id: string, data: object, params?: Record): AxiosPromise>; /** Archive a question while preserving historical answers and reporting. */ static deleteRegistrationQuestion(show_id: string, question_id: string, params?: Record): AxiosPromise>; /** Apply the organizer's exact ordered list of question UUIDs. */ static reorderRegistrationQuestions(show_id: string, data: object, params?: Record): AxiosPromise>; /** Review custom answers grouped by submitted game. */ static listRegistrationResponses(show_id: string, params?: Record): AxiosPromise>; /** Retrieve type-aware aggregate reports without exposing free-text values. */ static registrationQuestionReports(show_id: string, params?: Record): AxiosPromise>; /** * Add a title to a game show by admin. */ static addTitle(show_id: string, data: object, params?: Record): AxiosPromise>; /** Search privacy-safe registered Glitch games that an organizer may attach to a festival. */ static searchTitleCandidates(show_id: string, params: GameShowTitleCandidateSearchParams): AxiosPromise>; /** Preview CSV/TSV/TXT/ZIP registrations without writing showcase data. */ static previewExternalTitles(show_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** Import valid external registrations after organizer preview. */ static importExternalTitles(show_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * List all titles for a game show. */ static listTitles(show_id: string, params?: Record): AxiosPromise>; /** * Get details of a specific title in a game show. */ static getTitle(show_id: string, title_id: string, params?: Record): AxiosPromise>; /** * Update a specific title in a game show. */ static updateTitle(show_id: string, title_id: string, data: object, params?: Record): AxiosPromise>; /** * Delete a specific title from a game show. */ static deleteTitle(show_id: string, title_id: string, params?: Record): AxiosPromise>; /** * List public page-builder blocks for a game show. */ static listBlocks(show_id: string, params?: Record): AxiosPromise>; /** Paginate one Page Builder game section without downloading its full catalog. */ static listBlockTitles(show_id: string, block_id: string, params?: Record): AxiosPromise>; /** * Create a page-builder block for a game show. Requires organizer permissions. */ static createBlock(show_id: string, data: object, params?: Record): AxiosPromise>; /** * Update a page-builder block for a game show. Requires organizer permissions. */ static updateBlock(show_id: string, block_id: string, data: object, params?: Record): AxiosPromise>; /** * Delete a page-builder block from a game show. Requires organizer permissions. */ static deleteBlock(show_id: string, block_id: string, params?: Record): AxiosPromise>; /** * Reorder page-builder blocks for a game show. Requires organizer permissions. */ static reorderBlocks(show_id: string, data: object, params?: Record): AxiosPromise>; /** * List livestream and programming schedule items for a game show. */ static listSchedule(show_id: string, params?: Record): AxiosPromise>; /** Fetch one public or organizer-visible festival schedule item. */ static getScheduleItem(show_id: string, schedule_id: string, params?: Record): AxiosPromise>; /** * Create a schedule item for a game show. Requires organizer permissions. */ static createScheduleItem(show_id: string, data: object, params?: Record): AxiosPromise>; /** * Update a schedule item for a game show. Requires organizer permissions. */ static updateScheduleItem(show_id: string, schedule_id: string, data: object, params?: Record): AxiosPromise>; /** * Delete a schedule item from a game show. Requires organizer permissions. */ static deleteScheduleItem(show_id: string, schedule_id: string, params?: Record): AxiosPromise>; /** List public festival, track, bundle, and single-session ticket products. */ static listFestivalTicketTypes(show_id: string, params?: Record): AxiosPromise>; /** List all festival ticket products, including archived products, for organizers. */ static manageFestivalTicketTypes(show_id: string, params?: Record): AxiosPromise>; /** Create a whole-festival pass, track pass, event bundle, or session ticket. */ static createFestivalTicketType(show_id: string, data: GameShowFestivalTicketTypeInput, params?: Record): AxiosPromise>; /** Update the coverage, price, inventory, sales window, or visibility of a festival ticket product. */ static updateFestivalTicketType(show_id: string, ticket_type_id: string, data: Partial, params?: Record): AxiosPromise>; /** Archive a festival ticket product while retaining purchase history. */ static deleteFestivalTicketType(show_id: string, ticket_type_id: string, params?: Record): AxiosPromise>; /** Reserve inventory and create or confirm a festival-level ticket payment. */ static purchaseFestivalTickets(show_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record): AxiosPromise>; /** Synchronize a festival-level ticket purchase after Stripe.js completes 3DS. */ static confirmFestivalTicketPurchase(show_id: string, purchase_id: string, access_token: string, params?: Record): AxiosPromise>; /** Retrieve a token-protected receipt for any festival ticket scope. */ static getFestivalTicketReceipt(show_id: string, purchase_id: string, access_token: string, params?: Record): AxiosPromise>; /** List purchasers across festival, track, bundle, and session ticket products. */ static listFestivalTicketPurchases(show_id: string, params?: Record): AxiosPromise>; /** Issue a partial or full refund for a festival ticket purchase. */ static refundFestivalTicketPurchase(show_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record): AxiosPromise>; /** List public early-bird, regular, and other ticket tiers for one session. */ static listScheduleTicketTypes(show_id: string, schedule_id: string, params?: Record): AxiosPromise>; /** List every ticket tier, including archived tiers, for festival organizers. */ static manageScheduleTicketTypes(show_id: string, schedule_id: string, params?: Record): AxiosPromise>; /** Create one session ticket price tier. */ static createScheduleTicketType(show_id: string, schedule_id: string, data: GameShowScheduleTicketTypeInput, params?: Record): AxiosPromise>; /** Update ticket price, inventory, availability window, or publication state. */ static updateScheduleTicketType(show_id: string, schedule_id: string, ticket_type_id: string, data: Partial, params?: Record): AxiosPromise>; /** Archive a ticket tier while retaining historical purchases. */ static deleteScheduleTicketType(show_id: string, schedule_id: string, ticket_type_id: string, params?: Record): AxiosPromise>; /** Reserve inventory and create/confirm the session ticket PaymentIntent. */ static purchaseScheduleTickets(show_id: string, schedule_id: string, data: GameShowScheduleTicketPurchaseInput, params?: Record): AxiosPromise>; /** Synchronize the same ticket PaymentIntent after Stripe.js completes 3DS. */ static confirmScheduleTicketPurchase(show_id: string, schedule_id: string, purchase_id: string, access_token: string, params?: Record): AxiosPromise>; /** Retrieve a token-protected customer receipt. */ static getScheduleTicketReceipt(show_id: string, schedule_id: string, purchase_id: string, access_token: string, params?: Record): AxiosPromise>; /** List ticket purchasers and refund state for festival organizers. */ static listScheduleTicketPurchases(show_id: string, schedule_id: string, params?: Record): AxiosPromise>; /** Issue a partial or full destination-charge refund at organizer discretion. */ static refundScheduleTicketPurchase(show_id: string, schedule_id: string, purchase_id: string, data: GameShowScheduleTicketRefundInput, params?: Record): AxiosPromise>; /** * Get the game show discovery queue. */ static discoveryQueue(show_id: string, params?: Record): AxiosPromise>; /** * Track public game show analytics events. */ static trackAnalytics(show_id: string, data: object, params?: Record): AxiosPromise>; /** * Get organizer analytics for a game show. */ static analyticsReport(show_id: string, params?: Record): AxiosPromise>; /** * Join or update a public notification signup for a game show. */ static joinWishlist(show_id: string, data: object, params?: Record): AxiosPromise>; /** * Confirm the double-opt-in token from a festival reminder email. * The response contains confirmation state and festival identity only. * * @see https://api.glitch.fun/api/documentation#/GameShows/confirmGameShowWishlist */ static confirmWishlist(token: string, params?: Record): AxiosPromise>; /** * List notification signups for a game show. Requires organizer permissions. */ static listWishlist(show_id: string, params?: Record): AxiosPromise>; /** List the anonymous, published festival award/prize/swag catalog. */ static listPublicRewards(show_id: string, params?: Record): AxiosPromise>; /** Retrieve one SSR-ready public festival reward. */ static getPublicReward(show_id: string, reward_id: string, params?: Record): AxiosPromise>; /** Retrieve a privacy-safe public game leaderboard for one reward. */ static getPublicRewardLeaderboard(show_id: string, reward_id: string, params?: Record): AxiosPromise>; /** List drafts, sponsor items, inventory, recipients, and fulfillment for organizers. */ static manageRewards(show_id: string, params?: Record): AxiosPromise>; /** Claim an eligible attendee, entrant, points, or previously awarded festival reward. */ static claimReward(show_id: string, reward_id: string, data?: { title_id?: string; }, params?: Record): AxiosPromise>; /** Create an organizer-controlled festival award, prize, swag item, or reward. */ static createReward(show_id: string, data: object, params?: Record): AxiosPromise>; /** Update publication, eligibility, metrics, inventory, or rich content. */ static updateReward(show_id: string, reward_id: string, data: object, params?: Record): AxiosPromise>; /** Soft-delete one festival reward. */ static deleteReward(show_id: string, reward_id: string, params?: Record): AxiosPromise>; /** Preview the organizer-only game or attendee performance leaderboard. */ static rewardLeaderboard(show_id: string, reward_id: string, params?: Record): AxiosPromise>; /** Snapshot current metric leaders as reward recipients. */ static autoAwardReward(show_id: string, reward_id: string, params?: Record): AxiosPromise>; /** Add a manual nominee, winner, honoree, claimant, or fulfillment record. */ static addRewardRecipient(show_id: string, reward_id: string, data: object, params?: Record): AxiosPromise>; /** Update judging, claim, revocation, rank, or fulfillment state. */ static updateRewardRecipient(show_id: string, reward_id: string, recipient_id: string, data: object, params?: Record): AxiosPromise>; /** * List public game shows that include a title. Useful for game-page festival banners. */ static listForTitle(title_id: string, params?: Record): AxiosPromise>; /** List organizer-visible developer claim and completion workflows. */ static listTitleClaims(show_id: string, params?: Record): AxiosPromise>; /** Invite or remind a developer to claim and complete a festival game. */ static inviteTitleClaim(show_id: string, title_id: string, data: { email: string; }, params?: Record): AxiosPromise>; /** Open a private festival game claim before authentication. */ static viewTitleClaim(show_id: string, token: string, params?: Record): AxiosPromise>; /** Bind the invited game to the current user and one administered business. */ static claimTitle(show_id: string, token: string, data: { community_id: string; }, params?: Record): AxiosPromise>; /** Finish required game information and record the optional build choice. */ static completeTitleClaim(show_id: string, token: string, data: { build_choice: 'upload' | 'skip'; build_completed?: boolean; }, params?: Record): AxiosPromise>; /** List private sponsor workflow, contact, billing, media, and placements. */ static listSponsors(show_id: string, params?: Record): AxiosPromise>; /** Create a manual sponsor or send a self-service invitation. */ static createSponsor(show_id: string, data: object, params?: Record): AxiosPromise>; /** Retrieve one organizer-authorized festival sponsor. */ static getSponsor(show_id: string, sponsor_id: string, params?: Record): AxiosPromise>; /** Update sponsor workflow, creative metadata, schedule, or billing terms. */ static updateSponsor(show_id: string, sponsor_id: string, data: object, params?: Record): AxiosPromise>; /** Delete an unpaid sponsor and its placements. */ static deleteSponsor(show_id: string, sponsor_id: string, params?: Record): AxiosPromise>; /** Replace the private token and resend the sponsor invitation. */ static resendSponsorInvitation(show_id: string, sponsor_id: string, params?: Record): AxiosPromise>; /** Add another festival, game, session, or event placement. */ static createSponsorPlacement(show_id: string, sponsor_id: string, data: object, params?: Record): AxiosPromise>; /** Partially update an existing sponsor placement. */ static updateSponsorPlacement(show_id: string, sponsor_id: string, placement_id: string, data: object, params?: Record): AxiosPromise>; /** Delete one placement without deleting the sponsor creative. */ static deleteSponsorPlacement(show_id: string, sponsor_id: string, placement_id: string, params?: Record): AxiosPromise>; /** List privacy-limited, publicly eligible creatives and placements. */ static listPublicSponsors(show_id: string, params?: Record): AxiosPromise>; /** Open a token-protected sponsor portal without a user session. */ static sponsorInvitation(token: string, params?: Record): AxiosPromise>; /** Upload sponsor image/video through the shared Media pipeline. */ static uploadSponsorInvitationMedia(token: string, file: File, data?: object, params?: Record): AxiosPromise>; /** Submit sponsor identity, destination, and accessibility metadata. */ static submitSponsorInvitation(token: string, data: object, params?: Record): AxiosPromise>; /** Create/confirm a destination PaymentIntent from a PaymentMethod ID. */ static paySponsorInvitation(token: string, data: object, params?: Record): AxiosPromise>; /** Synchronize the same intent after Stripe.js completes required 3DS. */ static confirmSponsorInvitationPayment(token: string, params?: Record): AxiosPromise>; /** List awards, prizes, and swag owned by a sponsor invitation. */ static sponsorInvitationRewards(token: string, params?: Record): AxiosPromise>; /** Create a draft sponsor-owned award, prize, or swag item. */ static createSponsorInvitationReward(token: string, data: object, params?: Record): AxiosPromise>; /** Update sponsor-owned reward content and eligibility. */ static updateSponsorInvitationReward(token: string, reward_id: string, data: object, params?: Record): AxiosPromise>; /** Remove a sponsor-owned draft reward. */ static deleteSponsorInvitationReward(token: string, reward_id: string, params?: Record): AxiosPromise>; } export default GameShows;