UNPKG

@mikle7/litty-api-client

Version:

TypeScript client for Litty API with clean, semantic type definitions

139 lines (138 loc) 5.18 kB
/** * Litty API * Complete API documentation for the Litty platform. ## Authentication Most endpoints require authentication via Supabase JWT tokens. Include the token in the Authorization header: `Bearer <token>` ## API Structure - **Contests**: Create and manage contests, entries, and settlements - **Markets**: Manage prediction markets within contests - **Transactions**: Handle financial transactions for contest entries and rewards - **Wallet**: Manage user wallet balances (cashable, points, tickets) - **Users**: User management and profiles - **Leaderboards**: Competition rankings and scoring - **Uploads**: File upload management - **Shows**: TV show and episode management (admin only) ## Response Formats All endpoints return JSON responses with consistent error handling. Error responses include `statusCode`, `message`, and `error` fields. * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { GetContestEntries200ResponseDirectPredictionsInnerUser } from './GetContestEntries200ResponseDirectPredictionsInnerUser'; import type { GetContestSession200ResponseContest } from './GetContestSession200ResponseContest'; /** * * @export * @interface GetContestSession200Response */ export interface GetContestSession200Response { /** * * @type {string} * @memberof GetContestSession200Response */ contestType?: GetContestSession200ResponseContestTypeEnum; /** * * @type {string} * @memberof GetContestSession200Response */ sessionId?: string; /** * * @type {string} * @memberof GetContestSession200Response */ contestEntryId?: string; /** * * @type {string} * @memberof GetContestSession200Response */ status?: GetContestSession200ResponseStatusEnum; /** * * @type {string} * @memberof GetContestSession200Response */ difficultyLevel?: GetContestSession200ResponseDifficultyLevelEnum; /** * * @type {number} * @memberof GetContestSession200Response */ sessionMultiplier?: number; /** * * @type {number} * @memberof GetContestSession200Response */ questionsAnswered?: number; /** * * @type {number} * @memberof GetContestSession200Response */ totalQuestions?: number; /** * * @type {number} * @memberof GetContestSession200Response */ correctAnswers?: number; /** * * @type {number} * @memberof GetContestSession200Response */ playCreditsSpent?: number; /** * * @type {number} * @memberof GetContestSession200Response */ prizeCreditsEarned?: number; /** * * @type {Date} * @memberof GetContestSession200Response */ completedAt?: Date | null; /** * * @type {GetContestSession200ResponseContest} * @memberof GetContestSession200Response */ contest?: GetContestSession200ResponseContest; /** * * @type {GetContestEntries200ResponseDirectPredictionsInnerUser} * @memberof GetContestSession200Response */ user?: GetContestEntries200ResponseDirectPredictionsInnerUser; } /** * @export */ export declare const GetContestSession200ResponseContestTypeEnum: { readonly PickPack: "PickPack"; readonly Traditional: "Traditional"; }; export type GetContestSession200ResponseContestTypeEnum = typeof GetContestSession200ResponseContestTypeEnum[keyof typeof GetContestSession200ResponseContestTypeEnum]; /** * @export */ export declare const GetContestSession200ResponseStatusEnum: { readonly InProgress: "InProgress"; readonly Completed: "Completed"; }; export type GetContestSession200ResponseStatusEnum = typeof GetContestSession200ResponseStatusEnum[keyof typeof GetContestSession200ResponseStatusEnum]; /** * @export */ export declare const GetContestSession200ResponseDifficultyLevelEnum: { readonly Easy: "Easy"; readonly Medium: "Medium"; readonly Hard: "Hard"; readonly Expert: "Expert"; }; export type GetContestSession200ResponseDifficultyLevelEnum = typeof GetContestSession200ResponseDifficultyLevelEnum[keyof typeof GetContestSession200ResponseDifficultyLevelEnum]; /** * Check if a given object implements the GetContestSession200Response interface. */ export declare function instanceOfGetContestSession200Response(value: object): value is GetContestSession200Response; export declare function GetContestSession200ResponseFromJSON(json: any): GetContestSession200Response; export declare function GetContestSession200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContestSession200Response; export declare function GetContestSession200ResponseToJSON(json: any): GetContestSession200Response; export declare function GetContestSession200ResponseToJSONTyped(value?: GetContestSession200Response | null, ignoreDiscriminator?: boolean): any;