Models#

pydantic model serializd.models.auth.LoginRequest#

Show JSON schema
{
   "title": "LoginRequest",
   "type": "object",
   "properties": {
      "email": {
         "title": "Email",
         "type": "string"
      },
      "password": {
         "title": "Password",
         "type": "string"
      }
   },
   "required": [
      "email",
      "password"
   ]
}

field email: str [Required]#
field password: str [Required]#
pydantic model serializd.models.auth.LoginResponse#

Show JSON schema
{
   "title": "LoginResponse",
   "type": "object",
   "properties": {
      "username": {
         "title": "Username",
         "type": "string"
      },
      "token": {
         "title": "Token",
         "type": "string"
      }
   },
   "required": [
      "username",
      "token"
   ]
}

field token: str [Required]#
field username: str [Required]#
pydantic model serializd.models.auth.ValidateAuthTokenRequest#

Show JSON schema
{
   "title": "ValidateAuthTokenRequest",
   "type": "object",
   "properties": {
      "token": {
         "title": "Token",
         "type": "string"
      }
   },
   "required": [
      "token"
   ]
}

field token: str [Required]#
pydantic model serializd.models.auth.ValidateAuthTokenResponse#

Show JSON schema
{
   "title": "ValidateAuthTokenResponse",
   "type": "object",
   "properties": {
      "isValid": {
         "title": "Isvalid",
         "type": "boolean"
      },
      "username": {
         "title": "Username",
         "type": "string"
      }
   },
   "required": [
      "isValid",
      "username"
   ]
}

field isValid: bool [Required]#
field username: str [Required]#
pydantic model serializd.models.actions.LogEpisodesRequest#

Show JSON schema
{
   "title": "LogEpisodesRequest",
   "type": "object",
   "properties": {
      "episode_numbers": {
         "items": {
            "type": "integer"
         },
         "title": "Episode Numbers",
         "type": "array"
      },
      "season_id": {
         "title": "Season Id",
         "type": "integer"
      },
      "show_id": {
         "title": "Show Id",
         "type": "integer"
      },
      "should_get_next_episode": {
         "default": false,
         "title": "Should Get Next Episode",
         "type": "boolean"
      }
   },
   "required": [
      "episode_numbers",
      "season_id",
      "show_id"
   ]
}

field episode_numbers: list[int] [Required]#
field season_id: int [Required]#
field should_get_next_episode: bool = False#
field show_id: int [Required]#
pydantic model serializd.models.actions.LogSeasonsRequest#

Show JSON schema
{
   "title": "LogSeasonsRequest",
   "type": "object",
   "properties": {
      "season_ids": {
         "items": {
            "type": "integer"
         },
         "title": "Season Ids",
         "type": "array"
      },
      "show_id": {
         "title": "Show Id",
         "type": "integer"
      }
   },
   "required": [
      "season_ids",
      "show_id"
   ]
}

field season_ids: list[int] [Required]#
field show_id: int [Required]#
pydantic model serializd.models.actions.UnlogEpisodesRequest#

Show JSON schema
{
   "title": "UnlogEpisodesRequest",
   "type": "object",
   "properties": {
      "episode_numbers": {
         "items": {
            "type": "integer"
         },
         "title": "Episode Numbers",
         "type": "array"
      },
      "season_id": {
         "title": "Season Id",
         "type": "integer"
      },
      "show_id": {
         "title": "Show Id",
         "type": "integer"
      }
   },
   "required": [
      "episode_numbers",
      "season_id",
      "show_id"
   ]
}

field episode_numbers: list[int] [Required]#
field season_id: int [Required]#
field show_id: int [Required]#
pydantic model serializd.models.actions.UnlogSeasonsRequest#

Show JSON schema
{
   "title": "UnlogSeasonsRequest",
   "type": "object",
   "properties": {
      "season_ids": {
         "items": {
            "type": "integer"
         },
         "title": "Season Ids",
         "type": "array"
      },
      "show_id": {
         "title": "Show Id",
         "type": "integer"
      }
   },
   "required": [
      "season_ids",
      "show_id"
   ]
}

pydantic model serializd.models.season.Episode#

Show JSON schema
{
   "title": "Episode",
   "type": "object",
   "properties": {
      "episodeId": {
         "title": "Episodeid",
         "type": "integer"
      },
      "airDate": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Airdate"
      },
      "episodeNumber": {
         "title": "Episodenumber",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "overview": {
         "title": "Overview",
         "type": "string"
      },
      "stillPath": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Stillpath"
      },
      "seasonNumber": {
         "title": "Seasonnumber",
         "type": "integer"
      }
   },
   "required": [
      "episodeId",
      "airDate",
      "episodeNumber",
      "name",
      "overview",
      "stillPath",
      "seasonNumber"
   ]
}

field airDate: str | None [Required]#
field episodeId: int [Required]#
field episodeNumber: int [Required]#
field name: str [Required]#
field overview: str [Required]#
field seasonNumber: int [Required]#
field stillPath: str | None [Required]#
pydantic model serializd.models.season.SeasonResponse#

Show JSON schema
{
   "title": "SeasonResponse",
   "type": "object",
   "properties": {
      "seasonId": {
         "title": "Seasonid",
         "type": "integer"
      },
      "seasonNumber": {
         "title": "Seasonnumber",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "overview": {
         "title": "Overview",
         "type": "string"
      },
      "airDate": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Airdate"
      },
      "posterPath": {
         "title": "Posterpath",
         "type": "string"
      },
      "episodes": {
         "items": {
            "$ref": "#/$defs/Episode"
         },
         "title": "Episodes",
         "type": "array"
      }
   },
   "$defs": {
      "Episode": {
         "properties": {
            "episodeId": {
               "title": "Episodeid",
               "type": "integer"
            },
            "airDate": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Airdate"
            },
            "episodeNumber": {
               "title": "Episodenumber",
               "type": "integer"
            },
            "name": {
               "title": "Name",
               "type": "string"
            },
            "overview": {
               "title": "Overview",
               "type": "string"
            },
            "stillPath": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Stillpath"
            },
            "seasonNumber": {
               "title": "Seasonnumber",
               "type": "integer"
            }
         },
         "required": [
            "episodeId",
            "airDate",
            "episodeNumber",
            "name",
            "overview",
            "stillPath",
            "seasonNumber"
         ],
         "title": "Episode",
         "type": "object"
      }
   },
   "required": [
      "seasonId",
      "seasonNumber",
      "name",
      "overview",
      "airDate",
      "posterPath",
      "episodes"
   ]
}

field airDate: str | None [Required]#
field episodes: List[Episode] [Required]#
field name: str [Required]#
field overview: str [Required]#
field posterPath: str [Required]#
field seasonId: int [Required]#
field seasonNumber: int [Required]#
pydantic model serializd.models.show.EpisodeToPreview#

Show JSON schema
{
   "title": "EpisodeToPreview",
   "type": "object",
   "properties": {
      "episodeId": {
         "title": "Episodeid",
         "type": "integer"
      },
      "airDate": {
         "title": "Airdate",
         "type": "string"
      },
      "episodeNumber": {
         "title": "Episodenumber",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "overview": {
         "title": "Overview",
         "type": "string"
      },
      "stillPath": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Stillpath"
      },
      "seasonNumber": {
         "title": "Seasonnumber",
         "type": "integer"
      }
   },
   "required": [
      "episodeId",
      "airDate",
      "episodeNumber",
      "name",
      "overview",
      "stillPath",
      "seasonNumber"
   ]
}

field airDate: str [Required]#
field episodeId: int [Required]#
field episodeNumber: int [Required]#
field name: str [Required]#
field overview: str [Required]#
field seasonNumber: int [Required]#
field stillPath: str | None [Required]#
pydantic model serializd.models.show.Genre#

Show JSON schema
{
   "title": "Genre",
   "type": "object",
   "properties": {
      "id": {
         "title": "Id",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      }
   },
   "required": [
      "id",
      "name"
   ]
}

field id: int [Required]#
field name: str [Required]#
pydantic model serializd.models.show.Network#

Show JSON schema
{
   "title": "Network",
   "type": "object",
   "properties": {
      "id": {
         "title": "Id",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "logo_path": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Logo Path"
      },
      "origin_country": {
         "title": "Origin Country",
         "type": "string"
      }
   },
   "required": [
      "id",
      "name",
      "logo_path",
      "origin_country"
   ]
}

field id: int [Required]#
field logo_path: str | None [Required]#
field name: str [Required]#
field origin_country: str [Required]#
pydantic model serializd.models.show.NextEpisodeToAir#

Show JSON schema
{
   "title": "NextEpisodeToAir",
   "type": "object",
   "properties": {
      "id": {
         "title": "Id",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "runtime": {
         "title": "Runtime",
         "type": "integer"
      },
      "show_id": {
         "title": "Show Id",
         "type": "integer"
      },
      "air_date": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Air Date"
      },
      "overview": {
         "title": "Overview",
         "type": "string"
      },
      "still_path": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Still Path"
      },
      "vote_count": {
         "title": "Vote Count",
         "type": "integer"
      },
      "episode_type": {
         "title": "Episode Type",
         "type": "string"
      },
      "vote_average": {
         "title": "Vote Average",
         "type": "number"
      },
      "season_number": {
         "title": "Season Number",
         "type": "integer"
      },
      "episode_number": {
         "title": "Episode Number",
         "type": "integer"
      },
      "production_code": {
         "title": "Production Code",
         "type": "string"
      }
   },
   "required": [
      "id",
      "name",
      "runtime",
      "show_id",
      "air_date",
      "overview",
      "still_path",
      "vote_count",
      "episode_type",
      "vote_average",
      "season_number",
      "episode_number",
      "production_code"
   ]
}

field air_date: str | None [Required]#
field episode_number: int [Required]#
field episode_type: str [Required]#
field id: int [Required]#
field name: str [Required]#
field overview: str [Required]#
field production_code: str [Required]#
field runtime: int [Required]#
field season_number: int [Required]#
field show_id: int [Required]#
field still_path: str | None [Required]#
field vote_average: float [Required]#
field vote_count: int [Required]#
pydantic model serializd.models.show.Season#

Show JSON schema
{
   "title": "Season",
   "type": "object",
   "properties": {
      "id": {
         "title": "Id",
         "type": "integer"
      },
      "airDate": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Airdate"
      },
      "episodeCount": {
         "title": "Episodecount",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "overview": {
         "title": "Overview",
         "type": "string"
      },
      "posterPath": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Posterpath"
      },
      "seasonNumber": {
         "title": "Seasonnumber",
         "type": "integer"
      }
   },
   "required": [
      "id",
      "airDate",
      "episodeCount",
      "name",
      "overview",
      "posterPath",
      "seasonNumber"
   ]
}

field airDate: str | None [Required]#
field episodeCount: int [Required]#
field id: int [Required]#
field name: str [Required]#
field overview: str [Required]#
field posterPath: str | None [Required]#
field seasonNumber: int [Required]#
pydantic model serializd.models.show.ShowResponse#

Show JSON schema
{
   "title": "ShowResponse",
   "type": "object",
   "properties": {
      "id": {
         "title": "Id",
         "type": "integer"
      },
      "name": {
         "title": "Name",
         "type": "string"
      },
      "tagline": {
         "title": "Tagline",
         "type": "string"
      },
      "summary": {
         "title": "Summary",
         "type": "string"
      },
      "status": {
         "title": "Status",
         "type": "string"
      },
      "bannerImage": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Bannerimage"
      },
      "premiereDate": {
         "title": "Premieredate",
         "type": "string"
      },
      "lastAirDate": {
         "title": "Lastairdate",
         "type": "string"
      },
      "networks": {
         "items": {
            "$ref": "#/$defs/Network"
         },
         "title": "Networks",
         "type": "array"
      },
      "genres": {
         "items": {
            "$ref": "#/$defs/Genre"
         },
         "title": "Genres",
         "type": "array"
      },
      "seasons": {
         "items": {
            "$ref": "#/$defs/Season"
         },
         "title": "Seasons",
         "type": "array"
      },
      "numSeasons": {
         "title": "Numseasons",
         "type": "integer"
      },
      "numEpisodes": {
         "title": "Numepisodes",
         "type": "integer"
      },
      "nextEpisodeToAir": {
         "anyOf": [
            {
               "$ref": "#/$defs/NextEpisodeToAir"
            },
            {
               "type": "null"
            }
         ]
      },
      "episodeToPreview": {
         "anyOf": [
            {
               "$ref": "#/$defs/EpisodeToPreview"
            },
            {
               "type": "null"
            }
         ]
      },
      "episodeRunTime": {
         "items": {
            "type": "integer"
         },
         "title": "Episoderuntime",
         "type": "array"
      },
      "nextEpisodeForUser": {
         "title": "Nextepisodeforuser"
      }
   },
   "$defs": {
      "EpisodeToPreview": {
         "properties": {
            "episodeId": {
               "title": "Episodeid",
               "type": "integer"
            },
            "airDate": {
               "title": "Airdate",
               "type": "string"
            },
            "episodeNumber": {
               "title": "Episodenumber",
               "type": "integer"
            },
            "name": {
               "title": "Name",
               "type": "string"
            },
            "overview": {
               "title": "Overview",
               "type": "string"
            },
            "stillPath": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Stillpath"
            },
            "seasonNumber": {
               "title": "Seasonnumber",
               "type": "integer"
            }
         },
         "required": [
            "episodeId",
            "airDate",
            "episodeNumber",
            "name",
            "overview",
            "stillPath",
            "seasonNumber"
         ],
         "title": "EpisodeToPreview",
         "type": "object"
      },
      "Genre": {
         "properties": {
            "id": {
               "title": "Id",
               "type": "integer"
            },
            "name": {
               "title": "Name",
               "type": "string"
            }
         },
         "required": [
            "id",
            "name"
         ],
         "title": "Genre",
         "type": "object"
      },
      "Network": {
         "properties": {
            "id": {
               "title": "Id",
               "type": "integer"
            },
            "name": {
               "title": "Name",
               "type": "string"
            },
            "logo_path": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Logo Path"
            },
            "origin_country": {
               "title": "Origin Country",
               "type": "string"
            }
         },
         "required": [
            "id",
            "name",
            "logo_path",
            "origin_country"
         ],
         "title": "Network",
         "type": "object"
      },
      "NextEpisodeToAir": {
         "properties": {
            "id": {
               "title": "Id",
               "type": "integer"
            },
            "name": {
               "title": "Name",
               "type": "string"
            },
            "runtime": {
               "title": "Runtime",
               "type": "integer"
            },
            "show_id": {
               "title": "Show Id",
               "type": "integer"
            },
            "air_date": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Air Date"
            },
            "overview": {
               "title": "Overview",
               "type": "string"
            },
            "still_path": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Still Path"
            },
            "vote_count": {
               "title": "Vote Count",
               "type": "integer"
            },
            "episode_type": {
               "title": "Episode Type",
               "type": "string"
            },
            "vote_average": {
               "title": "Vote Average",
               "type": "number"
            },
            "season_number": {
               "title": "Season Number",
               "type": "integer"
            },
            "episode_number": {
               "title": "Episode Number",
               "type": "integer"
            },
            "production_code": {
               "title": "Production Code",
               "type": "string"
            }
         },
         "required": [
            "id",
            "name",
            "runtime",
            "show_id",
            "air_date",
            "overview",
            "still_path",
            "vote_count",
            "episode_type",
            "vote_average",
            "season_number",
            "episode_number",
            "production_code"
         ],
         "title": "NextEpisodeToAir",
         "type": "object"
      },
      "Season": {
         "properties": {
            "id": {
               "title": "Id",
               "type": "integer"
            },
            "airDate": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Airdate"
            },
            "episodeCount": {
               "title": "Episodecount",
               "type": "integer"
            },
            "name": {
               "title": "Name",
               "type": "string"
            },
            "overview": {
               "title": "Overview",
               "type": "string"
            },
            "posterPath": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "title": "Posterpath"
            },
            "seasonNumber": {
               "title": "Seasonnumber",
               "type": "integer"
            }
         },
         "required": [
            "id",
            "airDate",
            "episodeCount",
            "name",
            "overview",
            "posterPath",
            "seasonNumber"
         ],
         "title": "Season",
         "type": "object"
      }
   },
   "required": [
      "id",
      "name",
      "tagline",
      "summary",
      "status",
      "bannerImage",
      "premiereDate",
      "lastAirDate",
      "networks",
      "genres",
      "seasons",
      "numSeasons",
      "numEpisodes",
      "nextEpisodeToAir",
      "episodeToPreview",
      "episodeRunTime",
      "nextEpisodeForUser"
   ]
}

field bannerImage: str | None [Required]#
field episodeRunTime: List[int] [Required]#
field episodeToPreview: EpisodeToPreview | None [Required]#
field genres: List[Genre] [Required]#
field id: int [Required]#
field lastAirDate: str [Required]#
field name: str [Required]#
field networks: List[Network] [Required]#
field nextEpisodeForUser: Any [Required]#
field nextEpisodeToAir: NextEpisodeToAir | None [Required]#
field numEpisodes: int [Required]#
field numSeasons: int [Required]#
field premiereDate: str [Required]#
field seasons: List[Season] [Required]#
field status: str [Required]#
field summary: str [Required]#
field tagline: str [Required]#