UNPKG

@mikle7/litty-api-client

Version:

TypeScript client for Litty API with clean, semantic type definitions

101 lines (100 loc) 4.3 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 { GetMarketsByContestId200ResponseInnerOptionsInner } from './GetMarketsByContestId200ResponseInnerOptionsInner'; /** * * @export * @interface GetMarketsByContestId200ResponseInner */ export interface GetMarketsByContestId200ResponseInner { /** * * @type {string} * @memberof GetMarketsByContestId200ResponseInner */ id?: string; /** * * @type {string} * @memberof GetMarketsByContestId200ResponseInner */ name?: string; /** * * @type {string} * @memberof GetMarketsByContestId200ResponseInner */ description?: string; /** * * @type {number} * @memberof GetMarketsByContestId200ResponseInner */ pointValue?: number; /** * * @type {string} * @memberof GetMarketsByContestId200ResponseInner */ status?: GetMarketsByContestId200ResponseInnerStatusEnum; /** * * @type {string} * @memberof GetMarketsByContestId200ResponseInner */ optionType?: GetMarketsByContestId200ResponseInnerOptionTypeEnum; /** * * @type {string} * @memberof GetMarketsByContestId200ResponseInner */ hint?: string; /** * * @type {Array<GetMarketsByContestId200ResponseInnerOptionsInner>} * @memberof GetMarketsByContestId200ResponseInner */ options?: Array<GetMarketsByContestId200ResponseInnerOptionsInner>; /** * * @type {Date} * @memberof GetMarketsByContestId200ResponseInner */ createdAt?: Date; } /** * @export */ export declare const GetMarketsByContestId200ResponseInnerStatusEnum: { readonly Draft: "Draft"; readonly Open: "Open"; readonly Closed: "Closed"; readonly Settled: "Settled"; }; export type GetMarketsByContestId200ResponseInnerStatusEnum = typeof GetMarketsByContestId200ResponseInnerStatusEnum[keyof typeof GetMarketsByContestId200ResponseInnerStatusEnum]; /** * @export */ export declare const GetMarketsByContestId200ResponseInnerOptionTypeEnum: { readonly MultipleChoice: "MultipleChoice"; readonly Boolean: "Boolean"; readonly List: "List"; }; export type GetMarketsByContestId200ResponseInnerOptionTypeEnum = typeof GetMarketsByContestId200ResponseInnerOptionTypeEnum[keyof typeof GetMarketsByContestId200ResponseInnerOptionTypeEnum]; /** * Check if a given object implements the GetMarketsByContestId200ResponseInner interface. */ export declare function instanceOfGetMarketsByContestId200ResponseInner(value: object): value is GetMarketsByContestId200ResponseInner; export declare function GetMarketsByContestId200ResponseInnerFromJSON(json: any): GetMarketsByContestId200ResponseInner; export declare function GetMarketsByContestId200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMarketsByContestId200ResponseInner; export declare function GetMarketsByContestId200ResponseInnerToJSON(json: any): GetMarketsByContestId200ResponseInner; export declare function GetMarketsByContestId200ResponseInnerToJSONTyped(value?: GetMarketsByContestId200ResponseInner | null, ignoreDiscriminator?: boolean): any;