ZRM Docs
Domain Model

External Connection

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
providerenum(google_workspace, telegram, whatsapp, discord, generic_monitoring, slack, microsoft_teams, jira, github, openclaw)YesProvider
connectionTypeenum(user_oauth, service_account, bot_token, webhook, github_app)YesConnection type
connectionStatusenum(active, disconnected, expired, revoked, error)YesConnection status
owningWorkspaceIdstringNoID of the associated owning workspace
owningUserIdstringNoID of the associated owning user
labelstringNoLabel
scopesJsonstring[]NoScopes json
encryptedCredentialsRefstringNoEncrypted credentials ref
externalPrincipalIdstringNoID of the associated external principal
configurationJsonobjectNoConfiguration json
lastSyncAtstring.date-timeNoLast sync at
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode
connectionRoleenum(orchestrator, personal)YesConnection role
aiAccessEnabledbooleanYesAi access enabled

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
providerenum(google_workspace, telegram, whatsapp, discord, generic_monitoring, slack, microsoft_teams, jira, github, openclaw)YesProvider
connectionTypeenum(user_oauth, service_account, bot_token, webhook, github_app)YesConnection type
connectionStatusenum(active, disconnected, expired, revoked, error)Yes"active"Connection status
owningWorkspaceIdstringNoID of the associated owning workspace
owningUserIdstringNoID of the associated owning user
labelstringNoLabel
scopesJsonstring[]NoScopes json
encryptedCredentialsRefstringNoEncrypted credentials ref
externalPrincipalIdstringNoID of the associated external principal
configurationJsonobjectNoConfiguration json
lastSyncAtstring.date-timeNoLast sync at
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode
externalSubstringNoExternal sub
connectionRoleenum(orchestrator, personal)Yes"personal"Connection role
aiAccessEnabledbooleanYesfalseAi access enabled

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
connectionStatusenum(active, disconnected, expired, revoked, error)No"active"Connection status
owningWorkspaceIdstringNoID of the associated owning workspace
owningUserIdstringNoID of the associated owning user
labelstringNoLabel
scopesJsonstring[]NoScopes json
encryptedCredentialsRefstringNoEncrypted credentials ref
externalPrincipalIdstringNoID of the associated external principal
configurationJsonobjectNoConfiguration json
lastSyncAtstring.date-timeNoLast sync at
externalSubstringNoExternal sub
connectionRoleenum(orchestrator, personal)NoConnection role
aiAccessEnabledbooleanNoAi access enabled

On this page