{"openapi":"3.1.0","info":{"title":"CodeAlmanac API","description":"Hosted CodeAlmanac GitHub App API.","version":"0.1.0"},"paths":{"/api/me":{"get":{"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/{account_id}":{"get":{"summary":"Account","operationId":"account_api_accounts__account_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/github-app/session":{"post":{"summary":"Link Github App Session","operationId":"link_github_app_session_api_auth_github_app_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubAppSessionRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/me/cli-setup-intro":{"post":{"summary":"Mark Cli Setup Intro Seen","operationId":"mark_cli_setup_intro_seen_api_me_cli_setup_intro_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/{account_id}/repositories":{"get":{"summary":"Repositories For Account","operationId":"repositories_for_account_api_accounts__account_id__repositories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDTO_RepositoryListItemDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repositories/resolve":{"post":{"summary":"Resolve Repository","operationId":"resolve_repository_api_repositories_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResolveRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResolveDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/repositories/{repo_id}":{"get":{"summary":"Repository","operationId":"repository_api_repositories__repo_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}":{"get":{"summary":"Repository For Account","operationId":"repository_for_account_api_accounts__account_id__repositories__repo_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/wiki":{"post":{"summary":"Create Repository Wiki","operationId":"create_repository_wiki_api_accounts__account_id__repositories__repo_id__wiki_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Repository Wiki","operationId":"repository_wiki_api_accounts__account_id__repositories__repo_id__wiki_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiIndexDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/triggers":{"get":{"summary":"Repository Triggers","operationId":"repository_triggers_api_accounts__account_id__repositories__repo_id__triggers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BranchTriggerDTO"},"title":"Response Repository Triggers Api Accounts  Account Id  Repositories  Repo Id  Triggers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Upsert Repository Trigger","operationId":"upsert_repository_trigger_api_accounts__account_id__repositories__repo_id__triggers_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchTriggerPatchDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchTriggerDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/repositories/{repo_id}/runs":{"get":{"summary":"Runs For Repo","operationId":"runs_for_repo_api_repositories__repo_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDTO_RunDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/runs":{"get":{"summary":"Runs For Account Repo","operationId":"runs_for_account_repo_api_accounts__account_id__repositories__repo_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDTO_RunDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/runs/{run_id}":{"get":{"summary":"Run","operationId":"run_api_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/runs/{run_id}/cancel":{"post":{"summary":"Cancel Run","operationId":"cancel_run_api_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/runs/{run_id}/retry":{"post":{"summary":"Retry Run","operationId":"retry_run_api_runs__run_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/runs/{run_id}/events":{"get":{"summary":"Run Events","operationId":"run_events_api_runs__run_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunEventDTO"},"title":"Response Run Events Api Runs  Run Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/wiki/branches":{"get":{"summary":"Repository Wiki Branches","operationId":"repository_wiki_branches_api_accounts__account_id__repositories__repo_id__wiki_branches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiBranchListDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/wiki/pages":{"get":{"summary":"Repository Wiki Pages","operationId":"repository_wiki_pages_api_accounts__account_id__repositories__repo_id__wiki_pages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Source"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiPageListDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/wiki/pages/{slug}":{"get":{"summary":"Repository Wiki Page","operationId":"repository_wiki_page_api_accounts__account_id__repositories__repo_id__wiki_pages__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiPageDetailDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/billing":{"get":{"summary":"Billing State","operationId":"billing_state_api_accounts__account_id__billing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStateDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/billing/plans":{"get":{"summary":"Billing Plans","operationId":"billing_plans_api_accounts__account_id__billing_plans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanDTO"},"title":"Response Billing Plans Api Accounts  Account Id  Billing Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/billing/checkout":{"post":{"summary":"Billing Checkout","operationId":"billing_checkout_api_accounts__account_id__billing_checkout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequestDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/billing/portal":{"post":{"summary":"Billing Portal","operationId":"billing_portal_api_accounts__account_id__billing_portal_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/cli/start":{"post":{"summary":"Create Cli Login Session","operationId":"create_cli_login_session_v1_auth_cli_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}}}}},"/api/cli/auth/sessions":{"post":{"summary":"Create Cli Login Session","operationId":"create_cli_login_session_api_cli_auth_sessions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}}}}},"/v1/auth/cli/sessions/{session_id}":{"get":{"summary":"Cli Login Session","operationId":"cli_login_session_v1_auth_cli_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cli/auth/sessions/{session_id}":{"get":{"summary":"Cli Login Session","operationId":"cli_login_session_api_cli_auth_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/cli/sessions/{session_id}/complete":{"post":{"summary":"Complete Cli Login Session","operationId":"complete_cli_login_session_v1_auth_cli_sessions__session_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cli/auth/sessions/{session_id}/complete":{"post":{"summary":"Complete Cli Login Session","operationId":"complete_cli_login_session_api_cli_auth_sessions__session_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/cli/sessions/{session_id}/poll":{"post":{"summary":"Poll Cli Login Session","operationId":"poll_cli_login_session_v1_auth_cli_sessions__session_id__poll_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cli/auth/sessions/{session_id}/poll":{"post":{"summary":"Poll Cli Login Session","operationId":"poll_cli_login_session_api_cli_auth_sessions__session_id__poll_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliLoginSessionDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"summary":"Cli Me","operationId":"cli_me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliMeDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/cli/me":{"get":{"summary":"Cli Me","operationId":"cli_me_api_cli_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliMeDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/logout":{"post":{"summary":"Cli Logout","operationId":"cli_logout_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliMeDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/cli/logout":{"post":{"summary":"Cli Logout","operationId":"cli_logout_api_cli_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliMeDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/repositories":{"get":{"summary":"Repositories","operationId":"repositories_v1_repositories_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDTO_RepositoryListItemDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/repositories/resolve":{"post":{"summary":"Resolve Repository","operationId":"resolve_repository_v1_repositories_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResolveRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResolveDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/repositories/{repo_id}/triggers":{"get":{"summary":"Repository Triggers","operationId":"repository_triggers_v1_repositories__repo_id__triggers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BranchTriggerDTO"},"title":"Response Repository Triggers V1 Repositories  Repo Id  Triggers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Upsert Repository Trigger","operationId":"upsert_repository_trigger_v1_repositories__repo_id__triggers_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchTriggerPatchDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchTriggerDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/repositories/{repo_id}/runs":{"get":{"summary":"Runs For Repo","operationId":"runs_for_repo_v1_repositories__repo_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDTO_RunDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Start Run","operationId":"start_run_v1_repositories__repo_id__runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRunRequestDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}":{"get":{"summary":"Run","operationId":"run_v1_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/cancel":{"post":{"summary":"Cancel Run","operationId":"cancel_run_v1_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/retry":{"post":{"summary":"Retry Run","operationId":"retry_run_v1_runs__run_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/events":{"get":{"summary":"Run Events","operationId":"run_events_v1_runs__run_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunEventDTO"},"title":"Response Run Events V1 Runs  Run Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/capture/credentials":{"post":{"summary":"Issue Capture Credential","operationId":"issue_capture_credential_v1_capture_credentials_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureCredentialIssueRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureCredentialIssueDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/capture/status":{"get":{"summary":"Capture Status","operationId":"capture_status_v1_capture_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureStatusDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/capture/credentials/revoke":{"post":{"summary":"Revoke Capture Credential","operationId":"revoke_capture_credential_v1_capture_credentials_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureCredentialRevokeRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureCredentialRevokeDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/capture/artifacts":{"post":{"summary":"Upload Capture Artifact","operationId":"upload_capture_artifact_v1_capture_artifacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-CodeAlmanac-Provider","in":"header","required":true,"schema":{"enum":["codex","claude"],"type":"string","title":"X-Codealmanac-Provider"}},{"name":"X-CodeAlmanac-Provider-Session-Id","in":"header","required":true,"schema":{"type":"string","title":"X-Codealmanac-Provider-Session-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureArtifactDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/capture/turns":{"post":{"summary":"Upload Capture Turn","operationId":"upload_capture_turn_v1_capture_turns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureTurnUploadDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureTurnUploadResultDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/capture/status":{"get":{"summary":"Browser Capture Status","operationId":"browser_capture_status_api_capture_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureStatusDTO"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/cli/repositories/resolve":{"post":{"summary":"Resolve Cli Repository","operationId":"resolve_cli_repository_api_cli_repositories_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResolveRequestDTO"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositoryResolveDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/cli/repositories/{repo_id}/conversation-turns/start":{"post":{"summary":"Start Conversation Turn","operationId":"start_conversation_turn_api_cli_repositories__repo_id__conversation_turns_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationTurnUploadDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUploadResultDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cli/repositories/{repo_id}/conversation-turns/complete":{"post":{"summary":"Complete Conversation Turn","operationId":"complete_conversation_turn_api_cli_repositories__repo_id__conversation_turns_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationTurnUploadDTO"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUploadResultDTO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/repositories/{repo_id}/conversation-sources":{"get":{"summary":"Conversation Sources","operationId":"conversation_sources_api_accounts__account_id__repositories__repo_id__conversation_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"repo_id","in":"path","required":true,"schema":{"type":"integer","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationSourceSummaryDTO"},"title":"Response Conversation Sources Api Accounts  Account Id  Repositories  Repo Id  Conversation Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/github":{"post":{"summary":"Github Webhook","operationId":"github_webhook_api_webhooks_github_post","parameters":[{"name":"x-github-delivery","in":"header","required":true,"schema":{"type":"string","title":"X-Github-Delivery"}},{"name":"x-github-event","in":"header","required":true,"schema":{"type":"string","title":"X-Github-Event"}},{"name":"x-hub-signature-256","in":"header","required":true,"schema":{"type":"string","title":"X-Hub-Signature-256"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workos/actions/user-registration":{"post":{"summary":"User Registration Action","operationId":"user_registration_action_api_workos_actions_user_registration_post","parameters":[{"name":"workos-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workos-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User Registration Action Api Workos Actions User Registration Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/runs/complete":{"post":{"summary":"Complete Run","operationId":"complete_run_api_internal_runs_complete_post","parameters":[{"name":"x-internal-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBundle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Complete Run Api Internal Runs Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/source-artifacts":{"get":{"summary":"Read Source Artifact","operationId":"read_source_artifact_api_internal_source_artifacts_get","parameters":[{"name":"ref","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Ref"}},{"name":"x-internal-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Api Health Get"}}}}}}}},"components":{"schemas":{"AccessDTO":{"properties":{"view":{"type":"boolean","title":"View"},"approveUpdate":{"type":"boolean","title":"Approveupdate"},"editSettings":{"type":"boolean","title":"Editsettings"}},"additionalProperties":false,"type":"object","required":["view","approveUpdate","editSettings"],"title":"AccessDTO"},"AccountDTO":{"properties":{"githubAccountId":{"type":"integer","title":"Githubaccountid"},"login":{"type":"string","title":"Login"},"type":{"type":"string","enum":["user","organization"],"title":"Type"},"role":{"type":"string","enum":["owner","member","unknown"],"title":"Role"},"avatarUrl":{"type":"string","title":"Avatarurl"},"installationId":{"type":"integer","title":"Installationid"},"repositorySelection":{"anyOf":[{"type":"string","enum":["all","selected"]},{"type":"null"}],"title":"Repositoryselection"}},"additionalProperties":false,"type":"object","required":["githubAccountId","login","type","role","avatarUrl","installationId","repositorySelection"],"title":"AccountDTO"},"BillingManageDTO":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"reason":{"type":"string","enum":["owner","not_owner","role_unknown"],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["allowed","reason"],"title":"BillingManageDTO"},"BillingStateDTO":{"properties":{"plan":{"type":"string","title":"Plan"},"hasCapacity":{"type":"boolean","title":"Hascapacity"},"monthlyLimit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthlylimit"},"used":{"type":"integer","title":"Used"},"periodEnd":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Periodend"},"manage":{"$ref":"#/components/schemas/BillingManageDTO"}},"additionalProperties":false,"type":"object","required":["plan","hasCapacity","monthlyLimit","used","periodEnd","manage"],"title":"BillingStateDTO"},"BranchTriggerDTO":{"properties":{"repoId":{"type":"integer","title":"Repoid"},"branch":{"type":"string","title":"Branch"},"enabled":{"type":"boolean","title":"Enabled"},"deliveryMode":{"type":"string","enum":["commit","pr"],"title":"Deliverymode"}},"additionalProperties":false,"type":"object","required":["repoId","branch","enabled","deliveryMode"],"title":"BranchTriggerDTO"},"BranchTriggerPatchDTO":{"properties":{"branch":{"type":"string","title":"Branch"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"deliveryMode":{"anyOf":[{"type":"string","enum":["commit","pr"]},{"type":"null"}],"title":"Deliverymode"}},"additionalProperties":false,"type":"object","required":["branch"],"title":"BranchTriggerPatchDTO"},"CaptureArtifactDTO":{"properties":{"ref":{"type":"string","title":"Ref"},"sha256":{"type":"string","title":"Sha256"},"sizeBytes":{"type":"integer","title":"Sizebytes"},"contentType":{"type":"string","title":"Contenttype"}},"additionalProperties":false,"type":"object","required":["ref","sha256","sizeBytes","contentType"],"title":"CaptureArtifactDTO"},"CaptureCredentialDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastusedat"}},"additionalProperties":false,"type":"object","required":["id","name","createdAt","lastUsedAt"],"title":"CaptureCredentialDTO"},"CaptureCredentialIssueDTO":{"properties":{"credential":{"$ref":"#/components/schemas/CaptureCredentialDTO"},"token":{"type":"string","minLength":1,"title":"Token"}},"additionalProperties":false,"type":"object","required":["credential","token"],"title":"CaptureCredentialIssueDTO"},"CaptureCredentialIssueRequestDTO":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","default":"CodeAlmanac capture"}},"additionalProperties":false,"type":"object","title":"CaptureCredentialIssueRequestDTO"},"CaptureCredentialRevokeDTO":{"properties":{"revoked":{"type":"boolean","title":"Revoked"}},"additionalProperties":false,"type":"object","required":["revoked"],"title":"CaptureCredentialRevokeDTO"},"CaptureCredentialRevokeRequestDTO":{"properties":{"token":{"type":"string","minLength":1,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"CaptureCredentialRevokeRequestDTO"},"CaptureStatusDTO":{"properties":{"credentials":{"items":{"$ref":"#/components/schemas/CaptureCredentialDTO"},"type":"array","title":"Credentials"}},"additionalProperties":false,"type":"object","required":["credentials"],"title":"CaptureStatusDTO"},"CaptureTurnUploadDTO":{"properties":{"provider":{"type":"string","enum":["codex","claude"],"title":"Provider"},"providerSessionId":{"type":"string","minLength":1,"title":"Providersessionid"},"providerTurnId":{"type":"string","minLength":1,"title":"Providerturnid"},"transcriptPathHash":{"type":"string","minLength":1,"title":"Transcriptpathhash"},"firstCwd":{"type":"string","minLength":1,"title":"Firstcwd"},"repoFullName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repofullname"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"branchSource":{"type":"string","enum":["transcript","git_fallback","missing"],"title":"Branchsource"},"routingStatus":{"type":"string","enum":["routable","missing_branch","missing_repo"],"title":"Routingstatus"},"headSha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headsha"},"startedAt":{"type":"string","format":"date-time","title":"Startedat"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat"},"artifactRef":{"type":"string","minLength":1,"title":"Artifactref"}},"additionalProperties":false,"type":"object","required":["provider","providerSessionId","providerTurnId","transcriptPathHash","firstCwd","branchSource","routingStatus","startedAt","artifactRef"],"title":"CaptureTurnUploadDTO"},"CaptureTurnUploadResultDTO":{"properties":{"accepted":{"type":"boolean","title":"Accepted"},"routed":{"type":"boolean","title":"Routed"},"routingStatus":{"type":"string","enum":["routable","missing_branch","missing_repo"],"title":"Routingstatus"},"sourceId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sourceid"},"turnId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Turnid"},"messageCount":{"type":"integer","title":"Messagecount","default":0}},"additionalProperties":false,"type":"object","required":["accepted","routed","routingStatus"],"title":"CaptureTurnUploadResultDTO"},"ChangedFile":{"properties":{"path":{"type":"string","title":"Path"},"content":{"type":"string","title":"Content"}},"additionalProperties":false,"type":"object","required":["path","content"],"title":"ChangedFile"},"CheckoutRequestDTO":{"properties":{"planId":{"type":"string","title":"Planid"}},"additionalProperties":false,"type":"object","required":["planId"],"title":"CheckoutRequestDTO"},"CliLoginSessionDTO":{"properties":{"sessionId":{"type":"string","format":"uuid","title":"Sessionid"},"userCode":{"type":"string","title":"Usercode"},"verificationUrl":{"type":"string","title":"Verificationurl"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"status":{"type":"string","enum":["pending","authorized","complete","expired"],"title":"Status"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},"additionalProperties":false,"type":"object","required":["sessionId","userCode","verificationUrl","expiresAt","status"],"title":"CliLoginSessionDTO"},"CliMeDTO":{"properties":{"githubUserId":{"type":"integer","title":"Githubuserid"},"githubLogin":{"type":"string","title":"Githublogin"}},"additionalProperties":false,"type":"object","required":["githubUserId","githubLogin"],"title":"CliMeDTO"},"ConversationMessageDTO":{"properties":{"role":{"type":"string","enum":["user","assistant","system","tool"],"title":"Role"},"content":{"type":"string","minLength":1,"title":"Content"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurredat"}},"additionalProperties":false,"type":"object","required":["role","content"],"title":"ConversationMessageDTO"},"ConversationSourceBranchSummaryDTO":{"properties":{"branch":{"type":"string","title":"Branch"},"turnCount":{"type":"integer","title":"Turncount"},"messageCount":{"type":"integer","title":"Messagecount"},"lastUploadedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastuploadedat"},"activeRunId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Activerunid"},"latestRunId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latestrunid"},"latestRunStatus":{"anyOf":[{"type":"string","enum":["queued","running","delivered","failed","stale"]},{"type":"null"}],"title":"Latestrunstatus"},"lastIngestedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastingestedat"}},"additionalProperties":false,"type":"object","required":["branch","turnCount","messageCount","lastUploadedAt","activeRunId","latestRunId","latestRunStatus","lastIngestedAt"],"title":"ConversationSourceBranchSummaryDTO"},"ConversationSourceSummaryDTO":{"properties":{"sourceId":{"type":"string","format":"uuid","title":"Sourceid"},"provider":{"type":"string","enum":["codex","claude"],"title":"Provider"},"providerSessionId":{"type":"string","title":"Providersessionid"},"firstCwd":{"type":"string","title":"Firstcwd"},"lastSeenAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastseenat"},"turnCount":{"type":"integer","title":"Turncount"},"messageCount":{"type":"integer","title":"Messagecount"},"unroutableTurnCount":{"type":"integer","title":"Unroutableturncount"},"branches":{"items":{"$ref":"#/components/schemas/ConversationSourceBranchSummaryDTO"},"type":"array","title":"Branches"}},"additionalProperties":false,"type":"object","required":["sourceId","provider","providerSessionId","firstCwd","lastSeenAt","turnCount","messageCount","unroutableTurnCount","branches"],"title":"ConversationSourceSummaryDTO"},"ConversationTurnUploadDTO":{"properties":{"provider":{"type":"string","enum":["codex","claude"],"title":"Provider"},"providerSessionId":{"type":"string","minLength":1,"title":"Providersessionid"},"transcriptPathHash":{"type":"string","minLength":1,"title":"Transcriptpathhash"},"firstCwd":{"type":"string","minLength":1,"title":"Firstcwd"},"providerTurnId":{"type":"string","minLength":1,"title":"Providerturnid"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"branchSource":{"type":"string","enum":["transcript","git_fallback","missing"],"title":"Branchsource"},"routingStatus":{"type":"string","enum":["routable","missing_branch","missing_repo"],"title":"Routingstatus"},"headSha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headsha"},"startedAt":{"type":"string","format":"date-time","title":"Startedat"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat"},"messages":{"items":{"$ref":"#/components/schemas/ConversationMessageDTO"},"type":"array","title":"Messages"}},"additionalProperties":false,"type":"object","required":["provider","providerSessionId","transcriptPathHash","firstCwd","providerTurnId","branchSource","routingStatus","startedAt"],"title":"ConversationTurnUploadDTO"},"ConversationUploadResultDTO":{"properties":{"sourceId":{"type":"string","format":"uuid","title":"Sourceid"},"turnId":{"type":"string","format":"uuid","title":"Turnid"},"routingStatus":{"type":"string","enum":["routable","missing_branch","missing_repo"],"title":"Routingstatus"},"messageCount":{"type":"integer","title":"Messagecount"}},"additionalProperties":false,"type":"object","required":["sourceId","turnId","routingStatus","messageCount"],"title":"ConversationUploadResultDTO"},"GitHubAppSessionRequestDTO":{"properties":{"providerToken":{"type":"string","minLength":1,"pattern":"^ghu_","title":"Providertoken"},"providerRefreshToken":{"type":"string","minLength":1,"pattern":"^ghr_","title":"Providerrefreshtoken"},"email":{"anyOf":[{"type":"string","maxLength":320,"minLength":3},{"type":"null"}],"title":"Email"}},"additionalProperties":false,"type":"object","required":["providerToken","providerRefreshToken"],"title":"GitHubAppSessionRequestDTO"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MeDTO":{"properties":{"user":{"anyOf":[{"$ref":"#/components/schemas/UserDTO"},{"type":"null"}]},"accounts":{"items":{"$ref":"#/components/schemas/AccountDTO"},"type":"array","title":"Accounts"},"connectionStatus":{"type":"string","enum":["needs_github_app_installation","connected"],"title":"Connectionstatus"}},"additionalProperties":false,"type":"object","required":["user","accounts","connectionStatus"],"title":"MeDTO"},"PageDTO_RepositoryListItemDTO_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RepositoryListItemDTO"},"type":"array","title":"Items"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor"}},"additionalProperties":false,"type":"object","required":["items"],"title":"PageDTO[RepositoryListItemDTO]"},"PageDTO_RunDTO_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunDTO"},"type":"array","title":"Items"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor"}},"additionalProperties":false,"type":"object","required":["items"],"title":"PageDTO[RunDTO]"},"PlanDTO":{"properties":{"planId":{"type":"string","title":"Planid"},"name":{"type":"string","title":"Name"},"current":{"type":"boolean","title":"Current"},"status":{"type":"string","enum":["active","scheduled","available"],"title":"Status"},"attachAction":{"anyOf":[{"type":"string","enum":["activate","upgrade","downgrade","purchase","none"]},{"type":"null"}],"title":"Attachaction"},"canceling":{"type":"boolean","title":"Canceling"},"startsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startsat"},"endsAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Endsat"},"monthlyRuns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthlyruns"}},"additionalProperties":false,"type":"object","required":["planId","name","current","status","attachAction","canceling","startsAt","endsAt","monthlyRuns"],"title":"PlanDTO"},"RedirectDTO":{"properties":{"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"RedirectDTO"},"RepositoryDTO":{"properties":{"repoId":{"type":"integer","title":"Repoid"},"fullName":{"type":"string","title":"Fullname"},"access":{"$ref":"#/components/schemas/AccessDTO"}},"additionalProperties":false,"type":"object","required":["repoId","fullName","access"],"title":"RepositoryDTO"},"RepositoryListItemDTO":{"properties":{"repoId":{"type":"integer","title":"Repoid"},"accountId":{"type":"integer","title":"Accountid"},"fullName":{"type":"string","title":"Fullname"},"defaultBranch":{"type":"string","title":"Defaultbranch"}},"additionalProperties":false,"type":"object","required":["repoId","accountId","fullName","defaultBranch"],"title":"RepositoryListItemDTO"},"RepositoryResolveDTO":{"properties":{"repoId":{"type":"integer","title":"Repoid"},"accountId":{"type":"integer","title":"Accountid"},"fullName":{"type":"string","title":"Fullname"},"defaultBranch":{"type":"string","title":"Defaultbranch"}},"additionalProperties":false,"type":"object","required":["repoId","accountId","fullName","defaultBranch"],"title":"RepositoryResolveDTO"},"RepositoryResolveRequestDTO":{"properties":{"fullName":{"type":"string","minLength":1,"title":"Fullname"}},"additionalProperties":false,"type":"object","required":["fullName"],"title":"RepositoryResolveRequestDTO"},"RunDTO":{"properties":{"runId":{"type":"string","format":"uuid","title":"Runid"},"repoId":{"type":"integer","title":"Repoid"},"source":{"$ref":"#/components/schemas/RunSourceDTO"},"status":{"type":"string","enum":["queued","running","delivered","failed","stale","cancelled"],"title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"filesChanged":{"items":{"type":"string"},"type":"array","title":"Fileschanged"},"commitSha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitsha"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finishedat"}},"additionalProperties":false,"type":"object","required":["runId","repoId","source","status","summary","filesChanged","commitSha","createdAt","finishedAt"],"title":"RunDTO"},"RunEventDTO":{"properties":{"runId":{"type":"string","format":"uuid","title":"Runid"},"sequence":{"type":"integer","title":"Sequence"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"kind":{"type":"string","enum":["status","message","tool","output","error"],"title":"Kind"},"message":{"type":"string","title":"Message"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"additionalProperties":false,"type":"object","required":["runId","sequence","timestamp","kind","message","payload"],"title":"RunEventDTO"},"RunSourceDTO":{"properties":{"kind":{"type":"string","title":"Kind"},"label":{"type":"string","title":"Label"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":false,"type":"object","required":["kind","label"],"title":"RunSourceDTO"},"StartRunRequestDTO":{"properties":{"branch":{"type":"string","minLength":1,"title":"Branch"}},"additionalProperties":false,"type":"object","required":["branch"],"title":"StartRunRequestDTO"},"UpdateBundle":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","enum":["changed","no_change","error","blocked","skipped"],"title":"Status"},"head_sha":{"type":"string","title":"Head Sha"},"files":{"items":{"$ref":"#/components/schemas/ChangedFile"},"type":"array","title":"Files","default":[]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"blocker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocker"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","required":["run_id","status","head_sha"],"title":"UpdateBundle"},"UserDTO":{"properties":{"githubUserId":{"type":"integer","title":"Githubuserid"},"githubLogin":{"type":"string","title":"Githublogin"},"avatarUrl":{"type":"string","title":"Avatarurl"},"cliSetupIntroSeenAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clisetupintroseenat"},"initialRegistrationSetupRequired":{"type":"boolean","title":"Initialregistrationsetuprequired"}},"additionalProperties":false,"type":"object","required":["githubUserId","githubLogin","avatarUrl","cliSetupIntroSeenAt","initialRegistrationSetupRequired"],"title":"UserDTO"},"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"},"WikiBranchDTO":{"properties":{"name":{"type":"string","title":"Name"},"sha":{"type":"string","title":"Sha"},"isDefault":{"type":"boolean","title":"Isdefault"}},"additionalProperties":false,"type":"object","required":["name","sha","isDefault"],"title":"WikiBranchDTO"},"WikiBranchListDTO":{"properties":{"repoFullName":{"type":"string","title":"Repofullname"},"defaultBranch":{"type":"string","title":"Defaultbranch"},"items":{"items":{"$ref":"#/components/schemas/WikiBranchDTO"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["repoFullName","defaultBranch","items"],"title":"WikiBranchListDTO"},"WikiCrossWikiLinkDTO":{"properties":{"sourceSlug":{"type":"string","title":"Sourceslug"},"targetWiki":{"type":"string","title":"Targetwiki"},"targetSlug":{"type":"string","title":"Targetslug"}},"additionalProperties":false,"type":"object","required":["sourceSlug","targetWiki","targetSlug"],"title":"WikiCrossWikiLinkDTO"},"WikiFileRefDTO":{"properties":{"pageSlug":{"type":"string","title":"Pageslug"},"path":{"type":"string","title":"Path"},"originalPath":{"type":"string","title":"Originalpath"},"isDir":{"type":"boolean","title":"Isdir"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":false,"type":"object","required":["pageSlug","path","originalPath","isDir"],"title":"WikiFileRefDTO"},"WikiIndexDTO":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"repoId":{"type":"integer","title":"Repoid"},"ref":{"$ref":"#/components/schemas/WikiRefDTO"},"almanacRoot":{"type":"string","title":"Almanacroot"},"headSha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headsha"},"wikiTreeSha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wikitreesha"},"parserVersion":{"type":"integer","title":"Parserversion"},"status":{"type":"string","enum":["importing","ready","empty","failed"],"title":"Status"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"indexedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Indexedat"},"lastSeenAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastseenat"}},"additionalProperties":false,"type":"object","required":["id","repoId","ref","almanacRoot","parserVersion","status"],"title":"WikiIndexDTO"},"WikiLinkDTO":{"properties":{"sourceSlug":{"type":"string","title":"Sourceslug"},"targetSlug":{"type":"string","title":"Targetslug"}},"additionalProperties":false,"type":"object","required":["sourceSlug","targetSlug"],"title":"WikiLinkDTO"},"WikiPageDTO":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"bodyMarkdown":{"type":"string","title":"Bodymarkdown"},"frontmatter":{"additionalProperties":true,"type":"object","title":"Frontmatter"},"filePath":{"type":"string","title":"Filepath"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceurl"},"contentHash":{"type":"string","title":"Contenthash"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archivedat"},"supersededBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersededby"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics"},"sources":{"items":{"$ref":"#/components/schemas/WikiPageSourceDTO"},"type":"array","title":"Sources"},"fileRefs":{"items":{"$ref":"#/components/schemas/WikiFileRefDTO"},"type":"array","title":"Filerefs"},"wikilinks":{"items":{"$ref":"#/components/schemas/WikiLinkDTO"},"type":"array","title":"Wikilinks"},"crossWikiLinks":{"items":{"$ref":"#/components/schemas/WikiCrossWikiLinkDTO"},"type":"array","title":"Crosswikilinks"}},"additionalProperties":false,"type":"object","required":["slug","title","bodyMarkdown","frontmatter","filePath","contentHash","topics","sources","fileRefs","wikilinks","crossWikiLinks"],"title":"WikiPageDTO"},"WikiPageDetailDTO":{"properties":{"index":{"$ref":"#/components/schemas/WikiIndexDTO"},"page":{"anyOf":[{"$ref":"#/components/schemas/WikiPageDTO"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["index"],"title":"WikiPageDetailDTO"},"WikiPageListDTO":{"properties":{"index":{"$ref":"#/components/schemas/WikiIndexDTO"},"items":{"items":{"$ref":"#/components/schemas/WikiPageSummaryDTO"},"type":"array","title":"Items"},"topics":{"items":{"$ref":"#/components/schemas/WikiTopicDTO"},"type":"array","title":"Topics"}},"additionalProperties":false,"type":"object","required":["index","items","topics"],"title":"WikiPageListDTO"},"WikiPageSourceDTO":{"properties":{"pageSlug":{"type":"string","title":"Pageslug"},"sourceId":{"type":"string","title":"Sourceid"},"sourceType":{"type":"string","title":"Sourcetype"},"target":{"type":"string","title":"Target"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"retrievedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrievedat"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"legacy":{"type":"boolean","title":"Legacy","default":false},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":false,"type":"object","required":["pageSlug","sourceId","sourceType","target"],"title":"WikiPageSourceDTO"},"WikiPageSummaryDTO":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"filePath":{"type":"string","title":"Filepath"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceurl"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics"}},"additionalProperties":false,"type":"object","required":["slug","title","filePath","topics"],"title":"WikiPageSummaryDTO"},"WikiRefDTO":{"properties":{"kind":{"type":"string","enum":["default","branch","pr"],"title":"Kind"},"name":{"type":"string","title":"Name"},"branchName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branchname"},"prNumber":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prnumber"}},"additionalProperties":false,"type":"object","required":["kind","name"],"title":"WikiRefDTO"},"WikiTopicDTO":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parentSlugs":{"items":{"type":"string"},"type":"array","title":"Parentslugs"},"pageCount":{"type":"integer","title":"Pagecount"}},"additionalProperties":false,"type":"object","required":["slug","title","parentSlugs","pageCount"],"title":"WikiTopicDTO"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}