Domain Model
Agent Rule
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| title | string | Yes | — | Title |
| content | string | Yes | — | Content |
| scope | enum(global, account, category, project_type) | Yes | — | Scope |
| scopeRefId | string | No | — | ID of the associated scope ref |
| scopeRefLabel | string | No | — | Scope ref label |
| priority | integer | Yes | — | Priority |
| isActive | boolean | Yes | — | Is active |
| createdByUserId | string | Yes | — | ID of the associated created by user |
| workspaceId | string | Yes | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string | Yes | — | Title |
| content | string | Yes | — | Content |
| scope | enum(global, account, category, project_type) | Yes | — | Scope |
| scopeRefId | string | No | — | ID of the associated scope ref |
| scopeRefLabel | string | No | — | Scope ref label |
| priority | integer | Yes | 0 | Priority |
| isActive | boolean | Yes | true | Is active |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string | No | — | Title |
| content | string | No | — | Content |
| scope | enum(global, account, category, project_type) | No | — | Scope |
| scopeRefId | string | No | — | ID of the associated scope ref |
| scopeRefLabel | string | No | — | Scope ref label |
| priority | integer | No | 0 | Priority |
| isActive | boolean | No | true | Is active |