mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat: Add Ask assistant behind feature flag (#9995)
Co-authored-by: Ricardo Espinoza <ricardo@n8n.io> Co-authored-by: Milorad Filipovic <milorad@n8n.io>
This commit is contained in:
@@ -25,6 +25,7 @@ import type { Project, ProjectType } from '@db/entities/Project';
|
||||
import type { ProjectRole } from './databases/entities/ProjectRelation';
|
||||
import type { Scope } from '@n8n/permissions';
|
||||
import type { ScopesField } from './services/role.service';
|
||||
import type { AiAssistantSDK } from '@n8n_io/ai-assistant-sdk';
|
||||
|
||||
export class UserUpdatePayload implements Pick<User, 'email' | 'firstName' | 'lastName'> {
|
||||
@Expose()
|
||||
@@ -601,3 +602,14 @@ export declare namespace NpsSurveyRequest {
|
||||
// once some schema validation is added
|
||||
type NpsSurveyUpdate = AuthenticatedRequest<{}, {}, unknown>;
|
||||
}
|
||||
|
||||
// ----------------------------------
|
||||
// /ai-assistant
|
||||
// ----------------------------------
|
||||
|
||||
export declare namespace AiAssistantRequest {
|
||||
type Chat = AuthenticatedRequest<{}, {}, AiAssistantSDK.ChatRequestPayload>;
|
||||
|
||||
type SuggestionPayload = { sessionId: string; suggestionId: string };
|
||||
type ApplySuggestion = AuthenticatedRequest<{}, {}, SuggestionPayload>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user