<ai-portal.activity-timeline>
构件 ai-portal.activity-timeline
Examples
Basic
Properties
Name | Description | Type | Default | Required |
---|
list | | Activity[] | | |
chatUrlTemplate | | string | | |
Type references
ActivityOfCreateGoal
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "create_goal" | | ✅ |
metadata | | { goal_title: string; goal_description?: string } | | ✅ |
ActivityBase
Name | Description | Type | Default | Required |
---|
user_id | | string | | ✅ |
user_name | | string | | ✅ |
time | | number | | ✅ |
action_type | | "create_goal" | "edit_goal" | "delete_goal" | "decompose_goals" | "alter_owner" | "alter_user" | "add_comment" | "start_conversation" | | ✅ |
metadata | | unknown | | ✅ |
ActivityOfEditGoal
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "edit_goal" | | ✅ |
metadata | | { before: { title?: string; description?: string }; after: { title?: string; description?: string } } | | ✅ |
ActivityOfDeleteGoal
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "delete_goal" | | ✅ |
metadata | | { goal_title: string; goal_description?: string } | | ✅ |
ActivityOfDecomposeGoals
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "decompose_goals" | | ✅ |
metadata | | { sub_goals_count: number; sub_goals: Array<{ sub_goal_id: string; title: string }> } | | ✅ |
ActivityOfAlterOwner
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "alter_owner" | | ✅ |
metadata | | { before: { owner: { user_id: string; user_name: string } }; after: { owner: { user_id: string; user_name: string } } } | | ✅ |
ActivityOfAlterUser
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "alter_user" | | ✅ |
metadata | | { before: { users: Array<{ user_id: string; user_name: string }> }; after: { users: Array<{ user_id: string; user_name: string }> } } | | ✅ |
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "add_comment" | | ✅ |
metadata | | { comment_content: string } | | ✅ |
ActivityOfStartConversation
extends ActivityBase
Name | Description | Type | Default | Required |
---|
action_type | | "start_conversation" | | ✅ |
metadata | | { conversation_id: string; conversation_title: string; conversation_description?: string } | | ✅ |
Activity
ActivityOfCreateGoal | ActivityOfEditGoal | ActivityOfDeleteGoal | ActivityOfDecomposeGoals | ActivityOfAlterOwner | ActivityOfAlterUser | ActivityOfAddComment | ActivityOfStartConversation