Spaces:
Sleeping
Sleeping
Download src/modules/plugins/dto/plugin.dto.ts from jinksQspider/openWa: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/modules/plugins/dto/plugin.dto.ts
- Command line
-
hf download hf://spaces/jinksQspider/openWa/src/modules/plugins/dto/plugin.dto.ts
-
curl -L -o plugin.dto.ts https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/modules/plugins/dto/plugin.dto.ts
1.63 kB
| import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | |
| import { IsObject } from 'class-validator'; | |
| import type { PluginConfigSchema } from '../../../core/plugins'; | |
| import { PluginType, PluginStatus } from '../../../core/plugins'; | |
| export class PluginDto { | |
| ({ description: 'Plugin ID' }) | |
| id!: string; | |
| ({ description: 'Plugin name' }) | |
| name!: string; | |
| ({ description: 'Plugin version' }) | |
| version!: string; | |
| ({ enum: PluginType, description: 'Plugin type' }) | |
| type!: PluginType; | |
| ({ description: 'Plugin description' }) | |
| description?: string; | |
| ({ description: 'Plugin author' }) | |
| author?: string; | |
| ({ enum: PluginStatus, description: 'Plugin status' }) | |
| status!: PluginStatus; | |
| ({ description: 'Plugin configuration' }) | |
| config!: Record<string, unknown>; | |
| ({ description: 'Whether this is a built-in plugin' }) | |
| builtIn!: boolean; | |
| ({ description: 'Features provided by this plugin' }) | |
| provides!: string[]; | |
| ({ description: 'Configuration schema' }) | |
| configSchema?: PluginConfigSchema; | |
| ({ description: 'When the plugin was loaded' }) | |
| loadedAt?: string; | |
| ({ description: 'When the plugin was enabled' }) | |
| enabledAt?: string; | |
| ({ description: 'Error message if plugin is in error state' }) | |
| error?: string; | |
| } | |
| export class PluginConfigDto { | |
| ({ description: 'Plugin configuration object' }) | |
| () | |
| config!: Record<string, unknown>; | |
| } | |