UNPKG

@mikle7/litty-api-client

Version:

TypeScript client for Litty API with clean, semantic type definitions

66 lines (65 loc) 3.32 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 { GetAllContests200ResponseInnerEntriesInner } from './GetAllContests200ResponseInnerEntriesInner'; import type { GetContestById200ResponseMarketsInner } from './GetContestById200ResponseMarketsInner'; import type { GetContestById200ResponseUserPredictionsInner } from './GetContestById200ResponseUserPredictionsInner'; /** * * @export * @interface GetContestById200Response */ export interface GetContestById200Response { /** * * @type {string} * @memberof GetContestById200Response */ id?: string; /** * * @type {string} * @memberof GetContestById200Response */ name?: string; /** * * @type {Array<GetAllContests200ResponseInnerEntriesInner>} * @memberof GetContestById200Response */ entries?: Array<GetAllContests200ResponseInnerEntriesInner>; /** * Whether the authenticated user has entered this contest * @type {boolean} * @memberof GetContestById200Response */ hasUserEntered?: boolean; /** * User predictions for this contest (only if user has entered) * @type {Array<GetContestById200ResponseUserPredictionsInner>} * @memberof GetContestById200Response */ userPredictions?: Array<GetContestById200ResponseUserPredictionsInner>; /** * * @type {Array<GetContestById200ResponseMarketsInner>} * @memberof GetContestById200Response */ markets?: Array<GetContestById200ResponseMarketsInner>; } /** * Check if a given object implements the GetContestById200Response interface. */ export declare function instanceOfGetContestById200Response(value: object): value is GetContestById200Response; export declare function GetContestById200ResponseFromJSON(json: any): GetContestById200Response; export declare function GetContestById200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContestById200Response; export declare function GetContestById200ResponseToJSON(json: any): GetContestById200Response; export declare function GetContestById200ResponseToJSONTyped(value?: GetContestById200Response | null, ignoreDiscriminator?: boolean): any;