From 7c5c35600c8cb2455e1c0fcf8d03789bf0ef26af Mon Sep 17 00:00:00 2001 From: JzoNg Date: Wed, 16 Oct 2024 15:57:23 +0800 Subject: [PATCH] plugin detail type --- web/app/components/plugins/types.ts | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts index a14f7825da..77963763f9 100644 --- a/web/app/components/plugins/types.ts +++ b/web/app/components/plugins/types.ts @@ -7,6 +7,44 @@ export enum PluginType { extension = 'extension', } +export enum PluginSource { + marketplace = 'marketplace', + github = 'github', + local = 'package', + debugging = 'remote', +} + +export type PluginDeclaration = { + version: string + author: string + icon: string + name: string + label: Record + created_at: string + resource: any // useless in frontend + plugins: any // useless in frontend + tool: any // TODO + endpoint: any // TODO + model: any // TODO +} + +export type PluginDetail = { + id: string + created_at: string + updated_at: string + name: string + plugin_id: string + plugin_unique_identifier: string + declaration: PluginDeclaration + installation_id: string + tenant_id: string + endpoints_setups: number + endpoints_active: number + version: string + source: PluginSource + meta?: any +} + export type Plugin = { 'type': PluginType 'org': string