@crowdin/app-project-module
Version:
Module that generates for you all common endpoints for serving standalone Crowdin App
18 lines (17 loc) • 660 B
TypeScript
import { CrowdinContextInfo, UiModule } from '../../types';
import Crowdin from '@crowdin/crowdin-api-client';
export declare enum PromptActions {
PRE_TRANSLATE = "pre_translate",
ASSIST = "assist",
QA_CHECK = "qa_check"
}
export interface AiPromptProviderModule extends UiModule {
/**
* generates prompt text based on provided options
*/
compile: (options: any, payload: any, client: Crowdin, context: CrowdinContextInfo, requestData: any) => Promise<string>;
/**
* Represents a collection of supported actions. If not provided, all actions are supported.
*/
actions?: PromptActions[] | `custom:${string}`[];
}