2bbf42b741
Remove Agent Desk users, roles, login sessions, tokens, and local permission persistence. Expose the backend as an embeddable ai-agent module with host-provided subject lookup and operation authorization callbacks, and complete the frontend/backend repository split.
37 lines
868 B
Go
37 lines
868 B
Go
package request
|
|
|
|
import "code.tczkiot.com/wlw/ai-agent/internal/ai/workflow/dsl"
|
|
|
|
type CreateAIWorkflowRequest struct {
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Definition dsl.Definition `json:"definition"`
|
|
}
|
|
|
|
type UpdateAIWorkflowRequest struct {
|
|
ID int64 `json:"id"`
|
|
CreateAIWorkflowRequest
|
|
}
|
|
|
|
type DeleteAIWorkflowRequest struct {
|
|
ID int64 `json:"id"`
|
|
}
|
|
|
|
type ValidateAIWorkflowRequest struct {
|
|
Definition dsl.Definition `json:"definition"`
|
|
}
|
|
|
|
type PublishAIWorkflowRequest struct {
|
|
WorkflowID int64 `json:"workflowId"`
|
|
Definition dsl.Definition `json:"definition"`
|
|
}
|
|
|
|
type AIWorkflowVersionListRequest struct {
|
|
WorkflowID int64 `json:"workflowId"`
|
|
}
|
|
|
|
type RestoreAIWorkflowVersionRequest struct {
|
|
WorkflowID int64 `json:"workflowId"`
|
|
WorkflowVersionID int64 `json:"workflowVersionId"`
|
|
}
|