This commit is contained in:
2026-03-16 09:09:54 -04:00
parent e289d1a29b
commit ecf77fd105
37 changed files with 3505 additions and 119 deletions

View File

@@ -7,9 +7,13 @@
*/
export interface Activity {
id: string;
user_id: string;
document_id: string;
activity_type: string;
timestamp: string;
device_id: string;
start_time: string;
title?: string;
author?: string;
duration: number;
start_percentage: number;
end_percentage: number;
read_percentage: number;
}

View File

@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type BackupType = typeof BackupType[keyof typeof BackupType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const BackupType = {
COVERS: 'COVERS',
DOCUMENTS: 'DOCUMENTS',
} as const;

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export interface DirectoryItem {
name?: string;
path?: string;
}

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { DirectoryItem } from './directoryItem';
export interface DirectoryListResponse {
current_path?: string;
items?: DirectoryItem[];
}

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { DatabaseInfo } from './databaseInfo';
export type GetAdmin200 = {
database_info?: DatabaseInfo;
};

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type GetImportDirectoryParams = {
directory?: string;
select?: string;
};

View File

@@ -0,0 +1,11 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type GetLogsParams = {
filter?: string;
};

View File

@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { ImportResultStatus } from './importResultStatus';
export interface ImportResult {
id?: string;
name?: string;
path?: string;
status?: ImportResultStatus;
error?: string;
}

View File

@@ -0,0 +1,17 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type ImportResultStatus = typeof ImportResultStatus[keyof typeof ImportResultStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ImportResultStatus = {
FAILED: 'FAILED',
SUCCESS: 'SUCCESS',
EXISTS: 'EXISTS',
} as const;

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { ImportResult } from './importResult';
export interface ImportResultsResponse {
results?: ImportResult[];
}

View File

@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type ImportType = typeof ImportType[keyof typeof ImportType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ImportType = {
DIRECT: 'DIRECT',
COPY: 'COPY',
} as const;

View File

@@ -8,25 +8,41 @@
export * from './activity';
export * from './activityResponse';
export * from './backupType';
export * from './createDocumentBody';
export * from './databaseInfo';
export * from './device';
export * from './directoryItem';
export * from './directoryListResponse';
export * from './document';
export * from './documentResponse';
export * from './documentsResponse';
export * from './errorResponse';
export * from './getActivityParams';
export * from './getAdmin200';
export * from './getDocumentsParams';
export * from './getImportDirectoryParams';
export * from './getLogsParams';
export * from './getProgressListParams';
export * from './getSearchParams';
export * from './getSearchSource';
export * from './graphDataPoint';
export * from './graphDataResponse';
export * from './homeResponse';
export * from './importResult';
export * from './importResultStatus';
export * from './importResultsResponse';
export * from './importType';
export * from './leaderboardData';
export * from './leaderboardEntry';
export * from './logEntry';
export * from './loginRequest';
export * from './loginResponse';
export * from './logsResponse';
export * from './operationType';
export * from './postAdminActionBody';
export * from './postAdminActionBodyAction';
export * from './postImportBody';
export * from './postSearchBody';
export * from './progress';
export * from './progressListResponse';
@@ -36,7 +52,10 @@ export * from './searchResponse';
export * from './setting';
export * from './settingsResponse';
export * from './streaksResponse';
export * from './updateUserBody';
export * from './user';
export * from './userData';
export * from './userStatisticsResponse';
export * from './userStreak';
export * from './usersResponse';
export * from './wordCount';

View File

@@ -0,0 +1,9 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type LogEntry = string;

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { LogEntry } from './logEntry';
export interface LogsResponse {
logs?: LogEntry[];
filter?: string;
}

View File

@@ -0,0 +1,17 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type OperationType = typeof OperationType[keyof typeof OperationType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const OperationType = {
CREATE: 'CREATE',
UPDATE: 'UPDATE',
DELETE: 'DELETE',
} as const;

View File

@@ -0,0 +1,15 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { PostAdminActionBodyAction } from './postAdminActionBodyAction';
import type { BackupType } from './backupType';
export type PostAdminActionBody = {
action: PostAdminActionBodyAction;
backup_types?: BackupType[];
restore_file?: Blob;
};

View File

@@ -0,0 +1,18 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export type PostAdminActionBodyAction = typeof PostAdminActionBodyAction[keyof typeof PostAdminActionBodyAction];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PostAdminActionBodyAction = {
BACKUP: 'BACKUP',
RESTORE: 'RESTORE',
METADATA_MATCH: 'METADATA_MATCH',
CACHE_TABLES: 'CACHE_TABLES',
} as const;

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { ImportType } from './importType';
export type PostImportBody = {
directory: string;
type: ImportType;
};

View File

@@ -0,0 +1,15 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { OperationType } from './operationType';
export type UpdateUserBody = {
operation: OperationType;
user: string;
password?: string;
is_admin?: boolean;
};

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
export interface User {
id: string;
admin: boolean;
created_at: string;
}

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* AnthoLume API v1
* REST API for AnthoLume document management system
* OpenAPI spec version: 1.0.0
*/
import type { User } from './user';
export interface UsersResponse {
users?: User[];
}