generated: '2026-07-21' method: derived source: openapi/runwhen-papi-openapi-original.json note: Entity-relationship graph derived from OpenAPI components.schemas $ref links. RunWhen models a workspace-scoped observability/automation domain. entity_count: 252 core_entities: - Workspace - SLX - SLI - SLO - Runbook - RunSession - RunRequest - Issue - Persona - Workflow - CodeCollection - CodeBundle - Token - User relationships: - from: AuthorRunOutputResponse relationship: has_many to: AuthorRunOutputArtifact via: artifacts - from: CommentResponse relationship: has_one to: CommentAuthorResponse via: author - from: HTTPValidationError relationship: has_many to: ValidationError via: detail - from: IssueListResponse relationship: has_many to: IssueResponse via: results - from: IssueOccurrenceListResponse relationship: has_many to: IssueOccurrenceResponse via: results - from: LoginResponse relationship: has_one to: UserResponse via: user - from: NoteCreate relationship: has_one to: NoteStatus via: status - from: NoteCreateV4 relationship: has_many to: ResourceSelectorV4 via: resourceSelectors - from: NoteCreateV4 relationship: has_one to: NoteStatusV4 via: status - from: NoteDeleteResponseV4 relationship: has_many to: NoteDeleteResultV4 via: results - from: NoteResponseV4 relationship: has_many to: ResourceSelectorV4 via: resourceSelectors - from: NoteResponseV4 relationship: has_many to: NoteResourceLinkV4 via: resourceLinks - from: NoteSyncResponseV4 relationship: has_many to: NoteDiagnosticV4 via: diagnostics - from: PersonaListResponse relationship: has_many to: PersonaResponse via: results - from: PersonaListResponseV4 relationship: has_many to: PersonaResponseV4 via: results - from: PersonaSyncRequestV4 relationship: has_one to: PersonaPayloadV4 via: payload - from: PreviewResponse relationship: has_many to: PreviewSectionResponse via: sections - from: ProcessingStatusResponse relationship: has_one to: OutputProcessingStatusEnum via: status - from: RunRequestInResponse relationship: has_many to: RunRequestIssue via: issues - from: RunRequestIssuesResponse relationship: has_many to: IssueReference via: issues - from: RunRequestListResponse relationship: has_many to: RunRequestResponse via: results - from: RunSessionAlertsListResponse relationship: has_many to: RunSessionAlertResponse via: alerts - from: RunSessionCreateWithRequests relationship: has_many to: RunRequestInSession via: runRequests - from: RunSessionListResponse relationship: has_many to: RunSessionResponse via: results - from: RunSessionResponse relationship: has_many to: RunRequestInResponse via: runRequests - from: RunSessionSearchResponse relationship: has_many to: RunSessionSearchItem via: results - from: RunbookInWorkspace relationship: has_many to: RunbookTaskInWorkspace via: tasks - from: RunbookResponseV4 relationship: has_many to: RunbookTaskV4 via: tasks - from: RunbookSyncRequestV4 relationship: has_one to: RunbookPayloadV4 via: payload - from: RunnerListResponse relationship: has_many to: RunnerResponse via: results - from: SLIEnvResponse relationship: has_one to: CodeBundleReference via: codeBundleReference - from: SearchScopeResponse relationship: has_many to: SearchScopeGroup via: slxGroups - from: SearchScopeResponse relationship: has_many to: SearchScopeGroup via: slxSubGroups - from: SearchScopeResponse relationship: has_many to: SearchScopeSlx via: slxs - from: SecretUsageResponse relationship: has_many to: SecretUsageItem via: usages - from: SliSyncRequestV4 relationship: has_one to: SliPayloadV4 via: payload - from: SloSyncRequestV4 relationship: has_one to: SloPayloadV4 via: payload - from: SlxInWorkspace relationship: has_many to: SlxTag via: tags - from: SlxInWorkspace relationship: has_one to: SlxSpecInWorkspace via: spec - from: SlxListResponse relationship: has_many to: SlxResponse via: results - from: SlxListResponseV4 relationship: has_many to: SlxResponseV4 via: results - from: SlxPayloadV4 relationship: has_one to: MetricTypeV4 via: metricType - from: SlxPayloadV4 relationship: has_many to: SlxTagV4 via: tags - from: SlxResponse relationship: has_one to: MetricTypeV4 via: metricType - from: SlxResponse relationship: has_many to: SlxTagV4 via: tags - from: SlxResponseV4 relationship: has_one to: MetricTypeV4 via: metricType - from: SlxResponseV4 relationship: has_many to: SlxTagV4 via: tags - from: SlxSpecInWorkspace relationship: has_many to: SlxTag via: tags - from: SlxSyncRequestV4 relationship: has_one to: SlxPayloadV4 via: payload - from: SourcesResponse relationship: has_many to: SourceOption via: sources - from: TaskVitalsResponse relationship: has_many to: TaskVitalsItem via: items - from: TokenExchangeRequest relationship: has_one to: SubjectTokenType via: subject_token_type - from: UserResponse relationship: has_many to: GroupResponse via: groups - from: UserSearchEmailResponse relationship: has_many to: UserSearchResponse via: users - from: WorkflowListResponse relationship: has_many to: WorkflowResponse via: results - from: WorkflowListResponseV4 relationship: has_many to: WorkflowResponseV4 via: results - from: WorkflowSyncRequestV4 relationship: has_one to: WorkflowPayloadV4 via: payload - from: WorkspaceConfigurationResponseV4 relationship: has_one to: ResourceScrubberConfigEnum via: scrubberConfig - from: WorkspaceConfigurationResponseV4 relationship: has_many to: WorkspacePermissionV4 via: permissions - from: WorkspaceDeletionResponse relationship: has_many to: DeletionStep via: steps - from: WorkspaceIssueOccurrenceListResponse relationship: has_many to: WorkspaceIssueOccurrenceResponse via: results - from: WorkspaceListResponse relationship: has_many to: WorkspaceResponse via: results - from: WorkspaceResponse relationship: has_many to: GalleryPersona via: personas - from: WorkspaceResponse relationship: has_many to: GalleryUser via: users - from: WorkspaceResponse relationship: has_many to: RunSessionCount via: runSessionsCounts - from: WorkspaceResponse relationship: has_many to: SlxInWorkspace via: slxs - from: WorkspaceResponse relationship: has_many to: SliAlertInWorkspace via: sli_firing_alerts - from: WorkspaceResponse relationship: has_many to: SloAlertInWorkspace via: slo_firing_alerts - from: WorkspaceSpec relationship: has_many to: WorkspaceSpecPermission via: permissions - from: WorkspaceSpec relationship: has_one to: ResourceScrubberConfigEnum via: resourceScrubberConfig - from: WorkspaceTagsResponseV4 relationship: has_many to: TagKeyValuesV4 via: tags - from: WorkspaceUploadRequest relationship: has_one to: MergeModeEnum via: mergeMode - from: WorkspaceUploadRequest relationship: has_one to: FinalizeActionEnum via: finalizeAction - from: _ProvisioningStatusResponse relationship: has_one to: _ProvisioningStages via: stages - from: papi__routers__llm_config__LLMConfigResponse relationship: has_one to: papi__routers__llm_config__LLMModelResponse via: llmModel - from: papi__routers__llm_config__LLMModelResponse relationship: has_one to: papi__routers__llm_config__LLMProviderResponse via: provider - from: papi__schemas__runbook__RunbookResponse relationship: has_many to: RunbookTaskV4 via: tasks - from: papi__schemas__slx__RunbookResponse relationship: has_many to: RunbookTaskResponse via: tasks