mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-24 21:36:06 +00:00
feat: marketplace page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ComponentManifest } from '@/app/infra/entities/common';
|
||||
import { ComponentManifest, I18nObject } from '@/app/infra/entities/common';
|
||||
|
||||
export interface Plugin {
|
||||
status: 'intialized' | 'mounted' | 'unmounted';
|
||||
@@ -9,6 +9,8 @@ export interface Plugin {
|
||||
};
|
||||
debug: boolean;
|
||||
enabled: boolean;
|
||||
install_source: string;
|
||||
install_info: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
components: {
|
||||
component_config: object;
|
||||
manifest: {
|
||||
@@ -16,3 +18,27 @@ export interface Plugin {
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// marketplace plugin v4
|
||||
export enum PluginV4Status {
|
||||
Any = 'any',
|
||||
Live = 'live',
|
||||
Deleted = 'deleted',
|
||||
}
|
||||
|
||||
export interface PluginV4 {
|
||||
id: number;
|
||||
plugin_id: string;
|
||||
author: string;
|
||||
name: string;
|
||||
label: I18nObject;
|
||||
description: I18nObject;
|
||||
icon: string;
|
||||
repository: string;
|
||||
tags: string[];
|
||||
install_count: number;
|
||||
latest_version: string;
|
||||
status: PluginV4Status;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user