UNPKG

@mikle7/litty-api-client

Version:

TypeScript client for Litty API with clean, semantic type definitions

95 lines (94 loc) 3.83 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 { GetAllLeaderboards200ResponseInnerUserStatsInner } from './GetAllLeaderboards200ResponseInnerUserStatsInner'; /** * * @export * @interface GetAllLeaderboards200ResponseInner */ export interface GetAllLeaderboards200ResponseInner { /** * * @type {string} * @memberof GetAllLeaderboards200ResponseInner */ id?: string; /** * * @type {string} * @memberof GetAllLeaderboards200ResponseInner */ name?: string; /** * * @type {string} * @memberof GetAllLeaderboards200ResponseInner */ type?: GetAllLeaderboards200ResponseInnerTypeEnum; /** * * @type {Date} * @memberof GetAllLeaderboards200ResponseInner */ startAt?: Date; /** * * @type {Date} * @memberof GetAllLeaderboards200ResponseInner */ endAt?: Date; /** * * @type {boolean} * @memberof GetAllLeaderboards200ResponseInner */ isFinalized?: boolean; /** * * @type {Array<GetAllLeaderboards200ResponseInnerUserStatsInner>} * @memberof GetAllLeaderboards200ResponseInner */ userStats?: Array<GetAllLeaderboards200ResponseInnerUserStatsInner>; /** * * @type {Array<{ [key: string]: any; }>} * @memberof GetAllLeaderboards200ResponseInner */ rewards?: Array<{ [key: string]: any; }>; /** * * @type {{ [key: string]: any; }} * @memberof GetAllLeaderboards200ResponseInner */ count?: { [key: string]: any; }; } /** * @export */ export declare const GetAllLeaderboards200ResponseInnerTypeEnum: { readonly Race: "RACE"; readonly Points: "POINTS"; readonly Weekly: "WEEKLY"; }; export type GetAllLeaderboards200ResponseInnerTypeEnum = typeof GetAllLeaderboards200ResponseInnerTypeEnum[keyof typeof GetAllLeaderboards200ResponseInnerTypeEnum]; /** * Check if a given object implements the GetAllLeaderboards200ResponseInner interface. */ export declare function instanceOfGetAllLeaderboards200ResponseInner(value: object): value is GetAllLeaderboards200ResponseInner; export declare function GetAllLeaderboards200ResponseInnerFromJSON(json: any): GetAllLeaderboards200ResponseInner; export declare function GetAllLeaderboards200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllLeaderboards200ResponseInner; export declare function GetAllLeaderboards200ResponseInnerToJSON(json: any): GetAllLeaderboards200ResponseInner; export declare function GetAllLeaderboards200ResponseInnerToJSONTyped(value?: GetAllLeaderboards200ResponseInner | null, ignoreDiscriminator?: boolean): any;