Skip to Content

System Types

ActivityHistoryResponse

Embedded activity session history for the activity bundle endpoint.

FieldTypeRequiredDescription
itemsSessionListItem[]NoSession history items
total_countintegerNoTotal number of matching records
pageintegerNoCurrent page number
page_sizeintegerNoItems per page
total_pagesintegerNoTotal number of pages

ActivityProblemItem

Recent problem displayed on the activity page.

FieldTypeRequiredDescription
problem_idstringYesProblem identifier
profile_idstringNoProfile that reported the problem
profile_namestringNoProfile display name
session_idstringNoAssociated session
typestringYesProblem type
messagestringYesProblem message
resolvedbooleanNoWhether the problem is resolved
created_atstringYesProblem creation timestamp

ActivityResources

Activity resource metadata.

FieldTypeRequiredDescription
profilesobjectNoProfile resources keyed by ID

AnalyticsFacets

Resolved analytics facets — embeddable in any artifact response.

Contains filter field visibility, available options for dropdowns, and date range boundaries. Returned inline from artifact get/search responses so each page has its filter facets ready for SSR.

FieldTypeRequiredDescription
fieldsAnalyticsFilterFieldsYesFilter field visibility configuration
department_optionsAnalyticsFilterOption[]NoDepartment dropdown options
cohort_optionsAnalyticsFilterOption[]NoCohort dropdown options
role_optionsAnalyticsRoleOption[]NoAvailable role resource options
attempt_optionsstring[]NoAvailable attempt options
date_range_earlieststringNoEarliest available date for filtering
date_range_lateststringNoLatest available date for filtering

AnalyticsFilterField

Visibility/disabled state for a single filter field.

FieldTypeRequiredDescription
visiblebooleanNoWhether the filter field is visible
disabledbooleanNoWhether the filter field is disabled

AnalyticsFilterFields

Per-page filter field visibility configuration.

FieldTypeRequiredDescription
date_rangeAnalyticsFilterFieldNoDate range filter config
departmentsAnalyticsFilterFieldNoDepartment filter config
cohortsAnalyticsFilterFieldNoCohort filter config
rolesAnalyticsFilterFieldNoRole filter config
attemptsAnalyticsFilterFieldNoAttempt filter config

AnalyticsFilterOption

A single filter option for dropdown selectors.

FieldTypeRequiredDescription
valuestringYesOption value for the filter
labelstringYesHuman-readable option label

AnalyticsRoleOption

Hydrated role resource option for analytics role filters.

FieldTypeRequiredDescription
valuestringYesOption value for the filter
labelstringYesHuman-readable option label
idstringYesRole resource UUID
namestringYesRole resource name
descriptionstringNoRole description
icon_idstringNoIcon resource UUID
color_idstringNoColor resource UUID
levelintegerYesRole privilege level

ArtifactSessionGroup

Single group entry for a session.

FieldTypeRequiredDescription
group_idstringYesUUID of the group
group_namestringNoName of the group
first_run_atstringNoTimestamp of the first run
last_run_atstringNoTimestamp of the last run
run_countintegerNoNumber of runs in the group
total_tokensintegerNoTotal tokens used in the group
total_coststringNoTotal cost of the group

CallerPermissions

Evaluated permissions for the current caller on this artifact type.

FieldTypeRequiredDescription
can_createbooleanYesWhether the caller can create new artifacts
can_draftbooleanYesWhether the caller can create/update drafts
can_duplicatebooleanYesWhether the caller can duplicate artifacts
has_accessbooleanNoWhether the caller can view this entity
can_editbooleanNoWhether the caller can edit this entity
can_deletebooleanNoWhether the caller can delete this entity
disabled_reasonstringNoHuman-readable reason if editing is disabled

ColumnInfo

FieldTypeRequiredDescription
namestringYesColumn name
typestringYesColumn data type
nullablebooleanYesWhether the column is nullable

DocsApiResponse

FieldTypeRequiredDescription
listPageMetaItemYes
detailPageMetaItemYes
newPageMetaItemYes

DocsResponse

FieldTypeRequiredDescription
namestringYesResource or entry name
typestringYesResource or entry type identifier
descriptionstringYesHuman-readable description
materialized_viewMvInfoNoMaterialized view metadata
tablesTableInfo[]YesRelated database tables
operationsOperationInfo[]YesAvailable operations

EvalSetup

Run-level eval scaffold — first-class on the generate response.

Audit’s **output spread carries this onto <artifact>.generate.completed. Null when no rubric-bearing agent participated.

FieldTypeRequiredDescription
test_idstringYes
invocationsInvocationSlot[]Yes

FilterOption

A single filter option for dropdown selectors.

FieldTypeRequiredDescription
valuestringYesInternal value for the filter option
labelstringNoDisplay label for the filter option
countintegerNoNumber of matching records

GenerateConfig

Developer configuration — all optional with sensible defaults.

FieldTypeRequiredDescription
operationsstring[]No
dangerousbooleanNo
paramsobjectNo
group_idstringNo

GenerationsSystemListItem

Single generation group in the system generations response.

FieldTypeRequiredDescription
group_idstringYesUUID of the generation group
session_idstringNoUUID of the parent session
group_namestringNoName of the generation group
created_atstringNoTimestamp of the generation

GetHealthResponse

FieldTypeRequiredDescription
date_hourstringYes
servicestringYes
check_countintegerYes
ok_countintegerYes
fail_countintegerYes
uptime_percentnumberYes
avg_latency_msnumberYes
min_latency_msnumberYes
max_latency_msnumberYes
latest_okbooleanYes
latest_errorstringYes

GetMetricsSearchResponse

FieldTypeRequiredDescription
date_hourstringYes
sample_countintegerYes
avg_cpu_percentnumberYes
min_cpu_percentnumberYes
max_cpu_percentnumberYes
avg_latency_msnumberYes
min_latency_msnumberYes
max_latency_msnumberYes
avg_memory_bytesintegerYes
min_memory_bytesintegerYes
max_memory_bytesintegerYes
max_requests_totalintegerYes
max_errors_totalintegerYes

GroupCall

Tool call referenced by a message.

FieldTypeRequiredDescription
idstringYes
tool_namestringNo
template_namestringNo
toolobjectNo
ledger_statusstringNo
ledger_operationstringNo
ledger_artifactstringNo
ledger_artifact_idstringNo

GroupMessage

Message within a run.

FieldTypeRequiredDescription
idstringYes
rolestringYes
created_atstringNo
text_idsstring[]No
audio_idsstring[]No
image_idsstring[]No
video_idsstring[]No
file_idsstring[]No
call_idsstring[]No
callsGroupCall[]No
reasoningbooleanNoTrue when this row is a chain-of-thought trace persisted alongside the assistant answer (rendered as a collapsed accordion).
in_contextbooleanNoWhether this message is included in the LLM context for the next generation. Mirrors the dedup pass that builds chat history (see in_context_reason).
in_context_reasonstringNoWhy this message is in/out of LLM context. ‘kept’ = included; ‘deduped_read’ = older read-only call to a tool that has a fresher result later in the group; future values may include ‘trimmed_top_n’.

GroupResource

Lightweight \{id, name\} for cross-referencing run-level ids (model_id / agent_id / profile_id) against human-readable names on the analytics panel. Names come from the canonical get_models / get_agents / get_profiles black boxes.

FieldTypeRequiredDescription
idstringYes
namestringNo

GroupRun

Run within a group, with its messages.

Carries token / cost / model / agent / profile attribution so the analytics view can render per-run cost + actor info without a parallel detail shape. profile_id is the authoring profile (human user), agent_id is the LLM-side actor, model_id is the model used by that agent. All optional — runs predating these columns or with unresolved attributions surface None.

FieldTypeRequiredDescription
idstringYes
created_atstringNo
input_tokensintegerNo
output_tokensintegerNo
cached_input_tokensintegerNo
costnumberNo
model_idstringNo
agent_idstringNo
profile_idstringNo
previous_context_start_indexintegerNoIndex in messages where the current run’s own messages begin; earlier rows are previous-context replay. None when the run has no previous context attached.
messagesGroupMessage[]No

HealthViews

Health view data.

FieldTypeRequiredDescription
service_hourlyGetHealthResponse[]NoHourly service health entries
metrics_hourlyGetMetricsSearchResponse[]NoHourly metrics entries

InvocationSlot

One agent’s slot in a multi-agent generation pool.

Populated by setup_generation_test when an agent carries a rubric. The client uses these IDs to drive the eval workflow: review the candidate’s output, optionally fire a grader against its invocation_id, and promote/reject by call_id via the existing idempotency_key + accept pattern.

FieldTypeRequiredDescription
invocation_idstringYes
agent_idstringYes
rubric_idstringNo

MvInfo

FieldTypeRequiredDescription
namestringYesMaterialized view name
definitionstringYesSQL definition of the view
columnsColumnInfo[]YesList of columns in the view

OperationInfo

FieldTypeRequiredDescription
namestringYesOperation name
descriptionstringYesHuman-readable description of the operation
paramsParamInfo[]YesList of operation parameters
returnsobjectNoReturn type schema

OperationPrompts

Starter prompts keyed by operation name.

Each key is an operation (e.g. “create”, “search”, “draft”, “export”) and the value is a list of starter prompts for that operation. The client picks from the operations the caller has permission for and rotates through them.

FieldTypeRequiredDescription
promptsobjectNoMap of operation name to starter prompts

PageMetaItem

FieldTypeRequiredDescription
titlestringYes
descriptionstringYes

ParamInfo

FieldTypeRequiredDescription
namestringYesParameter name
typestringYesParameter data type
requiredbooleanYesWhether the parameter is required
defaultanyNoDefault value if not required

PricingDailyItem

A single day+model aggregation bucket.

FieldTypeRequiredDescription
date_keystringYesDate bucket key
model_idstringNoAssociated model identifier
total_coststringNoTotal cost for this bucket
run_countintegerNoNumber of runs in this bucket

PricingGroupItem

A single group row in the pricing list.

FieldTypeRequiredDescription
group_idstringYesPricing group identifier
session_idstringNoAssociated session ID
group_namestringNoGroup display name
first_run_atstringNoTimestamp of first run
last_run_atstringNoTimestamp of last run
run_countintegerNoNumber of runs in the group
total_input_tokensintegerNoTotal input tokens consumed
total_output_tokensintegerNoTotal output tokens generated
total_tokensintegerNoTotal tokens used
total_coststringNoTotal cost for the group
agent_idsstring[]NoAssociated agent IDs
model_idsstring[]NoAssociated model IDs
profile_idsstring[]NoProfile IDs (human users) who triggered runs in this group
agent_namesstring[]NoAssociated agent names
model_namesstring[]NoAssociated model names
profile_namesstring[]NoDisplay names of the profiles (human users) who triggered runs in this group

PricingHistoryResponse

Embedded pricing group history for the pricing bundle endpoint.

FieldTypeRequiredDescription
itemsPricingGroupItem[]NoPricing group rows
total_countintegerNoTotal number of matching records
pageintegerNoCurrent page number
page_sizeintegerNoItems per page
total_pagesintegerNoTotal number of pages

PricingResources

Pricing resource metadata.

FieldTypeRequiredDescription
agentsobjectNoAgent resources keyed by ID
modelsobjectNoModel resources keyed by ID

ProducedMedia

One asset produced by a generation run.

resource_id is the canonical id the per-artifact download tools accept (e.g. Scenario_Image_Download(image_id=resource_id) for modality="image"). It maps to images_resource.id / videos_resource.id / audios_resource.id depending on the modality.

FieldTypeRequiredDescription
modality"image" | "video" | "audio"Yes
resource_idstringYes
upload_idstringYes
mime_typestringNo
file_sizeintegerNo

ProfileSummary

Caller identity derived from JWT — who you are on this page.

Superset of the old six-field version: now carries everything the client needs so that /\{artifact\}/context fully replaces /profiles/context and the extra getLayoutContextData round-trip can be dropped.

FieldTypeRequiredDescription
namestringYesDisplay name of the authenticated user
rolestringYesRole name (e.g. ‘Super Administrator’)
role_levelintegerYesRole hierarchy level (0 = highest privilege)
department_idsstring[]YesDepartments the user belongs to
artifact_accessstring[]YesArtifact types this role can access (sidebar visibility)
role_permissionsany[][]YesFull (artifact, operation) permission tuples for granular page gating
is_activebooleanYesWhether the user’s profile is active
idstringYesProfile UUID (SocketProvider, ProfileProvider)
themeThemeBundleNoResolved theme: hex primitives + derived oklch tokens + score thresholds
session_idstringNoCurrent session UUID
is_emulationbooleanNoWhether user is in emulation mode (ProfileProvider)
role_resourcesQGetProfileContextV4RoleResource[]NoAll role resources for emulation display (ProfileProvider)
scoped_rolesstring[]NoRoles the user can emulate (ProfileProvider)
activebooleanNoAlias for is_active (ProfileProvider uses this name)

ProfileSummaryItem

Per-profile aggregate stats for the summary card.

FieldTypeRequiredDescription
profile_idstringNoProfile identifier
profile_namestringNoProfile display name
sessions_countintegerNoNumber of sessions
logins_countintegerNoNumber of logins
grants_countintegerNoNumber of grants
problems_countintegerNoNumber of problems
activity_countintegerNoTotal activity count

QGetProfileContextV4RoleResource

FieldTypeRequiredDescription
rolestringNo
namestringNo
descriptionstringNo
icon_valuestringNo
color_hexstringNo

RunStatus

Outcome of one watched run.

FieldTypeRequiredDescription
run_idstringYes
status"pending" | "completed" | "failed"Yes
modalitystringNoModality of generated output (image, video, text…)
resource_idsstring[]NoResource UUIDs produced by this run (e.g. images_resource ids)
errorstringNo

SessionListItem

Single session in the list response with hydrated metadata.

FieldTypeRequiredDescription
session_idstringYesUUID of the session
profile_idstringNoUUID of the user profile
profile_namestringNoDisplay name of the user profile
session_created_atstringNoTimestamp when session was created
session_updated_atstringNoTimestamp when session was last updated
activebooleanNoWhether the session is active
group_countintegerNoNumber of groups in the session
run_countintegerNoNumber of runs in the session
first_run_atstringNoTimestamp of the first run
last_run_atstringNoTimestamp of the last run
total_tokensintegerNoTotal tokens used in the session
total_coststringNoTotal cost of the session
chat_countintegerNoNumber of chats in the session
attempt_countintegerNoNumber of attempts in the session
message_countintegerNoNumber of messages in the session
problem_countintegerNoNumber of problems in the session

SessionTimelineItem

Single event in the unified session timeline.

FieldTypeRequiredDescription
event_typestringNoType of the timeline event
entity_idstringNoUUID of the related entity
entity_namestringNoName of the related entity
created_atstringNoTimestamp when the event occurred
extra_1stringNoAdditional context field 1
extra_2stringNoAdditional context field 2

TableInfo

FieldTypeRequiredDescription
namestringYesTable name
columnsColumnInfo[]YesList of columns in the table

ThemeBundle

Full theme payload for a page bootstrap.

Riding along on every /\{artifact\}/context response via ProfileSummary.theme. Layers:

  • primitives / dark_primitives — hex inputs the settings editor reads/writes (light + dark palettes).
  • tokens / dark_tokens — oklch tokens the client paints with. ThemeStyle emits two <style> blocks: one scoped to :root:not(.dark) (light) and one to :root.dark (dark).
  • thresholds — numeric score thresholds for analytics components. Empty-in → empty-out per token: missing values fall through to the matching globals.css default.
FieldTypeRequiredDescription
primitivesThemePrimitivesNoHex inputs from the setting (light palette, for the theme editor)
tokensThemeTokensNoDerived oklch tokens for light mode (SSR CSS-var injection)
dark_primitivesThemePrimitivesNoHex inputs from the setting (dark palette, for the theme editor)
dark_tokensThemeTokensNoDerived oklch tokens for dark mode (SSR CSS-var injection)
thresholdsThresholdsNoScore thresholds resolved from the setting

ThemePrimitives

40 optional fields. The 17 essentials drive the rest; the other 23 are overrides for fine-tuning when derivation isn’t what you want.

Empty primitive → empty token → client falls back to globals.css.

FieldTypeRequiredDescription
backgroundstringNo
primarystringNo
accentstringNo
cardstringNo
sidebarstringNo
muted_foregroundstringNo
ringstringNo
borderstringNo
destructivestringNo
successstringNo
warningstringNo
infostringNo
chart1stringNo
chart2stringNo
chart3stringNo
chart4stringNo
chart5stringNo
foregroundstringNo
card_foregroundstringNo
popoverstringNo
popover_foregroundstringNo
primary_foregroundstringNo
secondarystringNo
secondary_foregroundstringNo
mutedstringNo
accent_foregroundstringNo
destructive_foregroundstringNo
dangerstringNo
danger_foregroundstringNo
inputstringNo
success_foregroundstringNo
warning_foregroundstringNo
info_foregroundstringNo
sidebar_foregroundstringNo
sidebar_primarystringNo
sidebar_primary_foregroundstringNo
sidebar_accentstringNo
sidebar_accent_foregroundstringNo
sidebar_borderstringNo
sidebar_ringstringNo

ThemeTokens

40 fully-resolved CSS variable values (snake_case 1:1 with vars).

FieldTypeRequiredDescription
backgroundstringNo
foregroundstringNo
cardstringNo
card_foregroundstringNo
popoverstringNo
popover_foregroundstringNo
primarystringNo
primary_foregroundstringNo
secondarystringNo
secondary_foregroundstringNo
mutedstringNo
muted_foregroundstringNo
accentstringNo
accent_foregroundstringNo
destructivestringNo
destructive_foregroundstringNo
dangerstringNo
danger_foregroundstringNo
borderstringNo
inputstringNo
ringstringNo
successstringNo
success_foregroundstringNo
warningstringNo
warning_foregroundstringNo
infostringNo
info_foregroundstringNo
chart1stringNo
chart2stringNo
chart3stringNo
chart4stringNo
chart5stringNo
sidebarstringNo
sidebar_foregroundstringNo
sidebar_primarystringNo
sidebar_primary_foregroundstringNo
sidebar_accentstringNo
sidebar_accent_foregroundstringNo
sidebar_borderstringNo
sidebar_ringstringNo

Thresholds

Numeric score thresholds resolved from the active setting.

Server pre-buckets dashboard metrics into success | warning | danger | neutral already, so most components don’t need these values. Surface them for chart reference lines, tooltips, and any client-side bucketing.

FieldTypeRequiredDescription
successintegerYesScore >= this counts as success
warningintegerYesScore >= this counts as warning
dangerintegerYesScore < success threshold but >= this counts as danger; below is neutral/no-data

Last updated on