mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 11:05:30 +08:00
### What problem does this PR solve? Feat: Add configuration for webhook to the begin node. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -25,6 +25,7 @@ export * from './pipeline';
|
||||
export enum AgentDialogueMode {
|
||||
Conversational = 'conversational',
|
||||
Task = 'task',
|
||||
Webhook = 'Webhook',
|
||||
}
|
||||
|
||||
import { ModelVariableType } from '@/constants/knowledge';
|
||||
@ -930,3 +931,37 @@ export enum AgentVariableType {
|
||||
Begin = 'begin',
|
||||
Conversation = 'conversation',
|
||||
}
|
||||
|
||||
export enum WebhookMethod {
|
||||
Post = 'POST',
|
||||
Get = 'GET',
|
||||
Put = 'PUT',
|
||||
Patch = 'PATCH',
|
||||
Delete = 'DELETE',
|
||||
Head = 'HEAD',
|
||||
}
|
||||
|
||||
export enum WebhookContentType {
|
||||
ApplicationJson = 'application/json',
|
||||
MultipartFormData = 'multipart/form-data',
|
||||
ApplicationXWwwFormUrlencoded = 'application/x-www-form-urlencoded',
|
||||
TextPlain = 'text/plain',
|
||||
ApplicationOctetStream = 'application/octet-stream',
|
||||
}
|
||||
|
||||
export enum WebhookExecutionMode {
|
||||
Immediately = 'Immediately',
|
||||
Streaming = 'Streaming',
|
||||
}
|
||||
|
||||
export enum WebhookSecurityAuthType {
|
||||
None = 'none',
|
||||
Token = 'token',
|
||||
Basic = 'basic',
|
||||
Jwt = 'jwt',
|
||||
Hmac = 'hmac',
|
||||
}
|
||||
|
||||
export const RateLimitPerList = ['minute', 'hour', 'day'];
|
||||
|
||||
export const WebhookMaxBodySize = ['10MB', '50MB', '100MB', '1000MB'];
|
||||
|
||||
Reference in New Issue
Block a user