UNPKG

@lobehub/chat-plugin-sdk

Version:

Lobe Chat Plugin SDK, help you to build an amazing chat plugin for Lobe Chat

12 lines (11 loc) 494 B
import { LobeChatPluginApi, PluginSchema } from '../types'; export declare const OPENAPI_REQUEST_BODY_KEY = "_requestBody"; export declare class OpenAPIConvertor { private readonly openapi; constructor(openapi: object); convertOpenAPIToPluginSchema: () => Promise<LobeChatPluginApi[]>; convertAuthToSettingsSchema: (rawSettingsSchema?: PluginSchema) => Promise<PluginSchema>; private convertRequestBodyToSchema; private removeRequiredFields; private mergeSchemas; }