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

@uniformdev/files

Package Overview
Dependencies
Maintainers
0
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/files - npm Package Compare versions

Comparing version 19.195.0 to 19.195.1-alpha.2

228

dist/index.d.ts
import { ApiClient, ClientOptions } from '@uniformdev/context/api';
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
interface paths {
"/api/v1/files": {
/** Gets a single file */
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** @description Gets a single file */
get: {
parameters: {
query: {
query?: {
id?: string;

@@ -18,6 +20,13 @@ url?: string;

};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** 200 response */
/** @description 200 response */
200: {
headers: {
[name: string]: unknown;
};
content: {

@@ -31,3 +40,3 @@ "application/json": {

mediaType: string;
metadata?: unknown | null;
metadata?: unknown;
size: number;

@@ -38,33 +47,24 @@ sourceId?: string;

};
400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
/** 404 response */
404: unknown;
429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
400: components["responses"]["BadRequestError"];
401: components["responses"]["UnauthorizedError"];
403: components["responses"]["ForbiddenError"];
/** @description 404 response */
404: {
headers: {
[name: string]: unknown;
};
content?: never;
};
429: components["responses"]["RateLimitError"];
500: components["responses"]["InternalServerError"];
};
};
/** Creates a new file */
put?: never;
/** @description Creates a new file */
post: {
responses: {
/** 202 response */
202: {
content: {
"application/json": {
/** Format: uuid */
id: string;
uploadUrl: string;
/** @enum {string} */
method: "POST" | "PUT";
};
};
};
400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
/** 404 response */
404: unknown;
429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};

@@ -87,8 +87,8 @@ requestBody: {

};
};
/** Deletes a file */
delete: {
responses: {
/** 200 response */
200: {
/** @description 202 response */
202: {
headers: {
[name: string]: unknown;
};
content: {

@@ -98,13 +98,30 @@ "application/json": {

id: string;
uploadUrl: string;
/** @enum {string} */
method: "POST" | "PUT";
};
};
};
400: external["swagger.yml"]["components"]["responses"]["BadRequestError"];
401: external["swagger.yml"]["components"]["responses"]["UnauthorizedError"];
403: external["swagger.yml"]["components"]["responses"]["ForbiddenError"];
/** 404 response */
404: unknown;
429: external["swagger.yml"]["components"]["responses"]["RateLimitError"];
500: external["swagger.yml"]["components"]["responses"]["InternalServerError"];
400: components["responses"]["BadRequestError"];
401: components["responses"]["UnauthorizedError"];
403: components["responses"]["ForbiddenError"];
/** @description 404 response */
404: {
headers: {
[name: string]: unknown;
};
content?: never;
};
429: components["responses"]["RateLimitError"];
500: components["responses"]["InternalServerError"];
};
};
/** @description Deletes a file */
delete: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {

@@ -121,49 +138,90 @@ content: {

};
};
};
}
interface external {
"swagger.yml": {
paths: {};
components: {
schemas: {
Error: {
/** @description Error message(s) that occurred while processing the request */
errorMessage?: string[] | string;
};
};
responses: {
/** Request input validation failed */
BadRequestError: {
content: {
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
/** @description 200 response */
200: {
headers: {
[name: string]: unknown;
};
};
/** API key or token was not valid */
UnauthorizedError: {
content: {
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
"application/json": {
/** Format: uuid */
id: string;
};
};
};
/** Permission was denied */
ForbiddenError: {
content: {
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
400: components["responses"]["BadRequestError"];
401: components["responses"]["UnauthorizedError"];
403: components["responses"]["ForbiddenError"];
/** @description 404 response */
404: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** Resource not found */
NotFoundError: {
content: {
"application/json": external["swagger.yml"]["components"]["schemas"]["Error"];
};
};
/** Too many requests in allowed time period */
RateLimitError: unknown;
/** Execution error occurred */
InternalServerError: unknown;
429: components["responses"]["RateLimitError"];
500: components["responses"]["InternalServerError"];
};
};
operations: {};
options?: never;
head?: never;
patch?: never;
trace?: never;
};
}
interface components {
schemas: {
Error: {
/** @description Error message(s) that occurred while processing the request */
errorMessage?: string[] | string;
};
};
responses: {
/** @description Request input validation failed */
BadRequestError: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["Error"];
};
};
/** @description API key or token was not valid */
UnauthorizedError: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["Error"];
};
};
/** @description Permission was denied */
ForbiddenError: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["Error"];
};
};
/** @description Too many requests in allowed time period */
RateLimitError: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Execution error occurred */
InternalServerError: {
headers: {
[name: string]: unknown;
};
content?: never;
};
};
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
}

@@ -174,3 +232,3 @@ type FileInsertRequest = paths['/api/v1/files']['post']['requestBody']['content']['application/json'];

type FileDeleteResponse = paths['/api/v1/files']['delete']['responses']['200']['content']['application/json'];
type FileGetRequest = paths['/api/v1/files']['get']['parameters']['query'];
type FileGetRequest = Required<paths['/api/v1/files']['get']['parameters']>['query'];
type FileGetByIDRequest = Pick<FileGetRequest, 'id'>;

@@ -177,0 +235,0 @@ type FileGetByURLRequest = Pick<FileGetRequest, 'url' | 'projectId'>;

{
"name": "@uniformdev/files",
"version": "19.195.0",
"version": "19.195.1-alpha.2+f70c499178",
"description": "Uniform Files helpers",

@@ -39,5 +39,5 @@ "license": "SEE LICENSE IN LICENSE.txt",

"dependencies": {
"@uniformdev/context": "19.195.0"
"@uniformdev/context": "19.195.1-alpha.2+f70c499178"
},
"gitHead": "aba354b131330cc171914ce87aa48d4b10df7192"
"gitHead": "f70c49917880b1aba91884760926f6ea66700a97"
}

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