Files
dashboard-desaplus-noc/generated/api.ts

502 lines
14 KiB
TypeScript

/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/api/session": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get: operations["getApiSession"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/apikey/": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get all API keys
* @description Get all API keys
*/
get: operations["getApiApikey"];
put?: never;
/**
* Create a new API key
* @description Create a new API key
*/
post: operations["postApiApikey"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/apikey/update": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Update an API key
* @description Update an API key
*/
post: operations["postApiApikeyUpdate"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/apikey/delete": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Delete an API key
* @description Delete an API key
*/
post: operations["postApiApikeyDelete"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
}
export type webhooks = Record<string, never>;
export interface components {
schemas: never;
responses: never;
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
}
export type $defs = Record<string, never>;
export interface operations {
getApiSession: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: {
headers: {
[name: string]: unknown;
};
content?: never;
};
};
};
getApiApikey: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
apiKeys: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
}[];
};
"multipart/form-data": {
apiKeys: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
}[];
};
"text/plain": {
apiKeys: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
}[];
};
};
};
401: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
500: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
};
};
postApiApikey: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": {
name: string;
expiresAt?: string;
};
"multipart/form-data": {
name: string;
expiresAt?: string;
};
"text/plain": {
name: string;
expiresAt?: string;
};
};
};
responses: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
apiKey: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
};
};
"multipart/form-data": {
apiKey: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
};
};
"text/plain": {
apiKey: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
};
};
};
};
401: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
500: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
};
};
postApiApikeyUpdate: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": {
id: string;
isActive: boolean;
expiresAt?: string | null;
};
"multipart/form-data": {
id: string;
isActive: boolean;
expiresAt?: string | null;
};
"text/plain": {
id: string;
isActive: boolean;
expiresAt?: string | null;
};
};
};
responses: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
apiKey: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
};
};
"multipart/form-data": {
apiKey: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
};
};
"text/plain": {
apiKey: {
id: string;
name: string;
key: string;
isActive: boolean;
expiresAt: string | null | unknown;
createdAt: unknown;
updatedAt: unknown;
};
};
};
};
401: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
403: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
500: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
};
};
postApiApikeyDelete: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": {
id: string;
};
"multipart/form-data": {
id: string;
};
"text/plain": {
id: string;
};
};
};
responses: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
success: boolean;
};
"multipart/form-data": {
success: boolean;
};
"text/plain": {
success: boolean;
};
};
};
401: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
403: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
500: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
error: string;
};
"multipart/form-data": {
error: string;
};
"text/plain": {
error: string;
};
};
};
};
};
}