Domain Model
Channel Endpoint
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 |
| provider | enum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email) | Yes | — | Provider |
| endpointType | enum(bot, channel, phone_number, guild_app, dm, group_chat, workspace_app, thread) | Yes | — | Endpoint type |
| externalEndpointId | string | Yes | — | ID of the associated external endpoint |
| displayName | string | Yes | — | Display name |
| workspaceId | string | Yes | — | ID of the associated workspace |
| connectionId | string | No | — | ID of the associated connection |
| configJson | object | No | — | Config json |
| status | string | Yes | — | Status |
| agentAutonomyLevel | enum(draft_only, auto_low_risk, auto_all) | Yes | — | Agent autonomy level |
| visibilityMode | enum(global, workspace_local, shared) | Yes | — | Visibility mode |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| provider | enum(telegram, whatsapp, discord, slack, microsoft_teams, ai_agent, email) | Yes | — | Provider |
| endpointType | enum(bot, channel, phone_number, guild_app, dm, group_chat, workspace_app, thread) | Yes | — | Endpoint type |
| externalEndpointId | string | Yes | — | ID of the associated external endpoint |
| displayName | string | Yes | — | Display name |
| workspaceId | string | Yes | — | ID of the associated workspace |
| connectionId | string | No | — | ID of the associated connection |
| configJson | object | No | — | Config json |
| status | string | Yes | "active" | Status |
| agentAutonomyLevel | enum(draft_only, auto_low_risk, auto_all) | Yes | "draft_only" | Agent autonomy level |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| endpointType | enum(bot, channel, phone_number, guild_app, dm, group_chat, workspace_app, thread) | No | — | Endpoint type |
| externalEndpointId | string | No | — | ID of the associated external endpoint |
| displayName | string | No | — | Display name |
| connectionId | string | No | — | ID of the associated connection |
| configJson | object | No | — | Config json |
| status | string | No | "active" | Status |
| agentAutonomyLevel | enum(draft_only, auto_low_risk, auto_all) | No | "draft_only" | Agent autonomy level |