UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

77 lines 2.74 kB
/** * UPDATE Entity Templates * * Defines template structures for UPDATE operations across all entity types. * These templates enable agents to perform complex multi-step updates using * the same orchestration patterns as CREATE operations. * * Template Structure: * - metadata: Operation details, platform, complexity, requirements * - template: Template structure with placeholder types * * Placeholder Types: * - {EXISTING: field} - Reference existing entity field/ID * - {CURRENT: field} - Show current value for context * - {FILL: field} - Required update field * - {OPTIONAL: field} - Optional update field * - {FILL_ENUM: option1|option2} - Enum selection * - {ADD_TO: array_field} - Add to existing array * - {UPDATE: field} - Required update field * - {REMOVE: identifier} - Mark element for removal * - {REBALANCE: weights} - Auto-calculate traffic weights * * @author Optimizely MCP Server * @version 1.0.0 */ export interface UpdateTemplateMetadata { operation: 'update'; entity_type: string; platform: 'feature' | 'web' | 'both'; complexity_score: number; description: string; update_type: 'replace' | 'merge' | 'additive' | 'rebalance'; requires_existing: string[]; affects_entities?: string[]; creates_entities?: string[]; warning?: string; common_mistakes?: string[]; critical_distinction?: string; metric_guidance?: { use_cases: string[]; required_field: string; how_to_find_event_id: string; }; } export interface UpdateTemplate { metadata: UpdateTemplateMetadata; template: Record<string, any>; } /** * Core UPDATE templates for all entity types */ export declare const UPDATE_ENTITY_TEMPLATES: Record<string, UpdateTemplate>; /** * Get UPDATE template by template key */ export declare function getUpdateTemplate(templateKey: string): UpdateTemplate | undefined; /** * Get all UPDATE templates for a specific entity type */ export declare function getUpdateTemplatesForEntity(entityType: string): Record<string, UpdateTemplate>; /** * Get all UPDATE templates for a specific platform */ export declare function getUpdateTemplatesForPlatform(platform: 'feature' | 'web' | 'both'): Record<string, UpdateTemplate>; /** * Get UPDATE templates by complexity score */ export declare function getUpdateTemplatesByComplexity(maxComplexity: number): Record<string, UpdateTemplate>; /** * List all available UPDATE template keys */ export declare function listUpdateTemplateKeys(): string[]; /** * Get template metadata without the full template structure */ export declare function getUpdateTemplateMetadata(): Record<string, UpdateTemplateMetadata>; //# sourceMappingURL=UpdateEntityTemplates.d.ts.map