{ "openapi": "3.1.1", "info": { "title": "Anthology | v1", "version": "1.0.0" }, "paths": { "/api/identity/register": { "post": { "tags": [ "Identity" ], "operationId": "register", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } } } } }, "/api/identity/login": { "post": { "tags": [ "Identity" ], "operationId": "login", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } } } } }, "/api/identity/logout": { "post": { "tags": [ "Identity" ], "operationId": "logout", "responses": { "200": { "description": "OK" } } } }, "/api/identity/me": { "get": { "tags": [ "Identity" ], "operationId": "getMe", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } } } } }, "/api/catalog/search": { "get": { "tags": [ "Catalog" ], "operationId": "searchCatalog", "parameters": [ { "name": "term", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "mediaType", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogSearchResult" } } } } } } } }, "/api/catalog/search/local": { "get": { "tags": [ "Catalog" ], "operationId": "searchLocal", "parameters": [ { "name": "term", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "mediaType", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LocalSearchResult" } } } } } } } }, "/api/catalog/titles": { "post": { "tags": [ "Catalog" ], "operationId": "addTitle", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Command" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TitleDto" } } } } } } }, "/api/catalog/titles/{titleId}": { "get": { "tags": [ "Catalog" ], "operationId": "getTitle", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TitleDetailDto" } } } } } } }, "/api/catalog/titles/{titleId}/similar": { "get": { "tags": [ "Catalog" ], "operationId": "getSimilar", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SimilarTitleDto" } } } } } } } }, "/api/catalog/titles/{titleId}/creators": { "get": { "tags": [ "Catalog" ], "operationId": "getCreatorTitles", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CreatorTitleDto" } } } } } } } }, "/api/tracking/items/{titleId}/want": { "post": { "tags": [ "Tracking" ], "operationId": "wantItem", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackedItemDto" } } } } } } }, "/api/tracking/items/{titleId}/start": { "post": { "tags": [ "Tracking" ], "operationId": "startItem", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackedItemDto" } } } } } } }, "/api/tracking/items/{titleId}/finish": { "post": { "tags": [ "Tracking" ], "operationId": "finishItem", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackedItemDto" } } } } } } }, "/api/tracking/items/{titleId}/abandon": { "post": { "tags": [ "Tracking" ], "operationId": "abandonItem", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackedItemDto" } } } } } } }, "/api/tracking/items/{titleId}/rate": { "post": { "tags": [ "Tracking" ], "operationId": "rateItem", "parameters": [ { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RateRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrackedItemDto" } } } } } } }, "/api/tracking/diary": { "get": { "tags": [ "Tracking" ], "operationId": "getDiary", "parameters": [ { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "size", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PageOfDiaryEntryDto" } } } } } } }, "/api/tracking/library": { "get": { "tags": [ "Tracking" ], "operationId": "getLibrary", "parameters": [ { "name": "media", "in": "query", "schema": { "type": "string" } }, { "name": "status", "in": "query", "schema": { "type": "string" } }, { "name": "minRating", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } }, { "name": "sort", "in": "query", "schema": { "type": "string" } }, { "name": "dir", "in": "query", "schema": { "type": "string" } }, { "name": "cursor", "in": "query", "schema": { "type": "string" } }, { "name": "size", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PageOfLibraryItemDto" } } } } } } }, "/api/tracking/lists": { "post": { "tags": [ "Lists" ], "operationId": "createList", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateListRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CuratedListDto" } } } } } }, "get": { "tags": [ "Lists" ], "operationId": "getUserLists", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ListSummaryDto" } } } } } } } }, "/api/tracking/lists/{listId}": { "put": { "tags": [ "Lists" ], "operationId": "updateList", "parameters": [ { "name": "listId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateListRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CuratedListDto" } } } } } }, "delete": { "tags": [ "Lists" ], "operationId": "deleteList", "parameters": [ { "name": "listId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CuratedListDto" } } } } } }, "get": { "tags": [ "Lists" ], "operationId": "getList", "parameters": [ { "name": "listId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListDetailDto" } } } } } } }, "/api/tracking/lists/{listId}/items": { "post": { "tags": [ "Lists" ], "operationId": "addItemToList", "parameters": [ { "name": "listId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddItemToListRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CuratedListDto" } } } } } } }, "/api/tracking/lists/{listId}/items/{titleId}": { "delete": { "tags": [ "Lists" ], "operationId": "removeItemFromList", "parameters": [ { "name": "listId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CuratedListDto" } } } } } } }, "/api/tracking/lists/{listId}/items/{titleId}/position": { "put": { "tags": [ "Lists" ], "operationId": "reorderItem", "parameters": [ { "name": "listId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "titleId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReorderItemRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CuratedListDto" } } } } } } }, "/api/profile/me": { "get": { "tags": [ "Profile" ], "operationId": "getProfile", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileDto" } } } } } }, "put": { "tags": [ "Profile" ], "operationId": "updateProfile", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProfileCommand" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileDto" } } } } } } }, "/api/recommendations/for-you": { "get": { "tags": [ "Recommendations" ], "operationId": "getForYou", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FeedRowDto" } } } } } } } }, "/api/recommendations/hidden": { "get": { "tags": [ "Recommendations" ], "operationId": "getHiddenTitles", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/HiddenTitleDto" } } } } } } } }, "/api/recommendations/feedback": { "post": { "tags": [ "Recommendations" ], "operationId": "submitFeedback", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeedbackRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeedbackAck" } } } } } } }, "/admin/streams/types": { "get": { "tags": [ "Admin" ], "responses": { "200": { "description": "OK" } } } }, "/admin/streams/rebuild": { "post": { "tags": [ "Admin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RebuildByTypeRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } } } }, "/admin/streams/rebuild/{jobId}": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "jobId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } }, "/admin/projections": { "get": { "tags": [ "Admin" ], "responses": { "200": { "description": "OK" } } } }, "/admin/projections/{name}/status": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/admin/projections/{name}/rebuild": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } } } }, "/admin/jobs/{jobId}": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "jobId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "AddItemToListRequest": { "required": [ "titleId" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" } } }, "AuthResponse": { "required": [ "userId", "email" ], "type": "object", "properties": { "userId": { "type": "string", "format": "uuid" }, "email": { "type": "string" } } }, "CatalogSearchResult": { "required": [ "externalId", "mediaType", "name", "year", "posterUrl", "overview" ], "type": "object", "properties": { "externalId": { "type": "string" }, "mediaType": { "$ref": "#/components/schemas/MediaType" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterUrl": { "type": [ "null", "string" ] }, "overview": { "type": [ "null", "string" ] } } }, "Command": { "required": [ "externalId" ], "type": "object", "properties": { "externalId": { "type": "string" } } }, "CreateListRequest": { "required": [ "name", "description", "visibility" ], "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": [ "null", "string" ] }, "visibility": { "type": [ "null", "string" ] } } }, "CreatorTitleDto": { "required": [ "titleId", "name", "year", "posterPath", "mediaType", "sharedPerson", "sharedRole" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] }, "mediaType": { "$ref": "#/components/schemas/MediaType" }, "sharedPerson": { "type": "string" }, "sharedRole": { "type": "string" } } }, "CuratedListDto": { "required": [ "listId", "name", "description", "visibility", "itemCount" ], "type": "object", "properties": { "listId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "description": { "type": [ "null", "string" ] }, "visibility": { "$ref": "#/components/schemas/ListVisibility" }, "itemCount": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } }, "DiaryEntryDto": { "required": [ "titleId", "status", "rating", "occurredAt" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "status": { "$ref": "#/components/schemas/TrackedStatus" }, "rating": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "occurredAt": { "type": "string", "format": "date-time" } } }, "FeedbackAck": { "required": [ "titleId", "signal" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "signal": { "$ref": "#/components/schemas/FeedbackSignal" } } }, "FeedbackRequest": { "required": [ "titleId", "signal" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "signal": { "$ref": "#/components/schemas/FeedbackSignal" } } }, "FeedbackSignal": { "enum": [ "hidden", "seen", "more_like_this", "restored" ] }, "FeedItemDto": { "required": [ "titleId", "name", "year", "posterPath", "mediaType", "genres" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] }, "mediaType": { "$ref": "#/components/schemas/MediaType" }, "genres": { "type": [ "null", "array" ], "items": { "type": "string" } } } }, "FeedRowDto": { "required": [ "seedTitleId", "seedName", "items" ], "type": "object", "properties": { "seedTitleId": { "type": "string", "format": "uuid" }, "seedName": { "type": "string" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/FeedItemDto" } } } }, "HiddenTitleDto": { "required": [ "titleId", "name", "year", "posterPath" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] } } }, "LibraryItemDto": { "required": [ "titleId", "title", "mediaType", "status", "rating", "addedAt", "finishedAt", "partsCompleted", "partsTotal", "posterPath" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "title": { "type": "string" }, "mediaType": { "$ref": "#/components/schemas/MediaType" }, "status": { "$ref": "#/components/schemas/TrackedStatus" }, "rating": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "addedAt": { "type": "string", "format": "date-time" }, "finishedAt": { "type": [ "null", "string" ], "format": "date-time" }, "partsCompleted": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "partsTotal": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] } } }, "ListDetailDto": { "required": [ "listId", "name", "description", "visibility", "userId", "createdAt", "items" ], "type": "object", "properties": { "listId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "description": { "type": [ "null", "string" ] }, "visibility": { "$ref": "#/components/schemas/ListVisibility" }, "userId": { "type": "string", "format": "uuid" }, "createdAt": { "type": "string", "format": "date-time" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/ListItemDto" } } } }, "ListItemDto": { "required": [ "titleId", "title", "mediaType", "posterPath", "position", "addedAt" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "title": { "type": "string" }, "mediaType": { "type": "string" }, "posterPath": { "type": [ "null", "string" ] }, "position": { "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$", "type": [ "number", "string" ], "format": "double" }, "addedAt": { "type": "string", "format": "date-time" } } }, "ListSummaryDto": { "required": [ "listId", "name", "description", "visibility", "itemCount", "createdAt" ], "type": "object", "properties": { "listId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "description": { "type": [ "null", "string" ] }, "visibility": { "$ref": "#/components/schemas/ListVisibility" }, "itemCount": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" } } }, "ListVisibility": { "enum": [ "private", "public_by_link" ] }, "LocalSearchResult": { "required": [ "titleId", "name", "year", "posterPath", "overview", "mediaType", "genres", "score" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] }, "overview": { "type": [ "null", "string" ] }, "mediaType": { "$ref": "#/components/schemas/MediaType" }, "genres": { "type": [ "null", "array" ], "items": { "type": "string" } }, "score": { "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$", "type": [ "number", "string" ], "format": "double" } } }, "LoginRequest": { "required": [ "email", "password" ], "type": "object", "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "MediaType": { "enum": [ "film", "tv_show", "season", "episode", "book", "game", "music" ] }, "PageOfDiaryEntryDto": { "required": [ "items", "nextCursor" ], "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/DiaryEntryDto" } }, "nextCursor": { "type": [ "null", "string" ] } } }, "PageOfLibraryItemDto": { "required": [ "items", "nextCursor" ], "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/LibraryItemDto" } }, "nextCursor": { "type": [ "null", "string" ] } } }, "ProfileDto": { "required": [ "userId", "displayName" ], "type": "object", "properties": { "userId": { "type": "string", "format": "uuid" }, "displayName": { "type": "string" } } }, "RateRequest": { "required": [ "rating" ], "type": "object", "properties": { "rating": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } }, "Rating": { "type": "object", "properties": { "value": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" } } }, "RebuildByTypeRequest": { "required": [ "streamType" ], "type": "object", "properties": { "streamType": { "type": "string" } } }, "RegisterRequest": { "required": [ "email", "password" ], "type": "object", "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "ReorderItemRequest": { "required": [ "afterTitleId" ], "type": "object", "properties": { "afterTitleId": { "type": [ "null", "string" ], "format": "uuid" } } }, "SimilarTitleDto": { "required": [ "titleId", "name", "year", "posterPath", "mediaType", "genres" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] }, "mediaType": { "$ref": "#/components/schemas/MediaType" }, "genres": { "type": [ "null", "array" ], "items": { "type": "string" } } } }, "TitleDetailDto": { "required": [ "titleId", "name", "year", "posterPath", "backdropPath", "overview", "mediaType" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] }, "backdropPath": { "type": [ "null", "string" ] }, "overview": { "type": [ "null", "string" ] }, "mediaType": { "$ref": "#/components/schemas/MediaType" } } }, "TitleDto": { "required": [ "titleId", "name", "year", "posterPath", "mediaType" ], "type": "object", "properties": { "titleId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "year": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "null", "integer", "string" ], "format": "int32" }, "posterPath": { "type": [ "null", "string" ] }, "mediaType": { "$ref": "#/components/schemas/MediaType" } } }, "TrackedItemDto": { "required": [ "streamId", "titleId", "status", "rating" ], "type": "object", "properties": { "streamId": { "type": "string", "format": "uuid" }, "titleId": { "type": "string", "format": "uuid" }, "status": { "$ref": "#/components/schemas/TrackedStatus" }, "rating": { "oneOf": [ { "type": "null" }, { "$ref": "#/components/schemas/Rating" } ] } } }, "TrackedStatus": { "enum": [ "none", "want_to_consume", "in_progress", "finished", "abandoned", "rerated" ] }, "UpdateListRequest": { "required": [ "name", "description", "visibility" ], "type": "object", "properties": { "name": { "type": [ "null", "string" ] }, "description": { "type": [ "null", "string" ] }, "visibility": { "type": [ "null", "string" ] } } }, "UpdateProfileCommand": { "required": [ "displayName" ], "type": "object", "properties": { "displayName": { "type": "string" } } } } }, "tags": [ { "name": "Identity" }, { "name": "Catalog" }, { "name": "Tracking" }, { "name": "Lists" }, { "name": "Profile" }, { "name": "Recommendations" }, { "name": "Admin" } ] }