{"openapi":"3.1.0","info":{"title":"Quant API","version":"0.1.0"},"paths":{"/auth/login":{"post":{"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/forgot-password":{"post":{"summary":"Forgot Password","operationId":"forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/setup-password/complete":{"post":{"summary":"Setup Password Complete","operationId":"setup_password_complete_auth_setup_password_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupPasswordCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupPasswordCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password/complete":{"post":{"summary":"Reset Password Complete","operationId":"reset_password_complete_auth_reset_password_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/change-password":{"post":{"summary":"Change Password Authenticated","operationId":"change_password_authenticated_auth_change_password_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"summary":"Logout","operationId":"logout_auth_logout_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"summary":"Auth Me","operationId":"auth_me_auth_me_get","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/tenants":{"get":{"summary":"List Auth Tenants","operationId":"list_auth_tenants_auth_tenants_get","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTenantListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/tenant":{"post":{"summary":"Select Auth Tenant","operationId":"select_auth_tenant_auth_tenant_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthTenantSelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Clear Auth Tenant","operationId":"clear_auth_tenant_auth_tenant_delete","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ingest":{"post":{"summary":"Ingest","operationId":"ingest_ingest_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ingest/complete":{"post":{"summary":"Ingest Complete","operationId":"ingest_complete_ingest_complete_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{document_id}":{"get":{"summary":"Get Run Proxy","operationId":"get_run_proxy_runs__document_id__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{document_id}/progress":{"get":{"summary":"Get Run Progress","operationId":"get_run_progress_runs__document_id__progress_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{document_id}/replay":{"post":{"summary":"Replay Run","operationId":"replay_run_runs__document_id__replay_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents":{"get":{"summary":"List Documents","operationId":"list_documents_documents_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/alias":{"patch":{"summary":"Update Document Alias","operationId":"update_document_alias_documents__document_id__alias_patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentAliasUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentAliasResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects":{"get":{"summary":"List Projects","operationId":"list_projects_projects_get","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Project","operationId":"create_project_projects_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}":{"patch":{"summary":"Rename Project","operationId":"rename_project_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Project","operationId":"delete_project_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/project":{"patch":{"summary":"Update Document Project","operationId":"update_document_project_documents__document_id__project_patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentProjectUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/training-states":{"get":{"summary":"List Document Training States","operationId":"list_document_training_states_documents_training_states_get","parameters":[{"name":"document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTrainingStateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Document Training States","operationId":"post_document_training_states_documents_training_states_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTrainingStateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTrainingStateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/comments":{"get":{"summary":"List Comments","operationId":"list_comments_documents__document_id__comments_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Comment","operationId":"create_comment_documents__document_id__comments_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/comments/{comment_id}":{"patch":{"summary":"Update Comment","operationId":"update_comment_documents__document_id__comments__comment_id__patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/comments/resolve":{"post":{"summary":"Resolve Comments Thread","operationId":"resolve_comments_thread_documents__document_id__comments_resolve_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentThreadActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/comments/reopen":{"post":{"summary":"Reopen Comments Thread","operationId":"reopen_comments_thread_documents__document_id__comments_reopen_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentThreadActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/artifacts":{"get":{"summary":"List Artifacts","operationId":"list_artifacts_documents__document_id__artifacts_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/page-scope":{"post":{"summary":"Get Page Scope","operationId":"get_page_scope_page_scope_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageScopeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageScopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/results/scope":{"post":{"summary":"Get Scope Results","operationId":"get_scope_results_results_scope_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/bubbles/{workflow}/scope/stream":{"post":{"summary":"Stream Scope Bubbles","operationId":"stream_scope_bubbles_bubbles__workflow__scope_stream_post","parameters":[{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/field-welds/scope/stream":{"post":{"summary":"Stream Scope Field Welds","operationId":"stream_scope_field_welds_field_welds_scope_stream_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/results/scope/stream":{"post":{"summary":"Stream Scope Results","operationId":"stream_scope_results_results_scope_stream_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/estimate/scope/stream":{"post":{"summary":"Stream Scope Estimate","operationId":"stream_scope_estimate_estimate_scope_stream_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sheet-catalog":{"get":{"summary":"Get Sheet Catalog","operationId":"get_sheet_catalog_sheet_catalog_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SheetCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/sheet-sources":{"get":{"summary":"Get Sheet Sources","operationId":"get_sheet_sources_documents__document_id__sheet_sources_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"page_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Page Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SheetSourcesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sheet-catalog/{sheet_id}/choice":{"patch":{"summary":"Choose Sheet Source","operationId":"choose_sheet_source_sheet_catalog__sheet_id__choice_patch","parameters":[{"name":"sheet_id","in":"path","required":true,"schema":{"type":"string","title":"Sheet Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SheetSourceChoiceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SheetSourcesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/sheet-metadata":{"get":{"summary":"Sheet Metadata","operationId":"sheet_metadata_documents__document_id__sheet_metadata_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"page_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Page Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SheetMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/technical-freshness":{"get":{"summary":"Get Technical Freshness","operationId":"get_technical_freshness_documents__document_id__technical_freshness_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalFreshness"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/technical-freshness/scope":{"post":{"summary":"Get Scope Technical Freshness","operationId":"get_scope_technical_freshness_technical_freshness_scope_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeResultsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalFreshness"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/resolved":{"get":{"summary":"Resolved Document","operationId":"resolved_document_documents__document_id__resolved_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"steps","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated steps","title":"Steps"},"description":"Comma-separated steps"},{"name":"include_signed","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Signed"}},{"name":"include_results","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Results"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review":{"get":{"summary":"Get Review Document Proxy","operationId":"get_review_document_proxy_documents__document_id__review_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}},{"name":"include_pages","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Pages"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/tracker-annotation/session":{"get":{"summary":"Get Tracker Annotation Session Proxy","operationId":"get_tracker_annotation_session_proxy_documents__document_id__tracker_annotation_session_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerAnnotationSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/commit":{"post":{"summary":"Post Review Commit Proxy","operationId":"post_review_commit_proxy_documents__document_id__review_commit_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCommitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCommitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/accept-as-is":{"post":{"summary":"Post Review Accept As Is Proxy","operationId":"post_review_accept_as_is_proxy_documents__document_id__review_accept_as_is_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAcceptAsIsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAcceptAsIsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/recovery":{"get":{"summary":"Get Blueprint Recovery Proxy","operationId":"get_blueprint_recovery_proxy_documents__document_id__review_recovery_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"recovery_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Recovery Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintRecoveryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/recovery/resolve":{"post":{"summary":"Post Blueprint Recovery Resolution Proxy","operationId":"post_blueprint_recovery_resolution_proxy_documents__document_id__review_recovery_resolve_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintRecoveryResolutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueprintRecoveryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/recompute-plan":{"get":{"summary":"Get Tracker Recompute Plan Proxy","operationId":"get_tracker_recompute_plan_proxy_documents__document_id__review_recompute_plan_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","segmentation"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerRecomputePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/recompute":{"post":{"summary":"Post Review Recompute Proxy","operationId":"post_review_recompute_proxy_documents__document_id__review_recompute_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRecomputeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRecomputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/recompute-job":{"get":{"summary":"Get Active Review Recompute Job Proxy","operationId":"get_active_review_recompute_job_proxy_documents__document_id__review_recompute_job_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRecomputeLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/recompute-jobs/{job_id}":{"get":{"summary":"Get Review Recompute Job Proxy","operationId":"get_review_recompute_job_proxy_review_recompute_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRecomputeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/state":{"get":{"summary":"Get Review State Proxy","operationId":"get_review_state_proxy_documents__document_id__review_state_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/history":{"get":{"summary":"Get Review History Proxy","operationId":"get_review_history_proxy_documents__document_id__review_history_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"element","title":"Scope"}},{"name":"element_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Element Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Limit"}},{"name":"review_context","in":"query","required":false,"schema":{"anyOf":[{"enum":["trackers","connections"],"type":"string"},{"type":"null"}],"title":"Review Context"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/propagation/preview":{"post":{"summary":"Post Review Propagation Preview Proxy","operationId":"post_review_propagation_preview_proxy_documents__document_id__review_propagation_preview_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPropagationPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPropagationPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/review/propagation/confirm":{"post":{"summary":"Post Review Propagation Confirm Proxy","operationId":"post_review_propagation_confirm_proxy_documents__document_id__review_propagation_confirm_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPropagationConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPropagationConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users":{"get":{"summary":"Get Backoffice Users","operationId":"get_backoffice_users_backoffice_users_get","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users/invitations":{"post":{"summary":"Post Backoffice User Invitation","operationId":"post_backoffice_user_invitation_backoffice_users_invitations_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserInvitationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users/{user_id}/resend-invitation":{"post":{"summary":"Post Backoffice User Resend Invitation","operationId":"post_backoffice_user_resend_invitation_backoffice_users__user_id__resend_invitation_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserInvitationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users/{user_id}/reset-password-email":{"post":{"summary":"Post Backoffice User Reset Password Email","operationId":"post_backoffice_user_reset_password_email_backoffice_users__user_id__reset_password_email_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users/{user_id}/role":{"patch":{"summary":"Patch Backoffice User Role","operationId":"patch_backoffice_user_role_backoffice_users__user_id__role_patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserRoleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users/{user_id}/deactivate":{"post":{"summary":"Post Backoffice User Deactivate","operationId":"post_backoffice_user_deactivate_backoffice_users__user_id__deactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/users/{user_id}/reactivate":{"post":{"summary":"Post Backoffice User Reactivate","operationId":"post_backoffice_user_reactivate_backoffice_users__user_id__reactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficeUserActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/reviews/qualification":{"get":{"summary":"Get Backoffice Segmentation Review Qualifications","operationId":"get_backoffice_segmentation_review_qualifications_backoffice_training_reviews_qualification_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationReviewQualificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/reviews/corpus":{"get":{"summary":"Get Backoffice Segmentation Review Corpus Status","operationId":"get_backoffice_segmentation_review_corpus_status_backoffice_training_reviews_corpus_get","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationReviewCorpusStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/reviews/qualification/reconcile":{"post":{"summary":"Post Backoffice Segmentation Review Qualification Reconcile","operationId":"post_backoffice_segmentation_review_qualification_reconcile_backoffice_training_reviews_qualification_reconcile_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationReviewQualificationReconcileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/reviews/qualification/{document_id}":{"post":{"summary":"Post Backoffice Segmentation Review Qualification","operationId":"post_backoffice_segmentation_review_qualification_backoffice_training_reviews_qualification__document_id__post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationReviewQualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationReviewQualificationEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/annotations":{"get":{"summary":"Get Backoffice Annotation Progress","operationId":"get_backoffice_annotation_progress_backoffice_training_annotations_get","parameters":[{"name":"task","in":"query","required":false,"schema":{"enum":["segment","detect_regions","tracker"],"type":"string","default":"segment","title":"Task"}},{"name":"state","in":"query","required":false,"schema":{"enum":["remaining","all","not_started","in_progress","completed","needs_review"],"type":"string","default":"remaining","title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":40,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnotationProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/reviews/eligible":{"get":{"summary":"Get Backoffice Training Eligible Reviews","operationId":"get_backoffice_training_eligible_reviews_backoffice_training_reviews_eligible_get","parameters":[{"name":"task","in":"query","required":false,"schema":{"type":"string","default":"segment","title":"Task"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibleSegmentationReviewListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/candidates":{"post":{"summary":"Post Backoffice Training Candidate","operationId":"post_backoffice_training_candidate_backoffice_training_candidates_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Backoffice Training Candidates","operationId":"get_backoffice_training_candidates_backoffice_training_candidates_get","parameters":[{"name":"task","in":"query","required":false,"schema":{"type":"string","default":"segment","title":"Task"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/candidates/batch-mark":{"post":{"summary":"Post Backoffice Training Candidate Batch Mark","operationId":"post_backoffice_training_candidate_batch_mark_backoffice_training_candidates_batch_mark_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateBatchMarkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateBatchMarkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/candidates/batch-reject":{"post":{"summary":"Post Backoffice Training Candidate Batch Reject","operationId":"post_backoffice_training_candidate_batch_reject_backoffice_training_candidates_batch_reject_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateBatchMarkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateBatchMarkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/candidates/batch-unqueue":{"post":{"summary":"Post Backoffice Training Candidate Batch Unqueue","operationId":"post_backoffice_training_candidate_batch_unqueue_backoffice_training_candidates_batch_unqueue_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateBatchUnqueueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateBatchUnqueueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/candidates/{candidate_id}":{"get":{"summary":"Get Backoffice Training Candidate","operationId":"get_backoffice_training_candidate_backoffice_training_candidates__candidate_id__get","parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","title":"Candidate Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/candidates/{candidate_id}/decision":{"post":{"summary":"Post Backoffice Training Candidate Decision","operationId":"post_backoffice_training_candidate_decision_backoffice_training_candidates__candidate_id__decision_post","parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","title":"Candidate Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingCandidateDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/exports/segmentation":{"post":{"summary":"Post Backoffice Segmentation Export","operationId":"post_backoffice_segmentation_export_backoffice_training_exports_segmentation_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationDatasetExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationDatasetExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/backoffice/training/exports/detect-regions":{"post":{"summary":"Post Backoffice Detect Regions Export","operationId":"post_backoffice_detect_regions_export_backoffice_training_exports_detect_regions_post","parameters":[{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectRegionsDatasetExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectRegionsDatasetExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/graph":{"get":{"summary":"Get Graph","operationId":"get_graph_documents__document_id__graph_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/joint-stats":{"get":{"summary":"Get Joint Stats","operationId":"get_joint_stats_documents__document_id__joint_stats_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JointStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bom-verification":{"get":{"summary":"Get Bom Verification","operationId":"get_bom_verification_documents__document_id__bom_verification_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BomVerificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/fsi":{"get":{"summary":"Get Fsi Requirements","operationId":"get_fsi_requirements_documents__document_id__fsi_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Fsi Requirements Documents  Document Id  Fsi Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Fsi Requirements","operationId":"patch_fsi_requirements_documents__document_id__fsi_patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FsiPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Fsi Requirements Documents  Document Id  Fsi Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate/handling":{"get":{"summary":"Get Estimate Handling","operationId":"get_estimate_handling_documents__document_id__estimate_handling_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Estimate Handling Documents  Document Id  Estimate Handling Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate":{"get":{"summary":"Get Estimate Document","operationId":"get_estimate_document_documents__document_id__estimate_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate/buyer-hypotheses":{"patch":{"summary":"Patch Estimate Buyer Hypotheses","operationId":"patch_estimate_buyer_hypotheses_documents__document_id__estimate_buyer_hypotheses_patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateBuyerHypothesesPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate/nae-site-regime":{"patch":{"summary":"Patch Estimate Site Regime","operationId":"patch_estimate_site_regime_documents__document_id__estimate_nae_site_regime_patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NaeSiteRegimePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate/nae-test-preparations":{"patch":{"summary":"Patch Estimate Test Preparation Proposal","operationId":"patch_estimate_test_preparation_proposal_documents__document_id__estimate_nae_test_preparations_patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NaeTestPreparationProposalPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate/operations/{operation_id}":{"patch":{"summary":"Patch Estimate Operation","operationId":"patch_estimate_operation_documents__document_id__estimate_operations__operation_id__patch","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateOperationPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/estimate/rebase":{"post":{"summary":"Rebase Estimate Document","operationId":"rebase_estimate_document_documents__document_id__estimate_rebase_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRebaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/chantier":{"get":{"summary":"Get Chantier Document","operationId":"get_chantier_document_documents__document_id__chantier_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChantierDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/chantier/toggle":{"post":{"summary":"Post Chantier Toggle","operationId":"post_chantier_toggle_documents__document_id__chantier_toggle_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChantierToggleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChantierToggleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/chantier/confirm-review":{"post":{"summary":"Post Chantier Confirm Review","operationId":"post_chantier_confirm_review_documents__document_id__chantier_confirm_review_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChantierConfirmReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChantierDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/weld-annotations/refresh":{"get":{"summary":"Get Weld Annotation Refresh","operationId":"get_weld_annotation_refresh_documents__document_id__weld_annotations_refresh_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeldAnnotationRefreshPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Weld Annotation Refresh","operationId":"post_weld_annotation_refresh_documents__document_id__weld_annotations_refresh_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeldAnnotationRefreshRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldWeldSource"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubble-layout/{page_id}":{"get":{"summary":"Get Bubble Layout","operationId":"get_bubble_layout_documents__document_id__bubble_layout__page_id__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Place Bubble Layout","operationId":"place_bubble_layout_documents__document_id__bubble_layout__page_id__post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/spools":{"get":{"summary":"Get Document Spools","operationId":"get_document_spools_documents__document_id__spools_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolWorkspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/spools/{page_id}/csv":{"get":{"summary":"Get Spool Csv","operationId":"get_spool_csv_documents__document_id__spools__page_id__csv_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"expected_revision","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Expected Revision"}},{"name":"source_hash","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Source Hash"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/spools/annotation":{"post":{"summary":"Post Spool Annotation","operationId":"post_spool_annotation_documents__document_id__spools_annotation_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolAnnotationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolWorkspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/flow/{page_id}":{"get":{"summary":"Get Bubble Page Flow","operationId":"get_bubble_page_flow_documents__document_id__bubbles__workflow__flow__page_id__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleFlowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}":{"get":{"summary":"Get Bubble Document","operationId":"get_bubble_document_documents__document_id__bubbles__workflow__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"flow_page_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Page Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/table-cell":{"post":{"summary":"Post Bubble Table Cell","operationId":"post_bubble_table_cell_documents__document_id__bubbles__workflow__table_cell_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleTableCellRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/position":{"post":{"summary":"Post Bubble Position","operationId":"post_bubble_position_documents__document_id__bubbles__workflow__position_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubblePositionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/size":{"post":{"summary":"Post Bubble Size","operationId":"post_bubble_size_documents__document_id__bubbles__workflow__size_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleSizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/upsert":{"post":{"summary":"Post Bubble Upsert","operationId":"post_bubble_upsert_documents__document_id__bubbles__workflow__upsert_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/delete":{"post":{"summary":"Post Bubble Delete","operationId":"post_bubble_delete_documents__document_id__bubbles__workflow__delete_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/restore":{"post":{"summary":"Post Bubble Restore","operationId":"post_bubble_restore_documents__document_id__bubbles__workflow__restore_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/regenerate":{"post":{"summary":"Post Bubble Regenerate","operationId":"post_bubble_regenerate_documents__document_id__bubbles__workflow__regenerate_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleRegenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/flow-direction":{"post":{"summary":"Post Bubble Flow Direction","operationId":"post_bubble_flow_direction_documents__document_id__bubbles__workflow__flow_direction_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleFlowDirectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubbleDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/page-format":{"get":{"summary":"Get Page Format","operationId":"get_page_format_documents__document_id__page_format_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageFormatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/spools/pdf":{"post":{"summary":"Export Spool Pdf","operationId":"export_spool_pdf_documents__document_id__spools_pdf_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpoolPdfRequest"}}}},"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/bubbles/{workflow}/pdf":{"post":{"summary":"Export Bubble Pdf","operationId":"export_bubble_pdf_documents__document_id__bubbles__workflow__pdf_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"workflow","in":"path","required":true,"schema":{"type":"string","title":"Workflow"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BubblePdfRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/raster":{"get":{"summary":"Get Raster Urls","operationId":"get_raster_urls_documents__document_id__raster_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RasterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/characteristics":{"get":{"summary":"Get Characteristics Proxy","operationId":"get_characteristics_proxy_documents__document_id__characteristics_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Characteristics Proxy Documents  Document Id  Characteristics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Characteristics Proxy","operationId":"post_characteristics_proxy_documents__document_id__characteristics_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"quant_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacteristicsChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Characteristics Proxy Documents  Document Id  Characteristics Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnnotationDocument":{"properties":{"document_stem":{"type":"string","title":"Document Stem"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"summary":{"$ref":"#/components/schemas/AnnotationSummary"},"pages":{"items":{"$ref":"#/components/schemas/AnnotationPage"},"type":"array","title":"Pages"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"}},"type":"object","required":["document_stem","summary","pages"],"title":"AnnotationDocument"},"AnnotationPage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"page_num":{"type":"integer","title":"Page Num"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"state":{"type":"string","enum":["not_started","in_progress","completed","needs_review"],"title":"State"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"},"historical_to_qualify":{"type":"boolean","title":"Historical To Qualify","default":false},"revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision"},"effective_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Hash"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["page_id","page_num","state"],"title":"AnnotationPage"},"AnnotationProgressResponse":{"properties":{"task":{"type":"string","enum":["segment","detect_regions","tracker"],"title":"Task"},"items":{"items":{"$ref":"#/components/schemas/AnnotationDocument"},"type":"array","title":"Items"},"summary":{"$ref":"#/components/schemas/AnnotationSummary"},"total_documents":{"type":"integer","title":"Total Documents"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["task","items","summary","total_documents"],"title":"AnnotationProgressResponse"},"AnnotationSummary":{"properties":{"total":{"type":"integer","title":"Total","default":0},"not_started":{"type":"integer","title":"Not Started","default":0},"in_progress":{"type":"integer","title":"In Progress","default":0},"completed":{"type":"integer","title":"Completed","default":0},"needs_review":{"type":"integer","title":"Needs Review","default":0},"blocked":{"type":"integer","title":"Blocked","default":0}},"type":"object","title":"AnnotationSummary"},"ArtifactListResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"collections":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Collections"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["document_id","collections"],"title":"ArtifactListResponse"},"AuthFeatureAccess":{"properties":{"status":{"type":"string","enum":["enabled","disabled","unavailable"],"title":"Status"}},"type":"object","required":["status"],"title":"AuthFeatureAccess"},"AuthStatusResponse":{"properties":{"authenticated":{"type":"boolean","title":"Authenticated"},"user":{"anyOf":[{"$ref":"#/components/schemas/AuthUser"},{"type":"null"}]},"tenant":{"anyOf":[{"$ref":"#/components/schemas/AuthTenant"},{"type":"null"}]},"features":{"additionalProperties":{"$ref":"#/components/schemas/AuthFeatureAccess"},"type":"object","title":"Features"}},"type":"object","required":["authenticated"],"title":"AuthStatusResponse"},"AuthTenant":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["tenant_id","name"],"title":"AuthTenant"},"AuthTenantListResponse":{"properties":{"tenants":{"items":{"$ref":"#/components/schemas/AuthTenantSelectionItem"},"type":"array","title":"Tenants"}},"type":"object","required":["tenants"],"title":"AuthTenantListResponse"},"AuthTenantSelectionItem":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"logo":{"type":"string","title":"Logo"},"features":{"additionalProperties":{"$ref":"#/components/schemas/AuthFeatureAccess"},"type":"object","title":"Features"}},"type":"object","required":["tenant_id","name","logo"],"title":"AuthTenantSelectionItem"},"AuthTenantSelectionRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"}},"type":"object","required":["tenant_id"],"title":"AuthTenantSelectionRequest"},"AuthUser":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"display_name":{"type":"string","title":"Display Name"},"role":{"anyOf":[{"type":"string","enum":["viewer","tenant_admin"]},{"type":"null"}],"title":"Role"},"is_staff":{"type":"boolean","title":"Is Staff"}},"type":"object","required":["user_id","email","display_name","role","is_staff"],"title":"AuthUser"},"BackofficeUserActionResponse":{"properties":{"action":{"type":"string","title":"Action"},"user":{"$ref":"#/components/schemas/BackofficeUserRecord"},"email_delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Delivery Id"},"revoked_session_count":{"type":"integer","title":"Revoked Session Count","default":0}},"type":"object","required":["action","user"],"title":"BackofficeUserActionResponse"},"BackofficeUserInvitationResponse":{"properties":{"invitation_status":{"type":"string","enum":["sent","resent"],"title":"Invitation Status"},"user_action":{"type":"string","title":"User Action"},"membership_action":{"type":"string","title":"Membership Action"},"email_delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Delivery Id"},"user":{"$ref":"#/components/schemas/BackofficeUserRecord"}},"type":"object","required":["invitation_status","user_action","membership_action","user"],"title":"BackofficeUserInvitationResponse"},"BackofficeUserInviteRequest":{"properties":{"email":{"type":"string","title":"Email"},"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","title":"Role","default":"viewer"}},"type":"object","required":["email","display_name"],"title":"BackofficeUserInviteRequest"},"BackofficeUserListResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"tenant_name":{"type":"string","title":"Tenant Name"},"users":{"items":{"$ref":"#/components/schemas/BackofficeUserRecord"},"type":"array","title":"Users"}},"type":"object","required":["tenant_id","tenant_name"],"title":"BackofficeUserListResponse"},"BackofficeUserRecord":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"display_name":{"type":"string","title":"Display Name"},"role":{"type":"string","title":"Role"},"account_status":{"type":"string","title":"Account Status"},"membership_status":{"type":"string","title":"Membership Status"}},"type":"object","required":["user_id","email","display_name","role","account_status","membership_status"],"title":"BackofficeUserRecord"},"BackofficeUserRoleUpdateRequest":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"BackofficeUserRoleUpdateRequest"},"BlueprintRecoveryResolutionRequest":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"expected_hash":{"type":"string","minLength":1,"title":"Expected Hash"},"case_id":{"type":"string","minLength":1,"title":"Case Id"},"action":{"type":"string","enum":["apply","recreate","discard"],"title":"Action"},"target_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Target Id"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_hash","case_id","action"],"title":"BlueprintRecoveryResolutionRequest"},"BlueprintRecoveryResponse":{"properties":{"archived":{"type":"boolean","title":"Archived","default":false},"previous_recovery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Recovery Id"},"document_id":{"type":"string","title":"Document Id"},"recovery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recovery Id"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"unresolved_count":{"type":"integer","title":"Unresolved Count"},"cases":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Cases"},"decisions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Decisions"}},"type":"object","required":["document_id","recovery_id","revision","effective_hash","unresolved_count","cases","decisions"],"title":"BlueprintRecoveryResponse"},"BomFamilyReconciliationResponse":{"properties":{"document_id":{"type":"string","title":"Document Id","default":""},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"families":{"items":{"$ref":"#/components/schemas/BomFamilyReconciliationRow"},"type":"array","title":"Families"},"excluded_blueprint_classes":{"items":{"$ref":"#/components/schemas/ExcludedBlueprintClass"},"type":"array","title":"Excluded Blueprint Classes"},"excluded_bom_families":{"items":{"$ref":"#/components/schemas/ExcludedBomFamily"},"type":"array","title":"Excluded Bom Families"},"summary":{"$ref":"#/components/schemas/BomFamilyReconciliationSummary"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","title":"BomFamilyReconciliationResponse"},"BomFamilyReconciliationRow":{"properties":{"family":{"type":"string","title":"Family"},"blueprint_count":{"type":"integer","title":"Blueprint Count","default":0},"bom_quantity_sum":{"type":"number","title":"Bom Quantity Sum","default":0.0},"bom_row_count":{"type":"integer","title":"Bom Row Count","default":0},"bom_rows_with_quantity":{"type":"integer","title":"Bom Rows With Quantity","default":0},"bom_rows_missing_quantity":{"type":"integer","title":"Bom Rows Missing Quantity","default":0},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta"},"status":{"type":"string","enum":["match","mismatch","uncertain"],"title":"Status"}},"type":"object","required":["family","status"],"title":"BomFamilyReconciliationRow"},"BomFamilyReconciliationSummary":{"properties":{"compared_family_count":{"type":"integer","title":"Compared Family Count","default":0},"matching_family_count":{"type":"integer","title":"Matching Family Count","default":0},"mismatching_family_count":{"type":"integer","title":"Mismatching Family Count","default":0},"uncertain_family_count":{"type":"integer","title":"Uncertain Family Count","default":0}},"type":"object","title":"BomFamilyReconciliationSummary"},"BomVerificationBomRow":{"properties":{"source_doc_id":{"type":"string","title":"Source Doc Id"},"page_id":{"type":"string","title":"Page Id"},"rep":{"type":"string","title":"Rep"},"row_index":{"type":"integer","title":"Row Index"},"quantity_norm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity Norm"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"pressure_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Rating"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"}},"type":"object","required":["source_doc_id","page_id","rep","row_index"],"title":"BomVerificationBomRow"},"BomVerificationGroup":{"properties":{"group_key":{"type":"string","title":"Group Key"},"family":{"type":"string","title":"Family"},"dn":{"type":"string","title":"Dn"},"schedule_state":{"type":"string","enum":["value","absent","ambiguous"],"title":"Schedule State"},"schedule_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Value"},"status":{"type":"string","enum":["match","blueprint_only","bom_only","count_mismatch","uncertain"],"title":"Status"},"blueprint_count_total":{"type":"integer","title":"Blueprint Count Total","default":0},"bom_quantity_total":{"type":"number","title":"Bom Quantity Total","default":0.0},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta"},"material_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material Label"},"pressure_rating_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Rating Label"},"end_type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type Label"},"nearby_candidates":{"items":{"$ref":"#/components/schemas/BomVerificationNearbyCandidate"},"type":"array","title":"Nearby Candidates"},"page_breakdown":{"items":{"$ref":"#/components/schemas/BomVerificationPageBreakdown"},"type":"array","title":"Page Breakdown"}},"type":"object","required":["group_key","family","dn","schedule_state","status"],"title":"BomVerificationGroup"},"BomVerificationNearbyCandidate":{"properties":{"group_key":{"type":"string","title":"Group Key"},"family":{"type":"string","title":"Family"},"dn":{"type":"string","title":"Dn"},"schedule_state":{"type":"string","enum":["value","absent","ambiguous"],"title":"Schedule State"},"schedule_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Value"},"blueprint_count_total":{"type":"integer","title":"Blueprint Count Total","default":0},"bom_quantity_total":{"type":"number","title":"Bom Quantity Total","default":0.0},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta"},"status":{"type":"string","enum":["match","blueprint_only","bom_only","count_mismatch","uncertain"],"title":"Status"}},"type":"object","required":["group_key","family","dn","schedule_state","status"],"title":"BomVerificationNearbyCandidate"},"BomVerificationPageBreakdown":{"properties":{"page_id":{"type":"string","title":"Page Id"},"blueprint_count":{"type":"integer","title":"Blueprint Count","default":0},"bom_quantity":{"type":"number","title":"Bom Quantity","default":0.0},"status":{"type":"string","enum":["match","blueprint_only","bom_only","count_mismatch","uncertain"],"title":"Status"},"bom_rows":{"items":{"$ref":"#/components/schemas/BomVerificationBomRow"},"type":"array","title":"Bom Rows"}},"type":"object","required":["page_id","status"],"title":"BomVerificationPageBreakdown"},"BomVerificationResponse":{"properties":{"document_id":{"type":"string","title":"Document Id","default":""},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"summary":{"$ref":"#/components/schemas/BomVerificationSummary"},"groups":{"items":{"$ref":"#/components/schemas/BomVerificationGroup"},"type":"array","title":"Groups"},"out_of_scope_blueprint_classes":{"items":{"$ref":"#/components/schemas/OutOfScopeBlueprintClass"},"type":"array","title":"Out Of Scope Blueprint Classes"},"out_of_scope_bom_families":{"items":{"$ref":"#/components/schemas/OutOfScopeBomFamily"},"type":"array","title":"Out Of Scope Bom Families"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","title":"BomVerificationResponse"},"BomVerificationSummary":{"properties":{"group_count":{"type":"integer","title":"Group Count","default":0},"match_count":{"type":"integer","title":"Match Count","default":0},"blueprint_only_count":{"type":"integer","title":"Blueprint Only Count","default":0},"bom_only_count":{"type":"integer","title":"Bom Only Count","default":0},"count_mismatch_count":{"type":"integer","title":"Count Mismatch Count","default":0},"uncertain_count":{"type":"integer","title":"Uncertain Count","default":0}},"type":"object","title":"BomVerificationSummary"},"BubbleAnnotation":{"properties":{"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"label":{"type":"string","title":"Label","default":""},"anchor_point":{"$ref":"#/components/schemas/BubblePoint"},"bubble_center":{"$ref":"#/components/schemas/BubblePoint"},"is_default":{"type":"boolean","title":"Is Default","default":false},"position_is_manual":{"type":"boolean","title":"Position Is Manual","default":true},"sequence_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence Number"},"inspection_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inspection Code"}},"type":"object","required":["backend_id","page_id","anchor_point","bubble_center"],"title":"BubbleAnnotation"},"BubbleAuthor":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","title":"BubbleAuthor"},"BubbleDeleteRequest":{"properties":{"edit_context":{"anyOf":[{"$ref":"#/components/schemas/BubbleEditContext"},{"type":"null"}]},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"expected_revision":{"type":"integer","title":"Expected Revision"},"backend_id":{"type":"string","title":"Backend Id"}},"additionalProperties":false,"type":"object","required":["expected_revision","backend_id"],"title":"BubbleDeleteRequest"},"BubbleDocumentResponse":{"properties":{"flow_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Page Id"},"document_id":{"type":"string","title":"Document Id"},"document_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Display Name"},"document_stem":{"type":"string","title":"Document Stem"},"workflow":{"type":"string","title":"Workflow"},"base_kind":{"type":"string","title":"Base Kind"},"base_document_id":{"type":"string","title":"Base Document Id"},"base_run_id":{"type":"string","title":"Base Run Id"},"base_hash":{"type":"string","title":"Base Hash"},"revision":{"type":"integer","title":"Revision","default":0},"edit_generation":{"type":"integer","title":"Edit Generation","default":0},"edit_revisions":{"additionalProperties":{"type":"integer"},"type":"object","title":"Edit Revisions"},"freshness":{"$ref":"#/components/schemas/BubbleFreshness"},"summary":{"$ref":"#/components/schemas/BubbleSummary"},"bubble_size_percent":{"type":"integer","title":"Bubble Size Percent","default":100},"page_bubble_size_percent":{"additionalProperties":{"type":"integer"},"type":"object","title":"Page Bubble Size Percent"},"pages":{"items":{"$ref":"#/components/schemas/BubblePage"},"type":"array","title":"Pages"},"objects":{"items":{"$ref":"#/components/schemas/BubbleObject"},"type":"array","title":"Objects"},"annotations":{"items":{"$ref":"#/components/schemas/BubbleAnnotation"},"type":"array","title":"Annotations"},"deleted_annotations":{"items":{"$ref":"#/components/schemas/BubbleAnnotation"},"type":"array","title":"Deleted Annotations"},"orphans":{"items":{"$ref":"#/components/schemas/BubbleAnnotation"},"type":"array","title":"Orphans"},"table_rows":{"items":{"$ref":"#/components/schemas/BubbleTableRow"},"type":"array","title":"Table Rows"},"table_columns":{"items":{"$ref":"#/components/schemas/BubbleTableColumn"},"type":"array","title":"Table Columns"},"numbering_diagnostics":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Numbering Diagnostics"},"processing_diagnostics":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Processing Diagnostics"},"orphaned_table_values":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object","title":"Orphaned Table Values"},"inspection_length_diagnostics":{"items":{"$ref":"#/components/schemas/InspectionLengthDiagnostic"},"type":"array","title":"Inspection Length Diagnostics"},"flow_direction":{"anyOf":[{"$ref":"#/components/schemas/BubbleFlowDirection"},{"type":"null"}]},"export_columns":{"items":{"type":"string"},"type":"array","title":"Export Columns"},"export_rows":{"items":{"$ref":"#/components/schemas/BubbleExportRow"},"type":"array","title":"Export Rows"},"export_dialect":{"anyOf":[{"$ref":"#/components/schemas/BubbleExportDialect"},{"type":"null"}]},"export_page_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Page Column"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"$ref":"#/components/schemas/BubbleAuthor"},{"type":"null"}]}},"type":"object","required":["document_id","document_stem","workflow","base_kind","base_document_id","base_run_id","base_hash","freshness","summary"],"title":"BubbleDocumentResponse"},"BubbleEditContext":{"properties":{"base_run_id":{"type":"string","minLength":1,"title":"Base Run Id"},"base_hash":{"type":"string","minLength":1,"title":"Base Hash"},"expected_generation":{"type":"integer","minimum":0.0,"title":"Expected Generation"},"expected_target_revision":{"type":"integer","minimum":0.0,"title":"Expected Target Revision"}},"additionalProperties":false,"type":"object","required":["base_run_id","base_hash","expected_generation","expected_target_revision"],"title":"BubbleEditContext"},"BubbleElement":{"properties":{"node_id":{"type":"string","title":"Node Id"},"class_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Name"},"bom_status":{"type":"string","enum":["matched","missing","ambiguous"],"title":"Bom Status"},"bom":{"anyOf":[{"$ref":"#/components/schemas/BubbleElementBom"},{"type":"null"}]}},"type":"object","required":["node_id","bom_status"],"title":"BubbleElement"},"BubbleElementBom":{"properties":{"source_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Doc Id"},"bom_row":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bom Row"},"rep":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"row_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Row Text"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"}},"type":"object","title":"BubbleElementBom"},"BubbleExportDialect":{"properties":{"format":{"type":"string","const":"csv","title":"Format"},"separator":{"type":"string","enum":[",",";"],"title":"Separator"},"bom":{"type":"boolean","title":"Bom"},"line_ending":{"type":"string","enum":["lf","crlf"],"title":"Line Ending"}},"type":"object","required":["format","separator","bom","line_ending"],"title":"BubbleExportDialect"},"BubbleExportRow":{"properties":{},"additionalProperties":true,"type":"object","title":"BubbleExportRow"},"BubbleFlowDirection":{"properties":{"strategy":{"type":"string","const":"manual","title":"Strategy"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"nodes":{"items":{"$ref":"#/components/schemas/BubbleFlowNode"},"type":"array","title":"Nodes"},"domains":{"items":{"$ref":"#/components/schemas/BubbleFlowDomain"},"type":"array","title":"Domains"},"stops":{"items":{"$ref":"#/components/schemas/BubbleFlowStop"},"type":"array","title":"Stops"},"orphan_seeds":{"items":{"$ref":"#/components/schemas/BubbleFlowSeed"},"type":"array","title":"Orphan Seeds"}},"type":"object","required":["strategy"],"title":"BubbleFlowDirection"},"BubbleFlowDirectionRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"},"action":{"type":"string","enum":["seed","invert","clear","renumber_page"],"title":"Action"},"domain_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Domain Id"},"page_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Page Id"},"node_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Id"},"upstream_port":{"anyOf":[{"type":"string","enum":["start","end"]},{"type":"null"}],"title":"Upstream Port"}},"additionalProperties":false,"type":"object","required":["expected_revision","action"],"title":"BubbleFlowDirectionRequest"},"BubbleFlowDomain":{"properties":{"id":{"type":"string","title":"Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"status":{"type":"string","enum":["resolved","unresolved"],"title":"Status"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"ordered_node_ids":{"items":{"type":"string"},"type":"array","title":"Ordered Node Ids"},"direction":{"type":"string","enum":["unknown","forward","reverse"],"title":"Direction","default":"unknown"},"source":{"anyOf":[{"type":"string","enum":["manual","detected_arrow"]},{"type":"null"}],"title":"Source"},"seed":{"anyOf":[{"$ref":"#/components/schemas/BubbleFlowSeed"},{"type":"null"}]}},"type":"object","required":["id","page_id","blueprint_document_id","status"],"title":"BubbleFlowDomain"},"BubbleFlowNode":{"properties":{"id":{"type":"string","title":"Id"},"source_id":{"type":"string","title":"Source Id"},"backend_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"class_name":{"type":"string","title":"Class Name"},"seedable":{"type":"boolean","title":"Seedable","default":false},"status":{"type":"string","enum":["resolved","unresolved"],"title":"Status"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"domain_id":{"type":"string","title":"Domain Id"},"ports":{"items":{"$ref":"#/components/schemas/BubbleFlowPort"},"type":"array","title":"Ports"},"diameter_side_by_port":{"anyOf":[{"additionalProperties":{"type":"string","enum":["large","small"]},"propertyNames":{"enum":["start","end"]},"type":"object"},{"type":"null"}],"title":"Diameter Side By Port"},"direction":{"type":"string","enum":["unknown","forward","reverse"],"title":"Direction","default":"unknown"}},"type":"object","required":["id","source_id","page_id","blueprint_document_id","class_name","status","domain_id"],"title":"BubbleFlowNode"},"BubbleFlowPort":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","enum":["start","end"],"title":"Role"},"point":{"$ref":"#/components/schemas/BubblePoint"}},"type":"object","required":["id","role","point"],"title":"BubbleFlowPort"},"BubbleFlowResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"workflow":{"type":"string","title":"Workflow"},"base_run_id":{"type":"string","title":"Base Run Id"},"base_hash":{"type":"string","title":"Base Hash"},"edit_generation":{"type":"integer","title":"Edit Generation"},"freshness":{"$ref":"#/components/schemas/BubbleFreshness"},"flow_page_id":{"type":"string","title":"Flow Page Id"},"flow_direction":{"anyOf":[{"$ref":"#/components/schemas/BubbleFlowDirection"},{"type":"null"}]}},"type":"object","required":["document_id","workflow","base_run_id","base_hash","edit_generation","freshness","flow_page_id","flow_direction"],"title":"BubbleFlowResponse"},"BubbleFlowSeed":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"node_id":{"type":"string","title":"Node Id"},"upstream_port":{"type":"string","enum":["start","end"],"title":"Upstream Port"},"source":{"type":"string","enum":["manual","detected_arrow"],"title":"Source"}},"type":"object","required":["domain_id","node_id","upstream_port","source"],"title":"BubbleFlowSeed"},"BubbleFlowStop":{"properties":{"node_ids":{"items":{"type":"string"},"type":"array","title":"Node Ids"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"BubbleFlowStop"},"BubbleFreshness":{"properties":{"state":{"type":"string","enum":["stale","up_to_date"],"title":"State"}},"type":"object","required":["state"],"title":"BubbleFreshness"},"BubbleObject":{"properties":{"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"},"positions_unspecified":{"type":"boolean","title":"Positions Unspecified","default":false},"backend_id":{"type":"string","title":"Backend Id"},"kind":{"type":"string","title":"Kind"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"node_ids":{"items":{"type":"string"},"type":"array","title":"Node Ids"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"elements":{"items":{"$ref":"#/components/schemas/BubbleElement"},"type":"array","title":"Elements"},"weld_state":{"anyOf":[{"type":"string","enum":["shop","field"]},{"type":"null"}],"title":"Weld State"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"class_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Name"},"anchor_point":{"$ref":"#/components/schemas/BubblePoint"},"start_point":{"$ref":"#/components/schemas/BubblePoint"},"end_point":{"$ref":"#/components/schemas/BubblePoint"},"outline":{"items":{"$ref":"#/components/schemas/BubblePoint"},"type":"array","title":"Outline"},"suggested_label":{"type":"string","title":"Suggested Label","default":""},"suggested_sequence_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suggested Sequence Number"},"suggested_inspection_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Inspection Code"}},"type":"object","required":["backend_id","kind","page_id","blueprint_document_id","anchor_point","start_point","end_point"],"title":"BubbleObject"},"BubblePage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"object_count":{"type":"integer","title":"Object Count","default":0},"width":{"type":"number","title":"Width","default":0},"height":{"type":"number","title":"Height","default":0}},"type":"object","required":["page_id","blueprint_document_id"],"title":"BubblePage"},"BubblePdfRequest":{"properties":{"width":{"type":"integer","maximum":20000.0,"exclusiveMinimum":0.0,"title":"Width"},"height":{"type":"integer","maximum":20000.0,"exclusiveMinimum":0.0,"title":"Height"},"overlay_png":{"type":"string","maxLength":16000000,"minLength":1,"title":"Overlay Png"},"layout_hash":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Layout Hash"},"layout_generation_hash":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Layout Generation Hash"},"layout_manual_positions":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LayoutManualPoint"},"type":"object","maxProperties":10000},{"type":"null"}],"title":"Layout Manual Positions"},"layout_weld_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Layout Weld Revision"},"layout_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Layout Revision"}},"additionalProperties":false,"type":"object","required":["width","height","overlay_png"],"title":"BubblePdfRequest"},"BubblePoint":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"type":"object","required":["x","y"],"title":"BubblePoint"},"BubblePositionPoint":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"additionalProperties":false,"type":"object","required":["x","y"],"title":"BubblePositionPoint"},"BubblePositionRequest":{"properties":{"edit_context":{"anyOf":[{"$ref":"#/components/schemas/BubbleEditContext"},{"type":"null"}]},"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"bubble_center":{"$ref":"#/components/schemas/BubblePositionPoint"}},"additionalProperties":false,"type":"object","required":["expected_revision","backend_id","page_id","bubble_center"],"title":"BubblePositionRequest"},"BubbleRegenerateRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"}},"additionalProperties":false,"type":"object","required":["expected_revision"],"title":"BubbleRegenerateRequest"},"BubbleSizeRequest":{"properties":{"edit_context":{"anyOf":[{"$ref":"#/components/schemas/BubbleEditContext"},{"type":"null"}]},"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"percent":{"anyOf":[{"type":"integer","maximum":150.0,"minimum":50.0},{"type":"null"}],"title":"Percent"}},"additionalProperties":false,"type":"object","required":["expected_revision","percent"],"title":"BubbleSizeRequest"},"BubbleSummary":{"properties":{"object_total":{"type":"integer","title":"Object Total","default":0},"bubbled_count":{"type":"integer","title":"Bubbled Count","default":0},"orphaned_count":{"type":"integer","title":"Orphaned Count","default":0}},"type":"object","title":"BubbleSummary"},"BubbleTableCellRequest":{"properties":{"edit_context":{"anyOf":[{"$ref":"#/components/schemas/BubbleEditContext"},{"type":"null"}]},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"backend_id":{"type":"string","title":"Backend Id"},"column_id":{"type":"string","title":"Column Id"},"value":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Value"}},"additionalProperties":false,"type":"object","required":["expected_revision","backend_id","column_id"],"title":"BubbleTableCellRequest"},"BubbleTableColumn":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","date","suggestions"],"title":"Type"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["id","label","type","suggestions"],"title":"BubbleTableColumn"},"BubbleTableRow":{"properties":{"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"values":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Values"},"extracted_values":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Extracted Values"},"overridden_fields":{"items":{"type":"string"},"type":"array","title":"Overridden Fields"}},"type":"object","required":["backend_id","page_id","values","extracted_values","overridden_fields"],"title":"BubbleTableRow"},"BubbleUpsertRequest":{"properties":{"edit_context":{"anyOf":[{"$ref":"#/components/schemas/BubbleEditContext"},{"type":"null"}]},"expected_revision":{"type":"integer","title":"Expected Revision"},"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"sequence_number":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Sequence Number"},"inspection_code":{"anyOf":[{"type":"string","maxLength":16,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Inspection Code"},"bubble_center":{"$ref":"#/components/schemas/BubblePoint"}},"additionalProperties":false,"type":"object","required":["expected_revision","backend_id","page_id","bubble_center"],"title":"BubbleUpsertRequest"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ChangePasswordResponse":{"properties":{"status":{"type":"string","const":"completed","title":"Status","default":"completed"}},"type":"object","title":"ChangePasswordResponse"},"ChantierConfirmReviewRequest":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"expected_run_id":{"type":"string","title":"Expected Run Id"},"expected_base_hash":{"type":"string","title":"Expected Base Hash"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_run_id","expected_base_hash"],"title":"ChantierConfirmReviewRequest"},"ChantierDocumentResponse":{"properties":{"edit_generation":{"type":"integer","title":"Edit Generation","default":0},"edit_revisions":{"additionalProperties":{"type":"integer"},"type":"object","title":"Edit Revisions"},"document_id":{"type":"string","title":"Document Id"},"document_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Display Name"},"document_stem":{"type":"string","title":"Document Stem"},"base_run_id":{"type":"string","title":"Base Run Id"},"base_hash":{"type":"string","title":"Base Hash"},"revision":{"type":"integer","title":"Revision","default":0},"freshness":{"$ref":"#/components/schemas/ChantierFreshness"},"summary":{"$ref":"#/components/schemas/ChantierSummary"},"pages":{"items":{"$ref":"#/components/schemas/ChantierPage"},"type":"array","title":"Pages"},"welds":{"items":{"$ref":"#/components/schemas/ChantierWeld"},"type":"array","title":"Welds"},"marked_backend_ids":{"items":{"type":"string"},"type":"array","title":"Marked Backend Ids"},"orphans":{"items":{"type":"string"},"type":"array","title":"Orphans"},"current_run_id":{"type":"string","title":"Current Run Id"},"review_confirmed":{"type":"boolean","title":"Review Confirmed","default":false}},"type":"object","required":["document_id","document_stem","base_run_id","base_hash","freshness","summary","current_run_id"],"title":"ChantierDocumentResponse"},"ChantierFreshness":{"properties":{"state":{"type":"string","enum":["stale","up_to_date"],"title":"State"}},"type":"object","required":["state"],"title":"ChantierFreshness"},"ChantierPage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"weld_count":{"type":"integer","title":"Weld Count","default":0}},"type":"object","required":["page_id","blueprint_document_id"],"title":"ChantierPage"},"ChantierSummary":{"properties":{"weld_total":{"type":"integer","title":"Weld Total","default":0},"chantier_count":{"type":"integer","title":"Chantier Count","default":0},"orphaned_count":{"type":"integer","title":"Orphaned Count","default":0}},"type":"object","title":"ChantierSummary"},"ChantierToggleRequest":{"properties":{"expected_generation":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Expected Generation"},"expected_edit_revisions":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Expected Edit Revisions"},"expected_revision":{"type":"integer","title":"Expected Revision"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"backend_id":{"type":"string","title":"Backend Id"},"next_state":{"type":"string","enum":["atelier","chantier"],"title":"Next State"}},"additionalProperties":false,"type":"object","required":["expected_revision","page_id","blueprint_document_id","backend_id","next_state"],"title":"ChantierToggleRequest"},"ChantierToggleResponse":{"properties":{"edit_generation":{"type":"integer","title":"Edit Generation","default":0},"edit_revisions":{"additionalProperties":{"type":"integer"},"type":"object","title":"Edit Revisions"},"revision":{"type":"integer","title":"Revision","default":0},"review_confirmed":{"type":"boolean","title":"Review Confirmed","default":false},"freshness":{"$ref":"#/components/schemas/ChantierFreshness"},"summary":{"$ref":"#/components/schemas/ChantierSummary"},"marked_backend_ids":{"items":{"type":"string"},"type":"array","title":"Marked Backend Ids"},"orphans":{"items":{"type":"string"},"type":"array","title":"Orphans"}},"type":"object","required":["freshness","summary"],"title":"ChantierToggleResponse"},"ChantierWeld":{"properties":{"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"},"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"node_ids":{"items":{"type":"string"},"type":"array","title":"Node Ids"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"}},"type":"object","required":["backend_id","page_id","blueprint_document_id"],"title":"ChantierWeld"},"CharacteristicsChangeRequest":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"expected_source_hash":{"type":"string","maxLength":80,"minLength":1,"title":"Expected Source Hash"},"action":{"type":"string","enum":["article","association","reset"],"title":"Action"},"article_id":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Article Id"},"blueprint_id":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Blueprint Id"},"detection_id":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Detection Id"},"fields":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":8,"title":"Fields"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_source_hash","action"],"title":"CharacteristicsChangeRequest"},"CommentCreateRequest":{"properties":{"body":{"type":"string","title":"Body"},"source":{"type":"string","enum":["viewer","results","editor","system"],"title":"Source"},"reply_to_comment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To Comment Id"}},"type":"object","required":["body","source"],"title":"CommentCreateRequest"},"CommentItem":{"properties":{"comment_id":{"type":"string","title":"Comment Id"},"thread_key":{"type":"string","title":"Thread Key"},"document_id":{"type":"string","title":"Document Id"},"source":{"type":"string","enum":["viewer","results","editor","system"],"title":"Source"},"author_name":{"type":"string","title":"Author Name"},"body":{"type":"string","title":"Body"},"reply_to_comment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To Comment Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["comment_id","thread_key","document_id","source","author_name","body","created_at","updated_at"],"title":"CommentItem"},"CommentListResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"thread_key":{"type":"string","title":"Thread Key"},"status":{"type":"string","enum":["open","resolved"],"title":"Status","default":"open"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"comments":{"items":{"$ref":"#/components/schemas/CommentItem"},"type":"array","title":"Comments"}},"type":"object","required":["document_id","thread_key"],"title":"CommentListResponse"},"CommentThreadActionRequest":{"properties":{},"type":"object","title":"CommentThreadActionRequest"},"CommentThreadResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"thread_key":{"type":"string","title":"Thread Key"},"status":{"type":"string","enum":["open","resolved"],"title":"Status"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["document_id","thread_key","status"],"title":"CommentThreadResponse"},"CommentUpdateRequest":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"CommentUpdateRequest"},"DetectRegionsDatasetExportRequest":{"properties":{"candidate_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Ids"}},"type":"object","title":"DetectRegionsDatasetExportRequest"},"DetectRegionsDatasetExportResponse":{"properties":{"export_id":{"type":"string","title":"Export Id"},"dataset_path":{"type":"string","title":"Dataset Path"},"data_yaml_path":{"type":"string","title":"Data Yaml Path"},"manifest_path":{"type":"string","title":"Manifest Path"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"candidate_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Ids"},"split":{"additionalProperties":true,"type":"object","title":"Split"}},"type":"object","required":["export_id","dataset_path","data_yaml_path","manifest_path","manifest"],"title":"DetectRegionsDatasetExportResponse"},"DocumentAliasResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"document_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Alias"},"document_display_name":{"type":"string","title":"Document Display Name"}},"type":"object","required":["document_id","document_display_name"],"title":"DocumentAliasResponse"},"DocumentAliasUpdateRequest":{"properties":{"document_alias":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Document Alias"}},"type":"object","title":"DocumentAliasUpdateRequest"},"DocumentProjectResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["document_id"],"title":"DocumentProjectResponse"},"DocumentProjectUpdateRequest":{"properties":{"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"DocumentProjectUpdateRequest"},"DocumentTrainingStateItem":{"properties":{"document_id":{"type":"string","title":"Document Id"},"document_stem":{"type":"string","title":"Document Stem"},"segment":{"$ref":"#/components/schemas/DocumentTrainingTaskState"},"detect_regions":{"$ref":"#/components/schemas/DocumentTrainingTaskState"},"tracker":{"$ref":"#/components/schemas/DocumentTrainingTaskState"}},"type":"object","required":["document_id","document_stem"],"title":"DocumentTrainingStateItem"},"DocumentTrainingStateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentTrainingStateItem"},"type":"array","title":"Items"}},"type":"object","title":"DocumentTrainingStateListResponse"},"DocumentTrainingStateRequest":{"properties":{"document_ids":{"items":{"type":"string"},"type":"array","title":"Document Ids"}},"type":"object","title":"DocumentTrainingStateRequest"},"DocumentTrainingTaskState":{"properties":{"corrected_count":{"type":"integer","title":"Corrected Count","default":0},"good_by_default_count":{"type":"integer","title":"Good By Default Count","default":0},"queued_count":{"type":"integer","title":"Queued Count","default":0},"queued_warning_count":{"type":"integer","title":"Queued Warning Count","default":0},"queued_blocked_count":{"type":"integer","title":"Queued Blocked Count","default":0}},"type":"object","title":"DocumentTrainingTaskState"},"EligibleSegmentationReviewItem":{"properties":{"document_id":{"type":"string","title":"Document Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"document_stem":{"type":"string","title":"Document Stem"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"review_mode":{"anyOf":[{"type":"string","enum":["corrected","accepted_as_is"]},{"type":"null"}],"title":"Review Mode"},"bucket":{"type":"string","enum":["corrected","good_by_default"],"title":"Bucket","default":"corrected"},"example_key":{"type":"string","title":"Example Key","default":""},"results_state":{"type":"string","enum":["stale","up_to_date"],"title":"Results State"},"page_source_state":{"anyOf":[{"type":"string","enum":["available","missing"]},{"type":"null"}],"title":"Page Source State"},"readiness":{"anyOf":[{"type":"string","enum":["ready","warning","blocked"]},{"type":"null"}],"title":"Readiness"},"readiness_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readiness Summary"},"active_tracker_count":{"type":"integer","title":"Active Tracker Count","default":0},"unknown_tracker_count":{"type":"integer","title":"Unknown Tracker Count","default":0},"exportable_tracker_count":{"type":"integer","title":"Exportable Tracker Count","default":0},"non_exportable_tracker_count":{"type":"integer","title":"Non Exportable Tracker Count","default":0},"eligible":{"type":"boolean","title":"Eligible"},"eligibility_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eligibility Reason"},"has_modifications":{"type":"boolean","title":"Has Modifications","default":true},"detection_count":{"type":"integer","title":"Detection Count","default":0},"deleted_detection_count":{"type":"integer","title":"Deleted Detection Count","default":0},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Updated By"},"validated_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validated By"},"validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validated At"},"base_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Run Id"}},"type":"object","required":["document_id","document_stem","revision","effective_hash","results_state","eligible"],"title":"EligibleSegmentationReviewItem"},"EligibleSegmentationReviewListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EligibleSegmentationReviewItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","title":"EligibleSegmentationReviewListResponse"},"EstimateBendFacts":{"properties":{"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"wall_thickness_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wall Thickness Mm"}},"additionalProperties":false,"type":"object","title":"EstimateBendFacts"},"EstimateBendOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_detection_ids":{"items":{"type":"string"},"type":"array","title":"Source Detection Ids"},"overridden_fields":{"items":{"type":"string","enum":["dn","schedule","material","pressure_rating","end_type","branch_dn","branch_schedule","branch_material","physical_angle_kind","reinforced","motorized","olet_type"]},"type":"array","title":"Overridden Fields"},"operation_type":{"type":"string","const":"bend","title":"Operation Type"},"facts":{"$ref":"#/components/schemas/EstimateBendFacts"},"effective_facts":{"$ref":"#/components/schemas/EstimateBendFacts"},"valuation":{"$ref":"#/components/schemas/EstimateBendValuation"}},"type":"object","required":["operation_id","page_id","blueprint_document_id","operation_type","facts","effective_facts","valuation"],"title":"EstimateBendOperation"},"EstimateBendValuation":{"properties":{"state":{"type":"string","enum":["valued","incomplete"],"title":"State"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"default_reasons":{"items":{"type":"string"},"type":"array","title":"Default Reasons"},"pouce_equivalent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pouce Equivalent"},"ut_atelier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Atelier Ref"},"ut_chantier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Chantier Ref"},"calculation":{"anyOf":[{"$ref":"#/components/schemas/EstimateCalculationBreakdown"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["state"],"title":"EstimateBendValuation"},"EstimateBuyerEstimate":{"properties":{"state":{"type":"string","enum":["ready","missing_hypotheses"],"title":"State","default":"missing_hypotheses"},"missing_fields":{"items":{"type":"string","enum":["shop_share_percent","shop_eur_per_ut","field_eur_per_ut"]},"type":"array","title":"Missing Fields"},"shop_share_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shop Share Percent"},"field_share_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Field Share Percent"},"estimated_shop_ut":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Shop Ut"},"estimated_field_ut":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Field Ut"},"estimated_shop_euros":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Shop Euros"},"estimated_field_euros":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Field Euros"},"estimated_euros_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Euros Total"}},"type":"object","title":"EstimateBuyerEstimate"},"EstimateBuyerHypotheses":{"properties":{"shop_share_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Shop Share Percent"},"shop_eur_per_ut":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Shop Eur Per Ut"},"field_eur_per_ut":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Field Eur Per Ut"}},"additionalProperties":false,"type":"object","title":"EstimateBuyerHypotheses"},"EstimateBuyerHypothesesPatchRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"},"expected_base_run_id":{"type":"string","title":"Expected Base Run Id"},"expected_base_hash":{"type":"string","title":"Expected Base Hash"},"buyer_hypotheses":{"$ref":"#/components/schemas/EstimateBuyerHypotheses"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_base_run_id","expected_base_hash","buyer_hypotheses"],"title":"EstimateBuyerHypothesesPatchRequest"},"EstimateCalculationBreakdown":{"properties":{"tables":{"items":{"type":"string"},"type":"array","title":"Tables"},"inputs":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object","title":"Inputs"},"base":{"$ref":"#/components/schemas/EstimateCalculationMetric"},"factors":{"items":{"$ref":"#/components/schemas/EstimateCalculationFactor"},"type":"array","title":"Factors"},"result":{"$ref":"#/components/schemas/EstimateCalculationMetric"}},"additionalProperties":false,"type":"object","required":["base","result"],"title":"EstimateCalculationBreakdown"},"EstimateCalculationFactor":{"properties":{"key":{"type":"string","title":"Key"},"value":{"type":"number","title":"Value"}},"additionalProperties":false,"type":"object","required":["key","value"],"title":"EstimateCalculationFactor"},"EstimateCalculationMetric":{"properties":{"ut_atelier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Atelier Ref"},"ut_chantier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Chantier Ref"}},"additionalProperties":false,"type":"object","title":"EstimateCalculationMetric"},"EstimateDocumentResponse":{"properties":{"technical_freshness":{"anyOf":[{"$ref":"#/components/schemas/TechnicalFreshness"},{"type":"null"}]},"document_id":{"type":"string","title":"Document Id"},"document_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Display Name"},"document_stem":{"type":"string","title":"Document Stem"},"base_run_id":{"type":"string","title":"Base Run Id"},"base_hash":{"type":"string","title":"Base Hash"},"revision":{"type":"integer","title":"Revision","default":0},"freshness":{"$ref":"#/components/schemas/EstimateFreshness"},"technical_input_options":{"$ref":"#/components/schemas/EstimateTechnicalInputOptions"},"buyer_hypotheses":{"$ref":"#/components/schemas/EstimateBuyerHypotheses"},"buyer_estimate":{"$ref":"#/components/schemas/EstimateBuyerEstimate"},"summary":{"$ref":"#/components/schemas/EstimateSummary"},"operations":{"items":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/EstimateBendOperation"},{"$ref":"#/components/schemas/EstimateFlangeJointOperation"},{"$ref":"#/components/schemas/EstimateTapOperation"},{"$ref":"#/components/schemas/EstimateValveInstallationOperation"},{"$ref":"#/components/schemas/EstimateWeldOperation"}],"discriminator":{"propertyName":"operation_type","mapping":{"bend":"#/components/schemas/EstimateBendOperation","flange_joint":"#/components/schemas/EstimateFlangeJointOperation","tap":"#/components/schemas/EstimateTapOperation","valve_installation":"#/components/schemas/EstimateValveInstallationOperation","weld":"#/components/schemas/EstimateWeldOperation"}}},{"$ref":"#/components/schemas/EstimateUnsupportedOperation"}]},"type":"array","title":"Operations"},"nae_pricing":{"anyOf":[{"$ref":"#/components/schemas/NaeEstimatePricing"},{"type":"null"}]}},"type":"object","required":["document_id","document_stem","base_run_id","base_hash","freshness","summary"],"title":"EstimateDocumentResponse"},"EstimateFamilySummary":{"properties":{"produced":{"type":"boolean","title":"Produced","default":false},"operation_count":{"type":"integer","title":"Operation Count","default":0},"valued_count":{"type":"integer","title":"Valued Count","default":0},"incomplete_count":{"type":"integer","title":"Incomplete Count","default":0},"not_applicable_count":{"type":"integer","title":"Not Applicable Count","default":0},"defaulted_count":{"type":"integer","title":"Defaulted Count","default":0}},"type":"object","title":"EstimateFamilySummary"},"EstimateFamilyValuation":{"properties":{"state":{"type":"string","enum":["valued","incomplete"],"title":"State"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"default_reasons":{"items":{"type":"string"},"type":"array","title":"Default Reasons"},"pouce_equivalent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pouce Equivalent"},"ut_atelier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Atelier Ref"},"ut_chantier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Chantier Ref"},"calculation":{"anyOf":[{"$ref":"#/components/schemas/EstimateCalculationBreakdown"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["state"],"title":"EstimateFamilyValuation"},"EstimateFlangeJointFacts":{"properties":{"material_grades":{"items":{"type":"string"},"type":"array","title":"Material Grades"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"dn_resolution":{"type":"string","title":"Dn Resolution"},"pressure_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Rating"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"valve_installation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valve Installation Id"}},"additionalProperties":false,"type":"object","required":["dn_resolution"],"title":"EstimateFlangeJointFacts"},"EstimateFlangeJointOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_detection_ids":{"items":{"type":"string"},"type":"array","title":"Source Detection Ids"},"overridden_fields":{"items":{"type":"string","enum":["dn","schedule","material","pressure_rating","end_type","branch_dn","branch_schedule","branch_material","physical_angle_kind","reinforced","motorized","olet_type"]},"type":"array","title":"Overridden Fields"},"operation_type":{"type":"string","const":"flange_joint","title":"Operation Type"},"facts":{"$ref":"#/components/schemas/EstimateFlangeJointFacts"},"effective_facts":{"$ref":"#/components/schemas/EstimateFlangeJointFacts"},"valuation":{"$ref":"#/components/schemas/EstimateFamilyValuation"}},"type":"object","required":["operation_id","page_id","blueprint_document_id","operation_type","facts","effective_facts","valuation"],"title":"EstimateFlangeJointOperation"},"EstimateFreshness":{"properties":{"state":{"type":"string","enum":["stale","up_to_date"],"title":"State"}},"type":"object","required":["state"],"title":"EstimateFreshness"},"EstimateManualWeldFacts":{"properties":{"material_grades":{"items":{"type":"string"},"type":"array","title":"Material Grades"},"origin":{"type":"string","const":"manual","title":"Origin"},"manual_weld_id":{"type":"string","title":"Manual Weld Id"},"tap_operation_id":{"type":"null","title":"Tap Operation Id"},"tap_role":{"type":"null","title":"Tap Role"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"dn_resolution":{"type":"string","title":"Dn Resolution"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"}},"additionalProperties":false,"type":"object","required":["origin","manual_weld_id","dn_resolution"],"title":"EstimateManualWeldFacts"},"EstimateOperationPatchRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"},"expected_base_run_id":{"type":"string","title":"Expected Base Run Id"},"expected_base_hash":{"type":"string","title":"Expected Base Hash"},"technical_inputs":{"anyOf":[{"$ref":"#/components/schemas/EstimateTechnicalInputs"},{"type":"null"}]},"nae_assembly":{"anyOf":[{"$ref":"#/components/schemas/NaeAssemblyConfirmation"},{"type":"null"}]},"nae_test_preparation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Nae Test Preparation"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_base_run_id","expected_base_hash"],"title":"EstimateOperationPatchRequest"},"EstimateRebaseRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"}},"additionalProperties":false,"type":"object","required":["expected_revision"],"title":"EstimateRebaseRequest"},"EstimateSummary":{"properties":{"operation_total":{"type":"integer","title":"Operation Total","default":0},"valued_operation_count":{"type":"integer","title":"Valued Operation Count","default":0},"incomplete_operation_count":{"type":"integer","title":"Incomplete Operation Count","default":0},"not_applicable_operation_count":{"type":"integer","title":"Not Applicable Operation Count","default":0},"unsupported_operation_count":{"type":"integer","title":"Unsupported Operation Count","default":0},"defaulted_operation_count":{"type":"integer","title":"Defaulted Operation Count","default":0},"coverage_state":{"type":"string","enum":["full","partial","empty"],"title":"Coverage State","default":"empty"},"pouce_equivalent_total":{"type":"number","title":"Pouce Equivalent Total","default":0.0},"ut_total_atelier_ref":{"type":"number","title":"Ut Total Atelier Ref","default":0.0},"ut_total_chantier_ref":{"type":"number","title":"Ut Total Chantier Ref","default":0.0},"ut_total_atelier_fixed":{"type":"number","title":"Ut Total Atelier Fixed","default":0.0},"family_summaries":{"additionalProperties":{"$ref":"#/components/schemas/EstimateFamilySummary"},"propertyNames":{"enum":["bend","flange_joint","tap","valve_installation","weld"]},"type":"object","title":"Family Summaries"}},"type":"object","title":"EstimateSummary"},"EstimateTapFacts":{"properties":{"material_grades":{"items":{"type":"string"},"type":"array","title":"Material Grades"},"kind":{"type":"string","title":"Kind"},"main_pipe_detection_id":{"type":"string","title":"Main Pipe Detection Id"},"branch_pipe_detection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Pipe Detection Id"},"olet_detection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Olet Detection Id"},"main_dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Dn"},"branch_dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Dn"},"branch_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Schedule"},"branch_material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Material"},"main_dn_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Dn Source"},"branch_dn_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Dn Source"},"dn_resolution":{"type":"string","title":"Dn Resolution"},"dn_resolution_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn Resolution Reason"},"projected_angle_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Projected Angle Deg"},"physical_angle_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Physical Angle Deg"},"physical_angle_kind":{"anyOf":[{"type":"string","enum":["right_angle","angled"]},{"type":"null"}],"title":"Physical Angle Kind"},"reinforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reinforced"},"olet_type":{"anyOf":[{"type":"string","enum":["weldolet","sockolet","thredolet","sweepolet","elbolet","latrolet","nipolet"]},{"type":"null"}],"title":"Olet Type"},"derived_weld_ids":{"items":{"type":"string"},"type":"array","title":"Derived Weld Ids"}},"additionalProperties":false,"type":"object","required":["kind","main_pipe_detection_id","dn_resolution"],"title":"EstimateTapFacts"},"EstimateTapOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_detection_ids":{"items":{"type":"string"},"type":"array","title":"Source Detection Ids"},"overridden_fields":{"items":{"type":"string","enum":["dn","schedule","material","pressure_rating","end_type","branch_dn","branch_schedule","branch_material","physical_angle_kind","reinforced","motorized","olet_type"]},"type":"array","title":"Overridden Fields"},"operation_type":{"type":"string","const":"tap","title":"Operation Type"},"facts":{"$ref":"#/components/schemas/EstimateTapFacts"},"effective_facts":{"$ref":"#/components/schemas/EstimateTapFacts"},"valuation":{"$ref":"#/components/schemas/EstimateFamilyValuation"}},"type":"object","required":["operation_id","page_id","blueprint_document_id","operation_type","facts","effective_facts","valuation"],"title":"EstimateTapOperation"},"EstimateTechnicalInputOption":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"EstimateTechnicalInputOption"},"EstimateTechnicalInputOptions":{"properties":{"dn":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"Dn"},"schedule":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"Schedule"},"material":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"Material"},"pressure_rating":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"Pressure Rating"},"end_type":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"End Type"},"physical_angle_kind":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"Physical Angle Kind"},"olet_type":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array","title":"Olet Type"},"bend_schedule_by_dn":{"additionalProperties":{"items":{"$ref":"#/components/schemas/EstimateTechnicalInputOption"},"type":"array"},"type":"object","title":"Bend Schedule By Dn"}},"type":"object","title":"EstimateTechnicalInputOptions"},"EstimateTechnicalInputs":{"properties":{"dn":{"anyOf":[{"type":"string","enum":["15","20","25","40","50","80","100","150","200","250","300","350","400","450","500","550","600","650","700","750","800","900"]},{"type":"null"}],"title":"Dn"},"schedule":{"anyOf":[{"type":"string","enum":["5S","10S","10","20","30","STD","40","60","XS","80","120","160","XXS"]},{"type":"null"}],"title":"Schedule"},"material":{"anyOf":[{"type":"string","enum":["acier","inox","0.5mo","1.25/2.25cr","5/9cr"]},{"type":"null"}],"title":"Material"},"pressure_rating":{"anyOf":[{"type":"string","enum":["class150","class300","class600","class900","class1500","class2500","pn10","pn16","pn25","pn40"]},{"type":"null"}],"title":"Pressure Rating"},"end_type":{"anyOf":[{"type":"string","enum":["bw","sw"]},{"type":"null"}],"title":"End Type"},"branch_dn":{"anyOf":[{"type":"string","enum":["15","20","25","40","50","80","100","150","200","250","300","350","400","450","500","550","600","650","700","750","800","900"]},{"type":"null"}],"title":"Branch Dn"},"branch_schedule":{"anyOf":[{"type":"string","enum":["5S","10S","10","20","30","STD","40","60","XS","80","120","160","XXS"]},{"type":"null"}],"title":"Branch Schedule"},"branch_material":{"anyOf":[{"type":"string","enum":["acier","inox","0.5mo","1.25/2.25cr","5/9cr"]},{"type":"null"}],"title":"Branch Material"},"physical_angle_kind":{"anyOf":[{"type":"string","enum":["right_angle","angled"]},{"type":"null"}],"title":"Physical Angle Kind"},"reinforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reinforced"},"motorized":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Motorized"},"olet_type":{"anyOf":[{"type":"string","enum":["weldolet","sockolet","thredolet","sweepolet","elbolet","latrolet","nipolet"]},{"type":"null"}],"title":"Olet Type"}},"additionalProperties":false,"type":"object","title":"EstimateTechnicalInputs"},"EstimateUnsupportedOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_detection_ids":{"items":{"type":"string"},"type":"array","title":"Source Detection Ids"},"overridden_fields":{"items":{"type":"string","enum":["dn","schedule","material","pressure_rating","end_type","branch_dn","branch_schedule","branch_material","physical_angle_kind","reinforced","motorized","olet_type"]},"type":"array","title":"Overridden Fields"},"operation_type":{"type":"string","title":"Operation Type"},"facts":{"additionalProperties":true,"type":"object","title":"Facts"},"effective_facts":{"additionalProperties":true,"type":"object","title":"Effective Facts"},"valuation":{"$ref":"#/components/schemas/EstimateUnsupportedValuation"}},"type":"object","required":["operation_id","page_id","blueprint_document_id","operation_type","facts","effective_facts","valuation"],"title":"EstimateUnsupportedOperation"},"EstimateUnsupportedValuation":{"properties":{"state":{"type":"string","const":"unsupported","title":"State"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"default_reasons":{"items":{"type":"string"},"type":"array","title":"Default Reasons"},"pouce_equivalent":{"type":"null","title":"Pouce Equivalent"},"ut_atelier_ref":{"type":"null","title":"Ut Atelier Ref"},"ut_chantier_ref":{"type":"null","title":"Ut Chantier Ref"}},"type":"object","required":["state"],"title":"EstimateUnsupportedValuation"},"EstimateValveInstallationFacts":{"properties":{"material_grades":{"items":{"type":"string"},"type":"array","title":"Material Grades"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"dn_resolution":{"type":"string","title":"Dn Resolution"},"pressure_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Rating"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"motorized":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Motorized"},"flange_joint_ids":{"items":{"type":"string"},"type":"array","title":"Flange Joint Ids"}},"additionalProperties":false,"type":"object","required":["dn_resolution"],"title":"EstimateValveInstallationFacts"},"EstimateValveInstallationOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_detection_ids":{"items":{"type":"string"},"type":"array","title":"Source Detection Ids"},"overridden_fields":{"items":{"type":"string","enum":["dn","schedule","material","pressure_rating","end_type","branch_dn","branch_schedule","branch_material","physical_angle_kind","reinforced","motorized","olet_type"]},"type":"array","title":"Overridden Fields"},"operation_type":{"type":"string","const":"valve_installation","title":"Operation Type"},"facts":{"$ref":"#/components/schemas/EstimateValveInstallationFacts"},"effective_facts":{"$ref":"#/components/schemas/EstimateValveInstallationFacts"},"valuation":{"$ref":"#/components/schemas/EstimateFamilyValuation"}},"type":"object","required":["operation_id","page_id","blueprint_document_id","operation_type","facts","effective_facts","valuation"],"title":"EstimateValveInstallationOperation"},"EstimateWeldFacts":{"properties":{"material_grades":{"items":{"type":"string"},"type":"array","title":"Material Grades"},"origin":{"type":"string","enum":["direct","tap_derived"],"title":"Origin"},"tap_operation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tap Operation Id"},"tap_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tap Role"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"dn_resolution":{"type":"string","title":"Dn Resolution"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"}},"additionalProperties":false,"type":"object","required":["origin","dn_resolution"],"title":"EstimateWeldFacts"},"EstimateWeldOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"source_detection_ids":{"items":{"type":"string"},"type":"array","title":"Source Detection Ids"},"overridden_fields":{"items":{"type":"string","enum":["dn","schedule","material","pressure_rating","end_type","branch_dn","branch_schedule","branch_material","physical_angle_kind","reinforced","motorized","olet_type"]},"type":"array","title":"Overridden Fields"},"operation_type":{"type":"string","const":"weld","title":"Operation Type"},"facts":{"anyOf":[{"$ref":"#/components/schemas/EstimateWeldFacts"},{"$ref":"#/components/schemas/EstimateManualWeldFacts"}],"title":"Facts"},"effective_facts":{"anyOf":[{"$ref":"#/components/schemas/EstimateWeldFacts"},{"$ref":"#/components/schemas/EstimateManualWeldFacts"}],"title":"Effective Facts"},"valuation":{"$ref":"#/components/schemas/EstimateWeldValuation"}},"type":"object","required":["operation_id","page_id","blueprint_document_id","operation_type","facts","effective_facts","valuation"],"title":"EstimateWeldOperation"},"EstimateWeldValuation":{"properties":{"state":{"type":"string","enum":["valued","incomplete","not_applicable"],"title":"State"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"default_reasons":{"items":{"type":"string"},"type":"array","title":"Default Reasons"},"pouce_equivalent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pouce Equivalent"},"ut_atelier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Atelier Ref"},"ut_chantier_ref":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ut Chantier Ref"}},"type":"object","required":["state"],"title":"EstimateWeldValuation"},"ExcludedBlueprintClass":{"properties":{"class_name":{"type":"string","title":"Class Name"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","required":["class_name"],"title":"ExcludedBlueprintClass"},"ExcludedBomFamily":{"properties":{"family":{"type":"string","title":"Family"},"quantity_sum":{"type":"number","title":"Quantity Sum","default":0.0},"row_count":{"type":"integer","title":"Row Count","default":0}},"type":"object","required":["family"],"title":"ExcludedBomFamily"},"FieldWeldSource":{"properties":{"current_run_id":{"type":"string","title":"Current Run Id"},"workspace":{"$ref":"#/components/schemas/ChantierDocumentResponse"},"bubbles":{"$ref":"#/components/schemas/BubbleDocumentResponse"}},"type":"object","required":["current_run_id","workspace","bubbles"],"title":"FieldWeldSource"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"ForgotPasswordResponse":{"properties":{"status":{"type":"string","const":"accepted","title":"Status","default":"accepted"}},"type":"object","title":"ForgotPasswordResponse"},"FsiOverrides":{"properties":{"workshop_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Workshop Rate"},"site_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Site Rate"},"workshop_method":{"anyOf":[{"type":"string","enum":["gamma","phased_array"]},{"type":"null"}],"title":"Workshop Method"},"site_method":{"anyOf":[{"type":"string","enum":["gamma","phased_array"]},{"type":"null"}],"title":"Site Method"},"volumetric_types":{"items":{"type":"string","enum":["bw","sw","fw"]},"type":"array","title":"Volumetric Types"},"penetrant_rate":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Penetrant Rate"},"penetrant_types":{"anyOf":[{"items":{"type":"string","enum":["bw","sw","fw"]},"type":"array"},{"type":"null"}],"title":"Penetrant Types"},"thickness_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thickness Required"}},"additionalProperties":false,"type":"object","title":"FsiOverrides"},"FsiPatch":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"use_automatic":{"type":"boolean","title":"Use Automatic","default":false},"page_id":{"type":"string","title":"Page Id"},"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id"},"overrides":{"$ref":"#/components/schemas/FsiOverrides"}},"additionalProperties":false,"type":"object","required":["expected_revision","page_id","profile_id"],"title":"FsiPatch"},"GraphResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["document_id","data"],"title":"GraphResponse"},"GroupedBomRow":{"properties":{"group_key":{"type":"string","title":"Group Key"},"designation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Designation"},"designation_variants":{"items":{"type":"string"},"type":"array","title":"Designation Variants"},"quantity":{"type":"number","title":"Quantity"},"unit":{"type":"string","enum":["m","pcs"],"title":"Unit","default":"pcs"},"quantity_mode":{"type":"string","enum":["sum_qty_norm","count"],"title":"Quantity Mode"},"line_count":{"type":"integer","title":"Line Count"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"spec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"pressure_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Rating"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"},"elbow_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elbow Angle"},"reducer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reducer Type"},"dn_unit_detected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn Unit Detected"},"reps":{"items":{"type":"string"},"type":"array","title":"Reps"},"source_doc_ids":{"items":{"type":"string"},"type":"array","title":"Source Doc Ids"}},"type":"object","required":["group_key","quantity","quantity_mode","line_count"],"title":"GroupedBomRow"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IngestCompleteRequest":{"properties":{"document_id":{"type":"string","title":"Document Id"}},"type":"object","required":["document_id"],"title":"IngestCompleteRequest"},"IngestRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"gcs_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gcs Uri","description":"Optional gs:// URI"}},"additionalProperties":false,"type":"object","required":["filename","size_bytes"],"title":"IngestRequest"},"IngestResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"status":{"type":"string","const":"uploading","title":"Status","default":"uploading"},"upload":{"$ref":"#/components/schemas/IngestUploadDescriptor"}},"type":"object","required":["document_id","upload"],"title":"IngestResponse"},"IngestUploadDescriptor":{"properties":{"kind":{"type":"string","const":"signed_put","title":"Kind","default":"signed_put"},"method":{"type":"string","const":"PUT","title":"Method","default":"PUT"},"url":{"type":"string","title":"Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["url","headers","expires_at"],"title":"IngestUploadDescriptor"},"InspectionLengthDiagnostic":{"properties":{"blueprint_document_id":{"type":"string","title":"Blueprint Document Id"},"support_associations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Support Associations"},"unresolved_segments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Unresolved Segments"}},"type":"object","required":["blueprint_document_id"],"title":"InspectionLengthDiagnostic"},"JointDnRow":{"properties":{"dn":{"type":"string","title":"Dn"},"weld_count":{"type":"integer","title":"Weld Count"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"}},"type":"object","required":["dn","weld_count"],"title":"JointDnRow"},"JointStatsResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["document_id","data"],"title":"JointStatsResponse"},"JointSummary":{"properties":{"weld_total":{"type":"integer","title":"Weld Total","default":0},"bend_total":{"type":"integer","title":"Bend Total","default":0},"tap_total":{"type":"integer","title":"Tap Total","default":0},"tap_dn_resolved_total":{"type":"integer","title":"Tap Dn Resolved Total","default":0},"tap_dn_resolution_rate":{"type":"number","title":"Tap Dn Resolution Rate","default":0.0},"joint_docs_count":{"type":"integer","title":"Joint Docs Count","default":0},"by_dn":{"items":{"$ref":"#/components/schemas/JointDnRow"},"type":"array","title":"By Dn"}},"type":"object","title":"JointSummary"},"LayoutManualPoint":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"additionalProperties":false,"type":"object","required":["x","y"],"title":"LayoutManualPoint"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"NaeAssemblyConfirmation":{"properties":{"context":{"anyOf":[{"type":"string","enum":["workshop","field"]},{"type":"null"}],"title":"Context"},"expected_field_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Expected Field Revision"},"weld_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weld Id"}},"additionalProperties":false,"type":"object","required":["context"],"title":"NaeAssemblyConfirmation"},"NaeEstimateCalculation":{"properties":{"inputs":{"additionalProperties":{"type":"string"},"type":"object","title":"Inputs"},"price_column":{"type":"string","enum":["J","K","L","M"],"title":"Price Column"},"base_unit_price_eur":{"type":"string","title":"Base Unit Price Eur"},"factors":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["schedule","material","series"]},"type":"object","title":"Factors"},"adjusted_unit_price_eur":{"type":"string","title":"Adjusted Unit Price Eur"},"rounding":{"type":"string","const":"half_up_cent_per_unit","title":"Rounding"}},"type":"object","required":["inputs","price_column","base_unit_price_eur","factors","adjusted_unit_price_eur","rounding"],"title":"NaeEstimateCalculation"},"NaeEstimateOperation":{"properties":{"operation_id":{"type":"string","title":"Operation Id"},"page_id":{"type":"string","title":"Page Id"},"status":{"type":"string","enum":["priced","provisional","partially_priced","operation_not_supported","source_stale","context_stale","workshop_not_confirmed","field_regime_missing","field_price_missing","assembly_confirmation_missing","series_not_confirmed","schedule_factor_missing","valve_connection","tap_confirmation_missing","tap_rule_not_supported","olet_billing_pending","olet_welds_missing","olet_type_not_supported","rule_not_supported"],"title":"Status"},"missing_factors":{"items":{"type":"string","const":"material"},"type":"array","title":"Missing Factors"},"context":{"anyOf":[{"type":"string","enum":["workshop","field","mixed"]},{"type":"null"}],"title":"Context"},"role":{"anyOf":[{"type":"string","enum":["header","branch"]},{"type":"null"}],"title":"Role"},"attachment_only":{"type":"boolean","title":"Attachment Only","default":false},"test_preparation_proposal":{"anyOf":[{"type":"string","enum":["suggested","valve_review","inventory_stale"]},{"type":"null"}],"title":"Test Preparation Proposal"},"test_preparation_enabled":{"type":"boolean","title":"Test Preparation Enabled","default":false},"billing_phase":{"anyOf":[{"type":"string","enum":["final","test_closure","test_opening"]},{"type":"null"}],"title":"Billing Phase"},"components":{"items":{"$ref":"#/components/schemas/NaeEstimateOperation"},"type":"array","title":"Components"},"source_row":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Row"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"service_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Label"},"unit_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Price Cents"},"blocking_input":{"anyOf":[{"type":"string","enum":["dn","schedule","material","end_type","pressure_rating"]},{"type":"null"}],"title":"Blocking Input"},"reference_prices_cents":{"additionalProperties":{"type":"integer"},"type":"object","title":"Reference Prices Cents"},"calculation":{"anyOf":[{"$ref":"#/components/schemas/NaeEstimateCalculation"},{"type":"null"}]},"schedule_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Schedule Factor"},"material_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Material Factor"},"series_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Series Factor"},"included_weld_ids":{"items":{"type":"string"},"type":"array","title":"Included Weld Ids"},"valve_operation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valve Operation Id"},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"}},"type":"object","required":["operation_id","page_id","status"],"title":"NaeEstimateOperation"},"NaeEstimatePricing":{"properties":{"inventory_provisional":{"type":"boolean","title":"Inventory Provisional","default":false},"field_review_pending":{"type":"boolean","title":"Field Review Pending","default":false},"field_review_revision":{"type":"integer","title":"Field Review Revision","default":0},"catalog_version":{"type":"string","title":"Catalog Version"},"site_regime":{"anyOf":[{"type":"string","enum":["routine","project","shutdown"]},{"type":"null"}],"title":"Site Regime"},"operations":{"items":{"$ref":"#/components/schemas/NaeEstimateOperation"},"type":"array","title":"Operations"},"subtotal_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subtotal Cents"},"complete":{"type":"boolean","title":"Complete"}},"type":"object","required":["catalog_version","operations","subtotal_cents","complete"],"title":"NaeEstimatePricing"},"NaeSiteRegimePatchRequest":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"expected_base_run_id":{"type":"string","title":"Expected Base Run Id"},"expected_base_hash":{"type":"string","title":"Expected Base Hash"},"site_regime":{"anyOf":[{"type":"string","enum":["routine","project","shutdown"]},{"type":"null"}],"title":"Site Regime"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_base_run_id","expected_base_hash","site_regime"],"title":"NaeSiteRegimePatchRequest"},"NaeTestPreparationProposalPatchRequest":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"expected_base_run_id":{"type":"string","title":"Expected Base Run Id"},"expected_base_hash":{"type":"string","title":"Expected Base Hash"},"test_preparation":{"type":"string","const":"propose_workshop_cycles","title":"Test Preparation"}},"additionalProperties":false,"type":"object","required":["expected_revision","expected_base_run_id","expected_base_hash","test_preparation"],"title":"NaeTestPreparationProposalPatchRequest"},"OutOfScopeBlueprintClass":{"properties":{"class_name":{"type":"string","title":"Class Name"},"count":{"type":"integer","title":"Count","default":0},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["class_name","reason"],"title":"OutOfScopeBlueprintClass"},"OutOfScopeBomFamily":{"properties":{"family":{"type":"string","title":"Family"},"quantity_sum":{"type":"number","title":"Quantity Sum","default":0.0},"row_count":{"type":"integer","title":"Row Count","default":0},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["family","reason"],"title":"OutOfScopeBomFamily"},"PageFormatResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"width_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Width Mm"},"height_mm":{"type":"number","exclusiveMinimum":0.0,"title":"Height Mm"},"assumed":{"type":"boolean","title":"Assumed"}},"type":"object","required":["page_id","width_mm","height_mm","assumed"],"title":"PageFormatResponse"},"PageScopeRequest":{"properties":{"filters":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","maxProperties":20,"title":"Filters"},"document_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Document Ids"},"page_ids":{"items":{"type":"string"},"type":"array","maxItems":10000,"title":"Page Ids"},"project_id":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Project Id"}},"additionalProperties":false,"type":"object","title":"PageScopeRequest"},"PageScopeResponse":{"properties":{"configuration_scope":{"type":"string","enum":["tenant","global_demo"],"title":"Configuration Scope"},"configured":{"type":"boolean","title":"Configured"},"snapshot":{"type":"string","title":"Snapshot"},"available_sources":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Available Sources"},"groups":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Groups"},"members":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Members"},"excluded":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Excluded"}},"type":"object","required":["configuration_scope","configured","snapshot","available_sources","groups","members","excluded"],"title":"PageScopeResponse"},"ProjectListResponse":{"properties":{"projects":{"items":{"$ref":"#/components/schemas/ProjectResponse"},"type":"array","title":"Projects"}},"type":"object","required":["projects"],"title":"ProjectListResponse"},"ProjectResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["project_id","name"],"title":"ProjectResponse"},"ProjectWriteRequest":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"ProjectWriteRequest"},"RasterResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"rasters":{"items":{"$ref":"#/components/schemas/SignedRaster"},"type":"array","title":"Rasters"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["document_id","rasters"],"title":"RasterResponse"},"RawBomRow":{"properties":{"run_id":{"type":"string","title":"Run Id"},"source_doc_id":{"type":"string","title":"Source Doc Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"row_index":{"type":"integer","title":"Row Index"},"rep":{"type":"string","title":"Rep"},"rep_key":{"type":"string","title":"Rep Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"row_text":{"type":"string","title":"Row Text"},"match_strategy":{"type":"string","enum":["page_row","page_rep","rep_only","none"],"title":"Match Strategy"},"match_confidence":{"type":"string","enum":["high","medium","low","none"],"title":"Match Confidence"},"matched_source_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Source Doc Id"},"matched_bom_row":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Matched Bom Row"},"dn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn"},"dn_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn Raw"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"spec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"pressure_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pressure Rating"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Type"},"elbow_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elbow Angle"},"reducer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reducer Type"},"dn_unit_detected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dn Unit Detected"},"quantity_norm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity Norm"},"normalized_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Normalized Fields"},"normalized_raw_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Normalized Raw Fields"}},"type":"object","required":["run_id","source_doc_id","row_index","rep","rep_key","row_text","match_strategy","match_confidence"],"title":"RawBomRow"},"ResetPasswordCompleteRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordCompleteRequest"},"ResetPasswordCompleteResponse":{"properties":{"status":{"type":"string","const":"completed","title":"Status","default":"completed"}},"type":"object","title":"ResetPasswordCompleteResponse"},"ResolvedResponse":{"properties":{"technical_freshness":{"anyOf":[{"$ref":"#/components/schemas/TechnicalFreshness"},{"type":"null"}]},"document_id":{"type":"string","title":"Document Id"},"document_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Display Name"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"artifacts":{"additionalProperties":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},"type":"object","title":"Artifacts"},"results":{"anyOf":[{"$ref":"#/components/schemas/ResultsResponse"},{"type":"null"}]},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"signed_crops":{"items":{"$ref":"#/components/schemas/SignedCrop"},"type":"array","title":"Signed Crops"}},"type":"object","required":["document_id","artifacts"],"title":"ResolvedResponse"},"ResultsResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"joint_stats":{"$ref":"#/components/schemas/JointSummary"},"bom_raw":{"items":{"$ref":"#/components/schemas/RawBomRow"},"type":"array","title":"Bom Raw"},"bom_grouped":{"items":{"$ref":"#/components/schemas/GroupedBomRow"},"type":"array","title":"Bom Grouped"},"field_weld_backend_ids":{"items":{"type":"string"},"type":"array","title":"Field Weld Backend Ids"},"bom_family_reconciliation":{"$ref":"#/components/schemas/BomFamilyReconciliationResponse"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["document_id","joint_stats"],"title":"ResultsResponse"},"ReviewAcceptAsIsRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"},"expected_hash":{"type":"string","title":"Expected Hash"}},"type":"object","required":["expected_revision","expected_hash"],"title":"ReviewAcceptAsIsRequest"},"ReviewAcceptAsIsResponse":{"properties":{"applied":{"type":"boolean","title":"Applied"},"document_id":{"type":"string","title":"Document Id"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"review_mode":{"type":"string","const":"accepted_as_is","title":"Review Mode"}},"type":"object","required":["applied","document_id","revision","effective_hash","review_mode"],"title":"ReviewAcceptAsIsResponse"},"ReviewAuthor":{"properties":{"user_id":{"type":"string","title":"User Id"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["user_id","display_name"],"title":"ReviewAuthor"},"ReviewCommitRequest":{"properties":{"base_revision":{"type":"integer","title":"Base Revision"},"mutation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mutation Id"},"commit_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Reason"},"replay_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replay Case Id"},"element_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Element Id"},"op":{"type":"string","enum":["element_created","element_updated","element_deleted","element_restored","region_created","region_updated","region_deleted","region_restored","tracker_updated","tracker_cleared","connection_excluded","connection_restored","manual_weld_added","manual_weld_removed","manual_weld_restored"],"title":"Op"},"after":{"additionalProperties":true,"type":"object","title":"After"}},"type":"object","required":["base_revision","op","after"],"title":"ReviewCommitRequest"},"ReviewCommitResponse":{"properties":{"applied":{"type":"boolean","title":"Applied"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"saved_element":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Saved Element"},"replay_audit":{"anyOf":[{"$ref":"#/components/schemas/ReviewReplayAudit"},{"type":"null"}]}},"type":"object","required":["applied","revision","effective_hash"],"title":"ReviewCommitResponse"},"ReviewDocumentResponse":{"properties":{"blueprint_recovery_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Blueprint Recovery Ids"},"blueprint_recovery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blueprint Recovery Id"},"segmentation_baseline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segmentation Baseline"},"document_id":{"type":"string","title":"Document Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"document_stem":{"type":"string","title":"Document Stem"},"review_context":{"anyOf":[{"type":"string","enum":["regions","segmentation","trackers","connections"]},{"type":"null"}],"title":"Review Context"},"source_kind":{"type":"string","enum":["clean","reviewed"],"title":"Source Kind"},"review_mode":{"anyOf":[{"type":"string","enum":["corrected","accepted_as_is"]},{"type":"null"}],"title":"Review Mode"},"validated_by":{"anyOf":[{"$ref":"#/components/schemas/ReviewAuthor"},{"type":"null"}]},"validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validated At"},"replay_status":{"anyOf":[{"type":"string","enum":["full","partial","no"]},{"type":"null"}],"title":"Replay Status"},"human_validation_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Human Validation Required"},"validation_basis":{"anyOf":[{"type":"string","const":"auto_full_replay"},{"type":"null"}],"title":"Validation Basis"},"replay_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replay Eligible"},"replay_audit":{"anyOf":[{"$ref":"#/components/schemas/ReviewReplayAudit"},{"type":"null"}]},"base_run_id":{"type":"string","title":"Base Run Id"},"base_clean_hash":{"type":"string","title":"Base Clean Hash"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"freshness":{"$ref":"#/components/schemas/ReviewFreshness"},"region":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Region"},"class_options":{"items":{"type":"string"},"type":"array","title":"Class Options"},"pages":{"items":{"$ref":"#/components/schemas/ReviewPageState"},"type":"array","title":"Pages"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["document_id","document_stem","source_kind","base_run_id","base_clean_hash","revision","effective_hash","freshness","payload"],"title":"ReviewDocumentResponse"},"ReviewFreshness":{"properties":{"results_source_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Results Source Hash"},"state":{"type":"string","enum":["stale","up_to_date"],"title":"State"}},"type":"object","required":["state"],"title":"ReviewFreshness"},"ReviewHistoryEvent":{"properties":{"baseline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline"},"event_id":{"type":"string","title":"Event Id"},"document_id":{"type":"string","title":"Document Id"},"element_id":{"type":"string","title":"Element Id"},"op":{"type":"string","enum":["element_created","element_updated","element_deleted","element_restored","region_created","region_updated","region_deleted","region_restored","tracker_updated","tracker_cleared","connection_excluded","connection_restored","manual_weld_added","manual_weld_removed","manual_weld_restored"],"title":"Op"},"changed_fields":{"items":{"type":"string"},"type":"array","title":"Changed Fields"},"mutation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mutation Id"},"commit_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Reason"},"propagation_source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Propagation Source"},"replay_source":{"anyOf":[{"$ref":"#/components/schemas/ReviewReplaySource"},{"type":"null"}]},"summary":{"type":"string","title":"Summary"},"author":{"$ref":"#/components/schemas/ReviewAuthor"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["event_id","document_id","element_id","op","summary","author","created_at"],"title":"ReviewHistoryEvent"},"ReviewHistoryResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"scope":{"type":"string","enum":["element","page"],"title":"Scope"},"element_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Element Id"},"events":{"items":{"$ref":"#/components/schemas/ReviewHistoryEvent"},"type":"array","title":"Events"}},"type":"object","required":["document_id","scope"],"title":"ReviewHistoryResponse"},"ReviewPageState":{"properties":{"document_id":{"type":"string","title":"Document Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"state":{"type":"string","enum":["stale","up_to_date"],"title":"State"}},"type":"object","required":["document_id","state"],"title":"ReviewPageState"},"ReviewPropagationConfirmPageResult":{"properties":{"page_id":{"type":"string","title":"Page Id"},"status":{"type":"string","enum":["applied","unchanged","conflict","error"],"title":"Status"},"reason_codes":{"items":{"type":"string"},"type":"array","title":"Reason Codes"},"revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision"},"effective_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Hash"},"recompute":{"$ref":"#/components/schemas/ReviewPropagationRecomputeResult"}},"type":"object","required":["page_id","status"],"title":"ReviewPropagationConfirmPageResult"},"ReviewPropagationConfirmRequest":{"properties":{"preview_id":{"type":"string","title":"Preview Id"},"confirm_id":{"type":"string","title":"Confirm Id"},"target_page_ids":{"items":{"type":"string"},"type":"array","title":"Target Page Ids"},"recompute":{"type":"boolean","title":"Recompute","default":false}},"type":"object","required":["preview_id","confirm_id"],"title":"ReviewPropagationConfirmRequest"},"ReviewPropagationConfirmResponse":{"properties":{"preview_id":{"type":"string","title":"Preview Id"},"confirm_id":{"type":"string","title":"Confirm Id"},"document_stem":{"type":"string","title":"Document Stem"},"base_run_id":{"type":"string","title":"Base Run Id"},"source":{"$ref":"#/components/schemas/ReviewPropagationSource"},"pages":{"items":{"$ref":"#/components/schemas/ReviewPropagationConfirmPageResult"},"type":"array","title":"Pages"},"summary":{"$ref":"#/components/schemas/ReviewPropagationConfirmSummary"}},"type":"object","required":["preview_id","confirm_id","document_stem","base_run_id","source"],"title":"ReviewPropagationConfirmResponse"},"ReviewPropagationConfirmSummary":{"properties":{"requested_count":{"type":"integer","title":"Requested Count","default":0},"applied_count":{"type":"integer","title":"Applied Count","default":0},"unchanged_count":{"type":"integer","title":"Unchanged Count","default":0},"conflict_count":{"type":"integer","title":"Conflict Count","default":0},"error_count":{"type":"integer","title":"Error Count","default":0},"recompute_queued_count":{"type":"integer","title":"Recompute Queued Count","default":0},"recompute_skipped_count":{"type":"integer","title":"Recompute Skipped Count","default":0},"recompute_error_count":{"type":"integer","title":"Recompute Error Count","default":0}},"type":"object","title":"ReviewPropagationConfirmSummary"},"ReviewPropagationPreviewPage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"status":{"type":"string","enum":["ready","warning","blocked","unchanged"],"title":"Status"},"selected_by_default":{"type":"boolean","title":"Selected By Default","default":false},"reason_codes":{"items":{"type":"string"},"type":"array","title":"Reason Codes"},"current_revision":{"type":"integer","minimum":0.0,"title":"Current Revision"},"current_hash":{"type":"string","title":"Current Hash"},"current_visible_payload":{"additionalProperties":true,"type":"object","title":"Current Visible Payload"},"projected_hash":{"type":"string","title":"Projected Hash"},"projected_payload":{"additionalProperties":true,"type":"object","title":"Projected Payload"}},"type":"object","required":["page_id","status","current_revision","current_hash","projected_hash","projected_payload"],"title":"ReviewPropagationPreviewPage"},"ReviewPropagationPreviewRequest":{"properties":{"target_page_ids":{"items":{"type":"string"},"type":"array","title":"Target Page Ids"}},"type":"object","title":"ReviewPropagationPreviewRequest"},"ReviewPropagationPreviewResponse":{"properties":{"preview_id":{"type":"string","title":"Preview Id"},"document_stem":{"type":"string","title":"Document Stem"},"base_run_id":{"type":"string","title":"Base Run Id"},"source":{"$ref":"#/components/schemas/ReviewPropagationSource"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"pages":{"items":{"$ref":"#/components/schemas/ReviewPropagationPreviewPage"},"type":"array","title":"Pages"},"summary":{"$ref":"#/components/schemas/ReviewPropagationPreviewSummary"}},"type":"object","required":["preview_id","document_stem","base_run_id","source","expires_at"],"title":"ReviewPropagationPreviewResponse"},"ReviewPropagationPreviewSummary":{"properties":{"total_pages":{"type":"integer","title":"Total Pages","default":0},"ready_count":{"type":"integer","title":"Ready Count","default":0},"warning_count":{"type":"integer","title":"Warning Count","default":0},"blocked_count":{"type":"integer","title":"Blocked Count","default":0},"unchanged_count":{"type":"integer","title":"Unchanged Count","default":0},"selected_count":{"type":"integer","title":"Selected Count","default":0}},"type":"object","title":"ReviewPropagationPreviewSummary"},"ReviewPropagationRecomputeResult":{"properties":{"status":{"type":"string","enum":["not_requested","queued","skipped","error"],"title":"Status","default":"not_requested"},"reason_codes":{"items":{"type":"string"},"type":"array","title":"Reason Codes"},"job":{"anyOf":[{"$ref":"#/components/schemas/ReviewRecomputeResponse"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","title":"ReviewPropagationRecomputeResult"},"ReviewPropagationSource":{"properties":{"page_id":{"type":"string","title":"Page Id"},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"}},"type":"object","required":["page_id","revision","effective_hash"],"title":"ReviewPropagationSource"},"ReviewRecomputeLookupResponse":{"properties":{"job":{"anyOf":[{"$ref":"#/components/schemas/ReviewRecomputeResponse"},{"type":"null"}]}},"type":"object","title":"ReviewRecomputeLookupResponse"},"ReviewRecomputeRequest":{"properties":{"expected_revision":{"type":"integer","title":"Expected Revision"},"expected_hash":{"type":"string","title":"Expected Hash"},"expected_inputs_hash":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Expected Inputs Hash"}},"type":"object","required":["expected_revision","expected_hash"],"title":"ReviewRecomputeRequest"},"ReviewRecomputeResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"document_id":{"type":"string","title":"Document Id"},"kind":{"type":"string","enum":["regions","segmentation","trackers","connections"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","success","error","conflict"],"title":"Status"},"reused":{"type":"boolean","title":"Reused","default":false},"skipped":{"type":"boolean","title":"Skipped","default":false},"target_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Hash"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"latest_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Revision"},"latest_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Hash"},"current_element":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current Element"}},"type":"object","required":["job_id","document_id","kind","status"],"title":"ReviewRecomputeResponse"},"ReviewReplayAudit":{"properties":{"status":{"type":"string","enum":["full","partial","no"],"title":"Status"},"recompute_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recompute Job Id"},"source_review_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Review Revision"},"source_review_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Review Hash"},"source_clean_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Clean Hash"},"target_clean_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Clean Hash"},"applied_count":{"type":"integer","title":"Applied Count","default":0},"satisfied_by_clean_count":{"type":"integer","title":"Satisfied By Clean Count","default":0},"ambiguous_count":{"type":"integer","title":"Ambiguous Count","default":0},"orphaned_count":{"type":"integer","title":"Orphaned Count","default":0},"unresolved_count":{"type":"integer","title":"Unresolved Count","default":0},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"cases":{"items":{"$ref":"#/components/schemas/ReviewReplayCase"},"type":"array","title":"Cases"}},"type":"object","required":["status"],"title":"ReviewReplayAudit"},"ReviewReplayCandidate":{"properties":{"element_id":{"type":"string","title":"Element Id"},"class_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Name"},"bbox_page":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox Page"},"iou":{"type":"number","title":"Iou","default":0.0}},"type":"object","required":["element_id"],"title":"ReviewReplayCandidate"},"ReviewReplayCase":{"properties":{"case_id":{"type":"string","title":"Case Id"},"case_type":{"type":"string","enum":["ambiguous","orphaned"],"title":"Case Type"},"case_status":{"type":"string","enum":["unresolved","resolved_by_edit","accepted_unresolved"],"title":"Case Status"},"source_element_id":{"type":"string","title":"Source Element Id"},"source_class_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Class Name"},"source_review_deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Review Deleted"},"intended_changes":{"items":{"type":"string"},"type":"array","title":"Intended Changes"},"source_event_ids":{"items":{"type":"string"},"type":"array","title":"Source Event Ids"},"source_bbox_page":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Source Bbox Page"},"source_geometry_page":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Geometry Page"},"candidates":{"items":{"$ref":"#/components/schemas/ReviewReplayCandidate"},"type":"array","title":"Candidates"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"resolved_by":{"anyOf":[{"$ref":"#/components/schemas/ReviewAuthor"},{"type":"null"}]},"resolution_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Event Id"},"accepted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted At"},"accepted_by":{"anyOf":[{"$ref":"#/components/schemas/ReviewAuthor"},{"type":"null"}]},"accepted_in_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accepted In Revision"}},"type":"object","required":["case_id","case_type","case_status","source_element_id"],"title":"ReviewReplayCase"},"ReviewReplaySource":{"properties":{"source_event_ids":{"items":{"type":"string"},"type":"array","title":"Source Event Ids"},"source_review_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Review Revision"},"source_review_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Review Hash"},"source_element_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Element Id"}},"type":"object","title":"ReviewReplaySource"},"ReviewResultsState":{"properties":{"source_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Hash"},"state":{"type":"string","enum":["stale","up_to_date"],"title":"State"}},"type":"object","required":["state"],"title":"ReviewResultsState"},"ReviewStateResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"document_stem":{"type":"string","title":"Document Stem"},"source_kind":{"type":"string","enum":["clean","reviewed"],"title":"Source Kind"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"review_mode":{"anyOf":[{"type":"string","enum":["corrected","accepted_as_is"]},{"type":"null"}],"title":"Review Mode"},"validated_by":{"anyOf":[{"$ref":"#/components/schemas/ReviewAuthor"},{"type":"null"}]},"validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validated At"},"replay_status":{"anyOf":[{"type":"string","enum":["full","partial","no"]},{"type":"null"}],"title":"Replay Status"},"human_validation_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Human Validation Required"},"validation_basis":{"anyOf":[{"type":"string","const":"auto_full_replay"},{"type":"null"}],"title":"Validation Basis"},"replay_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replay Eligible"},"replay_audit":{"anyOf":[{"$ref":"#/components/schemas/ReviewReplayAudit"},{"type":"null"}]},"results":{"$ref":"#/components/schemas/ReviewResultsState"}},"type":"object","required":["document_id","document_stem","source_kind","revision","effective_hash","results"],"title":"ReviewStateResponse"},"RunListResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/RunResponse"},"type":"array","title":"Runs"},"total":{"type":"integer","title":"Total","default":0},"limit":{"type":"integer","title":"Limit","default":50},"offset":{"type":"integer","title":"Offset","default":0},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["runs"],"title":"RunListResponse"},"RunPageProgress":{"properties":{"page_id":{"type":"string","title":"Page Id"},"page_num":{"type":"integer","title":"Page Num"},"status":{"type":"string","enum":["pending","running","done","error"],"title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["page_id","page_num","status"],"title":"RunPageProgress"},"RunProgressResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"document_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Display Name"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"status":{"type":"string","title":"Status"},"summary":{"$ref":"#/components/schemas/RunProgressSummary"},"pages":{"items":{"$ref":"#/components/schemas/RunPageProgress"},"type":"array","title":"Pages"}},"type":"object","required":["document_id","status","summary"],"title":"RunProgressResponse"},"RunProgressSummary":{"properties":{"total_pages":{"type":"integer","title":"Total Pages","default":0},"pending_pages":{"type":"integer","title":"Pending Pages","default":0},"running_pages":{"type":"integer","title":"Running Pages","default":0},"done_pages":{"type":"integer","title":"Done Pages","default":0},"error_pages":{"type":"integer","title":"Error Pages","default":0}},"type":"object","title":"RunProgressSummary"},"RunResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"document_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Alias"},"document_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Display Name"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"status":{"type":"string","title":"Status"},"input_uri":{"type":"string","title":"Input Uri"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"attempts":{"type":"integer","title":"Attempts"},"max_retries":{"type":"integer","title":"Max Retries"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"comment_count":{"type":"integer","title":"Comment Count","default":0},"has_open_comments":{"type":"boolean","title":"Has Open Comments","default":false}},"type":"object","required":["document_id","status","input_uri","created_at","updated_at","attempts","max_retries"],"title":"RunResponse"},"ScopeResultsRequest":{"properties":{"scope":{"$ref":"#/components/schemas/PageScopeRequest"},"snapshot":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$","title":"Snapshot"}},"additionalProperties":false,"type":"object","required":["scope","snapshot"],"title":"ScopeResultsRequest"},"ScopeResultsResponse":{"properties":{"scope":{"$ref":"#/components/schemas/PageScopeResponse"},"resolved":{"$ref":"#/components/schemas/ResolvedResponse"},"contributions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Contributions"}},"type":"object","required":["scope","resolved","contributions"],"title":"ScopeResultsResponse"},"SegmentationDatasetExportRequest":{"properties":{"candidate_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Ids"}},"type":"object","title":"SegmentationDatasetExportRequest"},"SegmentationDatasetExportResponse":{"properties":{"export_id":{"type":"string","title":"Export Id"},"dataset_path":{"type":"string","title":"Dataset Path"},"data_yaml_path":{"type":"string","title":"Data Yaml Path"},"manifest_path":{"type":"string","title":"Manifest Path"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"candidate_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Ids"},"split":{"additionalProperties":true,"type":"object","title":"Split"}},"type":"object","required":["export_id","dataset_path","data_yaml_path","manifest_path","manifest"],"title":"SegmentationDatasetExportResponse"},"SegmentationReviewCorpusSnapshot":{"properties":{"snapshot_id":{"type":"string","title":"Snapshot Id"},"source_inventory_hash":{"type":"string","title":"Source Inventory Hash"},"content_hash":{"type":"string","title":"Content Hash","default":""},"created_at":{"type":"string","title":"Created At"},"tenant_ids":{"items":{"type":"string"},"type":"array","title":"Tenant Ids"},"tenant_inventory_hashes":{"additionalProperties":{"type":"string"},"type":"object","title":"Tenant Inventory Hashes"},"dataset_path":{"type":"string","title":"Dataset Path"},"example_count":{"type":"integer","title":"Example Count","default":0},"label_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Label Counts"},"inventory":{"additionalProperties":true,"type":"object","title":"Inventory"},"exclusions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Exclusions"}},"type":"object","required":["snapshot_id","source_inventory_hash","created_at","dataset_path"],"title":"SegmentationReviewCorpusSnapshot"},"SegmentationReviewCorpusStatusResponse":{"properties":{"source_inventory_hash":{"type":"string","title":"Source Inventory Hash"},"fresh":{"type":"boolean","title":"Fresh"},"qualification_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Qualification Counts"},"latest_snapshot":{"anyOf":[{"$ref":"#/components/schemas/SegmentationReviewCorpusSnapshot"},{"type":"null"}]}},"type":"object","required":["source_inventory_hash","fresh"],"title":"SegmentationReviewCorpusStatusResponse"},"SegmentationReviewQualificationEntry":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"document_id":{"type":"string","title":"Document Id"},"document_stem":{"type":"string","title":"Document Stem"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"status":{"type":"string","enum":["unqualified","qualified_draft","completed","excluded","stale"],"title":"Status"},"exclusion_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusion Reason"},"observed_base_run_id":{"type":"string","title":"Observed Base Run Id"},"observed_review_revision":{"type":"integer","title":"Observed Review Revision"},"observed_review_hash":{"type":"string","title":"Observed Review Hash"},"observed_review_mode":{"anyOf":[{"type":"string","enum":["corrected","accepted_as_is"]},{"type":"null"}],"title":"Observed Review Mode"},"decision":{"anyOf":[{"type":"string","enum":["draft","completed"]},{"type":"null"}],"title":"Decision"},"decision_review_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decision Review Revision"},"decision_review_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Review Hash"},"decided_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Decided By"},"decided_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided At"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["campaign_id","document_id","document_stem","status","observed_base_run_id","observed_review_revision","observed_review_hash","created_at","updated_at"],"title":"SegmentationReviewQualificationEntry"},"SegmentationReviewQualificationListResponse":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"items":{"items":{"$ref":"#/components/schemas/SegmentationReviewQualificationEntry"},"type":"array","title":"Items"},"summary":{"$ref":"#/components/schemas/SegmentationReviewQualificationSummary"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["campaign_id","summary"],"title":"SegmentationReviewQualificationListResponse"},"SegmentationReviewQualificationReconcileResponse":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"scanned_count":{"type":"integer","title":"Scanned Count"},"updated_count":{"type":"integer","title":"Updated Count"},"summary":{"$ref":"#/components/schemas/SegmentationReviewQualificationSummary"}},"type":"object","required":["campaign_id","scanned_count","updated_count","summary"],"title":"SegmentationReviewQualificationReconcileResponse"},"SegmentationReviewQualificationRequest":{"properties":{"decision":{"type":"string","enum":["draft","completed"],"title":"Decision"},"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"expected_hash":{"type":"string","minLength":1,"title":"Expected Hash"}},"type":"object","required":["decision","expected_revision","expected_hash"],"title":"SegmentationReviewQualificationRequest"},"SegmentationReviewQualificationSummary":{"properties":{"total":{"type":"integer","title":"Total","default":0},"unqualified":{"type":"integer","title":"Unqualified","default":0},"qualified_draft":{"type":"integer","title":"Qualified Draft","default":0},"completed":{"type":"integer","title":"Completed","default":0},"excluded":{"type":"integer","title":"Excluded","default":0},"stale":{"type":"integer","title":"Stale","default":0}},"type":"object","title":"SegmentationReviewQualificationSummary"},"SetupPasswordCompleteRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"SetupPasswordCompleteRequest"},"SetupPasswordCompleteResponse":{"properties":{"status":{"type":"string","const":"completed","title":"Status","default":"completed"}},"type":"object","title":"SetupPasswordCompleteResponse"},"SheetCatalogEntryResponse":{"properties":{"sheet_id":{"type":"string","title":"Sheet Id"},"identity":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Identity"},"configuration_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configuration Hash"},"revision_order":{"anyOf":[{"type":"string","const":"numeric"},{"type":"null"}],"title":"Revision Order"},"baseline":{"type":"string","title":"Baseline"},"state":{"type":"string","enum":["unique","highest_revision","manual","conflict","absent","stale_choice"],"title":"State"},"sources":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sources"},"selected_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Source Id"},"choice_revision":{"type":"integer","title":"Choice Revision"},"choice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Choice"}},"type":"object","required":["sheet_id","identity","configuration_hash","revision_order","baseline","state","sources","selected_source_id","choice_revision","choice"],"title":"SheetCatalogEntryResponse"},"SheetCatalogResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/SheetCatalogEntryResponse"},"type":"array","title":"Entries"},"total":{"type":"integer","title":"Total"},"unidentified_sources":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Unidentified Sources"},"unidentified_total":{"type":"integer","title":"Unidentified Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["entries","total","unidentified_sources","unidentified_total","limit","offset"],"title":"SheetCatalogResponse"},"SheetMetadataResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"page_id":{"type":"string","title":"Page Id"},"run_id":{"type":"string","title":"Run Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"env":{"type":"string","title":"Env"},"state":{"type":"string","enum":["not_configured","missing_source","profile_mismatch","missing_page","identity_missing","identified"],"title":"State"},"configuration":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Configuration"},"configuration_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configuration Hash"},"configuration_scope":{"type":"string","enum":["tenant","global_demo"],"title":"Configuration Scope"},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source"},"fields":{"additionalProperties":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"object","title":"Fields"},"identity":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Identity"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"revision_order":{"anyOf":[{"type":"string","const":"numeric"},{"type":"null"}],"title":"Revision Order"},"missing_identity_fields":{"items":{"type":"string"},"type":"array","title":"Missing Identity Fields"}},"type":"object","required":["document_id","page_id","run_id","tenant_id","env","state","configuration","configuration_hash","configuration_scope","source","fields","identity","revision","missing_identity_fields"],"title":"SheetMetadataResponse"},"SheetSourceChoiceRequest":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"baseline":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$","title":"Baseline"},"source_id":{"anyOf":[{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},{"type":"null"}],"title":"Source Id"}},"type":"object","required":["expected_revision","baseline","source_id"],"title":"SheetSourceChoiceRequest"},"SheetSourcesResponse":{"properties":{"entry":{"anyOf":[{"$ref":"#/components/schemas/SheetCatalogEntryResponse"},{"type":"null"}]},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},"type":"object","required":["entry"],"title":"SheetSourcesResponse"},"SignedCrop":{"properties":{"uri":{"type":"string","title":"Uri"},"signed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Url"},"region_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Id"},"class_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Name"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["uri"],"title":"SignedCrop"},"SignedRaster":{"properties":{"page_id":{"type":"string","title":"Page Id"},"signed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Url"},"gcs_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gcs Uri"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["page_id"],"title":"SignedRaster"},"SpoolAnnotationRequest":{"properties":{"expected_revision":{"type":"integer","minimum":1.0,"title":"Expected Revision"},"source_hash":{"type":"string","minLength":1,"title":"Source Hash"},"spool_id":{"type":"string","minLength":1,"title":"Spool Id"},"label":{"type":"string","maxLength":32,"minLength":1,"title":"Label"},"bubble_center":{"$ref":"#/components/schemas/SpoolPoint"},"position_is_manual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Position Is Manual"},"expected_target_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Expected Target Revision"}},"additionalProperties":false,"type":"object","required":["expected_revision","source_hash","spool_id","label","bubble_center"],"title":"SpoolAnnotationRequest"},"SpoolChanges":{"properties":{"added":{"items":{"type":"string"},"type":"array","title":"Added"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"}},"type":"object","title":"SpoolChanges"},"SpoolDiagnostic":{"properties":{"code":{"type":"string","enum":["missing_topology","invalid_topology","recompute_required","support_parent_unresolved","support_spool_uncertain","cut_membership_indeterminate","cut_unlocated"],"title":"Code"},"page_id":{"type":"string","title":"Page Id"},"source_ids":{"items":{"type":"string"},"type":"array","title":"Source Ids"},"message":{"type":"string","title":"Message"},"candidate_spool_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Spool Ids"},"anchor":{"anyOf":[{"$ref":"#/components/schemas/SpoolPoint"},{"type":"null"}]}},"type":"object","required":["code","page_id","source_ids","message"],"title":"SpoolDiagnostic"},"SpoolMember":{"properties":{"id":{"type":"string","title":"Id"},"source_id":{"type":"string","title":"Source Id"},"blueprint_id":{"type":"string","title":"Blueprint Id"},"class_name":{"type":"string","title":"Class Name"},"outline":{"items":{"$ref":"#/components/schemas/SpoolPoint"},"type":"array","title":"Outline"},"anchor":{"$ref":"#/components/schemas/SpoolPoint"},"is_support":{"type":"boolean","title":"Is Support"},"status":{"type":"string","enum":["certain","portion_unlocated"],"title":"Status"},"bom_rep":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bom Rep"}},"type":"object","required":["id","source_id","blueprint_id","class_name","outline","anchor","is_support","status"],"title":"SpoolMember"},"SpoolPage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"width":{"type":"number","title":"Width"},"height":{"type":"number","title":"Height"}},"type":"object","required":["page_id","width","height"],"title":"SpoolPage"},"SpoolPdfRequest":{"properties":{"width":{"type":"integer","maximum":20000.0,"exclusiveMinimum":0.0,"title":"Width"},"height":{"type":"integer","maximum":20000.0,"exclusiveMinimum":0.0,"title":"Height"},"overlay_png":{"type":"string","maxLength":16000000,"minLength":1,"title":"Overlay Png"},"layout_hash":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Layout Hash"},"layout_generation_hash":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Layout Generation Hash"},"layout_manual_positions":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/LayoutManualPoint"},"type":"object","maxProperties":10000},{"type":"null"}],"title":"Layout Manual Positions"},"layout_weld_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Layout Weld Revision"},"layout_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Layout Revision"},"expected_revision":{"type":"integer","minimum":1.0,"title":"Expected Revision"},"source_hash":{"type":"string","minLength":1,"title":"Source Hash"},"layers":{"type":"string","enum":["spools","both"],"title":"Layers"},"weld_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weld Revision"},"weld_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weld Hash"}},"additionalProperties":false,"type":"object","required":["width","height","overlay_png","expected_revision","source_hash","layers"],"title":"SpoolPdfRequest"},"SpoolPoint":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"type":"object","required":["x","y"],"title":"SpoolPoint"},"SpoolRecord":{"properties":{"id":{"type":"string","title":"Id"},"page_id":{"type":"string","title":"Page Id"},"label":{"type":"string","title":"Label"},"anchor":{"$ref":"#/components/schemas/SpoolPoint"},"bubble_center":{"$ref":"#/components/schemas/SpoolPoint"},"members":{"items":{"$ref":"#/components/schemas/SpoolMember"},"type":"array","title":"Members"},"position_is_manual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Position Is Manual"}},"type":"object","required":["id","page_id","label","anchor","bubble_center","members"],"title":"SpoolRecord"},"SpoolWorkspace":{"properties":{"document_id":{"type":"string","title":"Document Id"},"run_id":{"type":"string","title":"Run Id"},"source_hash":{"type":"string","title":"Source Hash"},"revision":{"type":"integer","title":"Revision"},"edit_revisions":{"additionalProperties":{"type":"integer"},"type":"object","title":"Edit Revisions"},"response_scope":{"type":"string","enum":["document","page"],"title":"Response Scope","default":"document"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"spools":{"items":{"$ref":"#/components/schemas/SpoolRecord"},"type":"array","title":"Spools"},"pages":{"items":{"$ref":"#/components/schemas/SpoolPage"},"type":"array","title":"Pages"},"diagnostics":{"items":{"$ref":"#/components/schemas/SpoolDiagnostic"},"type":"array","title":"Diagnostics"},"changes":{"$ref":"#/components/schemas/SpoolChanges"},"status":{"type":"string","enum":["partial","ready"],"title":"Status"}},"type":"object","required":["document_id","run_id","source_hash","revision","spools","pages","diagnostics","changes","status"],"title":"SpoolWorkspace"},"TechnicalFreshness":{"properties":{"state":{"type":"string","enum":["up_to_date","stale","unknown"],"title":"State"},"issues":{"items":{"$ref":"#/components/schemas/TechnicalFreshnessIssue"},"type":"array","title":"Issues"}},"type":"object","required":["state"],"title":"TechnicalFreshness"},"TechnicalFreshnessIssue":{"properties":{"document_id":{"type":"string","title":"Document Id"},"page_id":{"type":"string","title":"Page Id"},"step":{"type":"string","title":"Step"},"reason":{"type":"string","title":"Reason"},"state":{"type":"string","enum":["stale","unknown"],"title":"State"},"affects":{"items":{"type":"string"},"type":"array","title":"Affects"}},"type":"object","required":["document_id","page_id","step","reason","state","affects"],"title":"TechnicalFreshnessIssue"},"TrackerAnnotationSessionPage":{"properties":{"page_id":{"type":"string","title":"Page Id"},"blueprint_id":{"type":"string","title":"Blueprint Id"},"tracker_count":{"type":"integer","title":"Tracker Count","default":0},"first_tracker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Tracker Id"},"last_tracker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Tracker Id"},"source_kind":{"type":"string","enum":["clean","reviewed"],"title":"Source Kind"}},"type":"object","required":["page_id","blueprint_id","source_kind"],"title":"TrackerAnnotationSessionPage"},"TrackerAnnotationSessionResponse":{"properties":{"document_stem":{"type":"string","title":"Document Stem"},"base_run_id":{"type":"string","title":"Base Run Id"},"annotable_pages":{"items":{"$ref":"#/components/schemas/TrackerAnnotationSessionPage"},"type":"array","title":"Annotable Pages"}},"type":"object","required":["document_stem","base_run_id"],"title":"TrackerAnnotationSessionResponse"},"TrackerRecomputePlanResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"kind":{"type":"string","enum":["trackers","regions","segmentation"],"title":"Kind"},"revision":{"type":"integer","title":"Revision"},"effective_hash":{"type":"string","title":"Effective Hash"},"inputs_hash":{"type":"string","title":"Inputs Hash"},"outputs_hash":{"type":"string","title":"Outputs Hash"},"state":{"type":"string","enum":["required","up_to_date","no_changes","blocked"],"title":"State"},"reason":{"type":"string","title":"Reason"},"preserved_steps":{"items":{"type":"string"},"type":"array","title":"Preserved Steps"},"recomputed_steps":{"items":{"type":"string"},"type":"array","title":"Recomputed Steps"},"blocked_steps":{"items":{"type":"string"},"type":"array","title":"Blocked Steps"},"scope":{"anyOf":[{"type":"string","enum":["root_document","page"]},{"type":"null"}],"title":"Scope"},"page_ids":{"items":{"type":"string"},"type":"array","title":"Page Ids"},"title_blocks_only":{"type":"boolean","title":"Title Blocks Only","default":false},"piping_classes_only":{"type":"boolean","title":"Piping Classes Only","default":false},"combined_recompute":{"type":"boolean","title":"Combined Recompute","default":false},"branches":{"items":{"type":"string"},"type":"array","title":"Branches"},"blocked_consumers":{"additionalProperties":{"type":"string"},"type":"object","title":"Blocked Consumers"},"pending_region_classes":{"items":{"type":"string"},"type":"array","title":"Pending Region Classes"},"bom_recompute":{"type":"boolean","title":"Bom Recompute","default":false},"blueprint_recompute":{"type":"boolean","title":"Blueprint Recompute","default":false},"changed_region_ids":{"items":{"type":"string"},"type":"array","title":"Changed Region Ids"},"consumer_ids":{"items":{"type":"string"},"type":"array","title":"Consumer Ids"},"ocr_region_ids":{"items":{"type":"string"},"type":"array","title":"Ocr Region Ids"},"removed_region_ids":{"items":{"type":"string"},"type":"array","title":"Removed Region Ids"},"preserved_tracker_ids":{"items":{"type":"string"},"type":"array","title":"Preserved Tracker Ids"},"reread_tracker_ids":{"items":{"type":"string"},"type":"array","title":"Reread Tracker Ids"},"removed_tracker_ids":{"items":{"type":"string"},"type":"array","title":"Removed Tracker Ids"}},"type":"object","required":["document_id","kind","revision","effective_hash","inputs_hash","outputs_hash","state","reason","preserved_steps","recomputed_steps","blocked_steps"],"title":"TrackerRecomputePlanResponse"},"TrainingApprovalEvent":{"properties":{"approval_id":{"type":"string","title":"Approval Id"},"candidate_id":{"type":"string","title":"Candidate Id"},"decision":{"type":"string","enum":["approve","reject","revoke"],"title":"Decision"},"reviewer":{"additionalProperties":true,"type":"object","title":"Reviewer"},"created_at":{"type":"string","title":"Created At"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["approval_id","candidate_id","decision","reviewer","created_at","scope"],"title":"TrainingApprovalEvent"},"TrainingBatchFailure":{"properties":{"candidate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Id"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"TrainingBatchFailure"},"TrainingCandidateBatchMarkRequest":{"properties":{"document_ids":{"items":{"type":"string"},"type":"array","title":"Document Ids"},"task":{"type":"string","enum":["segment","detect_regions","tracker"],"title":"Task","default":"segment"}},"type":"object","title":"TrainingCandidateBatchMarkRequest"},"TrainingCandidateBatchMarkResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrainingCandidateResponse"},"type":"array","title":"Items"},"failures":{"items":{"$ref":"#/components/schemas/TrainingBatchFailure"},"type":"array","title":"Failures"}},"type":"object","title":"TrainingCandidateBatchMarkResponse"},"TrainingCandidateBatchUnqueueRequest":{"properties":{"candidate_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Ids"}},"type":"object","title":"TrainingCandidateBatchUnqueueRequest"},"TrainingCandidateBatchUnqueueResponse":{"properties":{"removed_candidate_ids":{"items":{"type":"string"},"type":"array","title":"Removed Candidate Ids"},"failures":{"items":{"$ref":"#/components/schemas/TrainingBatchFailure"},"type":"array","title":"Failures"}},"type":"object","title":"TrainingCandidateBatchUnqueueResponse"},"TrainingCandidateCreateRequest":{"properties":{"document_id":{"type":"string","minLength":1,"title":"Document Id"},"task":{"type":"string","enum":["segment","detect_regions","tracker"],"title":"Task","default":"segment"}},"type":"object","required":["document_id"],"title":"TrainingCandidateCreateRequest"},"TrainingCandidateDecisionRequest":{"properties":{"decision":{"type":"string","enum":["approve","reject","revoke"],"title":"Decision"},"scope":{"type":"string","minLength":1,"title":"Scope","default":"mutualized_backoffice"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["decision"],"title":"TrainingCandidateDecisionRequest"},"TrainingCandidateDetailResponse":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id"},"task":{"type":"string","enum":["segment","detect_regions","tracker"],"title":"Task"},"tenant_id":{"type":"string","title":"Tenant Id"},"document_id":{"type":"string","title":"Document Id"},"document_stem":{"type":"string","title":"Document Stem"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"example_key":{"type":"string","title":"Example Key","default":""},"status":{"type":"string","title":"Status"},"review_mode":{"anyOf":[{"type":"string","enum":["corrected","accepted_as_is"]},{"type":"null"}],"title":"Review Mode"},"source_review_collection":{"type":"string","title":"Source Review Collection"},"source_review_id":{"type":"string","title":"Source Review Id"},"source_review_revision":{"type":"integer","title":"Source Review Revision"},"source_review_hash":{"type":"string","title":"Source Review Hash"},"source_base_run_id":{"type":"string","title":"Source Base Run Id"},"results_state":{"type":"string","enum":["stale","up_to_date"],"title":"Results State"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"},"created_at":{"type":"string","title":"Created At"},"created_by":{"additionalProperties":true,"type":"object","title":"Created By"},"updated_at":{"type":"string","title":"Updated At"},"updated_by":{"additionalProperties":true,"type":"object","title":"Updated By"},"validated_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validated By"},"validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validated At"},"superseded_by_candidate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Superseded By Candidate Id"},"latest_export":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Latest Export"},"queue_signals":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Queue Signals"},"approvals":{"items":{"$ref":"#/components/schemas/TrainingApprovalEvent"},"type":"array","title":"Approvals"},"freshness":{"anyOf":[{"$ref":"#/components/schemas/TrainingCandidateFreshness"},{"type":"null"}]}},"type":"object","required":["candidate_id","task","tenant_id","document_id","document_stem","status","source_review_collection","source_review_id","source_review_revision","source_review_hash","source_base_run_id","results_state","snapshot","created_at","created_by","updated_at","updated_by"],"title":"TrainingCandidateDetailResponse"},"TrainingCandidateFreshness":{"properties":{"latest_review_status":{"type":"string","enum":["matches_latest_review","superseded_by_newer_review","review_missing","unknown"],"title":"Latest Review Status"},"latest_review_results_state":{"type":"string","enum":["up_to_date","stale","missing","unknown"],"title":"Latest Review Results State"},"pipeline_run_status":{"type":"string","enum":["current_run","older_run","unknown"],"title":"Pipeline Run Status"},"export_status":{"type":"string","enum":["never_exported","exported_current","exported_but_superseded"],"title":"Export Status"},"latest_review_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Review Revision"},"latest_review_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Review Hash"},"latest_base_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Base Run Id"}},"type":"object","required":["latest_review_status","latest_review_results_state","pipeline_run_status","export_status"],"title":"TrainingCandidateFreshness"},"TrainingCandidateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrainingCandidateResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false},"total_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Count"}},"type":"object","title":"TrainingCandidateListResponse"},"TrainingCandidateResponse":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id"},"task":{"type":"string","enum":["segment","detect_regions","tracker"],"title":"Task"},"tenant_id":{"type":"string","title":"Tenant Id"},"document_id":{"type":"string","title":"Document Id"},"document_stem":{"type":"string","title":"Document Stem"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"example_key":{"type":"string","title":"Example Key","default":""},"status":{"type":"string","title":"Status"},"review_mode":{"anyOf":[{"type":"string","enum":["corrected","accepted_as_is"]},{"type":"null"}],"title":"Review Mode"},"source_review_collection":{"type":"string","title":"Source Review Collection"},"source_review_id":{"type":"string","title":"Source Review Id"},"source_review_revision":{"type":"integer","title":"Source Review Revision"},"source_review_hash":{"type":"string","title":"Source Review Hash"},"source_base_run_id":{"type":"string","title":"Source Base Run Id"},"results_state":{"type":"string","enum":["stale","up_to_date"],"title":"Results State"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"},"created_at":{"type":"string","title":"Created At"},"created_by":{"additionalProperties":true,"type":"object","title":"Created By"},"updated_at":{"type":"string","title":"Updated At"},"updated_by":{"additionalProperties":true,"type":"object","title":"Updated By"},"validated_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validated By"},"validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validated At"},"superseded_by_candidate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Superseded By Candidate Id"},"latest_export":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Latest Export"},"queue_signals":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Queue Signals"}},"type":"object","required":["candidate_id","task","tenant_id","document_id","document_stem","status","source_review_collection","source_review_id","source_review_revision","source_review_hash","source_base_run_id","results_state","snapshot","created_at","created_by","updated_at","updated_by"],"title":"TrainingCandidateResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WeldAnchorChange":{"properties":{"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"label":{"type":"string","title":"Label"},"previous_anchor":{"$ref":"#/components/schemas/BubblePoint"},"current_anchor":{"$ref":"#/components/schemas/BubblePoint"}},"type":"object","required":["backend_id","page_id","label","previous_anchor","current_anchor"],"title":"WeldAnchorChange"},"WeldAnnotationReference":{"properties":{"backend_id":{"type":"string","title":"Backend Id"},"page_id":{"type":"string","title":"Page Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["backend_id","page_id","label"],"title":"WeldAnnotationReference"},"WeldAnnotationRefreshPreview":{"properties":{"document_id":{"type":"string","title":"Document Id"},"current_run_id":{"type":"string","title":"Current Run Id"},"preview_token":{"type":"string","title":"Preview Token"},"needs_refresh":{"type":"boolean","title":"Needs Refresh"},"retained_count":{"type":"integer","title":"Retained Count"},"proposed_count":{"type":"integer","title":"Proposed Count"},"retained_mark_count":{"type":"integer","title":"Retained Mark Count"},"changed_anchors":{"items":{"$ref":"#/components/schemas/WeldAnchorChange"},"type":"array","title":"Changed Anchors"},"removed":{"items":{"$ref":"#/components/schemas/WeldAnnotationReference"},"type":"array","title":"Removed"},"invalid_positions":{"items":{"type":"string"},"type":"array","title":"Invalid Positions"}},"type":"object","required":["document_id","current_run_id","preview_token","needs_refresh","retained_count","proposed_count","retained_mark_count","changed_anchors","removed","invalid_positions"],"title":"WeldAnnotationRefreshPreview"},"WeldAnnotationRefreshRequest":{"properties":{"preview_token":{"type":"string","minLength":1,"title":"Preview Token"},"discard_removed":{"type":"boolean","title":"Discard Removed","default":false}},"additionalProperties":false,"type":"object","required":["preview_token"],"title":"WeldAnnotationRefreshRequest"}}}}