Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moos-api

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moos-api - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

reference/cdn-api-v1.ts

14

package.json
{
"name": "moos-api",
"version": "0.6.0",
"version": "0.7.0",
"description": "Moos API type definitions",

@@ -17,11 +17,11 @@ "repository": {

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.1",
"husky": "^8.0.2",
"lint-staged": "^13.0.3",
"openapi-typescript": "^5.4.1",
"openapi-typescript": "^6.0.1",
"prettier": "^2.7.1",
"typescript": "^4.7.4"
"typescript": "^4.8.4"
},

@@ -28,0 +28,0 @@ "lint-staged": {

@@ -6,23 +6,44 @@ /**

/** Type helpers */
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;
export interface paths {
"/profile": {
/** Get your own Profile. */
/**
* Fetch Profile
* @description Get your own Profile.
*/
post: operations["fetch-profile"];
/** Update your own Profile information. */
/**
* Patch Profile
* @description Update your own Profile information.
*/
patch: operations["patch-profile"];
};
"/profile/applications": {
/** Get a list of your applications. */
/**
* Fetch Applications
* @description Get a list of your applications.
*/
post: operations["post-profile-applications"];
parameters: {};
};
"/profile/friends": {
/** Get a list of your friends. */
/**
* Fetch Profile of a friend
* @description Get a list of your friends.
*/
post: operations["post-profile-friends"];
parameters: {};
};
"/profile/friend/{friendId}": {
/** Begin a friendship. */
/**
* Add Friend
* @description Begin a friendship.
*/
put: operations["put-profile-friend"];
/** End a friendship. */
/**
* Remove Friend
* @description End a friendship.
*/
delete: operations["delete-profile-friend"];

@@ -36,3 +57,6 @@ parameters: {

"/profile/friend/{friendId}/applications": {
/** Get a list of the applications of a friend, which you are allowed to see. */
/**
* List all Applications of a friend
* @description Get a list of the applications of a friend, which you are allowed to see.
*/
post: operations["post-profile-friend-applications"];

@@ -46,3 +70,6 @@ parameters: {

"/profile/friend/{friendId}/files": {
/** Get a list of the files of a friend, which you are allowed to see. */
/**
* List all Files of a friend
* @description Get a list of the files of a friend, which you are allowed to see.
*/
post: operations["post-profile-friend-files"];

@@ -56,3 +83,6 @@ parameters: {

"/profile/friend/{friendId}/collections": {
/** Get a list of the collections of a friend, which you are allowed to see. */
/**
* List all Collections of a friend
* @description Get a list of the collections of a friend, which you are allowed to see.
*/
post: operations["post-profile-friend-collections"];

@@ -66,3 +96,6 @@ parameters: {

"/profile/friend/{friendId}/friends": {
/** Get a list of the friends of a friend, which you are allowed to see. */
/**
* List all Friends of a friend
* @description Get a list of the friends of a friend, which you are allowed to see.
*/
post: operations["post-profile-friend-friends"];

@@ -76,62 +109,106 @@ parameters: {

"/profile/files": {
/** Get a list of your own files. */
/**
* List all Files
* @description Get a list of your own files.
*/
post: operations["post-profile-files"];
};
"/profile/file": {
/** Request a pre-signed upload url for a file you want to upload, if you are logged in with a session cookie. */
/**
* Create File
* @description Request a pre-signed upload url for a file you want to upload, if you are logged in with a session cookie.
*/
put: operations["put-profile-file"];
/** Request a pre-signed download url for a file you want to download, if you are logged in with a session cookie. */
/**
* Get File
* @description Request a pre-signed download url for a file you want to download, if you are logged in with a session cookie.
*/
post: operations["post-profile-file"];
/** Delete the file selected with the id parameter, if you are logged in with a session cookie. */
/**
* Delete File
* @description Delete the file selected with the id parameter, if you are logged in with a session cookie.
*/
delete: operations["delete-profile-file"];
/** Update the metadata of one of your files, if you are logged in with a session cookie. */
/**
* Patch File Metadata
* @description Update the metadata of one of your files, if you are logged in with a session cookie.
*/
patch: operations["patch-profile-file"];
parameters: {};
};
"/profile/collections": {
/** Get a list of your own files. */
/**
* List all Collections
* @description Get a list of your own files.
*/
post: operations["post-profile-collections"];
parameters: {};
};
"/profile/collection": {
/** Create Collection */
put: operations["put-profile-collection"];
/** Get Collection */
post: operations["post-profile-collection"];
/** Delete Collection */
delete: operations["delete-profile-collection"];
/** Patch Collection */
patch: operations["patch-profile-collection"];
};
"/profile/season": {
/** Create Season */
put: operations["put-profile-season"];
/** Get Season */
post: operations["post-profile-season"];
/** Delete Season */
delete: operations["delete-profile-season"];
/** Patch Season */
patch: operations["patch-profile-season"];
parameters: {};
};
"/profile/episode": {
/** Create Episode */
put: operations["put-profile-episode"];
/** Get Episode */
post: operations["post-profile-episode"];
/** Delete Episode */
delete: operations["delete-profile-episode"];
/** Patch Episode */
patch: operations["patch-profile-episode"];
parameters: {};
};
"/profile/source": {
/** Create Source */
put: operations["put-profile-source"];
/** Get Source */
post: operations["post-profile-source"];
/** Delete Source */
delete: operations["delete-profile-source"];
/** Patch Source */
patch: operations["patch-profile-source"];
parameters: {};
};
"/csrf-token": {
/** Endpoint for requesting the CSRF Token */
/**
* Request CSRF-Token
* @description Endpoint for requesting the CSRF Token
*/
get: operations["get-csrf-token"];
/** Endpoint for testing the CSRF Token */
/**
* Test CSRF-Token
* @description Endpoint for testing the CSRF Token
*/
post: operations["test-csrf-token"];
};
"/session": {
/** Endpoint for requesting a session cookie */
/**
* Request Session
* @description Endpoint for requesting a session cookie
*/
post: operations["request-session"];
/** Endpoint for revoking a session cookie */
/**
* Revoke Session
* @description Endpoint for revoking a session cookie
*/
delete: operations["revoke-session"];
};
"/application/profile": {
/** Fetch profile associated with the bearer token. */
/**
* Fetch User Profile
* @description Fetch profile associated with the bearer token.
*/
get: operations["get-application-profile"];

@@ -149,3 +226,3 @@ };

/** Format: uri */
avatar: unknown;
avatar: OneOf<[string, null]>;
scopes: "*"[];

@@ -164,3 +241,3 @@ /** @default false */

/** Format: uri */
avatar: unknown;
avatar: OneOf<[string, null]>;
scopes?: "*"[];

@@ -180,3 +257,3 @@ /** @default false */

/** Format: uri */
avatar: unknown;
avatar: OneOf<[string, null]>;
};

@@ -287,3 +364,2 @@ /** application */

visibility: "private" | "public" | "unlisted";
seasons: string[];
/** Format: uri */

@@ -296,10 +372,19 @@ thumbnail?: string;

};
responses: never;
parameters: never;
requestBodies: {};
headers: never;
pathItems: never;
}
export type external = Record<string, never>;
export interface operations {
/** Get your own Profile. */
"fetch-profile": {
/**
* Fetch Profile
* @description Get your own Profile.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -310,25 +395,16 @@ content: {

};
/** Unauthorized */
401: unknown;
/** Invalid csrf token */
403: unknown;
/** Internal Server Error */
500: unknown;
/** @description Unauthorized */
401: never;
/** @description Invalid csrf token */
403: never;
/** @description Internal Server Error */
500: never;
};
};
/** Update your own Profile information. */
"patch-profile": {
responses: {
/** OK */
200: unknown;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
/**
* Patch Profile
* @description Update your own Profile information.
*/
requestBody?: {
content: {

@@ -340,8 +416,22 @@ "application/json": {

};
responses: {
/** @description OK */
200: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of your applications. */
"post-profile-applications": {
parameters: {};
/**
* Fetch Applications
* @description Get a list of your applications.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -352,15 +442,17 @@ content: {

};
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of your friends. */
"post-profile-friends": {
parameters: {};
/**
* Fetch Profile of a friend
* @description Get a list of your friends.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -371,63 +463,57 @@ content: {

};
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Internal Server Error */
500: never;
};
};
/** Begin a friendship. */
"put-profile-friend": {
parameters: {
path: {
friendId: string;
};
};
/**
* Add Friend
* @description Begin a friendship.
*/
responses: {
/** Created */
201: unknown;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Invalid CSRF Token */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Created */
201: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Invalid CSRF Token */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** End a friendship. */
"delete-profile-friend": {
parameters: {
path: {
friendId: string;
};
};
/**
* Remove Friend
* @description End a friendship.
*/
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Invalid CSRF Token */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Invalid CSRF Token */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of the applications of a friend, which you are allowed to see. */
"post-profile-friend-applications": {
parameters: {
path: {
friendId: string;
};
};
/**
* List all Applications of a friend
* @description Get a list of the applications of a friend, which you are allowed to see.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -438,23 +524,21 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of the files of a friend, which you are allowed to see. */
"post-profile-friend-files": {
parameters: {
path: {
friendId: string;
};
};
/**
* List all Files of a friend
* @description Get a list of the files of a friend, which you are allowed to see.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -465,23 +549,21 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of the collections of a friend, which you are allowed to see. */
"post-profile-friend-collections": {
parameters: {
path: {
friendId: string;
};
};
/**
* List all Collections of a friend
* @description Get a list of the collections of a friend, which you are allowed to see.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -492,23 +574,21 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of the friends of a friend, which you are allowed to see. */
"post-profile-friend-friends": {
parameters: {
path: {
friendId: string;
};
};
/**
* List all Friends of a friend
* @description Get a list of the friends of a friend, which you are allowed to see.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -519,18 +599,21 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of your own files. */
"post-profile-files": {
/**
* List all Files
* @description Get a list of your own files.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -541,37 +624,16 @@ content: {

};
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Internal Server Error */
500: never;
};
};
/** Request a pre-signed upload url for a file you want to upload, if you are logged in with a session cookie. */
"put-profile-file": {
parameters: {};
responses: {
/** OK */
200: {
content: {
"application/json": {
/** Format: uuid */
id: string;
/** Format: uri */
url: string;
/** Format: int64 */
ttl: number;
};
};
};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Invalid CSRF Token */
403: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
/**
* Create File
* @description Request a pre-signed upload url for a file you want to upload, if you are logged in with a session cookie.
*/
requestBody?: {
content: {

@@ -585,8 +647,4 @@ "application/json": {

};
};
/** Request a pre-signed download url for a file you want to download, if you are logged in with a session cookie. */
"post-profile-file": {
parameters: {};
responses: {
/** OK */
/** @description OK */
200: {

@@ -604,14 +662,18 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Invalid CSRF Token */
403: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"post-profile-file": {
/**
* Get File
* @description Request a pre-signed download url for a file you want to download, if you are logged in with a session cookie.
*/
requestBody?: {
content: {

@@ -629,21 +691,34 @@ "application/json": {

};
responses: {
/** @description OK */
200: {
content: {
"application/json": {
/** Format: uuid */
id: string;
/** Format: uri */
url: string;
/** Format: int64 */
ttl: number;
};
};
};
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Delete the file selected with the id parameter, if you are logged in with a session cookie. */
"delete-profile-file": {
parameters: {};
responses: {
/** No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Invalid CSRF Token */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
/**
* Delete File
* @description Delete the file selected with the id parameter, if you are logged in with a session cookie.
*/
requestBody?: {
content: {

@@ -656,21 +731,23 @@ "application/json": {

};
};
/** Update the metadata of one of your files, if you are logged in with a session cookie. */
"patch-profile-file": {
parameters: {};
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Invalid CSRF Token */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"patch-profile-file": {
/**
* Patch File Metadata
* @description Update the metadata of one of your files, if you are logged in with a session cookie.
*/
requestBody?: {
content: {

@@ -685,8 +762,24 @@ "application/json": {

};
responses: {
/** @description No Content */
204: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Get a list of your own files. */
"post-profile-collections": {
parameters: {};
/**
* List all Collections
* @description Get a list of your own files.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -697,28 +790,13 @@ content: {

};
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Internal Server Error */
500: never;
};
};
"put-profile-collection": {
responses: {
/** OK */
200: {
content: {
"application/json": components["schemas"]["Collection"];
};
};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
/** Create Collection */
requestBody?: {
content: {

@@ -737,6 +815,4 @@ "application/json": {

};
};
"post-profile-collection": {
responses: {
/** OK */
/** @description OK */
200: {

@@ -747,14 +823,15 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"post-profile-collection": {
/** Get Collection */
requestBody?: {
content: {

@@ -767,19 +844,24 @@ "application/json": {

};
responses: {
/** @description OK */
200: {
content: {
"application/json": components["schemas"]["Collection"];
};
};
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"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: {
/** Delete Collection */
requestBody?: {
content: {

@@ -792,19 +874,20 @@ "application/json": {

};
};
"patch-profile-collection": {
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"patch-profile-collection": {
/** Patch Collection */
requestBody?: {
content: {

@@ -822,24 +905,20 @@ "application/json": {

};
responses: {
/** @description No Content */
204: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"put-profile-season": {
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: {
/** Create Season */
requestBody?: {
content: {

@@ -853,7 +932,4 @@ "application/json": {

};
};
"post-profile-season": {
parameters: {};
responses: {
/** OK */
/** @description OK */
200: {

@@ -864,14 +940,17 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"post-profile-season": {
/** Get Season */
requestBody?: {
content: {

@@ -884,20 +963,24 @@ "application/json": {

};
responses: {
/** @description OK */
200: {
content: {
"application/json": components["schemas"]["Season"];
};
};
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"delete-profile-season": {
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: {
/** Delete Season */
requestBody?: {
content: {

@@ -910,20 +993,20 @@ "application/json": {

};
};
"patch-profile-season": {
parameters: {};
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"patch-profile-season": {
/** Patch Season */
requestBody?: {
content: {

@@ -937,24 +1020,20 @@ "application/json": {

};
responses: {
/** @description No Content */
204: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"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: {
/** Create Episode */
requestBody?: {
content: {

@@ -969,7 +1048,4 @@ "application/json": {

};
};
"post-profile-episode": {
parameters: {};
responses: {
/** OK */
/** @description OK */
200: {

@@ -980,14 +1056,17 @@ content: {

};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"post-profile-episode": {
/** Get Episode */
requestBody?: {
content: {

@@ -1002,20 +1081,24 @@ "application/json": {

};
responses: {
/** @description OK */
200: {
content: {
"application/json": components["schemas"]["Episode"];
};
};
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"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: {
/** Delete Episode */
requestBody?: {
content: {

@@ -1029,20 +1112,20 @@ "application/json": {

};
};
"patch-profile-episode": {
parameters: {};
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"patch-profile-episode": {
/** Patch Episode */
requestBody?: {
content: {

@@ -1059,24 +1142,20 @@ "application/json": {

};
responses: {
/** @description No Content */
204: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"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: {
/** Create Source */
requestBody?: {
content: {

@@ -1098,27 +1177,24 @@ "application/json": {

};
};
"post-profile-source": {
parameters: {};
responses: {
/** OK */
/** @description OK */
200: {
content: {
"application/json": {
/** Format: uri */
url: string;
};
"application/json": components["schemas"]["Source"];
};
};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"post-profile-source": {
/** Get Source */
requestBody?: {
content: {

@@ -1131,20 +1207,27 @@ "application/json": {

};
responses: {
/** @description OK */
200: {
content: {
"application/json": {
/** Format: uri */
url: string;
};
};
};
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
"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: {
/** Delete Source */
requestBody?: {
content: {

@@ -1161,20 +1244,20 @@ "application/json": {

};
};
"patch-profile-source": {
parameters: {};
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
requestBody: {
};
"patch-profile-source": {
/** Patch Source */
requestBody?: {
content: {

@@ -1198,7 +1281,24 @@ "application/json": {

};
responses: {
/** @description No Content */
204: never;
/** @description Bad Request */
400: never;
/** @description Unauthorized */
401: never;
/** @description Forbidden */
403: never;
/** @description Not Found */
404: never;
/** @description Internal Server Error */
500: never;
};
};
/** Endpoint for requesting the CSRF Token */
"get-csrf-token": {
/**
* Request CSRF-Token
* @description Endpoint for requesting the CSRF Token
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -1213,22 +1313,20 @@ content: {

};
/** Endpoint for testing the CSRF Token */
"test-csrf-token": {
/**
* Test CSRF-Token
* @description Endpoint for testing the CSRF Token
*/
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Invalid csrf token */
403: unknown;
/** @description Invalid csrf token */
403: never;
};
};
/** Endpoint for requesting a session cookie */
"request-session": {
responses: {
/** No Content */
204: never;
/** Bad Request */
400: unknown;
/** Invalid csrf token */
403: unknown;
};
requestBody: {
/**
* Request Session
* @description Endpoint for requesting a session cookie
*/
requestBody?: {
content: {

@@ -1240,18 +1338,32 @@ "application/json": {

};
responses: {
/** @description No Content */
204: never;
/** @description Bad Request */
400: never;
/** @description Invalid csrf token */
403: never;
};
};
/** Endpoint for revoking a session cookie */
"revoke-session": {
/**
* Revoke Session
* @description Endpoint for revoking a session cookie
*/
responses: {
/** No Content */
/** @description No Content */
204: never;
/** Invalid csrf token */
403: unknown;
/** Internal Server Error */
500: unknown;
/** @description Invalid csrf token */
403: never;
/** @description Internal Server Error */
500: never;
};
};
/** Fetch profile associated with the bearer token. */
"get-application-profile": {
/**
* Fetch User Profile
* @description Fetch profile associated with the bearer token.
*/
responses: {
/** OK */
/** @description OK */
200: {

@@ -1262,8 +1374,6 @@ content: {

};
/** Bad Request */
400: unknown;
/** @description Bad Request */
400: never;
};
};
}
export interface external {}

@@ -1,27 +0,4 @@

import { components as _components, external as _external, operations as _operations, paths as _paths } from "../reference/moos-api-v1";
import { moos_api_v1 } from "./moos-api";
import { cdn_api_v1 } from "./cdn-api";
declare namespace v1 {
export type external = _external;
export type operations = _operations;
export type paths = _paths;
export enum AuthScope {
identify = "identify",
files = "files",
all = "*"
}
export type UserProfile = _components["schemas"]["UserProfile"];
export type Friend = _components["schemas"]["Friend"];
export type ProviderProfile = _components["schemas"]["ProviderProfile"];
export type Application = _components["schemas"]["Application"];
export type File = _components["schemas"]["File"];
export type CollectionPreview = _components["schemas"]["CollectionPreview"];
export type Collection = _components["schemas"]["Collection"];
export type Season = _components["schemas"]["Season"];
export type Language = _components["schemas"]["Language"];
export type Episode = _components["schemas"]["Episode"];
export type Source = _components["schemas"]["Source"];
}
export { v1 };
export { moos_api_v1, cdn_api_v1 };

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc