{"openapi":"3.1.0","info":{"title":"Readster backend","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/health/ready":{"get":{"tags":["health"],"summary":"Ready","description":"Readiness: 200 when the background engine is alive, 503 when it is not.\n\nA DB failure answers 503 too — a process that cannot reach Postgres is not\nready by any definition, and saying so beats a green probe over a dead app.","operationId":"ready_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/whoami":{"get":{"tags":["internal"],"summary":"Whoami","description":"Echo the frontend-asserted user id. Proves the auth chain end to end.","operationId":"whoami_internal_whoami_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Whoami Internal Whoami Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/pipeline":{"get":{"tags":["admin"],"summary":"Pipeline Snapshot","description":"Stage counts for one UTC day (default today) + queue/scheduler/cost/health.","operationId":"pipeline_snapshot_internal_admin_pipeline_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pipeline Snapshot Internal Admin Pipeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/pipeline-settings":{"get":{"tags":["admin"],"summary":"Pipeline Settings Get","operationId":"pipeline_settings_get_internal_admin_pipeline_settings_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pipeline Settings Get Internal Admin Pipeline Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Pipeline Settings Put","operationId":"pipeline_settings_put_internal_admin_pipeline_settings_put","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pipeline Settings Put Internal Admin Pipeline Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/pipeline-settings/test":{"post":{"tags":["admin"],"summary":"Pipeline Settings Test","description":"One tiny real call through the EFFECTIVE provider settings.","operationId":"pipeline_settings_test_internal_admin_pipeline_settings_test_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderTestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pipeline Settings Test Internal Admin Pipeline Settings Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/model-lab":{"post":{"tags":["admin"],"summary":"Model Lab","description":"Real enrichment / synthesis on one reader's library with any model.","operationId":"model_lab_internal_admin_model_lab_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelLabIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Model Lab Internal Admin Model Lab Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/dead-letters/{action}":{"post":{"tags":["admin"],"summary":"Dead Letters Action","description":"Retry or dismiss every dead letter of one snapshot group.\n\nA dead letter stays outstanding — and the daily report red — for the whole\ndead-letter retention window, even after the cause is fixed. ``retry``\nputs the group back in line from attempt 0 (handlers re-check whether the\nwork still makes sense: a transcription job for an episode past the\nrecency window settles without a download). ``dismiss`` marks the rows\nDONE with the admin's note, so they leave the report and are pruned with\nthe done rows. Matching is on the same key the snapshot groups by\n(:func:`dead_letter_key`, whitespace-insensitive).","operationId":"dead_letters_action_internal_admin_dead_letters__action__post","parameters":[{"name":"action","in":"path","required":true,"schema":{"enum":["retry","dismiss"],"type":"string","title":"Action"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeadLetterActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dead Letters Action Internal Admin Dead Letters  Action  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/transcribe-recent":{"post":{"tags":["admin"],"summary":"Transcribe Recent","description":"Queue transcription for recent podcast episodes that have none yet.\n\nFor the moment after transcription is switched on (or the provider is\ntopped up): episodes that arrived meanwhile kept their show notes, and\nthis puts the recent ones back in line without waiting for the hourly\nsweep. Same selection as the sweep (followed, active shows; no transcript;\nnot a known dead end), widened to ``days``. 409 while no transcriber is\navailable — queueing would only produce ``disabled`` outcomes.\n\n``days`` is clamped to ``transcribe_recent_max_days()`` (the queue's DONE\nretention, 7 days by default): past it the sweep no longer knows an\nepisode's audio URL. The response's ``days`` is the window actually used;\n``requested_days`` echoes the input, so the UI can say it was shortened.","operationId":"transcribe_recent_internal_admin_transcribe_recent_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TranscribeRecentIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transcribe Recent Internal Admin Transcribe Recent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/sets":{"get":{"tags":["admin"],"summary":"List Sets","description":"Every set with its label schema and label progress, per split.","operationId":"list_sets_internal_admin_eval_sets_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Sets Internal Admin Eval Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/sets/{set_name}/propose":{"post":{"tags":["admin"],"summary":"Propose","description":"Sample up to ``count`` new unlabelled cases into the set.","operationId":"propose_internal_admin_eval_sets__set_name__propose_post","parameters":[{"name":"set_name","in":"path","required":true,"schema":{"type":"string","title":"Set Name"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Propose Internal Admin Eval Sets  Set Name  Propose Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/sets/{set_name}/next":{"get":{"tags":["admin"],"summary":"Next Case","description":"The oldest unlabelled, unskipped case (``case`` null when done).","operationId":"next_case_internal_admin_eval_sets__set_name__next_get","parameters":[{"name":"set_name","in":"path","required":true,"schema":{"type":"string","title":"Set Name"}},{"name":"profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Next Case Internal Admin Eval Sets  Set Name  Next Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/sets/{set_name}/cases":{"get":{"tags":["admin"],"summary":"List Cases","description":"Cases of a set, oldest first, filtered by status / split / profile.","operationId":"list_cases_internal_admin_eval_sets__set_name__cases_get","parameters":[{"name":"set_name","in":"path","required":true,"schema":{"type":"string","title":"Set Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"name":"split","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Split"}},{"name":"profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Cases Internal Admin Eval Sets  Set Name  Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/sets/{set_name}/export":{"get":{"tags":["admin"],"summary":"Export Set","description":"The whole set as JSONL text (one case per line).","operationId":"export_set_internal_admin_eval_sets__set_name__export_get","parameters":[{"name":"set_name","in":"path","required":true,"schema":{"type":"string","title":"Set Name"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Export Set Internal Admin Eval Sets  Set Name  Export Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/sets/{set_name}/import":{"post":{"tags":["admin"],"summary":"Import Set","description":"Upsert cases by case key; per-line errors are reported, not fatal.","operationId":"import_set_internal_admin_eval_sets__set_name__import_post","parameters":[{"name":"set_name","in":"path","required":true,"schema":{"type":"string","title":"Set Name"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Import Set Internal Admin Eval Sets  Set Name  Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/cases/{case_id}":{"get":{"tags":["admin"],"summary":"Get Case","operationId":"get_case_internal_admin_eval_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Case Internal Admin Eval Cases  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Case","operationId":"delete_case_internal_admin_eval_cases__case_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Case Internal Admin Eval Cases  Case Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/cases/{case_id}/label":{"put":{"tags":["admin"],"summary":"Label Case","description":"Label, skip, reset, annotate or re-split one case.\n\n``skip=true`` wins over a label in the same body (a skipped case carries\nno label). ``label: null`` (or un-skipping an unlabelled case) returns it\nto the queue and clears the labeller.","operationId":"label_case_internal_admin_eval_cases__case_id__label_put","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Label Case Internal Admin Eval Cases  Case Id  Label Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/profiles":{"get":{"tags":["admin"],"summary":"List Profiles","operationId":"list_profiles_internal_admin_eval_profiles_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Profiles Internal Admin Eval Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Profile","description":"Create a persona; entity labels resolve read-only (never created).","operationId":"create_profile_internal_admin_eval_profiles_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Profile Internal Admin Eval Profiles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/profiles/{profile_id}":{"put":{"tags":["admin"],"summary":"Update Profile","operationId":"update_profile_internal_admin_eval_profiles__profile_id__put","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"integer","title":"Profile Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Profile Internal Admin Eval Profiles  Profile Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Profile","description":"Delete a persona and, with it, its relevance cases (and their results).","operationId":"delete_profile_internal_admin_eval_profiles__profile_id__delete","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"integer","title":"Profile Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Profile Internal Admin Eval Profiles  Profile Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/runners":{"get":{"tags":["admin"],"summary":"List Runners","description":"Every runner: its set, whether it calls an LLM, and its parameters.","operationId":"list_runners_internal_admin_eval_runners_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Runners Internal Admin Eval Runners Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/runs/estimate":{"post":{"tags":["admin"],"summary":"Estimate Run","description":"Cases, LLM calls and estimated USD of a run request — nothing is started.","operationId":"estimate_run_internal_admin_eval_runs_estimate_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Estimate Run Internal Admin Eval Runs Estimate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/runs":{"post":{"tags":["admin"],"summary":"Create Run","description":"Start a run: sync runners finish here (``done``), LLM runners queue.","operationId":"create_run_internal_admin_eval_runs_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Run Internal Admin Eval Runs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"List Runs","description":"Runs, newest first, optionally of one set.","operationId":"list_runs_internal_admin_eval_runs_get","parameters":[{"name":"set","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Set"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Runs Internal Admin Eval Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/runs/{run_id}":{"get":{"tags":["admin"],"summary":"Get Run","description":"One run with its worst cases (≤100, ordered by the runner).","operationId":"get_run_internal_admin_eval_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Run Internal Admin Eval Runs  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/eval/runs/{run_id}/cancel":{"post":{"tags":["admin"],"summary":"Cancel Run","description":"Cancel a queued/running run; its partial metrics are kept (409 otherwise).","operationId":"cancel_run_internal_admin_eval_runs__run_id__cancel_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Run Internal Admin Eval Runs  Run Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/byok":{"get":{"tags":["byok"],"summary":"Byok Get","operationId":"byok_get_internal_byok_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["byok"],"summary":"Byok Put","operationId":"byok_put_internal_byok_put","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ByokOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["byok"],"summary":"Byok Delete","operationId":"byok_delete_internal_byok_delete","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/inbound":{"post":{"tags":["inbound"],"summary":"Inbound","operationId":"inbound_inbound_post","parameters":[{"name":"x-readster-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Readster-Signature"}},{"name":"x-readster-timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Readster-Timestamp"}},{"name":"x-readster-message-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Readster-Message-Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Inbound Inbound Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/watchlists":{"post":{"tags":["watchlists"],"summary":"Create","operationId":"create_internal_watchlists_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["watchlists"],"summary":"Index","operationId":"index_internal_watchlists_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WatchlistOut"},"title":"Response Index Internal Watchlists Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/watchlists/{watchlist_id}":{"get":{"tags":["watchlists"],"summary":"Detail","operationId":"detail_internal_watchlists__watchlist_id__get","parameters":[{"name":"watchlist_id","in":"path","required":true,"schema":{"type":"integer","title":"Watchlist Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["watchlists"],"summary":"Rename","operationId":"rename_internal_watchlists__watchlist_id__patch","parameters":[{"name":"watchlist_id","in":"path","required":true,"schema":{"type":"integer","title":"Watchlist Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchlistOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["watchlists"],"summary":"Remove","operationId":"remove_internal_watchlists__watchlist_id__delete","parameters":[{"name":"watchlist_id","in":"path","required":true,"schema":{"type":"integer","title":"Watchlist Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/watchlists/{watchlist_id}/entries":{"get":{"tags":["watchlists"],"summary":"Entries Index","operationId":"entries_index_internal_watchlists__watchlist_id__entries_get","parameters":[{"name":"watchlist_id","in":"path","required":true,"schema":{"type":"integer","title":"Watchlist Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntryOut"},"title":"Response Entries Index Internal Watchlists  Watchlist Id  Entries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["watchlists"],"summary":"Entry Add","operationId":"entry_add_internal_watchlists__watchlist_id__entries_post","parameters":[{"name":"watchlist_id","in":"path","required":true,"schema":{"type":"integer","title":"Watchlist Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/watchlists/entries/{entry_id}":{"patch":{"tags":["watchlists"],"summary":"Entry Update","operationId":"entry_update_internal_watchlists_entries__entry_id__patch","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["watchlists"],"summary":"Entry Remove","operationId":"entry_remove_internal_watchlists_entries__entry_id__delete","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/newsletters/address":{"post":{"tags":["newsletters"],"summary":"Address Provision","description":"Create (idempotently return) the user's ``{local}.{secret}@…`` inbox.","operationId":"address_provision_internal_newsletters_address_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AddressIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["newsletters"],"summary":"Address Current","description":"The user's current inbound address, or 404 if none provisioned yet.","operationId":"address_current_internal_newsletters_address_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/newsletters/senders":{"get":{"tags":["newsletters"],"summary":"Index","description":"All of the user's senders (``?status=pending|confirmed|blocked`` to filter).\n\nIncludes blocked and anomalous (spoofed-at) senders so users can see what was\ndropped and recover a mis-blocked sender via ``/senders/{id}/confirm``.","operationId":"index_internal_newsletters_senders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SenderOut"},"title":"Response Index Internal Newsletters Senders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/newsletters/senders/{sender_id}/confirm":{"post":{"tags":["newsletters"],"summary":"Confirm","operationId":"confirm_internal_newsletters_senders__sender_id__confirm_post","parameters":[{"name":"sender_id","in":"path","required":true,"schema":{"type":"integer","title":"Sender Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/newsletters/senders/{sender_id}/block":{"post":{"tags":["newsletters"],"summary":"Block","operationId":"block_internal_newsletters_senders__sender_id__block_post","parameters":[{"name":"sender_id","in":"path","required":true,"schema":{"type":"integer","title":"Sender Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources/opml":{"post":{"tags":["sources"],"summary":"Opml Import","operationId":"opml_import_internal_sources_opml_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpmlImportIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpmlImportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sources"],"summary":"Opml Export","operationId":"opml_export_internal_sources_opml_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/imports/parse":{"post":{"tags":["imports"],"summary":"Import Parse","description":"Recognise and parse an export file, a paste, or a follow list.","operationId":"import_parse_internal_imports_parse_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParseOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/imports/resolve":{"post":{"tags":["imports"],"summary":"Import Resolve","description":"Resolve a batch of pending candidates (network; time-boxed).","operationId":"import_resolve_internal_imports_resolve_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/imports/apply":{"post":{"tags":["imports"],"summary":"Import Apply","description":"Follow the ticked suggestions, one ``add_source`` each.\n\nStops adding at the reader's source ceiling (the rest come back\n``limit``); a Pro-only type on Readster Free is ``paid_feature``; a ref\n``add_source`` refuses is ``invalid``. No podcast test-fetch here (that\ncheck, limited to 10 an hour, is for a feed typed by hand): a feed that\nturns out dead shows its failures on the Sources page like any other.","operationId":"import_apply_internal_imports_apply_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/briefs":{"get":{"tags":["briefs"],"summary":"Index","operationId":"index_internal_briefs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Before"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BriefSummaryOut"},"title":"Response Index Internal Briefs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/briefs/{brief_id}":{"get":{"tags":["briefs"],"summary":"Detail","operationId":"detail_internal_briefs__brief_id__get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"integer","title":"Brief Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/entities/search":{"get":{"tags":["entities"],"summary":"Entity Search","description":"Entity lookup for the Watchlists UI.\n\nScoped by caller: SEC-backed entities plus the ones already on this user's\nwatchlists (see ``search_entities`` — an unbacked row another user invented\nmust not surface here, its name is unvetted text).","operationId":"entity_search_internal_entities_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitySearchOut"},"title":"Response Entity Search Internal Entities Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/entities/resolve":{"post":{"tags":["entities"],"summary":"Entity Resolve","description":"Resolve-or-create for the Watchlists builder.\n\nThe RESULT is user-independent (entities are global reference data), but the\nCALLER is not anonymous: this endpoint writes shared rows, so it runs on\n``CurrentUser`` like every other write. That identity buys two things —\na per-user daily cap on WRITES (``READSTER_ENTITY_CREATE_DAILY_LIMIT``,\ncounting both a creation and a KNOWN_TICKERS in-place upgrade; over it,\n``429 {\"error\": \"entity_quota\"}`` and nothing is written, while lookups keep\nworking) and the ownership check that stops one reader's resolve from\nrewriting a row another reader watches.\n\n``kind`` (optional: \"company\" | \"ticker\" | \"topic\" | \"person\" |\n\"organization\") is the frontend's explicit add-entry selector and is\nHONORED; absent keeps the legacy heuristic, which never turns a common\nword or acronym into a ticker. A \"topic\" is a phrase the reader follows (a\nwatched topic becomes an EDGAR full-text keyword rule only when its\nwatchlist entry sets ``sec_keyword_alerts``); people and organizations\nnever get an SEC lookup. Newly created company/ticker entities get their\nSEC CIK resolved synchronously from the cached ``company_tickers.json``\nmap; SEC downtime degrades to ``cik=None`` and the hourly sync backfills.","operationId":"entity_resolve_internal_entities_resolve_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResolveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/entities/{entity_id}/mute":{"post":{"tags":["entities"],"summary":"Entity Mute","description":"Mute/unmute an entity for THIS user (Wave E1 契约, idempotent).","operationId":"entity_mute_internal_entities__entity_id__mute_post","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMuteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityMuteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/entities/{entity_id}/timeline":{"get":{"tags":["entities"],"summary":"Timeline","operationId":"timeline_internal_entities__entity_id__timeline_get","parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"integer","title":"Entity Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/search":{"get":{"tags":["search"],"summary":"Search","operationId":"search_internal_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["semantic","text"],"type":"string","default":"semantic","title":"Mode"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchHitOut"},"title":"Response Search Internal Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/qa":{"post":{"tags":["ondemand"],"summary":"Qa","description":"Single-shot Q&A over the user's library.\n\nDEPRECATED (product-depth Wave G1): superseded by the multi-turn thread\nflow — ``POST /internal/qa/threads/{thread_id}/messages`` in\n``app/api/qa_threads.py`` — which reuses this module's retrieval, fencing,\n§6 validation, and metering machinery. Kept working unchanged for existing\ncallers; new clients should create a thread instead.\n\nA paid feature (``ask``): a Free reader gets 402 ``paid_feature`` before\nany metering or retrieval.","operationId":"qa_internal_qa_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QaIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/items/{item_id}/actions":{"post":{"tags":["ondemand"],"summary":"Item Action","operationId":"item_action_internal_items__item_id__actions_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/usage/today":{"get":{"tags":["ondemand"],"summary":"Usage Today","operationId":"usage_today_internal_usage_today_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/qa/threads":{"post":{"tags":["qa-threads"],"summary":"Create Thread","operationId":"create_thread_internal_qa_threads_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadCreatedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["qa-threads"],"summary":"List Threads","operationId":"list_threads_internal_qa_threads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThreadListOut"},"title":"Response List Threads Internal Qa Threads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/qa/threads/{thread_id}":{"get":{"tags":["qa-threads"],"summary":"Get Thread","operationId":"get_thread_internal_qa_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"integer","title":"Thread Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["qa-threads"],"summary":"Delete Thread","operationId":"delete_thread_internal_qa_threads__thread_id__delete","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"integer","title":"Thread Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/qa/threads/{thread_id}/messages":{"post":{"tags":["qa-threads"],"summary":"Post Message","description":"One METERED conversational exchange (the Wave G1 counterpart of /internal/qa).","operationId":"post_message_internal_qa_threads__thread_id__messages_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"integer","title":"Thread Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadMessageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources":{"post":{"tags":["sources"],"summary":"Source Add","description":"Follow a source. Podcasts are test-fetched first (``verify_podcast_feed``):\na full account is refused (409) before anything is downloaded, the test\nfetch is rate-limited per reader (429) and runs one at a time (503 while\nanother is in progress). A YouTube channel is named at add time — from its\nchannel page, else its feed's ``<title>`` — so it never shows up as a bare\nfeed URL.\n\nPodcast, YouTube and Bluesky are a paid feature: a Free reader is answered\n402 ``paid_feature`` before any network work.\n\nA feed the reader holds as coverage their plan paused becomes their own\nsource (no longer ``auto``/``plan_paused``) and is polled again — or 409\n``source_limit_reached`` when their own-source ceiling is full.","operationId":"source_add_internal_sources_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__sources__SourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["sources"],"summary":"Source List","operationId":"source_list_internal_sources_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__sources__SourceOut"},"title":"Response Source List Internal Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources/podcast-search":{"get":{"tags":["sources"],"summary":"Podcast Search","description":"Find a podcast by name (iTunes directory) so the reader never has to\nhunt for an RSS URL; adding a hit posts its ``feed_url`` as a podcast source.\nA paid feature (``podcasts``), like following the hit.","operationId":"podcast_search_internal_sources_podcast_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PodcastHitOut"},"title":"Response Podcast Search Internal Sources Podcast Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources/packs":{"get":{"tags":["sources"],"summary":"Packs Index","description":"Curated starter packs with this reader's subscription state.","operationId":"packs_index_internal_sources_packs_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PackOut"},"title":"Response Packs Index Internal Sources Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources/packs/{key}":{"post":{"tags":["sources"],"summary":"Pack Follow","description":"Subscribe to every source in a pack (idempotent; a feed that fails\nvalidation is skipped, the account ceiling is a 409 like a single add).\n\nA Free reader follows the pack's rss sources only: its podcast, YouTube and\nBluesky sources (a paid feature) are skipped and listed in ``skipped`` with\nreason ``paid_feature``, so the UI can say what Pro would add.","operationId":"pack_follow_internal_sources_packs__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources/{source_id}":{"patch":{"tags":["sources"],"summary":"Source Patch","description":"Per-subscription edits: the folder a source sits in (OPML folders are\npreserved on import; this is how a reader changes them afterwards).","operationId":"source_patch_internal_sources__source_id__patch","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__sources__SourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sources"],"summary":"Source Remove","operationId":"source_remove_internal_sources__source_id__delete","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/sources/{source_id}/mute":{"post":{"tags":["sources"],"summary":"Source Mute","description":"Mute/unmute one of the user's source subscriptions (Wave E1, idempotent).","operationId":"source_mute_internal_sources__source_id__mute_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MuteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MuteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/mcp/token":{"post":{"tags":["mcp"],"summary":"Mint","operationId":"mint_internal_mcp_token_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpTokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels":{"get":{"tags":["channels"],"summary":"List Channels","operationId":"list_channels_internal_channels_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/feed":{"post":{"tags":["channels"],"summary":"Create Feed","operationId":"create_feed_internal_channels_feed_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/feed/rotate":{"post":{"tags":["channels"],"summary":"Rotate Feed","operationId":"rotate_feed_internal_channels_feed_rotate_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/webhook":{"post":{"tags":["channels"],"summary":"Set Webhook","description":"Store a Slack/Discord webhook AND send a test message to it.\n\nVerified only if the test POST succeeds: a typo has to fail while the\nreader is looking at it, not silently at 6am. A failed test keeps the row\n(so the reader can see what they typed) with ``verified_at`` null and the\nprovider's complaint in ``last_error``.","operationId":"set_webhook_internal_channels_webhook_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/telegram/link":{"post":{"tags":["channels"],"summary":"Telegram Link","operationId":"telegram_link_internal_channels_telegram_link_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/{kind}":{"patch":{"tags":["channels"],"summary":"Patch Channel","operationId":"patch_channel_internal_channels__kind__patch","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["channels"],"summary":"Delete Channel","operationId":"delete_channel_internal_channels__kind__delete","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/feed.atom":{"get":{"tags":["channels"],"summary":"Serve Feed","description":"One reader's private Atom feed.\n\n404 — never 401 or 403 — for an unknown, rotated or disabled token: a feed\nURL is pasted into reader apps, shows up in logs and gets shared by\naccident, and \"this token existed but is off\" is not something a stranger\nholding it should learn.\n\nThe reader's PLAN is checked on every request, not at subscribe time: a\nreader who cancels keeps the row (an upgrade restores it) and their feed\nsimply stops carrying new issues.","operationId":"serve_feed_internal_channels_feed_atom_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/mutes/entities":{"get":{"tags":["mutes"],"summary":"Muted Entities","description":"All entities THIS user muted, with display info (never raw ids only).","operationId":"muted_entities_internal_mutes_entities_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MutedEntityOut"},"title":"Response Muted Entities Internal Mutes Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/unsubscribe":{"post":{"tags":["email-prefs"],"summary":"Unsubscribe","description":"Signed-token unsubscribe (no X-User-Id — identity IS the token).\n\nIdempotent 200 for a valid token (already-unsubscribed included); a uniform\n404 for anything invalid — no oracle distinguishing bad signatures from\nunknown users.","operationId":"unsubscribe_internal_unsubscribe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unsubscribe Internal Unsubscribe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/email-prefs":{"get":{"tags":["email-prefs"],"summary":"Email Prefs","operationId":"email_prefs_internal_email_prefs_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["email-prefs"],"summary":"Email Prefs Update","operationId":"email_prefs_update_internal_email_prefs_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/prefs":{"get":{"tags":["prefs"],"summary":"Prefs Get","operationId":"prefs_get_internal_prefs_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["prefs"],"summary":"Prefs Update","operationId":"prefs_update_internal_prefs_put","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefsUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/preview-brief":{"post":{"tags":["preview"],"summary":"Preview Brief","operationId":"preview_brief_internal_preview_brief_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/items/recent":{"get":{"tags":["items"],"summary":"Recent","description":"Items that hit this reader's watchlist since their last brief went out.\n\nThe product promises filings \"within the hour\", but until now an intraday\nhit had nowhere to live — it could only appear in the next morning's brief.\nThis is that surface.\n\nDeliberately reuses the nightly pipeline's own ranking (``pipeline.rank``)\nrather than a second relevance rule: the section and the \"why is this here\"\nlabels are computed exactly as the brief computes them, so this page cannot\ndrift from what actually lands in the inbox. ``worth_knowing`` (no watchlist\nhit) is dropped — that is brief material, not an intraday alert.\n\nThe window is on ``published_at``, the same axis the brief selects on, so\nthis really is \"what tomorrow's brief will carry that today's did not\" —\nnot a second, differently-shaped recency rule.","operationId":"recent_internal_items_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/items/saved":{"get":{"tags":["items"],"summary":"Saved Items","description":"This user's saved items (newest first, limit/offset pagination).","operationId":"saved_items_internal_items_saved_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SavedItemOut"},"title":"Response Saved Items Internal Items Saved Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/items/{item_id}":{"get":{"tags":["items"],"summary":"Item Detail","operationId":"item_detail_internal_items__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/items/{item_id}/feedback":{"post":{"tags":["items"],"summary":"Item Feedback","operationId":"item_feedback_internal_items__item_id__feedback_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackStateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/export":{"get":{"tags":["export"],"summary":"Export All","description":"Stream the user's full data export. Always available — never entitlement-gated.","operationId":"export_all_internal_export_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/source-health":{"get":{"tags":["admin"],"summary":"Source Health","description":"Global source health, worst-first (consecutive_failures desc, id tiebreak).","operationId":"source_health_internal_admin_source_health_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"only_failing","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only Failing"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceHealthOut"},"title":"Response Source Health Internal Admin Source Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/sources/{source_id}/fulltext":{"post":{"tags":["admin"],"summary":"Source Fulltext Toggle","description":"Architecture §3.9: allow (or stop) polite full-text fetches for one\nsummary-only feed. Switching OFF also purges every fetched body for the\nsource (rule 4: stop-and-purge). Audited.","operationId":"source_fulltext_toggle_internal_admin_sources__source_id__fulltext_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulltextToggleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Source Fulltext Toggle Internal Admin Sources  Source Id  Fulltext Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/ops-reports":{"get":{"tags":["admin"],"summary":"Ops Reports","description":"Daily reconciliation reports, newest first.","operationId":"ops_reports_internal_admin_ops_reports_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpsReportOut"},"title":"Response Ops Reports Internal Admin Ops Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/suppression":{"get":{"tags":["admin"],"summary":"Suppression List","description":"Suppression rows (newest first), addresses masked to ``m***@domain``.\n\n``q`` matches the WHOLE address (case-insensitive) or the whole user id —\ndeliberately NOT a substring. Masking the response is pointless if the query\nitself can be used to reconstruct the address: substring matching let an\nadmin binary-search a masked address one character at a time (``mar`` hits,\n``mark`` hits, ``marko`` misses…) and recover it in a few dozen ordinary,\nunlogged requests. Whole-address matching still answers the real ops\nquestion — \"is THIS address suppressed?\" — while an admin who does not\nalready know the address learns nothing from guessing.\n\nLIKE wildcards in ``q`` are escaped (``escape_like``), so ``%`` can no\nlonger turn \"look up one address\" into \"dump the table\" and ``_`` cannot\nsilently become a single-character wildcard.","operationId":"suppression_list_internal_admin_suppression_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Q"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SuppressionOut"},"title":"Response Suppression List Internal Admin Suppression Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/suppression/{suppression_id}":{"delete":{"tags":["admin"],"summary":"Suppression Delete","description":"Admin suppression override: delete a row of ANY reason.\n\nUnlike the user-facing resume (which only clears ``unsubscribed`` rows),\nan admin may clear bounce/complaint suppressions too — e.g. after a user\nfixed a full mailbox or a provider false-positive. Audit-logged with the\nacting admin's user id; the address itself never reaches the logs.","operationId":"suppression_delete_internal_admin_suppression__suppression_id__delete","parameters":[{"name":"suppression_id","in":"path","required":true,"schema":{"type":"integer","title":"Suppression Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suppression Delete Internal Admin Suppression  Suppression Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/lifecycle-emails":{"get":{"tags":["admin"],"summary":"Lifecycle Emails","description":"Recent lifecycle sends (newest first) — the ``lifecycle_emails`` log.","operationId":"lifecycle_emails_internal_admin_lifecycle_emails_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LifecycleEmailOut"},"title":"Response Lifecycle Emails Internal Admin Lifecycle Emails Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/system-health":{"get":{"tags":["admin"],"summary":"System Health Endpoint","description":"Live scheduler / queue / report-freshness / dead-letter state.\n\nThe daily reconciliation is enqueued by the scheduler and executed by that\nsame scheduler's queue drain, so when the scheduler stops, the alarm stops\nwith it and the ops page keeps showing a green three-day-old report. This\nendpoint is computed in the REQUEST path instead, so it stays truthful\nexactly when the background engine is not.","operationId":"system_health_endpoint_internal_admin_system_health_get","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response System Health Endpoint Internal Admin System Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/orphans":{"get":{"tags":["admin"],"summary":"Orphans","description":"Pipeline data whose owning user no longer exists in the frontend view.\n\nThat state is created by deleting the account before purging the pipeline:\nthe retention sweep iterates the same view the user vanished from, so no\ncode path can ever delete those rows again. Ids only — no content.","operationId":"orphans_internal_admin_orphans_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Orphans Internal Admin Orphans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/users/{user_id}/overview":{"get":{"tags":["admin"],"summary":"User Overview","description":"Everything needed to answer \"why didn't this user get their brief?\".\n\nDeliberately assembled from the tables an operator would otherwise open a\npsql session for. The delivery address is MASKED (``m***@domain``) exactly\nlike the suppression listing — an operator triaging a delivery never needs\nthe full address, and this endpoint sits behind a shared service token.","operationId":"user_overview_internal_admin_users__user_id__overview_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":14,"title":"Days"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOverviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/briefs":{"get":{"tags":["admin"],"summary":"Briefs List","description":"Brief rows by date / status / user, paginated (never truncated silently).","operationId":"briefs_list_internal_admin_briefs_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/briefs/missing":{"get":{"tags":["admin"],"summary":"Briefs Missing","description":"Expected recipients with no accounted brief row on ``date`` — the FULL list.\n\nThe daily reconciliation caps ``missing_user_ids`` at 20 entries to keep its\nJSONB bounded, which is exactly backwards for the case that matters: when a\nbatch poll wedges and 300 users miss their brief, the report says \"missing:\n300\" and names 20 of them. This endpoint answers the same question with\npagination instead of truncation — and the same \"was this reader due?\"\ngate (``reconciliation.due_recipients``: weekdays/weekly/quiet-weekend\nprefs, a Readster Free reader's one weekday, the Free kill switch), so a\nFree reader is not listed as missing on the six days they are not owed one.","operationId":"briefs_missing_internal_admin_briefs_missing_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissingBriefsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/admin/briefs/resend":{"post":{"tags":["admin"],"summary":"Briefs Resend","description":"Re-deliver one already-built brief. Audited; idempotent within a minute.\n\nDeliberately narrow: it re-sends an EXISTING brief row, it does not\nsynthesize a new one (that would spend Opus tokens from an admin click and\ncould produce different content than the user was told about). The delivery\ngoes through the normal ``deliver_brief`` queue job, so suppression is\nre-checked at actual send time and a bounced/complained/unsubscribed\naddress is still never mailed.\n\nRefuses, with a structured reason, when re-delivery would be wrong:\n  * ``404 brief_not_found``       — nothing was ever built for that date;\n  * ``409 brief_has_no_content``  — the row exists but holds no brief;\n  * ``409 recipient_unavailable`` — the entitlement view has no address for\n    this user (churned, unverified, or the view itself is down);\n  * ``409 recipient_suppressed``  — the address is on the suppression list.","operationId":"briefs_resend_internal_admin_briefs_resend_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/account/purge":{"post":{"tags":["account"],"summary":"Purge","description":"Delete this user's pipeline-side data; return what was removed/kept.","operationId":"purge_internal_account_purge_post","parameters":[{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/sec/companies":{"get":{"tags":["public-sec"],"summary":"List Companies","description":"Every public company (alphabetical by ticker) with its page count.","operationId":"list_companies_internal_public_sec_companies_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/sec/companies/{ticker}":{"get":{"tags":["public-sec"],"summary":"Company Page","description":"One company's filings with pages, newest first.","operationId":"company_page_internal_public_sec_companies__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","title":"Ticker"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/sec/filings":{"get":{"tags":["public-sec"],"summary":"Filings Stream","description":"Recently published filings across every public company, newest first.\n\nThe browsable entry point to the corpus: without it the only ways in are a\ncompany page and the sitemap, which is fine for a crawler and useless for\na person. Ordered by ``public_since`` — when the filing got its PAGE —\nrather than by filing date: a backfilled 2-month-old filing appearing at\nthe top of \"latest\" reads as broken, and the publication order is the one\nthing here that is the same for every reader (architecture §9.2a).\n\nOnly indexable filings (a real summary over fetched text): a stream of\ntitle-only rows is the thin-content page the §9.2a rules exist to avoid,\nand it would be the one page linking to every one of them.","operationId":"filings_stream_internal_public_sec_filings_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":1,"title":"Page"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilingsStreamOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/sec/filings/{accession}":{"get":{"tags":["public-sec"],"summary":"Filing Page","description":"One filing: the structured record, the AI summary and a short excerpt.","operationId":"filing_page_internal_public_sec_filings__accession__get","parameters":[{"name":"accession","in":"path","required":true,"schema":{"type":"string","title":"Accession"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/sec/sitemap/{kind}/{page}":{"get":{"tags":["public-sec"],"summary":"Sitemap","description":"Indexable pages only, ``SITEMAP_PAGE_SIZE`` per page, in an order that\nonly ever appends (companies by ticker, filings oldest first), so a\npublished page keeps its sitemap page. A page past the end is empty.","operationId":"sitemap_internal_public_sec_sitemap__kind___page__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","maximum":10000,"minimum":1,"title":"Page"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitemapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/topics":{"get":{"tags":["public-topics"],"summary":"List Topics","description":"Every public topic with its listable count, in allowlist order.\n\nAllowlist order, not the database's: the index groups the topics exactly\nas ``app.seo.topics`` does, and that order is the one thing on this page\nthat is the same for every reader.","operationId":"list_topics_internal_public_topics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/topics/{slug}":{"get":{"tags":["public-topics"],"summary":"Topic Page","description":"One topic's published items, newest published first.\n\nOrdered by ``public_since`` — when the item got its PLACE here — then by\nits own time: the publication order is the one ordering that is the same\nfor every reader (§9.2a), and a backfilled item appearing at the top of\n\"latest\" reads as broken.","operationId":"topic_page_internal_public_topics__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":1,"title":"Page"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/public/topics/sitemap/{page}":{"get":{"tags":["public-topics"],"summary":"Sitemap","description":"Indexable topic pages only, in allowlist order, so a published page\nkeeps its place. A page past the end is empty.","operationId":"sitemap_internal_public_topics_sitemap__page__get","parameters":[{"name":"page","in":"path","required":true,"schema":{"type":"integer","maximum":10000,"minimum":1,"title":"Page"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitemapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/links/resolve":{"get":{"tags":["links"],"summary":"Resolve","operationId":"resolve_internal_links_resolve_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","maxLength":4096,"default":"","title":"T"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActionIn":{"properties":{"op":{"type":"string","pattern":"^(summarize|translate)$","title":"Op"},"target_lang":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Target Lang"}},"type":"object","required":["op"],"title":"ActionIn"},"ActionOut":{"properties":{"result":{"type":"string","title":"Result"}},"type":"object","required":["result"],"title":"ActionOut"},"AddressIn":{"properties":{"local":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Local"}},"type":"object","title":"AddressIn"},"AddressOut":{"properties":{"address":{"type":"string","title":"Address"},"source_id":{"type":"integer","title":"Source Id"}},"type":"object","required":["address","source_id"],"title":"AddressOut"},"ApplyIn":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApplyItemIn"},"type":"array","maxItems":500,"minItems":1,"title":"Items"},"folder":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Folder"}},"type":"object","required":["items"],"title":"ApplyIn"},"ApplyItemIn":{"properties":{"type":{"type":"string","enum":["rss","podcast","youtube","bluesky","watch","page"],"title":"Type"},"ref":{"type":"string","maxLength":2048,"minLength":1,"title":"Ref"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"title_sig":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Title Sig"},"private":{"type":"boolean","title":"Private","default":false},"folder":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Folder"},"watch_kind":{"anyOf":[{"type":"string","enum":["ticker","company","topic"]},{"type":"null"}],"title":"Watch Kind"}},"type":"object","required":["type","ref"],"title":"ApplyItemIn"},"ApplyOut":{"properties":{"added":{"type":"integer","title":"Added"},"already":{"type":"integer","title":"Already"},"skipped":{"type":"integer","title":"Skipped"},"results":{"items":{"$ref":"#/components/schemas/ApplyResultOut"},"type":"array","title":"Results"}},"type":"object","required":["added","already","skipped","results"],"title":"ApplyOut"},"ApplyResultOut":{"properties":{"ref":{"type":"string","title":"Ref"},"type":{"type":"string","title":"Type"},"outcome":{"type":"string","enum":["added","already","paid_feature","limit","invalid"],"title":"Outcome"},"source_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["ref","type","outcome"],"title":"ApplyResultOut"},"BriefCitationOut":{"properties":{"item_id":{"type":"string","title":"Item Id"},"url":{"type":"string","title":"Url"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"type":"object","required":["item_id","url"],"title":"BriefCitationOut"},"BriefDetailOut":{"properties":{"content":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content"},"html":{"type":"string","title":"Html"},"validation_report":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Report"},"edition":{"type":"integer","title":"Edition","default":0},"editions":{"type":"integer","title":"Editions","default":1},"citations":{"items":{"$ref":"#/components/schemas/BriefCitationOut"},"type":"array","title":"Citations"}},"type":"object","required":["content","html","validation_report","citations"],"title":"BriefDetailOut"},"BriefPageOut":{"properties":{"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"rows":{"items":{"$ref":"#/components/schemas/BriefRowOut"},"type":"array","title":"Rows"}},"type":"object","required":["total","limit","offset","rows"],"title":"BriefPageOut"},"BriefRowOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"brief_date":{"type":"string","format":"date","title":"Brief Date"},"status":{"type":"string","title":"Status"},"flagged_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagged Reason"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"}},"type":"object","required":["user_id","brief_date","status","flagged_reason","sent_at"],"title":"BriefRowOut"},"BriefSummaryOut":{"properties":{"id":{"type":"integer","title":"Id"},"brief_date":{"type":"string","format":"date","title":"Brief Date"},"edition":{"type":"integer","title":"Edition","default":0},"editions":{"type":"integer","title":"Editions","default":1},"status":{"type":"string","title":"Status"},"subject":{"type":"string","title":"Subject"},"tally":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tally"},"section_counts":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Section Counts"}},"type":"object","required":["id","brief_date","status","subject","tally","section_counts"],"title":"BriefSummaryOut"},"ByokIn":{"properties":{"provider":{"type":"string","pattern":"^(openrouter|anthropic)$","title":"Provider"},"api_key":{"type":"string","maxLength":512,"minLength":8,"title":"Api Key"},"model":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Model"}},"type":"object","required":["provider","api_key"],"title":"ByokIn"},"ByokOut":{"properties":{"configured":{"type":"boolean","title":"Configured"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["configured"],"title":"ByokOut"},"CandidateOut":{"properties":{"key":{"type":"string","title":"Key"},"input_kind":{"type":"string","title":"Input Kind"},"input_ref":{"type":"string","title":"Input Ref"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"weight":{"type":"integer","title":"Weight","default":1},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"suggestions":{"items":{"$ref":"#/components/schemas/SuggestionOut"},"type":"array","title":"Suggestions","default":[]},"extra":{"items":{"type":"string"},"type":"array","title":"Extra","default":[]}},"type":"object","required":["key","input_kind","input_ref","status"],"title":"CandidateOut"},"CandidateRefIn":{"properties":{"key":{"type":"string","pattern":"^c\\d{1,6}$","title":"Key"},"input_kind":{"type":"string","enum":["feed","site","youtube","bluesky","mastodon","podcast_name","apple_podcast","spotify_show","x_account","ticker","journal","arxiv_papers","github_repo","topic","telegram"],"title":"Input Kind"},"input_ref":{"type":"string","maxLength":2048,"minLength":1,"title":"Input Ref"},"label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Label"},"hint":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Hint"},"folder":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Folder"},"weight":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Weight","default":1},"extra":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Extra"}},"type":"object","required":["key","input_kind","input_ref"],"title":"CandidateRefIn"},"ChannelOut":{"properties":{"kind":{"type":"string","title":"Kind"},"enabled":{"type":"boolean","title":"Enabled"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"last_delivery_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Delivery At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"feed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed Url"},"target_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Hint"}},"type":"object","required":["kind","enabled"],"title":"ChannelOut"},"ChannelsOut":{"properties":{"channels":{"items":{"$ref":"#/components/schemas/ChannelOut"},"type":"array","title":"Channels"},"telegram_available":{"type":"boolean","title":"Telegram Available"}},"type":"object","required":["channels","telegram_available"],"title":"ChannelsOut"},"CompaniesOut":{"properties":{"companies":{"items":{"$ref":"#/components/schemas/CompanySummaryOut"},"type":"array","title":"Companies"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["companies","page","pages"],"title":"CompaniesOut"},"CompanyOut":{"properties":{"ticker":{"type":"string","title":"Ticker"},"name":{"type":"string","title":"Name"},"cik":{"type":"string","title":"Cik"}},"type":"object","required":["ticker","name","cik"],"title":"CompanyOut"},"CompanyPageOut":{"properties":{"company":{"$ref":"#/components/schemas/CompanyOut"},"filings":{"items":{"$ref":"#/components/schemas/FilingRowOut"},"type":"array","title":"Filings"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"},"indexable":{"type":"boolean","title":"Indexable"}},"type":"object","required":["company","filings","page","pages","indexable"],"title":"CompanyPageOut"},"CompanySummaryOut":{"properties":{"ticker":{"type":"string","title":"Ticker"},"name":{"type":"string","title":"Name"},"cik":{"type":"string","title":"Cik"},"filings_count":{"type":"integer","title":"Filings Count"},"latest_filed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Filed At"},"latest_filing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Latest Filing Date"}},"type":"object","required":["ticker","name","cik","filings_count","latest_filed_at","latest_filing_date"],"title":"CompanySummaryOut"},"DeadLetterActionIn":{"properties":{"job_type":{"type":"string","maxLength":64,"minLength":1,"title":"Job Type"},"error":{"type":"string","maxLength":300,"title":"Error","default":""}},"type":"object","required":["job_type"],"title":"DeadLetterActionIn"},"EmailPrefsIn":{"properties":{"resume":{"type":"boolean","title":"Resume","default":false}},"type":"object","title":"EmailPrefsIn"},"EmailPrefsOut":{"properties":{"suppressed":{"type":"boolean","title":"Suppressed"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["suppressed","reason"],"title":"EmailPrefsOut"},"EnabledIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"EnabledIn"},"EntityMuteIn":{"properties":{"muted":{"type":"boolean","title":"Muted"}},"type":"object","required":["muted"],"title":"EntityMuteIn"},"EntityMuteOut":{"properties":{"muted":{"type":"boolean","title":"Muted"}},"type":"object","required":["muted"],"title":"EntityMuteOut"},"EntityRefOut":{"properties":{"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"},"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"cik":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cik"}},"type":"object","required":["ticker","name"],"title":"EntityRefOut","description":"Display info for an entry's entity so the UI never shows a raw id.\n\n``type`` is one of ticker | company | topic | person | organization.\n``cik`` is the SEC identity and is meaningful ONLY for company/ticker rows:\nthere a null means \"no SEC coverage yet — filings won't be flagged; the\nhourly EDGAR sync may still backfill it\" (same contract as\n/internal/entities/resolve). Topics, people and organizations always carry\n``cik: null`` and must never be badged as missing SEC coverage."},"EntityResolveIn":{"properties":{"query":{"type":"string","maxLength":120,"minLength":1,"title":"Query"},"kind":{"anyOf":[{"type":"string","enum":["company","ticker","topic","person","organization"]},{"type":"null"}],"title":"Kind"}},"type":"object","required":["query"],"title":"EntityResolveIn"},"EntityResolveOut":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"},"cik":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cik"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["id","type","name","ticker","created"],"title":"EntityResolveOut"},"EntitySearchOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"},"kind":{"type":"string","title":"Kind"},"cik":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cik"}},"type":"object","required":["id","name","ticker","kind"],"title":"EntitySearchOut"},"EntryCreate":{"properties":{"entity_id":{"type":"integer","title":"Entity Id"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"sec_keyword_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sec Keyword Alerts"}},"type":"object","required":["entity_id"],"title":"EntryCreate"},"EntryOut":{"properties":{"id":{"type":"integer","title":"Id"},"watchlist_id":{"type":"integer","title":"Watchlist Id"},"entity_id":{"type":"integer","title":"Entity Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"sec_keyword_alerts":{"type":"boolean","title":"Sec Keyword Alerts","default":false},"entity":{"anyOf":[{"$ref":"#/components/schemas/EntityRefOut"},{"type":"null"}]},"already_present":{"type":"boolean","title":"Already Present","default":false}},"type":"object","required":["id","watchlist_id","entity_id","note"],"title":"EntryOut"},"EntryUpdate":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"sec_keyword_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sec Keyword Alerts"}},"type":"object","title":"EntryUpdate","description":"PATCH body — only the fields PRESENT in the request change.\n\n``{\"note\": null}`` clears the note; ``{\"sec_keyword_alerts\": true}``\nalone leaves the note untouched."},"FeedbackIn":{"properties":{"action":{"type":"string","enum":["save","unsave","rate_up","rate_down","clear_rating","hide","unhide"],"title":"Action"}},"type":"object","required":["action"],"title":"FeedbackIn"},"FeedbackStateOut":{"properties":{"saved":{"type":"boolean","title":"Saved"},"rating":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"title":"Rating"},"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["saved","rating","hidden"],"title":"FeedbackStateOut","description":"The user's current feedback state on the item (rating null = unrated)."},"FilingItemOut":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"}},"type":"object","required":["code","label"],"title":"FilingItemOut"},"FilingOut":{"properties":{"accession":{"type":"string","title":"Accession"},"cik":{"type":"string","title":"Cik"},"ticker":{"type":"string","title":"Ticker"},"company":{"type":"string","title":"Company"},"form_type":{"type":"string","title":"Form Type"},"filed_at":{"type":"string","format":"date-time","title":"Filed At"},"filing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Filing Date"},"sec_index_url":{"type":"string","title":"Sec Index Url"},"items":{"items":{"$ref":"#/components/schemas/FilingItemOut"},"type":"array","title":"Items"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"indexable":{"type":"boolean","title":"Indexable"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"previous":{"anyOf":[{"$ref":"#/components/schemas/FilingRefOut"},{"type":"null"}]}},"type":"object","required":["accession","cik","ticker","company","form_type","filed_at","filing_date","sec_index_url","items","summary","bullets","excerpt","indexable","updated_at","previous"],"title":"FilingOut"},"FilingRefOut":{"properties":{"accession":{"type":"string","title":"Accession"},"form_type":{"type":"string","title":"Form Type"},"filed_at":{"type":"string","format":"date-time","title":"Filed At"},"filing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Filing Date"}},"type":"object","required":["accession","form_type","filed_at","filing_date"],"title":"FilingRefOut"},"FilingRowOut":{"properties":{"accession":{"type":"string","title":"Accession"},"form_type":{"type":"string","title":"Form Type"},"filed_at":{"type":"string","format":"date-time","title":"Filed At"},"filing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Filing Date"},"title":{"type":"string","title":"Title"},"summary_snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Snippet"},"indexable":{"type":"boolean","title":"Indexable"}},"type":"object","required":["accession","form_type","filed_at","filing_date","title","summary_snippet","indexable"],"title":"FilingRowOut"},"FilingStreamRowOut":{"properties":{"accession":{"type":"string","title":"Accession"},"form_type":{"type":"string","title":"Form Type"},"filed_at":{"type":"string","format":"date-time","title":"Filed At"},"filing_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Filing Date"},"title":{"type":"string","title":"Title"},"summary_snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Snippet"},"indexable":{"type":"boolean","title":"Indexable"},"ticker":{"type":"string","title":"Ticker"},"company":{"type":"string","title":"Company"}},"type":"object","required":["accession","form_type","filed_at","filing_date","title","summary_snippet","indexable","ticker","company"],"title":"FilingStreamRowOut","description":"A filing row on the cross-company stream, which has to name its own\ncompany (on a company page the heading already does)."},"FilingsStreamOut":{"properties":{"filings":{"items":{"$ref":"#/components/schemas/FilingStreamRowOut"},"type":"array","title":"Filings"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["filings","page","pages"],"title":"FilingsStreamOut"},"FulltextToggleIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"FulltextToggleIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportIn":{"properties":{"jsonl":{"type":"string","maxLength":8000000,"title":"Jsonl"}},"type":"object","required":["jsonl"],"title":"ImportIn"},"ItemDetailOut":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_id":{"type":"integer","title":"Source Id"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"clean_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clean Content"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"entities":{"items":{"$ref":"#/components/schemas/ItemEntityOut"},"type":"array","title":"Entities"},"saved":{"type":"boolean","title":"Saved"},"rating":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"title":"Rating"},"hidden":{"type":"boolean","title":"Hidden"},"is_transcript":{"type":"boolean","title":"Is Transcript"},"content_truncated":{"type":"boolean","title":"Content Truncated"},"source_muted":{"type":"boolean","title":"Source Muted","default":false},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"type":"object","required":["id","title","url","source","source_id","source_type","author","published_at","clean_content","summary","bullets","entities","saved","rating","hidden","is_transcript","content_truncated"],"title":"ItemDetailOut"},"ItemEntityOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"},"muted":{"type":"boolean","title":"Muted","default":false}},"type":"object","required":["id","name","ticker"],"title":"ItemEntityOut"},"LabelIn":{"properties":{"label":{"title":"Label"},"skip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"},"split":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Split"}},"type":"object","title":"LabelIn"},"LifecycleEmailOut":{"properties":{"kind":{"type":"string","title":"Kind"},"user_id":{"type":"string","title":"User Id"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"email_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Masked"}},"type":"object","required":["kind","user_id","sent_at","email_masked"],"title":"LifecycleEmailOut"},"McpTokenOut":{"properties":{"token":{"type":"string","title":"Token"},"token_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Prefix"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["token","token_prefix","created_at","expires_at"],"title":"McpTokenOut"},"MissingBriefsOut":{"properties":{"brief_date":{"type":"string","format":"date","title":"Brief Date"},"expected":{"type":"integer","title":"Expected"},"missing":{"type":"integer","title":"Missing"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"user_ids":{"items":{"type":"string"},"type":"array","title":"User Ids"},"recipients_view_available":{"type":"boolean","title":"Recipients View Available"}},"type":"object","required":["brief_date","expected","missing","limit","offset","user_ids","recipients_view_available"],"title":"MissingBriefsOut"},"ModelLabIn":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"stage":{"type":"string","enum":["enrich","synthesis","both"],"title":"Stage","default":"both"},"enrich_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrich Model"},"synthesis_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synthesis Model"},"items":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Items","default":6},"window_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Window Days","default":7}},"type":"object","title":"ModelLabIn"},"MuteIn":{"properties":{"muted":{"type":"boolean","title":"Muted"}},"type":"object","required":["muted"],"title":"MuteIn"},"MuteOut":{"properties":{"muted":{"type":"boolean","title":"Muted"}},"type":"object","required":["muted"],"title":"MuteOut"},"MutedEntityOut":{"properties":{"entity_id":{"type":"integer","title":"Entity Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"}},"type":"object","required":["entity_id","name","ticker"],"title":"MutedEntityOut"},"OpmlImportIn":{"properties":{"opml":{"type":"string","minLength":1,"title":"Opml","description":"The OPML document text"}},"type":"object","required":["opml"],"title":"OpmlImportIn"},"OpmlImportOut":{"properties":{"feeds":{"type":"integer","title":"Feeds"},"sources_created":{"type":"integer","title":"Sources Created"},"subscriptions_created":{"type":"integer","title":"Subscriptions Created"},"skipped":{"type":"integer","title":"Skipped","default":0}},"type":"object","required":["feeds","sources_created","subscriptions_created"],"title":"OpmlImportOut"},"OpsReportOut":{"properties":{"report_date":{"type":"string","format":"date","title":"Report Date"},"ok":{"type":"boolean","title":"Ok"},"checks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Checks"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["report_date","ok","checks","summary","created_at"],"title":"OpsReportOut"},"PackOut":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"sources":{"items":{"$ref":"#/components/schemas/PackSourceOut"},"type":"array","title":"Sources"},"subscribed":{"type":"integer","title":"Subscribed"},"total":{"type":"integer","title":"Total"},"skipped":{"items":{"$ref":"#/components/schemas/PackSkippedOut"},"type":"array","title":"Skipped","default":[]}},"type":"object","required":["key","title","description","sources","subscribed","total"],"title":"PackOut"},"PackSkippedOut":{"properties":{"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["type","title","reason"],"title":"PackSkippedOut"},"PackSourceOut":{"properties":{"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"subscribed":{"type":"boolean","title":"Subscribed"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["type","title","subscribed"],"title":"PackSourceOut"},"ParseIn":{"properties":{"mode":{"type":"string","enum":["file","text","bluesky","mastodon","github"],"title":"Mode"},"filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Filename"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"handle":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Handle"}},"type":"object","required":["mode"],"title":"ParseIn"},"ParseOut":{"properties":{"format":{"type":"string","title":"Format"},"paid_ok":{"type":"boolean","title":"Paid Ok"},"candidates":{"items":{"$ref":"#/components/schemas/CandidateOut"},"type":"array","title":"Candidates"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"},"notice_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice Code"},"notice_values":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"type":"object","title":"Notice Values","default":{}}},"type":"object","required":["format","paid_ok","candidates"],"title":"ParseOut"},"PlanLimitsOut":{"properties":{"watchlist_entries":{"type":"integer","title":"Watchlist Entries"},"sources":{"type":"integer","title":"Sources"},"coverage_entities":{"type":"integer","title":"Coverage Entities"},"alerts_per_day":{"type":"integer","title":"Alerts Per Day"},"on_demand_ops_per_day":{"type":"integer","title":"On Demand Ops Per Day","default":0},"editions_per_day":{"type":"integer","title":"Editions Per Day","default":1}},"type":"object","required":["watchlist_entries","sources","coverage_entities","alerts_per_day"],"title":"PlanLimitsOut"},"PlanOut":{"properties":{"tier":{"type":"string","enum":["max","paid","trial","free","none","unknown"],"title":"Tier"},"weekly_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Day"},"limits":{"$ref":"#/components/schemas/PlanLimitsOut"},"paid_features":{"type":"boolean","title":"Paid Features"}},"type":"object","required":["tier","limits","paid_features"],"title":"PlanOut"},"PodcastHitOut":{"properties":{"title":{"type":"string","title":"Title"},"author":{"type":"string","title":"Author"},"feed_url":{"type":"string","title":"Feed Url"},"artwork_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artwork Url"},"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"},"episodes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episodes"}},"type":"object","required":["title","author","feed_url"],"title":"PodcastHitOut"},"PrefsOut":{"properties":{"delivery_hour_local":{"type":"integer","title":"Delivery Hour Local"},"frequency":{"type":"string","title":"Frequency"},"brief_language":{"type":"string","title":"Brief Language"},"alerts_enabled":{"type":"boolean","title":"Alerts Enabled"},"quiet_weekend":{"type":"boolean","title":"Quiet Weekend"},"images_enabled":{"type":"boolean","title":"Images Enabled"},"extra_delivery_hours":{"items":{"type":"integer"},"type":"array","title":"Extra Delivery Hours"},"delivery_hours":{"items":{"type":"integer"},"type":"array","title":"Delivery Hours"},"has_alert_targets":{"type":"boolean","title":"Has Alert Targets","default":false},"plan":{"anyOf":[{"$ref":"#/components/schemas/PlanOut"},{"type":"null"}]}},"type":"object","required":["delivery_hour_local","frequency","brief_language","alerts_enabled","quiet_weekend","images_enabled"],"title":"PrefsOut"},"PrefsUpdateIn":{"properties":{"delivery_hour_local":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Delivery Hour Local"},"frequency":{"anyOf":[{"type":"string","enum":["daily","weekdays","weekly"]},{"type":"null"}],"title":"Frequency"},"brief_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief Language"},"alerts_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alerts Enabled"},"quiet_weekend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quiet Weekend"},"images_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Images Enabled"},"extra_delivery_hours":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Extra Delivery Hours"}},"additionalProperties":false,"type":"object","title":"PrefsUpdateIn","description":"Partial update: only the provided fields change (unknown fields are 422)."},"ProfileEntryIn":{"properties":{"label":{"type":"string","maxLength":200,"title":"Label"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","required":["label"],"title":"ProfileEntryIn"},"ProfileIn":{"properties":{"name":{"type":"string","maxLength":128,"title":"Name"},"entities":{"items":{"$ref":"#/components/schemas/ProfileEntryIn"},"type":"array","maxItems":200,"title":"Entities"},"themes":{"items":{"$ref":"#/components/schemas/ProfileEntryIn"},"type":"array","maxItems":200,"title":"Themes"}},"type":"object","required":["name"],"title":"ProfileIn"},"ProposeIn":{"properties":{"count":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Count","default":20},"days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Days"},"profile_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id"},"source_user_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Source User Id"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"}},"type":"object","title":"ProposeIn"},"ProviderTestIn":{"properties":{"target":{"type":"string","title":"Target","default":"llm"}},"type":"object","title":"ProviderTestIn"},"PurgeOut":{"properties":{"deleted":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deleted"},"kept":{"additionalProperties":{"type":"string"},"type":"object","title":"Kept"}},"type":"object","required":["deleted","kept"],"title":"PurgeOut"},"QaCitationOut":{"properties":{"item_id":{"type":"integer","title":"Item Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["item_id","url","title"],"title":"QaCitationOut"},"QaIn":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"}},"type":"object","required":["question"],"title":"QaIn"},"QaOut":{"properties":{"answer":{"type":"string","title":"Answer"},"citations":{"items":{"$ref":"#/components/schemas/QaCitationOut"},"type":"array","title":"Citations"}},"type":"object","required":["answer","citations"],"title":"QaOut"},"RecentItemOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"source":{"type":"string","title":"Source"},"published_at":{"type":"string","title":"Published At"},"materiality":{"type":"number","title":"Materiality"},"section":{"type":"string","title":"Section"},"matched_watchlist":{"items":{"type":"string"},"type":"array","title":"Matched Watchlist"}},"type":"object","required":["id","title","url","source","published_at","materiality","section","matched_watchlist"],"title":"RecentItemOut"},"RecentOut":{"properties":{"since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"},"items":{"items":{"$ref":"#/components/schemas/RecentItemOut"},"type":"array","title":"Items"}},"type":"object","required":["since","items"],"title":"RecentOut","description":"Watchlist hits since the reader's last brief."},"ResendIn":{"properties":{"user_id":{"type":"string","title":"User Id"},"brief_date":{"type":"string","format":"date","title":"Brief Date"}},"type":"object","required":["user_id","brief_date"],"title":"ResendIn"},"ResendOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"user_id":{"type":"string","title":"User Id"},"brief_date":{"type":"string","format":"date","title":"Brief Date"},"result":{"type":"string","title":"Result"}},"type":"object","required":["ok","user_id","brief_date","result"],"title":"ResendOut"},"ResolveIn":{"properties":{"candidates":{"items":{"$ref":"#/components/schemas/CandidateRefIn"},"type":"array","maxItems":10,"minItems":1,"title":"Candidates"}},"type":"object","required":["candidates"],"title":"ResolveIn"},"ResolveOut":{"properties":{"results":{"items":{"$ref":"#/components/schemas/CandidateOut"},"type":"array","title":"Results"},"pending":{"items":{"type":"string"},"type":"array","title":"Pending"}},"type":"object","required":["results","pending"],"title":"ResolveOut"},"ResolvedLinkOut":{"properties":{"url":{"type":"string","title":"Url"},"host":{"type":"string","title":"Host"},"interstitial":{"type":"boolean","title":"Interstitial"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name"}},"type":"object","required":["url","host","interstitial"],"title":"ResolvedLinkOut"},"RunIn":{"properties":{"set":{"type":"string","maxLength":32,"title":"Set"},"runner":{"type":"string","maxLength":64,"title":"Runner"},"split":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Split"},"model":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Model"},"repeats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Repeats"},"profile_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Id"},"max_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Cost Usd"}},"type":"object","required":["set","runner"],"title":"RunIn"},"SavedItemOut":{"properties":{"item_id":{"type":"integer","title":"Item Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["item_id","title","url","source","published_at","summary"],"title":"SavedItemOut"},"SearchHitOut":{"properties":{"item_id":{"type":"integer","title":"Item Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"snippet":{"type":"string","title":"Snippet"},"score":{"type":"number","title":"Score"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["item_id","title","url","snippet","score","published_at"],"title":"SearchHitOut"},"SenderOut":{"properties":{"id":{"type":"integer","title":"Id"},"sender_email":{"type":"string","title":"Sender Email"},"sender_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Domain"},"status":{"type":"string","title":"Status"},"spf_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spf Result"},"dkim_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dkim Result"},"dmarc_result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dmarc Result"},"message_count":{"type":"integer","title":"Message Count"},"spoof_count":{"type":"integer","title":"Spoof Count"},"last_spoof_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Spoof At"}},"type":"object","required":["id","sender_email","sender_domain","status","spf_result","dkim_result","dmarc_result","message_count","spoof_count","last_spoof_at"],"title":"SenderOut"},"SettingsUpdateIn":{"properties":{"updates":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"null"}]},"type":"object","title":"Updates"}},"type":"object","required":["updates"],"title":"SettingsUpdateIn"},"SitemapEntryOut":{"properties":{"path":{"type":"string","title":"Path"},"lastmod":{"type":"string","format":"date-time","title":"Lastmod"}},"type":"object","required":["path","lastmod"],"title":"SitemapEntryOut"},"SitemapOut":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/SitemapEntryOut"},"type":"array","title":"Entries"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["entries","pages"],"title":"SitemapOut"},"SourceHealthOut":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"url_or_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url Or Handle"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"active":{"type":"boolean","title":"Active"},"consecutive_failures":{"type":"integer","title":"Consecutive Failures"},"last_success_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Success At"},"subscriber_count":{"type":"integer","title":"Subscriber Count"},"fulltext":{"type":"boolean","title":"Fulltext","default":false}},"type":"object","required":["id","type","url_or_handle","title","active","consecutive_failures","last_success_at","subscriber_count"],"title":"SourceHealthOut"},"SourceIn":{"properties":{"type":{"type":"string","enum":["rss","podcast","youtube","bluesky","telegram"],"title":"Type"},"url_or_handle":{"type":"string","maxLength":2048,"minLength":1,"title":"Url Or Handle"},"folder":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Folder"},"private":{"type":"boolean","title":"Private","default":false}},"type":"object","required":["type","url_or_handle"],"title":"SourceIn"},"SourcePatchIn":{"properties":{"folder":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Folder"}},"type":"object","title":"SourcePatchIn"},"SuggestionOut":{"properties":{"type":{"type":"string","title":"Type"},"ref":{"type":"string","title":"Ref"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"title_sig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Sig"},"confidence":{"type":"string","title":"Confidence","default":"high"},"private":{"type":"boolean","title":"Private","default":false},"subscribed":{"type":"boolean","title":"Subscribed","default":false},"paid":{"type":"boolean","title":"Paid","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"note_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note Code"},"note_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note Detail"},"watch_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Watch Kind"}},"type":"object","required":["type","ref"],"title":"SuggestionOut"},"SuppressionOut":{"properties":{"id":{"type":"integer","title":"Id"},"email_masked":{"type":"string","title":"Email Masked"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email_masked","user_id","reason","created_at"],"title":"SuppressionOut"},"TelegramLinkOut":{"properties":{"link":{"type":"string","title":"Link"},"expires_in_minutes":{"type":"integer","title":"Expires In Minutes"}},"type":"object","required":["link","expires_in_minutes"],"title":"TelegramLinkOut"},"ThreadCreateIn":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"}},"type":"object","title":"ThreadCreateIn"},"ThreadCreatedOut":{"properties":{"thread_id":{"type":"integer","title":"Thread Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["thread_id","title"],"title":"ThreadCreatedOut"},"ThreadDetailOut":{"properties":{"thread_id":{"type":"integer","title":"Thread Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"entity":{"anyOf":[{"$ref":"#/components/schemas/ThreadEntityOut"},{"type":"null"}]},"messages":{"items":{"$ref":"#/components/schemas/ThreadMessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["thread_id","title","entity","messages"],"title":"ThreadDetailOut"},"ThreadEntityOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"}},"type":"object","required":["id","name","ticker"],"title":"ThreadEntityOut"},"ThreadListOut":{"properties":{"thread_id":{"type":"integer","title":"Thread Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count"}},"type":"object","required":["thread_id","title","updated_at","message_count"],"title":"ThreadListOut"},"ThreadMessageIn":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id"}},"type":"object","required":["question"],"title":"ThreadMessageIn"},"ThreadMessageOut":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"citations":{"anyOf":[{"items":{"$ref":"#/components/schemas/QaCitationOut"},"type":"array"},{"type":"null"}],"title":"Citations"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["role","content","citations","created_at"],"title":"ThreadMessageOut"},"TimelineEntityOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker"},"kind":{"type":"string","title":"Kind"},"cik":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cik"}},"type":"object","required":["id","name","ticker","kind"],"title":"TimelineEntityOut"},"TimelineItemOut":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"kind":{"type":"string","title":"Kind"}},"type":"object","required":["id","title","url","source","published_at","summary","kind"],"title":"TimelineItemOut"},"TimelineOut":{"properties":{"entity":{"$ref":"#/components/schemas/TimelineEntityOut"},"items":{"items":{"$ref":"#/components/schemas/TimelineItemOut"},"type":"array","title":"Items"}},"type":"object","required":["entity","items"],"title":"TimelineOut"},"TopicItemOut":{"properties":{"title":{"type":"string","title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"outlet":{"type":"string","title":"Outlet"},"source":{"$ref":"#/components/schemas/app__api__public_topics__SourceOut"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"summary":{"type":"string","title":"Summary"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"}},"type":"object","required":["title","url","outlet","source","published_at","summary","bullets","excerpt"],"title":"TopicItemOut"},"TopicPageOut":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"group":{"type":"string","title":"Group"},"group_title":{"type":"string","title":"Group Title"},"items":{"items":{"$ref":"#/components/schemas/TopicItemOut"},"type":"array","title":"Items"},"sources":{"items":{"$ref":"#/components/schemas/app__api__public_topics__SourceOut"},"type":"array","title":"Sources"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"},"items_count":{"type":"integer","title":"Items Count"},"latest_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Published At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"indexable":{"type":"boolean","title":"Indexable"}},"type":"object","required":["slug","title","description","group","group_title","items","sources","page","pages","items_count","latest_published_at","updated_at","indexable"],"title":"TopicPageOut"},"TopicSummaryOut":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"group":{"type":"string","title":"Group"},"group_title":{"type":"string","title":"Group Title"},"items_count":{"type":"integer","title":"Items Count"},"latest_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Published At"},"indexable":{"type":"boolean","title":"Indexable"}},"type":"object","required":["slug","title","description","group","group_title","items_count","latest_published_at","indexable"],"title":"TopicSummaryOut"},"TopicsOut":{"properties":{"topics":{"items":{"$ref":"#/components/schemas/TopicSummaryOut"},"type":"array","title":"Topics"},"groups":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Groups"}},"type":"object","required":["topics","groups"],"title":"TopicsOut"},"TranscribeRecentIn":{"properties":{"days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Days","default":7}},"type":"object","title":"TranscribeRecentIn"},"UnsubscribeIn":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"UnsubscribeIn"},"UsageOut":{"properties":{"ops_used":{"type":"integer","title":"Ops Used"},"ops_limit":{"type":"integer","title":"Ops Limit"},"cost_capped":{"type":"boolean","title":"Cost Capped"},"byok":{"type":"boolean","title":"Byok","default":false}},"type":"object","required":["ops_used","ops_limit","cost_capped"],"title":"UsageOut"},"UserBriefOut":{"properties":{"brief_date":{"type":"string","format":"date","title":"Brief Date"},"status":{"type":"string","title":"Status"},"flagged_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagged Reason"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"has_content":{"type":"boolean","title":"Has Content"}},"type":"object","required":["brief_date","status","flagged_reason","sent_at","has_content"],"title":"UserBriefOut"},"UserOverviewOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"in_recipients_view":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Recipients View"},"recipients_view_available":{"type":"boolean","title":"Recipients View Available"},"email_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Masked"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"prefs":{"additionalProperties":true,"type":"object","title":"Prefs"},"sources_total":{"type":"integer","title":"Sources Total"},"sources_failing":{"type":"integer","title":"Sources Failing"},"last_source_success_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Source Success At"},"watchlists":{"type":"integer","title":"Watchlists"},"qa_threads":{"type":"integer","title":"Qa Threads"},"mcp_tokens":{"type":"integer","title":"Mcp Tokens"},"briefs":{"items":{"$ref":"#/components/schemas/UserBriefOut"},"type":"array","title":"Briefs"},"queue_jobs":{"items":{"$ref":"#/components/schemas/UserQueueJobOut"},"type":"array","title":"Queue Jobs"},"suppression":{"anyOf":[{"$ref":"#/components/schemas/SuppressionOut"},{"type":"null"}]}},"type":"object","required":["user_id","in_recipients_view","recipients_view_available","email_masked","timezone","prefs","sources_total","sources_failing","last_source_success_at","watchlists","qa_threads","mcp_tokens","briefs","queue_jobs","suppression"],"title":"UserOverviewOut"},"UserQueueJobOut":{"properties":{"id":{"type":"integer","title":"Id"},"job_type":{"type":"string","title":"Job Type"},"status":{"type":"string","title":"Status"},"attempt_count":{"type":"integer","title":"Attempt Count"},"max_attempts":{"type":"integer","title":"Max Attempts"},"run_after":{"type":"string","format":"date-time","title":"Run After"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["id","job_type","status","attempt_count","max_attempts","run_after","updated_at","last_error"],"title":"UserQueueJobOut"},"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"},"WatchlistCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"WatchlistCreate"},"WatchlistOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"entries":{"anyOf":[{"items":{"$ref":"#/components/schemas/EntryOut"},"type":"array"},{"type":"null"}],"title":"Entries"}},"type":"object","required":["id","name"],"title":"WatchlistOut"},"WatchlistRename":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"WatchlistRename"},"WebhookIn":{"properties":{"kind":{"type":"string","title":"Kind"},"url":{"type":"string","maxLength":400,"minLength":1,"title":"Url"}},"type":"object","required":["kind","url"],"title":"WebhookIn"},"app__api__public_topics__SourceOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"licence":{"type":"string","title":"Licence"},"licence_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence Url"},"homepage":{"type":"string","title":"Homepage"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution"},"modification_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modification Note"}},"type":"object","required":["key","name","licence","licence_url","homepage","attribution","modification_note"],"title":"SourceOut","description":"One licence family a page shows content of — and its licence terms.\n\n``attribution`` and ``modification_note`` are licence CONDITIONS for the\nfamilies that have them (OGL v3, CC BY 4.0), not decoration: the page\nprints every one it is given."},"app__api__sources__SourceOut":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"muted":{"type":"boolean","title":"Muted"},"active":{"type":"boolean","title":"Active"},"consecutive_failures":{"type":"integer","title":"Consecutive Failures"},"auto":{"type":"boolean","title":"Auto","default":false},"auto_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Label"},"auto_entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Entity Id"},"auto_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Entity Name"},"recent_items":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recent Items"},"auto_kind":{"anyOf":[{"type":"string","enum":["news","primary"]},{"type":"null"}],"title":"Auto Kind"},"plan_paused":{"type":"boolean","title":"Plan Paused","default":false},"private":{"type":"boolean","title":"Private","default":false}},"type":"object","required":["id","type","url","address","title","folder","muted","active","consecutive_failures"],"title":"SourceOut"}}}}