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.1.1 to 0.2.0

14

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

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

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"eslint": "^8.15.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.1",
"lint-staged": "^12.3.8",
"openapi-typescript": "^5.3.0",
"lint-staged": "^13.0.0",
"openapi-typescript": "^5.4.0",
"prettier": "^2.6.2",
"typescript": "^4.6.4"
"typescript": "^4.7.3"
},

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

@@ -13,2 +13,17 @@ /**

};
"/profile/file": {
/** 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. */
post: operations["get-profile-file"];
/** 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: operations["patch-profile-file"];
parameters: {};
};
"/profile/files": {
/** Get a list of your own files, if you are logged in with a session cookie */
post: operations["get-profile-files"];
};
"/csrf-token": {

@@ -34,4 +49,5 @@ /** Endpoint for requesting the CSRF Token */

schemas: {
/** Profile */
/** profile */
UserProfile: {
/** Format: uuid */
uid: string;

@@ -42,2 +58,3 @@ username: string;

scopes: "*"[];
/** @default false */
private: boolean;

@@ -60,2 +77,3 @@ providers?: components["schemas"]["ProviderProfile"][];

Application: {
/** Format: uuid */
id: string;

@@ -65,3 +83,5 @@ name: string;

redirectUri: string;
/** Format: uuid */
owner: string;
/** @default false */
trusted: boolean;

@@ -71,2 +91,19 @@ /** Format: int64 */

};
/** file */
File: {
/** Format: uuid */
id: string;
/** Format: uuid */
name: string;
/** Format: uuid */
owner: string;
/** @default true */
private: boolean;
/** Format: int64 */
size: number;
/** Format: int64 */
creationDate: number;
/** Format: int64 */
lastModified: number;
};
};

@@ -86,2 +123,4 @@ requestBodies: {};

};
/** Unauthorized */
401: unknown;
/** Invalid csrf token */

@@ -98,2 +137,6 @@ 403: unknown;

200: unknown;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */

@@ -112,2 +155,141 @@ 403: unknown;

};
/** 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;
};
};
};
/** Unauthorized */
401: unknown;
/** Invalid CSRF Token */
403: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
content: {
"application/json": {
name: string;
/** @default true */
private?: boolean;
};
};
};
};
/** Request a pre-signed download url for a file you want to download, if you are logged in with a session cookie. */
"get-profile-file": {
parameters: {};
responses: {
/** OK */
200: {
content: {
"application/json": {
/** Format: uuid */
id: string;
/** Format: uri */
url: string;
/** Format: int64 */
ttl: number;
};
"application/xml": components["schemas"]["File"];
};
};
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Not Found */
404: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
content: {
"application/json": {
/** Format: uuid */
id: string;
/**
* Format: int64
* @default 14400
*/
ttl?: number;
};
};
};
};
/** 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;
/** Unauthorized */
401: unknown;
/** Invalid CSRF Token */
403: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
content: {
"application/json": {
/** Format: uuid */
id: string;
};
};
};
};
/** Update the metadata of one of your files, if you are logged in with a session cookie. */
"patch-profile-file": {
parameters: {};
responses: {
/** No Content */
204: never;
/** Bad Request */
400: unknown;
/** Unauthorized */
401: unknown;
/** Forbidden */
403: unknown;
/** Internal Server Error */
500: unknown;
};
requestBody: {
content: {
"application/json": {
/** Format: uuid */
id?: string;
private?: boolean;
name?: string;
required?: unknown;
};
};
};
};
/** Get a list of your own files, if you are logged in with a session cookie */
"get-profile-files": {
responses: {
/** OK */
200: {
content: {
"application/json": components["schemas"]["File"][];
};
};
/** Unauthorized */
401: unknown;
/** Internal Server Error */
500: unknown;
};
};
/** Endpoint for requesting the CSRF Token */

@@ -114,0 +296,0 @@ "get-csrf-token": {

@@ -10,2 +10,3 @@ import { components as _components, external as _external, operations as _operations, paths as _paths } from "../reference/moos-api-v1";

identify = "identify",
files = "files",
all = "*"

@@ -17,4 +18,5 @@ }

export type Application = _components["schemas"]["Application"];
export type File = _components["schemas"]["File"];
}
export { v1 };

Sorry, the diff of this file is not supported yet

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