@uniformdev/files
Advanced tools
Comparing version 19.195.0 to 19.195.1-alpha.2
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
31080
657
2
1
- Removed@uniformdev/context@19.195.0(transitive)
- Removeddequal@2.0.3(transitive)
- Removedjs-cookie@3.0.5(transitive)
- Removedmitt@3.0.1(transitive)
- Removedp-limit@3.1.0(transitive)
- Removedrfdc@1.4.1(transitive)
- Removeduuid@9.0.1(transitive)
- Removedyocto-queue@0.1.0(transitive)