Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "moos-api", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Moos API type definitions", | ||
@@ -17,10 +17,10 @@ "repository": { | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.27.1", | ||
"@typescript-eslint/parser": "^5.27.1", | ||
"@typescript-eslint/eslint-plugin": "^5.28.0", | ||
"@typescript-eslint/parser": "^5.28.0", | ||
"eslint": "^8.17.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.0", | ||
"lint-staged": "^13.0.1", | ||
"openapi-typescript": "^5.4.0", | ||
"prettier": "^2.6.2", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.7.3" | ||
@@ -27,0 +27,0 @@ }, |
@@ -28,2 +28,29 @@ /** | ||
}; | ||
"/profile/collection": { | ||
put: operations["put-profile-collection"]; | ||
post: operations["post-profile-collection"]; | ||
delete: operations["delete-profile-collection"]; | ||
patch: operations["patch-profile-collection"]; | ||
}; | ||
"/profile/list": { | ||
put: operations["put-profile-list"]; | ||
post: operations["post-profile-list"]; | ||
delete: operations["delete-profile-list"]; | ||
patch: operations["patch-profile-list"]; | ||
parameters: {}; | ||
}; | ||
"/profile/episode": { | ||
put: operations["put-profile-episode"]; | ||
post: operations["post-profile-episode"]; | ||
delete: operations["delete-profile-episode"]; | ||
patch: operations["patch-profile-episode"]; | ||
parameters: {}; | ||
}; | ||
"/profile/source": { | ||
put: operations["put-profile-source"]; | ||
post: operations["post-profile-source"]; | ||
delete: operations["delete-profile-source"]; | ||
patch: operations["patch-profile-source"]; | ||
parameters: {}; | ||
}; | ||
"/csrf-token": { | ||
@@ -104,2 +131,66 @@ /** Endpoint for requesting the CSRF Token */ | ||
}; | ||
Episode: { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
index: number; | ||
name: string; | ||
sources: components["schemas"]["Source"][]; | ||
/** Format: int64 */ | ||
creationDate: number; | ||
}; | ||
/** Source */ | ||
Source: { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
episodeId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
language: components["schemas"]["Language"]; | ||
name?: string; | ||
/** Format: uri */ | ||
url?: string; | ||
/** Format: uuid */ | ||
key?: string; | ||
subtitles?: components["schemas"]["Language"]; | ||
/** Format: int64 */ | ||
creationDate: number; | ||
}; | ||
/** | ||
* Language | ||
* @default en_EN | ||
* @example de_DE | ||
* @enum {string} | ||
*/ | ||
Language: "en_EN" | "de_DE" | "ja_JP"; | ||
/** Season */ | ||
Season: { | ||
/** Format: uuid */ | ||
collectionId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
index: number; | ||
episodes: string[]; | ||
languages: components["schemas"]["Language"][]; | ||
subtitles: components["schemas"]["Language"][]; | ||
}; | ||
/** SeasonGroup */ | ||
SeasonGroup: { | ||
/** Format: uuid */ | ||
id: string; | ||
name: string; | ||
/** | ||
* @default private | ||
* @enum {string} | ||
*/ | ||
visibility: "private" | "public" | "unlisted"; | ||
seasons: string[]; | ||
/** Format: uuid */ | ||
thumbnail?: string; | ||
owner: string; | ||
/** Format: int64 */ | ||
creationDate: number; | ||
}; | ||
}; | ||
@@ -205,2 +296,4 @@ requestBodies: {}; | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
@@ -266,6 +359,5 @@ 404: unknown; | ||
/** Format: uuid */ | ||
id?: string; | ||
id: string; | ||
private?: boolean; | ||
name?: string; | ||
required?: unknown; | ||
}; | ||
@@ -290,2 +382,477 @@ }; | ||
}; | ||
"put-profile-collection": { | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["SeasonGroup"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
name: string; | ||
/** | ||
* @default private | ||
* @enum {string} | ||
*/ | ||
visibility?: "private" | "public" | "unlisted"; | ||
/** Format: uri */ | ||
thumbnail?: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"post-profile-collection": { | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["SeasonGroup"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"delete-profile-collection": { | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"patch-profile-collection": { | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
name?: string; | ||
/** @enum {string} */ | ||
visibility?: "public" | "private" | "unlisted"; | ||
/** Format: uuid */ | ||
thumbnail?: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"put-profile-list": { | ||
parameters: {}; | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["Season"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
groupId: string; | ||
index: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"post-profile-list": { | ||
parameters: {}; | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["Season"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"delete-profile-list": { | ||
parameters: {}; | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"patch-profile-list": { | ||
parameters: {}; | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
index?: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"put-profile-episode": { | ||
parameters: {}; | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["Episode"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
index: number; | ||
name: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"post-profile-episode": { | ||
parameters: {}; | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["Episode"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"delete-profile-episode": { | ||
parameters: {}; | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
seasonId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"patch-profile-episode": { | ||
parameters: {}; | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
index?: number; | ||
name?: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"put-profile-source": { | ||
parameters: {}; | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["Source"]; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
episodeId: string; | ||
language: components["schemas"]["Language"]; | ||
name?: string; | ||
/** Format: uri */ | ||
url?: string; | ||
/** Format: uuid */ | ||
key?: string; | ||
subtitles?: components["schemas"]["Language"]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"post-profile-source": { | ||
parameters: {}; | ||
responses: { | ||
/** OK */ | ||
200: { | ||
content: { | ||
"application/json": { | ||
/** Format: uri */ | ||
url: string; | ||
}; | ||
}; | ||
}; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"delete-profile-source": { | ||
parameters: {}; | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
episodeId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
"patch-profile-source": { | ||
parameters: {}; | ||
responses: { | ||
/** No Content */ | ||
204: never; | ||
/** Bad Request */ | ||
400: unknown; | ||
/** Unauthorized */ | ||
401: unknown; | ||
/** Forbidden */ | ||
403: unknown; | ||
/** Not Found */ | ||
404: unknown; | ||
/** Internal Server Error */ | ||
500: unknown; | ||
}; | ||
requestBody: { | ||
content: { | ||
"application/json": { | ||
/** Format: uuid */ | ||
seasonId: string; | ||
/** Format: uuid */ | ||
episodeId: string; | ||
/** Format: uuid */ | ||
id: string; | ||
language?: components["schemas"]["Language"]; | ||
name?: string; | ||
/** Format: uri */ | ||
url?: string; | ||
/** Format: uuid */ | ||
key?: string; | ||
subtitles?: components["schemas"]["Language"]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
/** Endpoint for requesting the CSRF Token */ | ||
@@ -292,0 +859,0 @@ "get-csrf-token": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139801
964