mirror of
https://github.com/morten-olsen/plainidx.git
synced 2026-02-08 01:06:24 +01:00
37 lines
638 B
TypeScript
37 lines
638 B
TypeScript
import { ZodSchema } from 'zod';
|
|
|
|
type ManifestBackendAction = {
|
|
input: ZodSchema;
|
|
output: ZodSchema;
|
|
};
|
|
|
|
type ManifestBackendActions = Record<string, ManifestBackendAction>;
|
|
|
|
type ManifestBackend = {
|
|
main: string;
|
|
actions: ManifestBackendActions;
|
|
};
|
|
|
|
type ManifestFrontend = {
|
|
main: string;
|
|
};
|
|
|
|
type Manifest = {
|
|
id: string;
|
|
name: string;
|
|
version: string;
|
|
description?: string;
|
|
icon?: string;
|
|
config: ZodSchema;
|
|
frontend?: ManifestFrontend;
|
|
backend?: ManifestBackend;
|
|
};
|
|
|
|
export {
|
|
type Manifest,
|
|
type ManifestBackendAction,
|
|
type ManifestBackendActions,
|
|
type ManifestBackend,
|
|
type ManifestFrontend,
|
|
};
|