@trivia-api/models
Version:
Models for The Trivia API.
36 lines (35 loc) • 1.21 kB
TypeScript
/**
* Sessions can be used to ensure that a user never receives the same set of questions
*
* @openapi
* components:
* schemas:
* Session:
* type: object
* properties:
* id:
* type: string
* description: Unique identifier for the session
* totalQuestions:
* type: number
* description: Total questions available to the session
* remainingQuestions:
* type: number
* description: Remaining questions left in the session
* createdAt:
* type: string
* format: date-time
* description: Timestamp that the session was created
* updatedAt:
* type: string
* format: date-time
* description: Timestamp that the session was last updated
* required:
* - id
* - totalQuestions
* - remainingQuestions
* - createdAt
* - updatedAt
*/
import { Session as V2Session } from "@trivia-api/client";
export type { V2Session };