Types
Every entity in Aeontel as a TypeScript type. Field shapes, constraints, and back-references to the methods that consume them.
Every entity in Aeontel as a TypeScript type. Field shapes, constraints, and back-references to the methods that consume them.
All
- AddEdgeDefinitionBody — The
AddEdgeDefinitionBodyentity. - AddGraphNodeBody — Request body for a GraphNode operation.
- AddNodeDefinitionBody — The
AddNodeDefinitionBodyentity. - AddOrganizationMemberBody — Request body for an OrganizationMember operation.
- AddSolutionMemberBody — Request body for a SolutionMember operation.
- AddSolutionMembersBody — Request body for a SolutionMember operation.
- AddSolutionMembersResponse — Response payload for a SolutionMember endpoint.
- AddSwarmEdgeBody — Request body for a SwarmEdge operation.
- AddSwarmNodeBody — Request body for a SwarmNode operation.
- AddTeamMemberBody — Request body for a TeamMember operation.
- AddThreadParticipantBody — Request body for a ThreadParticipant operation.
- AddWorkflowEdgeBody — Request body for a WorkflowEdge operation.
- AddWorkflowNodeBody — Request body for a WorkflowNode operation.
- AddWorkspaceMemberBody — Request body for a WorkspaceMember operation.
- Agent — The
Agententity. - AgentVersion — The
AgentVersionentity. - Api — The
Apientity. - ApiKey — The
ApiKeyentity. - ApiKeyCreated — Shape returned when an ApiKey is first created.
- ApiRateLimit — The
ApiRateLimitentity. - App — The
Appentity. - AppConfig — The
AppConfigentity. - AppDomain — The
AppDomainentity. - AppDomainStatus — The
AppDomainStatusentity. - AppFile — The
AppFileentity. - AppPreviewSession — The
AppPreviewSessionentity. - AppPreviewSessionStatus — The
AppPreviewSessionStatusentity. - AppVersion — The
AppVersionentity. - BrowserRenderOptions — Shared render options for Cloudflare Browser Rendering quick actions. Mirrors the CF REST API; every field is optional and passed through as provided. See https://developers.cloudflare.com/browser-rendering/.
- BrowseTableResponse — The
BrowseTableResponseentity. - Build — The
Buildentity. - BuildStep — The
BuildStepentity. - BuildWithSteps — The
BuildWithStepsentity. - CancelBuildBody — Request body for a Build operation.
- CancelDeployBody — Request body for a Deploy operation.
- CleanupResourceType — The
CleanupResourceTypeentity. - CleanupTask — The
CleanupTaskentity. - CleanupTaskStatus — The
CleanupTaskStatusentity. - ColumnInfo — The
ColumnInfoentity. - CompleteFileUploadBody — Request body for a File operation.
- Connector — The
Connectorentity. - ConnectorConnectResponse — Response payload for a Connector endpoint.
- ConnectorWithStatus — The
ConnectorWithStatusentity. - CorsPolicy — The
CorsPolicyentity. - CreateAgentBody — Request body for creating an Agent.
- CreateAgentVersionBody — Request body for creating an AgentVersion.
- CreateApiBody — Request body for creating an Api.
- CreateApiKeyBody — Request body for creating an ApiKey.
- CreateAppBody — Request body for creating an App.
- CreateAppPreviewSessionBody — Request body for creating an AppPreviewSession.
- CreateAppVersionBody — Request body for creating an AppVersion.
- CreateAppVersionFileBody — Request body for an AppVersion operation.
- CreateBuildBody — Request body for creating a Build.
- CreateDatabaseBody — Request body for creating a Database.
- CreateDeployBody — Request body for creating a Deploy.
- CreateDirectoryBody — Request body for creating a Directory.
- CreateElementBody — Request body for creating an Element.
- CreateElementVersionBody — Request body for creating an ElementVersion.
- CreateElementVersionFileBody — Request body for an ElementVersion operation.
- CreateEndpointBody — Request body for creating an Endpoint.
- CreateFileBody — Body for
POST /api/files— initiate a multipart upload and create a file row inuploadingstate. The response returns the file id plus signed URLs for each part so the client can PUT bytes directly to R2. - CreateFileResponse — Response payload for a File endpoint.
- CreateFunctionBody — Request body for creating a Function.
- CreateFunctionFileBody — Request body for creating a FunctionFile.
- CreateFunctionVersionBody — Request body for creating a FunctionVersion.
- CreateGraphDefinitionBody — Request body for creating a GraphDefinition.
- CreateGraphInstanceBody — Request body for a Graph operation.
- CreateHtmlFromUrlBody — The
CreateHtmlFromUrlBodyentity. - CreateIntegrationBody — Request body for creating an Integration.
- CreateMarkdownFromUrlBody — The
CreateMarkdownFromUrlBodyentity. - CreateMcpServerBody — Request body for creating a McpServer.
- CreateOAuthApplicationBody — Request body for creating an OAuthApplication.
- CreateOrganizationBody — Request body for creating an Organization.
- CreatePageBody — Request body for creating a Page.
- CreatePdfFromUrlBody — The
CreatePdfFromUrlBodyentity. - CreateRunBody — Request body for
POST /api/runs— the single endpoint to execute any entity.
id is a prefixed entity ID (agt*, fun*, swm*, wfl*) — the handler detects
the entity type from the prefix. input defaults to { text: string } but
accepts any JSON object when the entity defines a custom input schema.
- CreateScheduleBody — Request body for creating a Schedule.
- CreateSchemaBody — Request body for creating a Schema.
- CreateScreenshotFromUrlBody — The
CreateScreenshotFromUrlBodyentity. - CreateSecretBody — Request body for creating a Secret.
- CreateSkillBody — Request body for creating a Skill.
- CreateSolutionBody — Request body for creating a Solution.
- CreateSpecBody — Request body for creating a Spec.
- CreateSwarmBody — Request body for creating a Swarm.
- CreateSwarmVersionBody — Request body for creating a SwarmVersion.
- CreateTeamBody — Request body for creating a Team.
- CreateThreadBody — Request body for creating a Thread.
- CreateTokenBody — The
CreateTokenBodyentity. - CreateToolBody — Request body for creating a Tool.
- CreateTriggerBody — Request body for creating a Trigger.
- CreateWebhookEndpointBody — Request body for creating a WebhookEndpoint.
- CreateWebhookSubscriptionBody — Request body for creating a WebhookSubscription.
- CreateWorkflowBody — Request body for creating a Workflow.
- CreateWorkspaceBody — Request body for creating a Workspace.
- Database — The
Databaseentity. - DatabaseKind — The
DatabaseKindentity. - DatabaseStatus — The
DatabaseStatusentity. - Deploy — The
Deployentity. - DeployStep — The
DeployStepentity. - DeployWithSteps — The
DeployWithStepsentity. - DescribeTableResponse — The
DescribeTableResponseentity. - Directory — Directory — hierarchical organization for files within a workspace. Every
workspace has a synthetic root directory created on workspace.created;
user-created directories descend from it. Both a display
nameand a URL-safeslug. Sibling slugs are unique per parent. - Element — The
Elemententity. - ElementVersion — The
ElementVersionentity. - Email — The
Emailentity. - EmailAddress — The
EmailAddressentity. - EmailAttachment — The
EmailAttachmententity. - EmptyTrashResult — Result of
trash.empty— counts of rows hard-deleted vs. failed. - Endpoint — The
Endpointentity. - EndpointAuthPolicy — Auth policy applied to incoming requests. Set on the parent
api(default for all its endpoints) and optionally overridden per endpoint. Effective policy =endpoint.auth ?? api.auth.
Spec: docs/endpoints.md §6.
- EndpointHandlerType — The
EndpointHandlerTypeentity. - Event — The flat audit-log row, as stored in the
eventtable.
Producers (services) emit events via logEvent — those calls are
type-narrowed against the EventInput discriminated union in
packages/services/src/events.ts, so each variant's data shape is
type-checked at the call site. This schema is the consumer shape:
what GET /api/events returns. data is delivered as opaque JSON;
clients discriminate on type and parse data per the catalogue in
docs/events.md.
Subject type isn't stored separately — the subjectId prefix encodes
it (agt_… = agent, wsp_… = workspace, …). Use detectEntityType
from @aeontel/shared to recover it.
- ExecuteSqlBody — The
ExecuteSqlBodyentity. - ExtractGraphBody — Request body for a Graph operation.
- File — File — unified content entity. Every piece of user content (document, image, video, anything) is a file row. Image and video specializations live in side tables and are surfaced via the filtered image/video convenience endpoints.
Multipart upload state is inline on the file row (r2MultipartId,
parts, etc.) and null once status = "ready".
-
FileStatus — FileStatus — lifecycle state of a file row.
-
uploading— multipart upload is in progress, bytes not all written -
ready— upload finalized, bytes in R2, mime sniffed -
error— terminal failure (upload, mime mismatch, R2 error, etc.) -
FileUploadPart — The
FileUploadPartentity. -
Function — The
Functionentity. -
FunctionFile — A single source file belonging to a function version. A function version captures the full file set at the moment it was saved; the run worker materialises these into a Worker Loader bundle on demand and compiles TS/JS sources in-isolate via
@cloudflare/worker-bundler.
Files reference only versionId; reach the function via functionVersion.functionId.
- FunctionFileEntry — The
FunctionFileEntryentity. - FunctionVersion — The
FunctionVersionentity. - GrantPermissionBody — Request body for a Permission operation.
- Graph — The
Graphentity. - GraphDefinition — The
GraphDefinitionentity. - GraphEdge — The
GraphEdgeentity. - GraphEdgeDefinition — The
GraphEdgeDefinitionentity. - GraphNode — The
GraphNodeentity. - GraphNodeDefinition — The
GraphNodeDefinitionentity. - HttpMethod — The
HttpMethodentity. - Image — Image — Cloudflare Images specialization of a file row. Surfaced
alongside its file data via the filtered
/api/imagesendpoint. Keyed by its ownimg_…id, with a unique 1 FK to the underlying file (fileId).
The url field is derived at read time from the CF Images account hash
and the cfImageId, signed with a short-lived JWT if signing is
configured.
- InstallIntegrationBody — Request body for an Integration operation.
- InstallMember — The
InstallMemberentity. - InstallMembersResponse — Response payload for an InstallMember endpoint.
- Integration — The
Integrationentity. - IntegrationInstall — The
IntegrationInstallentity. - IntegrationManifest — The
IntegrationManifestentity. - IntegrationMember — The
IntegrationMemberentity. - IntegrationMemberDecl — The
IntegrationMemberDeclentity. - IntegrationMemberPolicy — The
IntegrationMemberPolicyentity. - IntegrationMemberPreview — The
IntegrationMemberPreviewentity. - IntegrationMembersResponse — Response payload for an IntegrationMember endpoint.
- IntegrationTrustTier — The
IntegrationTrustTierentity. - IntegrationUpgradeResult — The
IntegrationUpgradeResultentity. - IntegrationVersion — The
IntegrationVersionentity. - IntegrationVisibility — The
IntegrationVisibilityentity. - InvokeFunctionBody — Request body for a Function operation.
- InvokeFunctionResponse — Response payload for a Function endpoint.
- KickoffChatBody — Programmatic chat kickoff — open a thread between an agent and a user, optionally seeded with a pre-baked opening message authored by the agent. The recipient discovers the thread via the same event- stream invalidation that backs the chat sidebar.
- KickoffChatResponse — The
KickoffChatResponseentity. - ListCleanupTasksQuery — Query parameters for listing CleanupTask entities.
- ListTablesResponse — The
ListTablesResponseentity. - Log — The
Logentity. - MarkThreadReadBody — Request body for a Thread operation.
- McpServer — The
McpServerentity. - Message — The
Messageentity. - MessageContent — A message's content: an ordered array of UIMessage parts.
- MessagePart — AI SDK v6
UIMessage.parts[]element. Loose shape for forward-compat — the runner emits whatever part types it uses; consumers render based ontype. Known types:text,reasoning,tool-{name},dynamic-tool,file,source-url,source-document,data-{name},step-start. Extended thinking blocks must round-trip verbatim to preserve signatures. - MissedRunPolicy — The
MissedRunPolicyentity. - MovePageBody — Request body for a Page operation.
- Notification — The
Notificationentity. - OAuthApplication — The
OAuthApplicationentity. - OAuthApplicationCreated — Returned only at creation time and from the rotate-secret endpoint.
clientSecretis shown once; subsequent reads return the application row without it. - OAuthApplicationType — The
OAuthApplicationTypeentity. - OAuthScope — The
OAuthScopeentity. - Organization — The
Organizationentity. - OrganizationMember — The
OrganizationMemberentity. - Page — Page — user-authored MDX document that embeds Elements.
Same primitive for docs, runbooks, knowledge base entries (kind "page",
tree-structured via parentId), and dashboards (kind "dashboard", flat
list on the workspace home). Only kind and surface differ; the data
model does not.
body is MDX text. Element tags (<Table …/>, <Chart …/>) resolve to
the workspace's Element registry at render time; unknown tags render as
inline error cards, not crashes.
- PageKind — Discriminates flat dashboards (workspace home) from tree-structured pages.
- Permission — Permission — universal per-entity ACL grant. Binds (subject, entity, tier).
The caller's effective tier on an entity is the max of:
- global admin bypass
- workspace-member default tier
- direct user grant
- team grants where the caller is a member
- org grants where the caller is a member of the parent org
- public grants (any authenticated user)
Soft-delete semantics: revoke = soft-delete (permission.revoked),
restore within retention = permission.restored, hard-delete past
retention = permission.purged. Soft-deleted grants are filtered out of
every effective-tier query so a revoked grant cannot grant access even
momentarily — same precedent as verifyApiKey.
Both entityId and subjectId are polymorphic. The type is encoded in
the ID prefix; clients call detectEntityType to label them.
- PublishIntegrationBody — Request body for an Integration operation.
- RefreshSpecResponse — Response payload for a Spec endpoint.
- ResolvePagePathBody — Request body for a Page operation.
- RoleTier — Three-tier permission ladder, applied per (subject, entity).
- Run — The
Runentity. - Schedule — The
Scheduleentity. - Schema — The
Schemaentity. - Scopes — The
Scopesentity. - Secret — The
Secretentity. - SetAppDomainBody — Request body for an AppDomain operation.
- SignatureAlgo — The
SignatureAlgoentity. - SignFileUploadPartsBody — Request body for a FileUploadPart operation.
- SignFileUploadPartsResponse — Response payload for a FileUploadPart endpoint.
- Skill — The
Skillentity. - SkillResource — The
SkillResourceentity. - SkillResourceInput — The
SkillResourceInputentity. - Solution — The
Solutionentity. - SolutionEdgeRelation — The
SolutionEdgeRelationentity. - SolutionGraphEdge — The
SolutionGraphEdgeentity. - SolutionGraphMember — The
SolutionGraphMemberentity. - SolutionGraphResponse — Response payload for a Solution endpoint.
- SolutionMember — The
SolutionMemberentity. - Spec — The
Specentity. - SpecFormat — The
SpecFormatentity. - SpecMember — The
SpecMemberentity. - SpecMemberKind — The
SpecMemberKindentity. - SpecVersion — The
SpecVersionentity. - SqlResult — The
SqlResultentity. - StartAppPreviewBody — Request body for an App operation.
- Swarm — The
Swarmentity. - SwarmEdge — The
SwarmEdgeentity. - SwarmNode — The
SwarmNodeentity. - SwarmVersion — The
SwarmVersionentity. - SyncAgentMcpServersBody — Request body for a McpServer operation.
- SyncAgentSkillsBody — Request body for an Agent operation.
- SyncAgentToolsBody — Request body for an Agent operation.
- SyncWorkflowGraphBody — Request body for a Workflow operation.
- Team — The
Teamentity. - TeamMember — The
TeamMemberentity. - Thread — The
Threadentity. - ThreadParticipant — A participant in a thread. Exactly one identity field is populated per row
(enforced by a CHECK constraint). The populated field determines the
participant's kind:
userId→ Aeontel useragentId→ agentswarmId→ swarmexternalIdentity→ external visitor on a deployed app
displayName is required for visitors (they have no other human-readable
identity) and optional as a cache for the rest.
- TokenCreated — The
TokenCreatedentity. - TokenScopes — The
TokenScopesentity. - ToMarkdownBody — The
ToMarkdownBodyentity. - Tool — The
Toolentity. - TrashItem — One soft-deleted row in the cross-entity trash list.
idcarries the entity's prefixed ID (usedetectEntityType(id)if you need the type without readingtype).purgeAtis the wall-clock at which the cleanup worker will hard-delete this row, computed server-side fromdeletedAt + RETENTION_DURATIONS[retentionTier]. Null when the tier isnone(compliance hold) or unset. - Trigger — The
Triggerentity. - UnreadCount — The
UnreadCountentity. - UpdateAgentBody — Request body for updating an Agent.
- UpdateAgentVersionBody — Request body for updating an AgentVersion.
- UpdateApiBody — Request body for updating an Api.
- UpdateApiKeyBody — Request body for updating an ApiKey.
- UpdateAppBody — Request body for updating an App.
- UpdateAppVersionFileBody — Request body for an AppVersion operation.
- UpdateDatabaseBody — Request body for updating a Database.
- UpdateDirectoryBody — Request body for updating a Directory.
- UpdateEdgeDefinitionBody — The
UpdateEdgeDefinitionBodyentity. - UpdateElementBody — Request body for updating an Element.
- UpdateElementVersionFileBody — Request body for an ElementVersion operation.
- UpdateEndpointBody — Request body for updating an Endpoint.
- UpdateFileBody — Request body for updating a File.
- UpdateFunctionBody — Request body for updating a Function.
- UpdateFunctionFileBody — Request body for updating a FunctionFile.
- UpdateFunctionVersionBody — Request body for updating a FunctionVersion.
- UpdateGraphDefinitionBody — Request body for updating a GraphDefinition.
- UpdateIntegrationBody — Request body for updating an Integration.
- UpdateMcpServerBody — Request body for updating a McpServer.
- UpdateNodeDefinitionBody — The
UpdateNodeDefinitionBodyentity. - UpdateOAuthApplicationBody — Request body for updating an OAuthApplication.
- UpdateOrganizationBody — Request body for updating an Organization.
- UpdateOrganizationMemberRoleBody — Request body for an OrganizationMember operation.
- UpdatePageBody — Request body for updating a Page.
- UpdatePermissionBody — Request body for updating a Permission.
- UpdateScheduleBody — Request body for updating a Schedule.
- UpdateSchemaBody — Request body for updating a Schema.
- UpdateSecretBody — Request body for updating a Secret.
- UpdateSkillBody — Request body for updating a Skill.
- UpdateSolutionBody — Request body for updating a Solution.
- UpdateSpecBody — Request body for updating a Spec.
- UpdateSwarmBody — Request body for updating a Swarm.
- UpdateSwarmVersionBody — Request body for updating a SwarmVersion.
- UpdateTeamBody — Request body for updating a Team.
- UpdateTeamMemberRoleBody — Request body for a TeamMember operation.
- UpdateThreadBody — Request body for updating a Thread.
- UpdateToolBody — Request body for updating a Tool.
- UpdateTriggerBody — Request body for updating a Trigger.
- UpdateUserBody — Request body for updating an User.
- UpdateWebhookEndpointBody — Request body for updating a WebhookEndpoint.
- UpdateWebhookSubscriptionBody — Request body for updating a WebhookSubscription.
- UpdateWorkflowBody — Request body for updating a Workflow.
- UpdateWorkflowEdgeBody — Request body for updating a WorkflowEdge.
- UpdateWorkflowNodeBody — Request body for updating a WorkflowNode.
- UpdateWorkspaceBody — Request body for updating a Workspace.
- UpdateWorkspaceEmailBody — Request body for a Workspace operation.
- UpdateWorkspaceMemberRoleBody — Request body for a WorkspaceMember operation.
- User — The
Userentity. - Video — Video — Cloudflare Stream specialization of a file row. Surfaced
alongside its file data via the filtered
/api/videosendpoint. Keyed by its ownvid_…id, with a unique 1 FK to the underlying file (fileId).
Transcoding is async inside CF. The row starts in processing and
lazy-reconciles to ready/error on subsequent GET /api/videos/:id
calls (the service hits CF Stream's status API and updates the row).
- VideoTranscodingStatus — The
VideoTranscodingStatusentity. - WebhookAttemptKind — The
WebhookAttemptKindentity. - WebhookCall — The
WebhookCallentity. - WebhookDelivery — The
WebhookDeliveryentity. - WebhookDeliveryAttempt — The
WebhookDeliveryAttemptentity. - WebhookDeliveryStatus — The
WebhookDeliveryStatusentity. - WebhookEndpoint — The
WebhookEndpointentity. - WebhookSignatureStatus — The
WebhookSignatureStatusentity. - WebhookSubscription — The
WebhookSubscriptionentity. - Workflow — The
Workflowentity. - WorkflowEdge — The
WorkflowEdgeentity. - WorkflowNode — The
WorkflowNodeentity. - WorkflowNodeCreateType — The set of node types accepted by the API for create/update.
Note: this is intentionally narrower than
WorkflowNodeTypeSchemafrom enums.ts (which includes start/end/condition/delay) — the wider set is a pre-existing inconsistency to be cleaned up separately. - WorkflowRun — The
WorkflowRunentity. - Workspace — The
Workspaceentity. - WorkspaceEmailConfig — The
WorkspaceEmailConfigentity. - WorkspaceEmailSettings — The
WorkspaceEmailSettingsentity. - WorkspaceMember — The
WorkspaceMemberentity. - WriteAppFileBody — Request body for an AppFile operation.