{"openapi":"3.1.0","info":{"title":"schwur.ch API","version":"v0.43.0"},"paths":{"/api/v1/health":{"get":{"tags":["system"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthOut"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthOut"}}}}}}},"/api/v1/topics":{"get":{"tags":["catalog"],"summary":"Topics","operationId":"topics_api_v1_topics_get","parameters":[{"name":"roots","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Roots"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopicOut"},"title":"Response Topics Api V1 Topics Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects":{"get":{"tags":["catalog"],"summary":"Political Objects","operationId":"political_objects_api_v1_political_objects_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"topic","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoliticalObjectPageOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/stages":{"get":{"tags":["catalog"],"summary":"Stages","description":"How many proposals stand at each status: the counts on /vorlagen's tabs.","operationId":"stages_api_v1_stages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagesOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/political-objects/{ref}":{"get":{"tags":["catalog"],"summary":"Political Object","description":"`ref` is the UUID or the slug (bilaterale-iii).","operationId":"political_object_api_v1_political_objects__ref__get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoliticalObjectDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/impacts":{"get":{"tags":["catalog"],"summary":"Political Object Impacts","description":"Impacts with the headline estimate of `scenario` (default PROPOSAL_ACCEPTED).\nDrafts are shown only to editors who ask for them.","operationId":"political_object_impacts_api_v1_political_objects__ref__impacts_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"scenario","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpactListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/cantons/finances/export":{"get":{"tags":["cantons"],"summary":"Export Csv","operationId":"export_csv_api_v1_cantons_finances_export_get","parameters":[{"name":"release_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Release Id"}},{"name":"canton","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton"}},{"name":"household","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Household"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2200,"minimum":2024},{"type":"null"}],"title":"Year"}},{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"enum":["F01","F02","F03","F04","F05","F06"],"type":"string"},{"type":"null"}],"title":"Family"}},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"dimension","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/ballots":{"get":{"tags":["cantons"],"summary":"Ballots","operationId":"ballots_api_v1_cantons_ballots_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/schwur_api__cantonal_dto__BallotOut"},"title":"Response Ballots Api V1 Cantons Ballots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/ballots/coverage":{"get":{"tags":["cantons"],"summary":"Ballot Coverage","operationId":"ballot_coverage_api_v1_cantons_ballots_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BallotCoverageOut"},"type":"array","title":"Response Ballot Coverage Api V1 Cantons Ballots Coverage Get"}}}}}}},"/api/v1/cantons/ballots/{ballot_id}":{"get":{"tags":["cantons"],"summary":"Ballot","operationId":"ballot_api_v1_cantons_ballots__ballot_id__get","parameters":[{"name":"ballot_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ballot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__cantonal_dto__BallotOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/{code}/elections":{"get":{"tags":["cantons"],"summary":"Elections","operationId":"elections_api_v1_cantons__code__elections_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ElectionOut"},"title":"Response Elections Api V1 Cantons  Code  Elections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons":{"get":{"tags":["cantons"],"summary":"Cantons","operationId":"cantons_api_v1_cantons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CantonOut"},"type":"array","title":"Response Cantons Api V1 Cantons Get"}}}}}}},"/api/v1/cantons/finances/coverage":{"get":{"tags":["cantons"],"summary":"Coverage","operationId":"coverage_api_v1_cantons_finances_coverage_get","parameters":[{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__cantonal_dto__CoverageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/finances/observations":{"get":{"tags":["cantons"],"summary":"Observations","operationId":"observations_api_v1_cantons_finances_observations_get","parameters":[{"name":"canton","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"title":"Canton"}},{"name":"household","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Household"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2200,"minimum":2024},{"type":"null"}],"title":"Year"}},{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"enum":["F01","F02","F03","F04","F05","F06"],"type":"string"},{"type":"null"}],"title":"Family"}},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"}},{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Model"}},{"name":"dimension","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Dimension"}},{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Account"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/finances/sources/{dataset_id}/sheets":{"get":{"tags":["cantons"],"summary":"Sheets","operationId":"sheets_api_v1_cantons_finances_sources__dataset_id__sheets_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}},{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Sheets Api V1 Cantons Finances Sources  Dataset Id  Sheets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/finances/sources/{dataset_id}/sheets/{name}":{"get":{"tags":["cantons"],"summary":"Sheet","operationId":"sheet_api_v1_cantons_finances_sources__dataset_id__sheets__name__get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SheetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/finances/sources/{dataset_id}/sheets/{name}/export":{"get":{"tags":["cantons"],"summary":"Sheet Csv","operationId":"sheet_csv_api_v1_cantons_finances_sources__dataset_id__sheets__name__export_get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"release_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Release Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cantons/{code}/finances":{"get":{"tags":["cantons"],"summary":"Account","operationId":"account_api_v1_cantons__code__finances_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2200,"minimum":2024},{"type":"null"}],"title":"Year"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["ktn","gdn","ktn_gdn"],"type":"string","default":"ktn","title":"Scope"}},{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__cantonal_dto__AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities":{"get":{"tags":["municipalities"],"summary":"Directory","operationId":"directory_api_v1_municipalities_get","parameters":[{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"At"}},{"name":"canton","in":"query","required":false,"schema":{"type":"string","maxLength":2,"pattern":"^([A-Za-z]{2})?$","default":"","title":"Canton"}},{"name":"district","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"District"}},{"name":"pilot","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Pilot"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities/sources/{snapshot_id}/download":{"get":{"tags":["municipalities"],"summary":"Original","operationId":"original_api_v1_municipalities_sources__snapshot_id__download_get","parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities/{bfs}":{"get":{"tags":["municipalities"],"summary":"Profile","operationId":"profile_api_v1_municipalities__bfs__get","parameters":[{"name":"bfs","in":"path","required":true,"schema":{"type":"integer","title":"Bfs"}},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"At"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities/{bfs}/finances":{"get":{"tags":["municipalities"],"summary":"Finances","operationId":"finances_api_v1_municipalities__bfs__finances_get","parameters":[{"name":"bfs","in":"path","required":true,"schema":{"type":"integer","title":"Bfs"}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","maximum":2200,"minimum":2024,"default":2024,"title":"Year"}},{"name":"basis","in":"query","required":false,"schema":{"enum":["ACTUAL","BUDGET","PAYMENT","INDICATOR"],"type":"string","default":"ACTUAL","title":"Basis"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"snapshot_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":50},{"type":"null"}],"title":"Snapshot Ids"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancePageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities/{bfs}/finances/export":{"get":{"tags":["municipalities"],"summary":"Export Finances","operationId":"export_finances_api_v1_municipalities__bfs__finances_export_get","parameters":[{"name":"bfs","in":"path","required":true,"schema":{"type":"integer","title":"Bfs"}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","maximum":2200,"minimum":2024,"default":2024,"title":"Year"}},{"name":"basis","in":"query","required":false,"schema":{"enum":["ACTUAL","BUDGET","PAYMENT","INDICATOR"],"type":"string","default":"ACTUAL","title":"Basis"}},{"name":"snapshot_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":50},{"type":"null"}],"title":"Snapshot Ids"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities/{bfs}/politics":{"get":{"tags":["municipalities"],"summary":"Politics","operationId":"politics_api_v1_municipalities__bfs__politics_get","parameters":[{"name":"bfs","in":"path","required":true,"schema":{"type":"integer","title":"Bfs"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoliticsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/municipalities/{bfs}/coverage":{"get":{"tags":["municipalities"],"summary":"Coverage","operationId":"coverage_api_v1_municipalities__bfs__coverage_get","parameters":[{"name":"bfs","in":"path","required":true,"schema":{"type":"integer","title":"Bfs"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MunicipalCoverageOut"},"title":"Response Coverage Api V1 Municipalities  Bfs  Coverage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/impacts/{impact_id}":{"get":{"tags":["impacts"],"summary":"Impact","operationId":"impact_api_v1_impacts__impact_id__get","parameters":[{"name":"impact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Impact Id"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpactDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/impacts/{impact_id}/estimates":{"get":{"tags":["impacts"],"summary":"Estimates","description":"Every public estimate of the impact, in every scenario - current and\nsuperseded alike, newest first within a scenario.","operationId":"estimates_api_v1_impacts__impact_id__estimates_get","parameters":[{"name":"impact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Impact Id"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EstimateOut"},"title":"Response Estimates Api V1 Impacts  Impact Id  Estimates Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/impacts/{impact_id}/evidence":{"get":{"tags":["impacts"],"summary":"Evidence","description":"Each citation with its full chain: fragment -> source version -> source ->\npublisher. Evidence of the impact itself first, then of its estimates.","operationId":"evidence_api_v1_impacts__impact_id__evidence_get","parameters":[{"name":"impact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Impact Id"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvidenceOut"},"title":"Response Evidence Api V1 Impacts  Impact Id  Evidence Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sources/{source_id}":{"get":{"tags":["sources"],"summary":"Source","description":"The source, every immutable version of it (newest first), and the fragments\nof the current version with how often each is cited.","operationId":"source_api_v1_sources__source_id__get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/datasets/{ref}":{"get":{"tags":["datasets"],"summary":"Dataset","description":"A dataset by id or key, with every version (newest first, superseded ones\nincluded) and the observations each version states.","operationId":"dataset_api_v1_datasets__ref__get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/model-runs/{run_id}":{"get":{"tags":["models"],"summary":"Model Run","description":"One evaluation of a model version: the observations it read, each with the\npassage and source that state it; the parameters and result of LOW, CENTRAL\nand HIGH; the estimates it produced; and whether an input has since been\nsuperseded (`analysis_run.stale`).","operationId":"model_run_api_v1_model_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRunOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/legal-impacts/{legal_impact_id}/trace":{"get":{"tags":["legal"],"summary":"Trace","description":"The whole path of a legal impact: the agreement provision, the EU law it\nrefers to, the Swiss provisions that implement it, the legal impact itself,\nthe quantitative impacts it is linked to with their current estimates - and\nthe cited fragments at every step. Only curated relations; nothing inferred.","operationId":"trace_api_v1_legal_impacts__legal_impact_id__trace_get","parameters":[{"name":"legal_impact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Legal Impact Id"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalTraceOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/political-objects/{ref}/legal-impacts":{"get":{"tags":["legal"],"summary":"Legal Impacts","description":"The legal impacts of a political object, each with the provision it changes.","operationId":"legal_impacts_api_v1_political_objects__ref__legal_impacts_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalImpactListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/legal-documents/{ref}":{"get":{"tags":["legal"],"summary":"Legal Document","description":"A legal document by id or key: every version with its provisions in document\norder, each with its wording, and the latest coverage report.","operationId":"legal_document_api_v1_legal_documents__ref__get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalDocumentOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parliament":{"get":{"tags":["parliament"],"summary":"Parliament","description":"The sitting members of both chambers and the groups' seats. The data are the\nParliamentary Services' own, in their language; `lang` sets Content-Language.","operationId":"parliament_api_v1_parliament_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParliamentOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/accounts":{"get":{"tags":["parliament"],"summary":"Accounts","description":"The sitting members' accounts on X, Bluesky, Mastodon and YouTube, for\ndatastore, which reads their public posts for «Stimmen aus dem Rat». Only what the\nmembers' pages show: accounts the member published (the Parliamentary Services,\nWikidata, their own website) or the editors confirmed with evidence; a detail a\nmember had withdrawn is not listed. `read` is false where the member objected to\nbeing read. Public and cacheable: the same data are on every member's page.","operationId":"accounts_api_v1_parliament_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementAccountsOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/parliament/members/{slug}":{"get":{"tags":["parliament"],"summary":"Member","description":"A member and their ballots in the votes the editors tied to a proposal.","operationId":"member_api_v1_parliament_members__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/members/{slug}/record":{"get":{"tags":["parliament"],"summary":"Member Record","description":"Every ballot of a member on the proposals' businesses, with the group's line\nand the result, and - for a signed-in reader - the member's entries in the register\nof interests. One figure, the share of ballots on the group's line, with every\npart of its sum; never a ranking.","operationId":"member_record_api_v1_parliament_members__slug__record_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRecordOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/members/{slug}/record.csv":{"get":{"tags":["parliament"],"summary":"Member Record Csv","operationId":"member_record_csv_api_v1_parliament_members__slug__record_csv_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/votes/{key}":{"get":{"tags":["parliament"],"summary":"Vote","description":"One vote in full: its context, result by group, who voted against their\ngroup's line, who changed course since the overall vote, every ballot, and what\nlets it be checked against parlament.ch. key: nr-36555, sr-8385.","operationId":"vote_api_v1_parliament_votes__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/votes/{key}/ballots.csv":{"get":{"tags":["parliament"],"summary":"Vote Csv","operationId":"vote_csv_api_v1_parliament_votes__key__ballots_csv_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/parliament":{"get":{"tags":["parliament"],"summary":"Object Parliament","description":"The chamber votes the editors tied to a proposal, with every ballot.","operationId":"object_parliament_api_v1_political_objects__ref__parliament_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectParliamentOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/parliament/timeline":{"get":{"tags":["parliament"],"summary":"Object Timeline","description":"Every vote on the proposal's businesses in both chambers, oldest first: stage,\nresult and each group's line.","operationId":"object_timeline_api_v1_political_objects__ref__parliament_timeline_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectTimelineOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/parliament/ballots":{"get":{"tags":["parliament"],"summary":"Object Names","description":"Every name in every vote of one chamber on the proposal's businesses, in the\nchambers' seating order of the groups, then by name. A ballot against the\ngroup's line and a change of course are marked; nothing is sorted by them.","operationId":"object_names_api_v1_political_objects__ref__parliament_ballots_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"council","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Council","default":"NATIONAL"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameMatrixOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/parliament/ballots.csv":{"get":{"tags":["parliament"],"summary":"Object Names Csv","operationId":"object_names_csv_api_v1_political_objects__ref__parliament_ballots_csv_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/admin/parliament/accounts":{"post":{"tags":["admin"],"summary":"Confirm Account","description":"Confirms, with evidence, an account the member publishes nowhere schwur.ch reads.\nIt then shows on the member's page as confirmed by the editors, and in the list.","operationId":"confirm_account_api_v1_admin_parliament_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDecisionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parliament/accounts/withdrawals":{"post":{"tags":["admin"],"summary":"Withdraw Account","description":"Takes the editors' confirmation of an account back, with a reason.","operationId":"withdraw_account_api_v1_admin_parliament_accounts_withdrawals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccountDecisionOut"},"type":"array","title":"Response Withdraw Account Api V1 Admin Parliament Accounts Withdrawals Post"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/parliament/accounts/objections":{"post":{"tags":["admin"],"summary":"Reading Objection","description":"Records a member's objection to having their posts read - on one network or on\nall - or revokes it. The accounts stay on the member's page, as links.","operationId":"reading_objection_api_v1_admin_parliament_accounts_objections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__parliament__ObjectionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingObjectionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/parliament/businesses":{"get":{"tags":["parliament"],"summary":"Businesses","description":"The businesses submitted from 1 March 2026 on and the older ones resolved on\nsince, fifty to a page, the most recently moved first; `task` keeps those under one\nof the Federal Assembly's tasks (docs/parliament-tasks.md).","operationId":"businesses_api_v1_parliament_businesses_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"number or words of the title","title":"Q"},"description":"number or words of the title"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"federal-council, motion, postulate, interpellation, …","title":"Kind"},"description":"federal-council, motion, postulate, interpellation, …"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"description":"open or done","title":"State"},"description":"open or done"},{"name":"council","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"description":"nr or sr: the first council","title":"Council"},"description":"nr or sr: the first council"},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Department"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"the session it was submitted in","title":"Session"},"description":"the session it was submitted in"},{"name":"task","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"gesetzgebung, finanzen, wahlen, …","title":"Task"},"description":"gesetzgebung, finanzen, wahlen, …"},{"name":"author","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"a member's slug: what they submitted","title":"Author"},"description":"a member's slug: what they submitted"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/instruments":{"get":{"tags":["parliament"],"summary":"Instruments","description":"The members' instruments submitted from 1 March 2026 on: how many, where they\nstand in the service's words, the Federal Council's proposals on motions and\npostulates, and how many each group's members submitted. Counts, no ranking.","operationId":"instruments_api_v1_parliament_instruments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentsOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/parliament/members/{slug}/mandate":{"get":{"tags":["parliament"],"summary":"Mandate","description":"A member's mandate from 1 March 2026 on: their ballots by kind (voted, excused,\ndid not take part), their committee seats, what they submitted and co-signed.","operationId":"mandate_api_v1_parliament_members__slug__mandate_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MandateOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/hub":{"get":{"tags":["parliament"],"summary":"Hub","description":"What /parlament opens with: the session running or next, the Federal Assembly's\ntasks with their businesses open and in all, and the chambers' latest resolutions.","operationId":"hub_api_v1_parliament_hub_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParliamentHubOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/parliament/businesses/{number}":{"get":{"tags":["parliament"],"summary":"Business","description":"One business with its texts, bills, committees, the chambers' and committees'\nresolutions, who submitted and co-signed it, and what schwur.ch has on it.","operationId":"business_api_v1_parliament_businesses__number__get","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","title":"Number"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/news":{"get":{"tags":["news"],"summary":"News","description":"The Parliamentary Services' news, newest first, twenty to a page. Titles and\nleads are theirs, unaltered and untranslated: in the language asked for where\nparlament.ch publishes it, otherwise in German; `language` says which. With them\nthe opinions from podcasts and the members' statements, once they appeared.","operationId":"news_api_v1_news_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NewsKind"},{"type":"null"}],"title":"Kind"}},{"name":"object","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"A proposal's slug or id: only the news naming its business number","title":"Object"},"description":"A proposal's slug or id: only the news naming its business number"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"person","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"A member's slug: only their own statements and video notes","title":"Person"},"description":"A member's slug: only their own statements and video notes"},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsPageOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/news/episodes/{episode_id}":{"get":{"tags":["news"],"summary":"News Episode","description":"A podcast episode as the Redaktor cut it: every block with its time span and what\nbecame of it. A block whose opinion has not appeared shows without its label.","operationId":"news_episode_api_v1_news_episodes__episode_id__get","parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpisodeOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/news/{item_id}":{"get":{"tags":["news"],"summary":"News Item","description":"One item, for its page on schwur.ch with the discussion under it. An opinion that\nhas not appeared is there for the editors only.","operationId":"news_item_api_v1_news__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsItemOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/arguments":{"get":{"tags":["arguments"],"summary":"Political Object Arguments","description":"The proposal's arguments, oldest first, each with its impact, its run and the\nsources schwur.ch checked. Pending ones are shown only to editors who ask.","operationId":"political_object_arguments_api_v1_political_objects__ref__arguments_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"include_pending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Pending"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArgumentListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/impacts/{impact_id}/arguments":{"get":{"tags":["arguments"],"summary":"Impact Arguments","description":"The objections to an impact and the case it makes.","operationId":"impact_arguments_api_v1_impacts__impact_id__arguments_get","parameters":[{"name":"impact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Impact Id"}},{"name":"include_pending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Pending"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArgumentOut"},"title":"Response Impact Arguments Api V1 Impacts  Impact Id  Arguments Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/appraisals":{"get":{"tags":["arguments"],"summary":"Queue","description":"What waits for an editor, oldest first, and the recent runs.","operationId":"queue_api_v1_admin_appraisals_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/appraisals/{run_id}":{"get":{"tags":["arguments"],"summary":"Run Items","description":"Every point of one appraisal as it came, and what became of it.","operationId":"run_items_api_v1_admin_appraisals__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppraisalItemOut"},"title":"Response Run Items Api V1 Admin Appraisals  Run Id  Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/appraisals/{run_id}/items/{position}":{"post":{"tags":["arguments"],"summary":"Decide","description":"confirm shows a pending point (and the impact it proposed); reject sets it\naside; set_source fetches an address, checks the passage and backs the point.","operationId":"decide_api_v1_admin_appraisals__run_id__items__position__post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__arguments_dto__DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppraisalItemOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/political-objects/{ref}/appraisal":{"post":{"tags":["arguments"],"summary":"Import Appraisal","description":"An appraisal in the form's shape, taken over as the agent's would be: the\nsources are looked up (or fetched from the address given) and checked.","operationId":"import_appraisal_api_v1_admin_political_objects__ref__appraisal_post","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppraisalIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppraisalRunOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/political-objects/{ref}/appraisal/run":{"post":{"tags":["arguments"],"summary":"Appraise Now","description":"The Gutachter's appraisal of this proposal, now, outside the turn.","operationId":"appraise_now_api_v1_admin_political_objects__ref__appraisal_run_post","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppraisalRunOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/government":{"get":{"tags":["government"],"summary":"Overview","description":"The members of the Federal Council, its tasks with the messages of the last 90\ndays, and the messages of its latest meeting.","operationId":"overview_api_v1_government_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/messages":{"get":{"tags":["government"],"summary":"Messages","description":"The Federal Council's messages since 1.1.2025, newest meeting first; with `task`\nthose the rules place under it, with `unassigned` those no rule places.","operationId":"messages_api_v1_government_messages_get","parameters":[{"name":"task","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Task"},{"type":"null"}],"title":"Task"}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__government_dto__ChronicleOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/tasks/{task}":{"get":{"tags":["government"],"summary":"Task Page","description":"One of the Federal Council's tasks (Art. 180-187 BV): its dispatches, ordinances\nand treaties from Fedlex since 1.1.2025, for EXECUTE the acts coming into force,\nand the messages about it.","operationId":"task_page_api_v1_government_tasks__task__get","parameters":[{"name":"task","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Task"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPageOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/emergency":{"get":{"tags":["government"],"summary":"Emergency Ordinances","description":"The Federal Council's ordinances directly on Art. 184 Abs. 3 or 185 Abs. 3 BV since\n1.5.2011, grouped with their amendments; `basis` 184 or 185 keeps those.","operationId":"emergency_ordinances_api_v1_government_emergency_get","parameters":[{"name":"basis","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^18[45]$"},{"type":"null"}],"title":"Basis"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmergencyOrdinancesOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/goals":{"get":{"tags":["government"],"summary":"Goals","description":"The legislature plan 2023-2027: guidelines and goals, each with its ratings in the\nbusiness reports and the business planned for it in each year's goals.","operationId":"goals_api_v1_government_goals_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalsOverviewOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/goals/{number}":{"get":{"tags":["government"],"summary":"Goal","description":"One goal: its measures, and year by year the business planned for it with what\nthe report says of each.","operationId":"goal_api_v1_government_goals__number__get","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"integer","maximum":99,"minimum":1,"title":"Number"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/parliament":{"get":{"tags":["government"],"summary":"Parliament Duties","description":"What the Federal Council owes Parliament: proposals on motions and postulates,\nanswers to interpellations and questions, the days reckoned from the Parliament\nAct, and the mandates older than two years.","operationId":"parliament_duties_api_v1_government_parliament_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParliamentDutiesOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/government/departments/{code}/messages":{"get":{"tags":["government"],"summary":"Department Messages","description":"The newest messages of a department and its offices since 1.1.2025.","operationId":"department_messages_api_v1_government_departments__code__messages_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z]{2,5}$","title":"Code"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentMessagesOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/results":{"get":{"tags":["results"],"summary":"Object Results","description":"The proposal's result as the BFS publishes it - nationwide, the cantons'\nvotes and each canton - with its counter-proposal and deciding question. `main`\nis null until the editors have mapped the BFS's Vorlage and a file was read.","operationId":"object_results_api_v1_political_objects__ref__results_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectResultsOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/results/cantons/{canton}":{"get":{"tags":["results"],"summary":"Canton Results","description":"One canton's municipalities for the proposal (canton: ZH, BE, ... JU).","operationId":"canton_results_api_v1_political_objects__ref__results_cantons__canton__get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"canton","in":"path","required":true,"schema":{"type":"string","title":"Canton"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CantonResultsOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/results/{vote_date}":{"get":{"tags":["results"],"summary":"Date Results","description":"Every mapped proposal of one vote date with its result, for the home page.","operationId":"date_results_api_v1_results__vote_date__get","parameters":[{"name":"vote_date","in":"path","required":true,"schema":{"type":"string","format":"date","title":"Vote Date"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DateResultsOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/community/activities":{"get":{"tags":["discussion"],"summary":"Community Activities","description":"The ten latest public comments and replies, with short previews.","operationId":"community_activities_api_v1_community_activities_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommunityActivityOut"},"title":"Response Community Activities Api V1 Community Activities Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/political-objects/{ref}/discussion":{"get":{"tags":["discussion"],"summary":"Object Discussion","description":"The posts on a proposal, twenty threads to a page, each with its replies\n(oldest first). Posts are shown as their authors wrote them, untranslated.","operationId":"object_discussion_api_v1_political_objects__ref__discussion_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["new","helpful"],"type":"string","description":"new: newest first; helpful: most often marked helpful first","default":"new","title":"Sort"},"description":"new: newest first; helpful: most often marked helpful first"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"focus","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Focus"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscussionOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}},"post":{"tags":["discussion"],"summary":"Post On Object","operationId":"post_on_object_api_v1_political_objects__ref__discussion_post","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/news/{item_id}/discussion":{"get":{"tags":["discussion"],"summary":"News Discussion","operationId":"news_discussion_api_v1_news__item_id__discussion_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["new","helpful"],"type":"string","description":"new: newest first; helpful: most often marked helpful first","default":"new","title":"Sort"},"description":"new: newest first; helpful: most often marked helpful first"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"focus","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Focus"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscussionOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}},"post":{"tags":["discussion"],"summary":"Post On News","operationId":"post_on_news_api_v1_news__item_id__discussion_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/comments/{comment_id}/replies":{"post":{"tags":["discussion"],"summary":"Reply","description":"A reply joins the thread of the post it answers: there is one level of replies.","operationId":"reply_api_v1_comments__comment_id__replies_post","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/comments/{comment_id}":{"patch":{"tags":["discussion"],"summary":"Edit","description":"By its author, for fifteen minutes after posting (409 after that); a guest in the\nbrowser session they wrote in.","operationId":"edit_api_v1_comments__comment_id__patch","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}},"delete":{"tags":["discussion"],"summary":"Delete","description":"By its author, at any time - a guest, while their browser session lasts. The text\nis gone; replies keep their place.","operationId":"delete_api_v1_comments__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/comments/{comment_id}/helpful":{"put":{"tags":["discussion"],"summary":"Mark Helpful","operationId":"mark_helpful_api_v1_comments__comment_id__helpful_put","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpfulOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}},"delete":{"tags":["discussion"],"summary":"Unmark Helpful","operationId":"unmark_helpful_api_v1_comments__comment_id__helpful_delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpfulOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/account/display-name":{"put":{"tags":["discussion"],"summary":"Set Display Name","description":"2 to 40 characters - letters, digits, spaces and . - _ ' - unique regardless of\ncase and spaces; nothing that poses as schwur.ch or its editors.","operationId":"set_display_name_api_v1_account_display_name_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayNameIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/political-objects/{ref}/chronicle":{"get":{"tags":["discussion"],"summary":"Chronicle","description":"What happened to a proposal, oldest first: the key votes in the chambers, the\nParliamentary Services' news naming its businesses, the editors' links to media\nreports, and the popular vote with its result.","operationId":"chronicle_api_v1_political_objects__ref__chronicle_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__dto__ChronicleOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Service Unavailable"}}}},"/api/v1/civility-feedback":{"post":{"tags":["discussion"],"summary":"Civility Feedback","description":"«Prüfung lag falsch?» on one's own check: a person reads the reason, and the\ndraft only when its author agreed. It unlocks nothing (docs/comments.md). 404 for\nan unknown or someone else's check, 409 when given before, 429 after three a day.","operationId":"civility_feedback_api_v1_civility_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/consultations":{"get":{"tags":["consultations"],"summary":"Consultations","description":"The Confederation's consultations in one state: the open ones closing soonest\nfirst, the planned ones starting soonest first, the closed ones newest first.\nTitles are Fedlex's: official in French and Italian; in English and Ukrainian\nthe German one stands, with a note.","operationId":"consultations_api_v1_consultations_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","maxLength":20,"description":"open, planned or closed","default":"open","title":"State"},"description":"open, planned or closed"},{"name":"authority","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"FEDERAL_COUNCIL, DEPARTMENT, COMMITTEE or OTHER","title":"Authority"},"description":"FEDERAL_COUNCIL, DEPARTMENT, COMMITTEE or OTHER"},{"name":"topic","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Topic"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/consultation":{"get":{"tags":["consultations"],"summary":"Political Object Consultation","description":"A proposal's consultation, with its documents and the acts it would change;\n`consultation` is null for a proposal that has none.","operationId":"political_object_consultation_api_v1_political_objects__ref__consultation_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectConsultationOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/pipeline":{"get":{"tags":["pipeline"],"summary":"Pipeline","description":"The proposals at one status, each with its register entry or consultation and\nwhat comes next on its way - a deadline, the end of a consultation, the vote -\nsoonest first. A reckoned deadline says so and names its rule.","operationId":"pipeline_api_v1_pipeline_get","parameters":[{"name":"status","in":"query","required":true,"schema":{"type":"string","maxLength":40,"description":"A political object's status","title":"Status"},"description":"A political object's status"},{"name":"topic","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Topic"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/political-objects/{ref}/register":{"get":{"tags":["pipeline"],"summary":"Political Object Register","description":"A proposal's entry in the Federal Chancellery's register, with its milestones\nin the BK's words and the deadlines still open; `entry` is null for a proposal\nthat has none.","operationId":"political_object_register_api_v1_political_objects__ref__register_get","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectRegisterOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/calendar":{"get":{"tags":["pipeline"],"summary":"Calendar","description":"The federal vote dates of the next three years with the proposals set on them,\nthe register's deadlines of the next twelve months, and the next reserved date\nwith the latest day the Federal Council sets its proposals (reckoned).","operationId":"calendar_api_v1_calendar_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/admin/pipeline/queue":{"get":{"tags":["pipeline"],"summary":"Upkeep Queue","description":"The referendum deadlines without a notice, the analyses due, the consultations\nFedlex tied to a business, and the notices standing now.","operationId":"upkeep_queue_api_v1_admin_pipeline_queue_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpkeepQueueOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/pipeline/notices":{"post":{"tags":["pipeline"],"summary":"Set Notice","description":"Fetch and store the page, then set the notice on it. A page that is not an\nhttps page or a PDF on the public internet is refused (422, field url).","operationId":"set_notice_api_v1_admin_pipeline_notices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeRefOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/pipeline/notices/{notice_id}/retract":{"post":{"tags":["pipeline"],"summary":"Retract Notice","description":"Take a notice back, with the reason; the notice stays on record.","operationId":"retract_notice_api_v1_admin_pipeline_notices__notice_id__retract_post","parameters":[{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetractIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeRefOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federal":{"get":{"tags":["federal"],"summary":"Federal","description":"The departments' subsidies in the last year the EFV's database has payments\nfor, largest first, and whether the budget has been imported.","operationId":"federal_api_v1_federal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederalOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/federal/finances":{"get":{"tags":["federal"],"summary":"Finances","description":"The federal budget from the EFV's newest budget file: the debt-brake series over\nevery year it holds, and spending by task area in `year` (default: the last year\nof the Rechnung) next to the year before. `available` is false before the first\nimport; a year the file has no spending for is 404.","operationId":"finances_api_v1_federal_finances_get","parameters":[{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1900},{"type":"null"}],"title":"Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancesOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/finances/series":{"get":{"tags":["federal"],"summary":"Finance Series","description":"The catalogue of the newest budget file: every series it holds, not only the ones\na page shows, with the file's own key, name, unit, level and path, the years it\nreaches, and what the checked unit register says it measures. `checked` is false\nwhere nobody has checked a series; such a series is never marked `money`, whatever\nits unit column claims. `alias` marks a series that repeats another value for value.\n`available` is false before the first import.","operationId":"finance_series_api_v1_federal_finances_series_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceCatalogueOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/federal/finances/values":{"get":{"tags":["federal"],"summary":"Finance Values","description":"The values of the newest budget file that pass the filters, exactly as stored:\nthe unrounded Decimal, the basis, the file's key, level and path, and the unit from\nthe checked register. No unit is filtered by default - the file's unit column is not\na checked fact. `available` is false before the first import.","operationId":"finance_values_api_v1_federal_finances_values_get","parameters":[{"name":"topic","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Topic"}},{"name":"variable_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Variable Id"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":8,"minimum":1},{"type":"null"}],"title":"Level"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1900},{"type":"null"}],"title":"Year"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":200,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/finances/statements/{family}":{"get":{"tags":["federal"],"summary":"Finance Statement","description":"One official table of the annual accounts - INCOME_STATEMENT (Erfolgsrechnung),\nINVESTMENTS (Investitionsrechnung) or BALANCE_SHEET (Bilanz) - line by line in the\npublisher's own order, with its figures per year. `parent` is derived from that order\nand the levels, not a key the source carries; `raw` keeps what the source wrote, so a\ndash and a written zero stay apart. `checks` holds each line against its children with\nthe raw difference, `bridges` the comparison with the budget file where both are\nimported. `available` is false before this table is imported.","operationId":"finance_statement_api_v1_federal_finances_statements__family__get","parameters":[{"name":"family","in":"path","required":true,"schema":{"$ref":"#/components/schemas/StatementFamily"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","maxLength":20,"default":"BUND","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatementOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/finances/official":{"get":{"tags":["federal"],"summary":"Finance Official","description":"The closings the EFV prints and publishes as no dataset: the Geldflussrechnung\nof the Bundesrechnung and the Nachweis Fonds «Geld» from Band 1B, and the opening\noverview of each of the seven departments and of eight of the nine authorities and\ncourts from Band 2, the Bundesrat's global budget, and Band 1B's segment table.\nPer family: whether it is imported, which columns it holds - a year **and** a\nbasis, because Band 2 prints «VA 2025» and «R 2025» side by side - and per body the\ndocument, its hash and the page it is printed on. Nothing is added up across\nbodies to be published: `aggregation_note` says why.","operationId":"finance_official_api_v1_federal_finances_official_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfficialIndexOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/federal/finances/bridge":{"get":{"tags":["federal"],"summary":"Finance Bridge","description":"From the departments to the Confederation's spending, as Band 1B of the\nStaatsrechnung prints it: the seven departments, «Übrige» (the nine authorities and\ncourts), the «Elimination» of what the departments charge each other, and the\ntotal - spending turned to read positive. `segments_spending` is the one sum formed\nhere, and it is larger than the total by the elimination. `checks` recompute the\nprinted total from its columns, hold each department against its Band 2 overview\nand «Übrige» against its nine closings, and the total against the Gesamthaushalt\nof the data portal. A year the table does not print, or no import, is 404.","operationId":"finance_bridge_api_v1_federal_finances_bridge_get","parameters":[{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1900},{"type":"null"}],"title":"Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/finances/official/{family}/{scope}":{"get":{"tags":["federal"],"summary":"Finance Official Statement","description":"One printed closing: its rows in the order the EFV prints them, a figure per\nyear and basis with the raw marker where it printed none, the page it stands on,\nand the equations the table asserts recomputed from the stored figures with their\nraw differences. `parent_derived` is false - the indentation of these tables is\nnot their arithmetic. A body this family does not hold, or a table that is not\nimported, is 404.","operationId":"finance_official_statement_api_v1_federal_finances_official__family___scope__get","parameters":[{"name":"family","in":"path","required":true,"schema":{"$ref":"#/components/schemas/OfficialFamily"}},{"name":"scope","in":"path","required":true,"schema":{"type":"string","maxLength":20,"title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfficialStatementOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/finances/coverage":{"get":{"tags":["federal"],"summary":"Finance Coverage","description":"What of the federal finances is imported and what is not, counted from the stored\nrows: each data family with its release, rows and years, and all five entrances of the\nEFV's portal with what is missing from each. Research extracts carry no source version\nand appear here nowhere.","operationId":"finance_coverage_api_v1_federal_finances_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinanceCoverageOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/federal/subsidies":{"get":{"tags":["federal"],"summary":"Subsidies","description":"Every credit of the subsidy database with its payment in `year` (default: the\nlast year with payments), largest first, 50 to a page. Filters: department code,\ntask area, a text in credit number, title or unit. A year without payments is 404.","operationId":"subsidies_api_v1_federal_subsidies_get","parameters":[{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1900},{"type":"null"}],"title":"Year"}},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Department"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubsidyListOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/subsidies/{slug}":{"get":{"tags":["federal"],"summary":"Subsidy","description":"One credit: its amounts per year, the EFV's detail sheet, the chambers' votes\nnaming it and the confirmed ties to its organisations (a231-0192) - these for a\nsigned-in reader only, as they rest on the register of interests. A member's ballot\nstands next to a tie only while FEDERAL_TIES_BESIDE_VOTES is on.","operationId":"subsidy_api_v1_federal_subsidies__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubsidyViewOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/interest-links":{"get":{"tags":["federal"],"summary":"Interest Links","description":"Members whose register entry names an organisation tied to a subsidy - confirmed\nby the editors, with their reason. No ranking, no score, no amount next to a person.\nThe ties for a signed-in reader only; the register's totals for everyone.","operationId":"interest_links_api_v1_federal_interest_links_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TieListOut"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/federal/departments/{code}/units":{"get":{"tags":["federal"],"summary":"Department Units","description":"A department's administrative units in `year` (default: the last year of the\nRechnung in «Institutionen»): each unit of the register with its personnel spending,\nfull-time positions, IT and consultancy, and its credits in the subsidy database. A\nunit the file names and the register does not know stands on a line of its own,\nwithout a number. `code` is the volume's code in Band 2 (EDI, B+G, …). Nothing is\nsummed across units; the totals are the file's own row for the department.","operationId":"department_units_api_v1_federal_departments__code__units_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":2,"maxLength":20,"title":"Code"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1900},{"type":"null"}],"title":"Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentUnitsOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/federal/units/{number}":{"get":{"tags":["federal"],"summary":"Unit","description":"One administrative unit by the EFV's number: the register's entries with the page\nof each volume, its four series in every year «Institutionen» has, and its credits\nwith their amount in `year` (default: the last year the subsidy database holds).","operationId":"unit_api_v1_federal_units__number__get","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{2}$","title":"Number"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":1900},{"type":"null"}],"title":"Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUnitOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/session":{"get":{"tags":["session"],"summary":"Get Session","description":"Who is signed in, and the CSRF token every state-changing request must echo.","operationId":"get_session_api_v1_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__auth__SessionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["session"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__auth__SessionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["session"],"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/auth/signup":{"post":{"tags":["session"],"summary":"Signup","description":"Always 202: whether the address already had an account is told to its\nmailbox, not to whoever filled in the form.","operationId":"signup_api_v1_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password/reset-request":{"post":{"tags":["session"],"summary":"Reset Request","operationId":"reset_request_api_v1_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password/reset":{"post":{"tags":["session"],"summary":"Reset","operationId":"reset_api_v1_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__auth__SessionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/sources/{source_id}/versions":{"post":{"tags":["admin"],"summary":"Append Source Version","operationId":"append_source_version_api_v1_admin_sources__source_id__versions_post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceVersionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceVersionCreatedOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/impacts/{impact_id}/estimates":{"post":{"tags":["admin"],"summary":"Draft Estimate","operationId":"draft_estimate_api_v1_admin_impacts__impact_id__estimates_post","parameters":[{"name":"impact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Impact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateDraftIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/estimates/{estimate_id}/publish":{"post":{"tags":["admin"],"summary":"Publish Estimate","operationId":"publish_estimate_api_v1_admin_estimates__estimate_id__publish_post","parameters":[{"name":"estimate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Estimate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/datasets/{dataset_id}/versions":{"post":{"tags":["admin"],"summary":"Publish Dataset Version","description":"Publish a new version of a dataset. The current version is superseded, and\nevery model run and estimate computed from its observations is marked stale;\nthe response lists what was.","operationId":"publish_dataset_version_api_v1_admin_datasets__dataset_id__versions_post","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetVersionIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetVersionPublishedOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/source-proposals":{"get":{"tags":["admin"],"summary":"Source Proposals","description":"Sources proposed with posts, oldest first. The editors decide on the source;\nthe post stays as it is either way.","operationId":"source_proposals_api_v1_admin_source_proposals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["OPEN","ACCEPTED","REJECTED","WITHDRAWN"],"type":"string"},{"type":"null"}],"default":"OPEN","title":"Status"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProposalQueueItemOut"},"title":"Response Source Proposals Api V1 Admin Source Proposals Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/source-proposals/{proposal_id}/decision":{"post":{"tags":["admin"],"summary":"Decide Source Proposal","description":"Accepting marks the proposal only: capture the source itself with\nPOST /admin/sources/{id}/versions, as any other.","operationId":"decide_source_proposal_api_v1_admin_source_proposals__proposal_id__decision_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__admin__DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceProposalOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/political-objects/{ref}/media-links":{"post":{"tags":["admin"],"summary":"Add Media Link","description":"A report elsewhere, for the proposal's chronicle: linked, never reproduced.","operationId":"add_media_link_api_v1_admin_political_objects__ref__media_links_post","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaLinkIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaLinkOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/model-runs/health-projection":{"post":{"tags":["admin"],"summary":"Run Health Projection","description":"Run the health expenditure projection on the current observations and\npublish the result as the impact's estimate in the scenario, superseding the\ncurrent one. The same calculation twice is a conflict (409).","operationId":"run_health_projection_api_v1_admin_model_runs_health_projection_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRunOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opinions":{"get":{"tags":["admin"],"summary":"Queue","description":"What agents wrote waiting for an editor, newest first, then the last thirty\ndecided - each with its kind, what schwur.ch's review noted and the agent's own\ntext.","operationId":"queue_api_v1_admin_opinions_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["OPINION","STATEMENT","VIDEO_NOTE"],"type":"string"},{"type":"null"}],"description":"Only this kind; all three by default","title":"Kind"},"description":"Only this kind; all three by default"},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpinionQueueOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opinions/{item_id}/decision":{"post":{"tags":["admin"],"summary":"Decide","description":"approve and edit may bring a new German title, lead and paragraphs; reject and\nwithdraw may not.","operationId":"decide_api_v1_admin_opinions__item_id__decision_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpinionDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsItemOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opinions/{item_id}/addendum":{"post":{"tags":["admin"],"summary":"Addendum","description":"What was found after the opinion appeared - links in its text, filled gaps,\nsources: confirm shows it, reject sets it aside.","operationId":"addendum_api_v1_admin_opinions__item_id__addendum_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddendumDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsItemOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opinions/{item_id}/gaps/{position}":{"post":{"tags":["admin"],"summary":"Gap","description":"Links a gap (position from 0) to the entry an editor chose, or - without a\ntarget - marks it as not an entry schwur.ch keeps.","operationId":"gap_api_v1_admin_opinions__item_id__gaps__position__post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GapDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsItemOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opinions/{item_id}/links/{position}":{"post":{"tags":["admin"],"summary":"Link","description":"Takes a link (position from 0) out: the entry is no longer linked, in the list\nor in the text; its words stay.","operationId":"link_api_v1_admin_opinions__item_id__links__position__post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__opinions__LinkDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsItemOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/opinions/{item_id}/sources/{position}":{"post":{"tags":["admin"],"summary":"Source","description":"remove takes a source (position from 0) out; set gives it the address an editor\nfound, which schwur.ch fetches, checks and keeps.","operationId":"source_api_v1_admin_opinions__item_id__sources__position__post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsItemOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts":{"get":{"tags":["accounts"],"summary":"Accounts","description":"Every account, newest first, fifty to a page.","operationId":"accounts_api_v1_admin_accounts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["PENDING","APPROVED","UNCONFIRMED","BLOCKED"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Part of the address or a name","title":"Q"},"description":"Part of the address or a name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPageOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{user_id}/approve":{"post":{"tags":["accounts"],"summary":"Approve","description":"Let a confirmed account in; the person gets a mail.","operationId":"approve_api_v1_admin_accounts__user_id__approve_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountChangedOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{user_id}/block":{"post":{"tags":["accounts"],"summary":"Block","description":"Sign the account out and let it no longer sign in; never the owner's own.","operationId":"block_api_v1_admin_accounts__user_id__block_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountChangedOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/accounts/{user_id}/unblock":{"post":{"tags":["accounts"],"summary":"Unblock","operationId":"unblock_api_v1_admin_accounts__user_id__unblock_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountChangedOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/account-policy":{"get":{"tags":["accounts"],"summary":"Account Policy","operationId":"account_policy_api_v1_admin_account_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}},"put":{"tags":["accounts"],"summary":"Set Account Policy","description":"Whether a new account waits for the owner; accounts already waiting keep waiting.","operationId":"set_account_policy_api_v1_admin_account_policy_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/jobs":{"get":{"tags":["jobs"],"summary":"Overview","operationId":"overview_api_v1_admin_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/admin/jobs/{key}/runs":{"get":{"tags":["jobs"],"summary":"Runs","description":"The job's newest runs, newest first.","operationId":"runs_api_v1_admin_jobs__key__runs_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunOut"},"title":"Response Runs Api V1 Admin Jobs  Key  Runs Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/jobs/{key}/run":{"post":{"tags":["jobs"],"summary":"Run Now","description":"Start the job now, as cron would, and answer when it has ended. 409 while a run\nof it is still going.","operationId":"run_now_api_v1_admin_jobs__key__run_post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/statements/borderline":{"get":{"tags":["admin"],"summary":"Borderline","description":"The borderline posts no editor dismissed, newest first, with their member and the\nChronist's reason. schwur.ch keeps no words of them: the link leads to the post.","operationId":"borderline_api_v1_admin_statements_borderline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BorderlineListOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/admin/statements/borderline/{post_id}/dismiss":{"post":{"tags":["admin"],"summary":"Dismiss","description":"Takes a post off the borderline list, on record with the editor's name.","operationId":"dismiss_api_v1_admin_statements_borderline__post_id__dismiss_post","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DismissIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissalOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations":{"get":{"tags":["admin"],"summary":"Organisations","description":"Every organisation with its spellings, the credits it is tied to and, once\nidentified, what the official registers state about it.","operationId":"organisations_api_v1_admin_organisations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrganisationOut"},"type":"array","title":"Response Organisations Api V1 Admin Organisations Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}},"post":{"tags":["admin"],"summary":"Create Organisation","description":"An organisation, found by its name and each spelling. A spelling another\norganisation already has is a conflict (409).","operationId":"create_organisation_api_v1_admin_organisations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{organisation_id}/spellings":{"post":{"tags":["admin"],"summary":"Add Spelling","operationId":"add_spelling_api_v1_admin_organisations__organisation_id__spellings_post","parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organisation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpellingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organisations/{organisation_id}/identity":{"post":{"tags":["admin"],"summary":"Identify","description":"The organisation as the unit with this UID, with a reason. Look the UID up first:\nwhat the pages show is what the registers state.","operationId":"identify_api_v1_admin_organisations__organisation_id__identity_post","parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organisation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/registers/search":{"get":{"tags":["admin"],"summary":"Register Search","description":"The UID register's units for a name, best first: proposals, nothing is stored.","operationId":"register_search_api_v1_admin_registers_search_get","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":300,"title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RegisterHitOut"},"title":"Response Register Search Api V1 Admin Registers Search Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/registers/{uid}/lookup":{"post":{"tags":["admin"],"summary":"Register Lookup","description":"Read the UID register about `uid` (CHE-123.456.789) and, where it names one, the\ncommercial register entry through Zefix; keep both answers as source versions.","operationId":"register_lookup_api_v1_admin_registers__uid__lookup_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRecordOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/subsidies/{slug}/organisations":{"post":{"tags":["admin"],"summary":"Tie To Credit","description":"The organisation as the credit's recipient, on its title, the EFV's sheet or a\nstored document, or in its sector - always with a reason.","operationId":"tie_to_credit_api_v1_admin_subsidies__slug__organisations_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditTieIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/interest-links/proposals":{"post":{"tags":["admin"],"summary":"Propose","description":"Tie each credit to the recipient its title and the EFV's sheet both name, then\nmatch the newest register snapshot against every spelling. Proposals only: a name\nalone is never a tie.","operationId":"propose_api_v1_admin_interest_links_proposals_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalsOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/admin/interest-links":{"get":{"tags":["admin"],"summary":"Interest Links","description":"The proposals in one standing, by organisation, then member; an open one with a\nsuggested relation and reason.","operationId":"interest_links_api_v1_admin_interest_links_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["CANDIDATE","CONFIRMED","REJECTED"],"type":"string","default":"CANDIDATE","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LinkOut"},"title":"Response Interest Links Api V1 Admin Interest Links Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/interest-links/{link_id}/decision":{"post":{"tags":["admin"],"summary":"Decide","description":"Confirm with the relation, or reject; always with a reason. A later decision\nreplaces this one on the pages; both stay on record.","operationId":"decide_api_v1_admin_interest_links__link_id__decision_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__routes__federal_admin__LinkDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkDecisionOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/political-funding":{"get":{"tags":["people"],"summary":"Political Funding","operationId":"political_funding_api_v1_political_funding_get","parameters":[{"name":"actor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2100,"minimum":2022},{"type":"null"}],"title":"Year"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1,"title":"Page"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingPageOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/people":{"get":{"tags":["people"],"summary":"Search","description":"People, bodies and organisations by name or by any way an organisation is\nwritten; 50 to a page. Without a query, everyone, every body with members and every\norganisation a current entry names, by name. Never ranked by how many relations\nsomeone has. Badge holders and names from lists are not searchable. Signed out,\nthe counts resting on the register are 0.","operationId":"search_api_v1_people_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["PERSON","ORGANISATION","BODY"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleSearchOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/people/{slug}":{"get":{"tags":["people"],"summary":"Person","description":"A person's offices and committees, parliamentary groups and access badges,\ntheir current register entries (each with how many others name the same\norganisation) and what ended. Signed out, without the register and the badges.","operationId":"person_api_v1_people__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schwur_api__dto__PersonOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/bodies/{slug}":{"get":{"tags":["people"],"summary":"Body","description":"A council, a group, a party, a committee, a parliamentary group or a department:\nwho is in it now and in which role, who runs its secretariat, who left.","operationId":"body_api_v1_bodies__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyPageOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/units/{number}/heads":{"get":{"tags":["people"],"summary":"Unit Heads","description":"Who heads the administrative unit with the EFV's number, as the Staatskalender\nnames them (ring 2): for the unit's page among the finances. Empty, not 404, where\nnobody is known.","operationId":"unit_heads_api_v1_units__number__heads_get","parameters":[{"name":"number","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{2}$","title":"Number"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitHeadsOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/organisations/{slug}":{"get":{"tags":["people"],"summary":"Organisation","description":"An organisation: every way it is written, who names it and how, its bodies.\nSigned out, without who names it and without the badges naming it.","operationId":"organisation_api_v1_organisations__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationPageOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/relations/{relation_id}":{"get":{"tags":["people"],"summary":"Relation","description":"One relation with its source, the place in it, its type and the corrections. A\nregister entry or an access badge asks a reader who is not signed in to sign in\n(401 sign_in_required).","operationId":"relation_api_v1_relations__relation_id__get","parameters":[{"name":"relation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Relation Id"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"}}}},"/api/v1/relation-types":{"get":{"tags":["people"],"summary":"Relation Types","description":"The catalogue: what each relation type states, between whom, from which source,\non which legal basis, how it behaves over time and in which words it is shown.","operationId":"relation_types_api_v1_relation_types_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationTypeOut"},"title":"Response Relation Types Api V1 Relation Types Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/relation-types/{code}":{"get":{"tags":["people"],"summary":"Relation Type","description":"One type with every version and the words its current relations use.","operationId":"relation_type_api_v1_relation_types__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationTypeDetailOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/network":{"get":{"tags":["people"],"summary":"Network","description":"The network around people or organisations: their relations, the other people\nnaming their organisations, at depth 2 those people's organisations. Lines between\ntwo people are derived and only on request. Over 250 nodes is refused (422).","operationId":"network_api_v1_network_get","parameters":[{"name":"person","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Person"}},{"name":"organisation","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Organisation"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":2,"minimum":1,"default":1,"title":"Depth"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"Type codes, comma-separated","title":"Types"},"description":"Type codes, comma-separated"},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The day the network is read for","title":"At"},"description":"The day the network is read for"},{"name":"shared_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Shared Only"}},{"name":"paid_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Paid Only"}},{"name":"derived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Derived"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkOut"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/network.csv":{"get":{"tags":["people"],"summary":"Network Csv","description":"The same network, one row per edge, with type, version, level, source and date.","operationId":"network_csv_api_v1_network_csv_get","parameters":[{"name":"person","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Person"}},{"name":"organisation","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Organisation"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":2,"minimum":1,"default":1,"title":"Depth"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"Type codes, comma-separated","title":"Types"},"description":"Type codes, comma-separated"},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The day the network is read for","title":"At"},"description":"The day the network is read for"},{"name":"shared_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Shared Only"}},{"name":"paid_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Paid Only"}},{"name":"derived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Derived"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/network.gexf":{"get":{"tags":["people"],"summary":"Network Gexf","description":"The same network for Gephi.","operationId":"network_gexf_api_v1_network_gexf_get","parameters":[{"name":"person","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Person"}},{"name":"organisation","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Organisation"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":2,"minimum":1,"default":1,"title":"Depth"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"Type codes, comma-separated","title":"Types"},"description":"Type codes, comma-separated"},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The day the network is read for","title":"At"},"description":"The day the network is read for"},{"name":"shared_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Shared Only"}},{"name":"paid_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Paid Only"}},{"name":"derived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Derived"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/network.graphml":{"get":{"tags":["people"],"summary":"Network Graphml","description":"The same network as GraphML.","operationId":"network_graphml_api_v1_network_graphml_get","parameters":[{"name":"person","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Person"}},{"name":"organisation","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":10},{"type":"null"}],"title":"Organisation"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":2,"minimum":1,"default":1,"title":"Depth"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"Type codes, comma-separated","title":"Types"},"description":"Type codes, comma-separated"},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The day the network is read for","title":"At"},"description":"The day the network is read for"},{"name":"shared_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Shared Only"}},{"name":"paid_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Paid Only"}},{"name":"derived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Derived"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/organisations/{slug}/register":{"get":{"tags":["people"],"summary":"Organisation Register","description":"The unit of the official registers the editors linked the organisation to, as the\nregisters state it - name, legal form, seat and their pages; null while none is.","operationId":"organisation_register_api_v1_organisations__slug__register_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OrganisationUidOut"},{"type":"null"}],"title":"Response Organisation Register Api V1 Organisations  Slug  Register Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/admin/people/sync":{"post":{"tags":["admin"],"summary":"Sync","description":"Brings the people schema in step with the parliament data held (the nightly\nimport does the same after its run).","operationId":"sync_api_v1_admin_people_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/admin/people/imports":{"post":{"tags":["admin"],"summary":"Imports","description":"Stage 2: the committees and the history of groups and parties, the Federal\nCouncil, the parliamentary groups and the access badges, each from its source (the\nnightly import does the same after the sync). A source that cannot be read is\nreported and leaves the others.","operationId":"imports_api_v1_admin_people_imports_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ImportIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PeopleImportOut"},"type":"array","title":"Response Imports Api V1 Admin People Imports Post"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/proposals":{"get":{"tags":["admin"],"summary":"Proposals","description":"Organisations that might be the same, or a body of another, and names from lists\nthat might be a member, each with a suggested reason to be checked. A pair decided\nonce is not proposed again.","operationId":"proposals_api_v1_admin_people_proposals_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["MERGE","PART_OF","IDENTITY"],"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProposalOut"},"title":"Response Proposals Api V1 Admin People Proposals Get"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/proposals/decision":{"post":{"tags":["admin"],"summary":"Decide","description":"Merge, bind as a body, decide a listed name to be a member, or refuse - always\nwith a reason.","operationId":"decide_api_v1_admin_people_proposals_decision_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDecisionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDecisionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/merges/undo":{"post":{"tags":["admin"],"summary":"Undo Merge","operationId":"undo_merge_api_v1_admin_people_merges_undo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UndoMergeIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDecisionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/proposals/identities":{"post":{"tags":["admin"],"summary":"Accept Identities","description":"Accepts every open identity proposal - each listed name the rule finds exactly one\nmember for - with one reason; each is recorded as its own decision.","operationId":"accept_identities_api_v1_admin_people_proposals_identities_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentitiesIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentitiesOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/decisions/undo":{"post":{"tags":["admin"],"summary":"Undo","description":"Takes an accepted merge or identity back.","operationId":"undo_api_v1_admin_people_decisions_undo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UndoIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalDecisionOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/decisions":{"get":{"tags":["admin"],"summary":"Decisions","description":"The newest 200 decisions on proposals, newest first.","operationId":"decisions_api_v1_admin_people_decisions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProposalDecisionOut"},"type":"array","title":"Response Decisions Api V1 Admin People Decisions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/admin/people/relations/{relation_id}/visibility":{"post":{"tags":["admin"],"summary":"Visibility","description":"A correction: hide a relation from every page, or show it again.","operationId":"visibility_api_v1_admin_people_relations__relation_id__visibility_post","parameters":[{"name":"relation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Relation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisibilityIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationDecisionOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/uids":{"get":{"tags":["admin"],"summary":"Uid Queue","description":"The organisations searched in the UID register and not yet decided, the rule's\nproposals first, each with the units the register named.","operationId":"uid_queue_api_v1_admin_people_uids_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidQueueOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}}}}},"/api/v1/admin/people/uids/search":{"post":{"tags":["admin"],"summary":"Uid Search","description":"Asks the UID register about the next organisations not yet searched; a few per\ncall (`python -m schwur_api.manage people-uids --search` asks about all).","operationId":"uid_search_api_v1_admin_people_uids_search_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UidSearchIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidSearchOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/uids/accept":{"post":{"tags":["admin"],"summary":"Uid Accept","description":"Links organisations to the unit the rule proposes, each looked up first and\nrecorded as its own decision with the editor's reason and the rule's.","operationId":"uid_accept_api_v1_admin_people_uids_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidAcceptIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidAcceptOut"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/uids/{actor_id}/link":{"post":{"tags":["admin"],"summary":"Uid Link","description":"The organisation is the unit with this UID; the registers are read first.","operationId":"uid_link_api_v1_admin_people_uids__actor_id__link_post","parameters":[{"name":"actor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Actor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidLinkIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorEntityOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/uids/{actor_id}/none":{"post":{"tags":["admin"],"summary":"Uid None","description":"The registers hold no unit that is this organisation.","operationId":"uid_none_api_v1_admin_people_uids__actor_id__none_post","parameters":[{"name":"actor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Actor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidReasonIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorEntityOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/people/uids/{actor_id}/undo":{"post":{"tags":["admin"],"summary":"Uid Undo","description":"Takes the organisation's decision back; it is undecided again.","operationId":"uid_undo_api_v1_admin_people_uids__actor_id__undo_post","parameters":[{"name":"actor_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Actor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UidReasonIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActorEntityOut"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search":{"get":{"tags":["search"],"summary":"Search","description":"Every public page of schwur.ch by its words: proposals, parliament businesses,\nvotes and members, people, organisations and bodies of the Confederation, federal\noffices and subsidies, news, cantons and municipalities. All words must match, as\ntyped or as a word they begin; umlauts and accents do not matter.\n\nPages are ranked by how well their title and text match - never by clicks or by\nwho they are about. What only signed-in readers see (the register of interests,\nthe access badges) is not in the search, for anyone. At most 60 searches a minute\nper client; cite hits by their `url`, naming schwur.ch and the `source`.","operationId":"search_api_v1_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"What to look for","default":"","title":"Q"},"description":"What to look for"},{"name":"kind","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/Kind"},"description":"Only these kinds (repeatable); see /search/kinds","default":[],"title":"Kind"},"description":"Only these kinds (repeatable); see /search/kinds"},{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Group"},{"type":"null"}],"description":"Only the kinds of one tab","title":"Group"},"description":"Only the kinds of one tab"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Cursor"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOut"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"}}}},"/api/v1/search/suggest":{"get":{"tags":["search"],"summary":"Suggest","description":"Up to eight pages while someone types, from two characters on. With\n`format=opensearch` the answer is the array browsers read for their search box.","operationId":"suggest_api_v1_search_suggest_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","opensearch"],"type":"string","default":"json","title":"Format"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestOut"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"}}}},"/api/v1/search/kinds":{"get":{"tags":["search"],"summary":"Kinds","description":"What the search finds: each kind of page, the tab it is shown under, and its\nname in the language asked for.","operationId":"kinds_api_v1_search_kinds_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"enum":["de","fr","it","en","uk"],"type":"string","description":"Language of the content: de (the reference), fr, it, en or uk","default":"de","title":"Lang"},"description":"Language of the content: de (the reference), fr, it, en or uk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KindOut"},"title":"Response Kinds Api V1 Search Kinds Get"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Too Many Requests"}}}}},"components":{"schemas":{"AcceptedOut":{"properties":{"status":{"type":"string","const":"accepted","title":"Status","default":"accepted"}},"additionalProperties":false,"type":"object","title":"AcceptedOut"},"AccountChangedOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"}},"additionalProperties":false,"type":"object","required":["id","status"],"title":"AccountChangedOut"},"AccountDecisionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"person_number":{"type":"integer","title":"Person Number"},"platform":{"type":"string","title":"Platform"},"handle":{"type":"string","title":"Handle"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["id","contact_id","person_number","platform","handle","evidence","status","reason","decided_at"],"title":"AccountDecisionOut","description":"An editor's confirmation of an account, or its withdrawal."},"AccountIn":{"properties":{"person_number":{"type":"integer","minimum":1.0,"title":"Person Number","examples":[4057]},"platform":{"type":"string","enum":["X","INSTAGRAM","FACEBOOK","LINKEDIN","BLUESKY","MASTODON","TIKTOK","YOUTUBE"],"title":"Platform"},"handle":{"type":"string","maxLength":200,"minLength":1,"title":"Handle","examples":["cedricwermuth.bsky.social"]},"evidence_url":{"type":"string","maxLength":2000,"minLength":1,"title":"Evidence Url","description":"Where the account is shown to be theirs"},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason","description":"Needed when the handle carries no word of the member's name"}},"additionalProperties":false,"type":"object","required":["person_number","platform","handle","evidence_url"],"title":"AccountIn"},"AccountPageOut":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/schwur_api__routes__accounts_admin__AccountOut"},"type":"array","title":"Accounts"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","description":"Every account by status, whatever the filter"},"total":{"type":"integer","title":"Total","description":"The accounts that match, over all pages"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"additionalProperties":false,"type":"object","required":["accounts","counts","total","page","page_size"],"title":"AccountPageOut"},"AccountStatementOut":{"properties":{"available":{"type":"boolean","title":"Available","description":"False until this table is imported"},"family":{"type":"string","title":"Family","description":"INCOME_STATEMENT, INVESTMENTS or BALANCE_SHEET"},"title":{"type":"string","title":"Title"},"dataset":{"type":"integer","title":"Dataset","description":"The portal's dataset number: an address, not a meaning"},"chart":{"type":"integer","title":"Chart","description":"The portal chart whose title is the evidence for the unit"},"chart_title":{"type":"string","title":"Chart Title"},"unit":{"type":"string","title":"Unit"},"scale":{"type":"integer","title":"Scale","description":"The power of ten the figures are in; 6 = millions"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"scope":{"type":"string","title":"Scope"},"years":{"items":{"type":"integer"},"type":"array","title":"Years"},"lines":{"items":{"$ref":"#/components/schemas/StatementLineOut"},"type":"array","title":"Lines"},"checks":{"items":{"$ref":"#/components/schemas/LineCheckOut"},"type":"array","title":"Checks","description":"Each line against its children, per year, with the raw difference"},"bridges":{"items":{"$ref":"#/components/schemas/CheckOut"},"type":"array","title":"Bridges","description":"Against the budget file, where both are imported; empty otherwise"},"markers":{"type":"integer","title":"Markers","description":"Cells where the source wrote a mark instead of a number"},"note":{"type":"string","title":"Note"},"dashboard_url":{"type":"string","title":"Dashboard Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","family","title","dataset","chart","chart_title","unit","scale","release_url","actuals_through","scope","years","lines","checks","bridges","markers","note","dashboard_url","source"],"title":"AccountStatementOut"},"ActOut":{"properties":{"eli":{"type":"string","title":"Eli"},"kind":{"type":"string","title":"Kind"},"decided_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decided On"},"published_on":{"type":"string","format":"date","title":"Published On"},"in_force_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"In Force On"},"office":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Office"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"language":{"type":"string","title":"Language"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"tasks":{"additionalProperties":{"type":"string"},"type":"object","title":"Tasks"}},"additionalProperties":false,"type":"object","required":["eli","kind","decided_on","published_on","in_force_on","office","department","language","title","url","tasks"],"title":"ActOut"},"ActorEntityOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"actor_id":{"type":"string","format":"uuid","title":"Actor Id"},"kind":{"type":"string","title":"Kind","description":"LINKED, NO_UNIT or UNDONE"},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"},"reason":{"type":"string","title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["id","actor_id","kind","uid","reason","decided_at"],"title":"ActorEntityOut"},"AddendumDecisionIn":{"properties":{"action":{"type":"string","enum":["confirm","reject"],"title":"Action"}},"additionalProperties":false,"type":"object","required":["action"],"title":"AddendumDecisionIn"},"AdminUnitOut":{"properties":{"unit":{"$ref":"#/components/schemas/UnitRefOut"},"documents":{"items":{"$ref":"#/components/schemas/UnitDocumentOut"},"type":"array","title":"Documents"},"names_in_file":{"items":{"type":"string"},"type":"array","title":"Names In File"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year","description":"The year of the credits' amounts"},"series":{"$ref":"#/components/schemas/UnitSeriesOut"},"credits":{"items":{"$ref":"#/components/schemas/UnitCreditOut"},"type":"array","title":"Credits"},"subsidy_totals":{"items":{"$ref":"#/components/schemas/UnitTotalOut"},"type":"array","title":"Subsidy Totals"},"sources":{"$ref":"#/components/schemas/UnitSourcesOut"}},"additionalProperties":false,"type":"object","required":["unit","documents","names_in_file","actuals_through","year","series","credits","subsidy_totals","sources"],"title":"AdminUnitOut"},"AffectedActOut":{"properties":{"eli":{"type":"string","title":"Eli"},"sr_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sr Number"},"title":{"type":"string","title":"Title"}},"additionalProperties":false,"type":"object","required":["eli","sr_number","title"],"title":"AffectedActOut"},"AgainstOut":{"properties":{"key":{"type":"string","title":"Key"},"council":{"type":"string","title":"Council"},"stage":{"type":"string","title":"Stage"},"business_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Number"},"voted_on":{"type":"string","format":"date","title":"Voted On"},"subject":{"type":"string","title":"Subject"}},"additionalProperties":false,"type":"object","required":["key","council","stage","business_number","voted_on","subject"],"title":"AgainstOut","description":"A ballot other than the group's line, newest first."},"AlignmentOut":{"properties":{"counted":{"type":"integer","title":"Counted"},"deviating":{"type":"integer","title":"Deviating"},"weight":{"type":"integer","title":"Weight"},"deviating_weight":{"type":"integer","title":"Deviating Weight"},"share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Share","description":"weighted, 0..1; null below `minimum`"},"plain_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plain Share","description":"unweighted, 0..1; null below `minimum`"},"enough":{"type":"boolean","title":"Enough"},"minimum":{"type":"integer","title":"Minimum"},"weights_version":{"type":"string","title":"Weights Version"},"stages":{"items":{"$ref":"#/components/schemas/StageCountOut"},"type":"array","title":"Stages","description":"heaviest first, stages with a ballot"},"left_out":{"additionalProperties":{"type":"integer"},"type":"object","title":"Left Out","description":"AWAY, PRESIDENT, SPLIT, NO_LINE -> ballots"}},"additionalProperties":false,"type":"object","required":["counted","deviating","weight","deviating_weight","share","plain_share","enough","minimum","weights_version","stages","left_out"],"title":"AlignmentOut","description":"«Mit der Fraktion gestimmt»: 1 - deviating_weight / weight, with every part of\nthe sum so anyone can redo it (docs/parliament.md)."},"AnalysisDueOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"vote_date":{"type":"string","format":"date","title":"Vote Date"}},"additionalProperties":false,"type":"object","required":["political_object","vote_date"],"title":"AnalysisDueOut"},"AnalysisRunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"is_demo":{"type":"boolean","title":"Is Demo","description":"True for example values that exist to show the product"},"label":{"type":"string","title":"Label"},"methodology_version":{"type":"string","title":"Methodology Version"},"status":{"type":"string","title":"Status"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"stale":{"anyOf":[{"$ref":"#/components/schemas/StaleOut"},{"type":"null"}]},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","kind","is_demo","label","methodology_version","status","started_at","finished_at","stale"],"title":"AnalysisRunOut"},"AppraisalIn":{"properties":{"objections":{"items":{"$ref":"#/components/schemas/schwur_api__arguments_dto__ObjectionIn"},"type":"array","maxItems":64,"title":"Objections"},"impacts":{"items":{"$ref":"#/components/schemas/ProposedImpactIn"},"type":"array","maxItems":8,"title":"Impacts"},"note":{"type":"string","maxLength":1500,"title":"Note","default":""},"agent":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Agent"},"model":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model"}},"additionalProperties":false,"type":"object","title":"AppraisalIn","description":"The form's answer under `appraisal`, plus an optional url per source."},"AppraisalItemOut":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"position":{"type":"integer","title":"Position"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"checks":{"additionalProperties":{"type":"string"},"type":"object","title":"Checks"},"draft":{"additionalProperties":true,"type":"object","title":"Draft"},"argument_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Argument Id"},"impact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Impact Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["run_id","position","kind","status","reason","checks","draft","argument_id","impact_id","created_at"],"title":"AppraisalItemOut"},"AppraisalRunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"attempt":{"type":"integer","title":"Attempt"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"type":"string","format":"date-time","title":"Finished At"},"outcome":{"type":"string","title":"Outcome"},"imported":{"type":"boolean","title":"Imported"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"release":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Release"},"objections":{"type":"integer","title":"Objections"},"new_impacts":{"type":"integer","title":"New Impacts"},"sources_sent":{"type":"integer","title":"Sources Sent"},"sources_found":{"type":"integer","title":"Sources Found"},"searches":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Searches"},"fetches":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fetches"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["id","attempt","started_at","finished_at","outcome","imported","agent","model","release","objections","new_impacts","sources_sent","sources_found","searches","fetches","note"],"title":"AppraisalRunOut"},"AreaResultOut":{"properties":{"number":{"type":"string","title":"Number","description":"The BFS's number: 0 Switzerland, 1-26 the cantons"},"name":{"type":"string","title":"Name"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton","description":"The canton's abbreviation; null for Switzerland"},"parent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent","description":"A municipality's district"},"counted":{"type":"boolean","title":"Counted","description":"gebietAusgezaehlt: the area is fully counted"},"concluded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Concluded","description":"vorlageBeendet: the canton (or Switzerland) has confirmed its result"},"yes_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Yes Percent"},"no_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"No Percent"},"yes_votes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yes Votes"},"no_votes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"No Votes"},"turnout_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnout Percent"},"ballots_cast":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ballots Cast"},"electorate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Electorate"},"valid_votes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Valid Votes"}},"additionalProperties":false,"type":"object","required":["number","name","canton","parent","counted","concluded","yes_percent","no_percent","yes_votes","no_votes","turnout_percent","ballots_cast","electorate","valid_votes"],"title":"AreaResultOut"},"ArgumentCitationOut":{"properties":{"relation":{"type":"string","title":"Relation"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"fragment":{"$ref":"#/components/schemas/FragmentOut"},"source_version":{"$ref":"#/components/schemas/SourceVersionBriefOut"},"source":{"$ref":"#/components/schemas/SourceRefOut"}},"additionalProperties":false,"type":"object","required":["relation","note","fragment","source_version","source"],"title":"ArgumentCitationOut"},"ArgumentListOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"items":{"items":{"$ref":"#/components/schemas/ArgumentOut"},"type":"array","title":"Items"},"runs":{"items":{"$ref":"#/components/schemas/AppraisalRunOut"},"type":"array","title":"Runs"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"additionalProperties":false,"type":"object","required":["political_object","items","runs","counts"],"title":"ArgumentListOut"},"ArgumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"political_object_id":{"type":"string","format":"uuid","title":"Political Object Id"},"impact":{"anyOf":[{"$ref":"#/components/schemas/ImpactRefOut"},{"type":"null"}]},"kind":{"type":"string","title":"Kind"},"position":{"type":"string","enum":["PRO","CONTRA","MIXED"],"title":"Position"},"perspective":{"type":"string","enum":["SUPPORTERS","OPPONENTS","METHOD"],"title":"Perspective"},"text":{"type":"string","title":"Text"},"status":{"type":"string","title":"Status"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"sourced":{"type":"boolean","title":"Sourced"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"run":{"anyOf":[{"$ref":"#/components/schemas/AppraisalRunOut"},{"type":"null"}]},"citations":{"items":{"$ref":"#/components/schemas/ArgumentCitationOut"},"type":"array","title":"Citations"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","political_object_id","impact","kind","position","perspective","text","status","note","sourced","created_at","run","citations"],"title":"ArgumentOut"},"AttendanceOut":{"properties":{"voted":{"type":"integer","title":"Voted"},"excused":{"type":"integer","title":"Excused"},"absent":{"type":"integer","title":"Absent"},"presiding":{"type":"integer","title":"Presiding"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["voted","excused","absent","presiding","total"],"title":"AttendanceOut"},"AttributeOut":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"additionalProperties":false,"type":"object","required":["name","description"],"title":"AttributeOut"},"BadgeOut":{"properties":{"access":{"$ref":"#/components/schemas/RelationOut","description":"ACCESS_BADGE: the member and the holder"},"organisation":{"anyOf":[{"$ref":"#/components/schemas/RelationOut"},{"type":"null"}],"description":"BADGE_FOR: the organisation the badge's function names, if known"}},"additionalProperties":false,"type":"object","required":["access","organisation"],"title":"BadgeOut"},"BallotCoverageOut":{"properties":{"vote_date":{"type":"string","format":"date","title":"Vote Date"},"status":{"type":"string","title":"Status"},"covered_cantons":{"items":{"type":"string"},"type":"array","title":"Covered Cantons"},"count":{"type":"integer","title":"Count"},"source_url":{"type":"string","title":"Source Url"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"}},"additionalProperties":false,"type":"object","required":["vote_date","status","covered_cantons","count","source_url","source_version_id"],"title":"BallotCoverageOut"},"BallotOutcomeOut":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"The BFS's state of the count; null before it"},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepted"},"concluded":{"type":"boolean","title":"Concluded"},"yes_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Yes Percent"},"turnout_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnout Percent"}},"additionalProperties":false,"type":"object","required":["status","accepted","concluded","yes_percent","turnout_percent"],"title":"BallotOutcomeOut"},"BasisOut":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"votes":{"type":"integer","title":"Votes"}},"additionalProperties":false,"type":"object","required":["start","votes"],"title":"BasisOut","description":"What the figure is counted over: every vote of both chambers from `start` on."},"BillOut":{"properties":{"number":{"type":"integer","title":"Number"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Text"}},"additionalProperties":false,"type":"object","required":["number","title","type_name","status_text"],"title":"BillOut"},"BodyPageOut":{"properties":{"body":{"$ref":"#/components/schemas/EndOut"},"members":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Members","description":"Current, the chair first"},"secretariats":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Secretariats"},"former":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Former"},"unassigned":{"type":"integer","title":"Unassigned","description":"Names from a list not decided to be a member yet"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["body","members","secretariats","former","unassigned","source"],"title":"BodyPageOut"},"BorderlineListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BorderlinePostOut"},"type":"array","title":"Items","description":"Posts the Chronist found borderline and no editor dismissed, newest first"}},"additionalProperties":false,"type":"object","required":["items"],"title":"BorderlineListOut"},"BorderlinePostOut":{"properties":{"post_id":{"type":"string","format":"uuid","title":"Post Id"},"platform":{"type":"string","title":"Platform","description":"X, BLUESKY, MASTODON or YOUTUBE"},"kind":{"type":"string","title":"Kind","description":"POST, QUOTE or VIDEO"},"url":{"type":"string","title":"Url","description":"The original: schwur.ch keeps no words of it"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"},"person":{"anyOf":[{"$ref":"#/components/schemas/PersonRefOut"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"The Chronist's reason, as a code"},"screened_at":{"type":"string","format":"date-time","title":"Screened At"},"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"}},"additionalProperties":false,"type":"object","required":["post_id","platform","kind","url","published_at","lang","person","reason","screened_at","run_id"],"title":"BorderlinePostOut"},"BridgeAuthorityOut":{"properties":{"scope":{"type":"string","title":"Scope"},"name":{"type":"string","title":"Name"},"family":{"type":"string","title":"Family"},"current":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current","description":"Laufende Ausgaben, Mio. CHF"},"investment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investment","description":"Investitionsausgaben, Mio. CHF"}},"additionalProperties":false,"type":"object","required":["scope","name","family","current","investment"],"title":"BridgeAuthorityOut"},"BridgeFigureOut":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Mio. CHF; spending reads as spending, positive - the EFV prints it with a minus sign. Null where the source printed a mark"},"raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw","description":"What the source printed; null where no such row"}},"additionalProperties":false,"type":"object","required":["value","raw"],"title":"BridgeFigureOut"},"BridgeOut":{"properties":{"year":{"type":"integer","title":"Year"},"years":{"items":{"type":"integer"},"type":"array","title":"Years"},"unit":{"type":"string","title":"Unit"},"scale":{"type":"integer","title":"Scale"},"title":{"type":"string","title":"Title"},"volume":{"type":"string","title":"Volume"},"origin":{"$ref":"#/components/schemas/OfficialDocumentOut"},"release_url":{"type":"string","title":"Release Url"},"segments":{"items":{"$ref":"#/components/schemas/BridgeSegmentOut"},"type":"array","title":"Segments","description":"The seven departments and «Übrige» (the nine authorities and courts)"},"elimination":{"$ref":"#/components/schemas/BridgeSegmentOut"},"total":{"$ref":"#/components/schemas/BridgeSegmentOut"},"segments_spending":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segments Spending","description":"Σ of the eight segments' spending, computed; more than the total by what the departments charge each other"},"portal_spending":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Spending","description":"The Gesamthaushalt's spending of the year, from the EFV's data portal, in Mio. CHF"},"authorities":{"items":{"$ref":"#/components/schemas/BridgeAuthorityOut"},"type":"array","title":"Authorities"},"checks":{"items":{"$ref":"#/components/schemas/OfficialCheckOut"},"type":"array","title":"Checks"},"not_checkable":{"items":{"$ref":"#/components/schemas/OfficialNotCheckedOut"},"type":"array","title":"Not Checkable"},"note":{"type":"string","title":"Note"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["year","years","unit","scale","title","volume","origin","release_url","segments","elimination","total","segments_spending","portal_spending","authorities","checks","not_checkable","note","source"],"title":"BridgeOut","description":"From the departments to the Confederation's spending, as Band 1B prints it."},"BridgeSegmentOut":{"properties":{"scope":{"type":"string","title":"Scope","description":"EDA ... UVEK, UEBRIGE, ELIM or BUND"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"current":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Laufende Ausgaben"},"investment":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Investitionsausgaben"},"own":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Eigenausgaben"},"transfer":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Transferausgaben"},"financial":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Finanzausgaben"},"third_party":{"$ref":"#/components/schemas/BridgeFigureOut","description":"davon Ausgaben Dritte"},"internal":{"$ref":"#/components/schemas/BridgeFigureOut","description":"davon Ausgaben aus LV: services bought from other departments"},"income":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Laufende Einnahmen, as printed"},"spending":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spending","description":"current + investment, computed from the two printed lines"},"share":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share","description":"spending of the Confederation's spending, 0..1; the eight add to more than 1 by the elimination"},"units":{"items":{"$ref":"#/components/schemas/BridgeUnitOut"},"type":"array","title":"Units","description":"The department's administrative units, Band 2's unit table, in printed order; empty for «Übrige» and for years it does not print"}},"additionalProperties":false,"type":"object","required":["scope","kind","name","current","investment","own","transfer","financial","third_party","internal","income","spending","share","units"],"title":"BridgeSegmentOut"},"BridgeUnitOut":{"properties":{"number":{"type":"string","title":"Number","description":"The EFV's three-digit unit number: /bund/aemter/{number}"},"name":{"type":"string","title":"Name"},"own":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Eigenausgaben, Mio. CHF"},"personnel":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Personalausgaben, Mio. CHF"},"it":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Informatik, Mio. CHF"},"consulting":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Beratung und externe Dienstleistungen, Mio. CHF"},"transfer":{"$ref":"#/components/schemas/BridgeFigureOut","description":"Transferausgaben, Mio. CHF"}},"additionalProperties":false,"type":"object","required":["number","name","own","personnel","it","consulting","transfer"],"title":"BridgeUnitOut"},"BudgetDetailOut":{"properties":{"available":{"type":"boolean","title":"Available"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"values":{"items":{"$ref":"#/components/schemas/BudgetValueOut"},"type":"array","title":"Values"},"matching":{"type":"integer","title":"Matching","description":"Values that pass the filters in all"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"dataset_url":{"type":"string","title":"Dataset Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","release_url","actuals_through","values","matching","page","page_size","dataset_url","source"],"title":"BudgetDetailOut"},"BudgetPointOut":{"properties":{"year":{"type":"integer","title":"Year"},"value":{"type":"string","title":"Value"},"basis":{"type":"string","title":"Basis","description":"ACTUAL, BUDGET or PLAN"}},"additionalProperties":false,"type":"object","required":["year","value","basis"],"title":"BudgetPointOut"},"BudgetValueOut":{"properties":{"topic":{"type":"string","title":"Topic"},"variable_id":{"type":"integer","title":"Variable Id"},"name":{"type":"string","title":"Name"},"level":{"type":"integer","title":"Level"},"path":{"type":"string","title":"Path"},"year":{"type":"integer","title":"Year"},"value":{"type":"string","title":"Value","description":"Exactly as stored, unrounded"},"basis":{"type":"string","title":"Basis","description":"ACTUAL, BUDGET or PLAN"},"source_unit":{"type":"string","title":"Source Unit"},"money":{"type":"boolean","title":"Money"},"unit":{"anyOf":[{"$ref":"#/components/schemas/UnitOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["topic","variable_id","name","level","path","year","value","basis","source_unit","money","unit"],"title":"BudgetValueOut"},"BusinessBriefOut":{"properties":{"number":{"type":"string","title":"Number"},"kind":{"type":"string","title":"Kind"},"type_code":{"type":"integer","title":"Type Code"},"type_abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Abbreviation"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"title":{"$ref":"#/components/schemas/SaidOut"},"status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Text"},"done":{"type":"boolean","title":"Done"},"status_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Status On"},"submitted_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Submitted On"},"first_council":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Council"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"latest":{"anyOf":[{"$ref":"#/components/schemas/ResolutionOut"},{"type":"null"}]},"tasks":{"items":{"$ref":"#/components/schemas/schwur_api__business_dto__TaskOut"},"type":"array","title":"Tasks"}},"additionalProperties":false,"type":"object","required":["number","kind","type_code","type_abbreviation","type_name","title","status_text","done","status_on","submitted_on","first_council","department","latest","tasks"],"title":"BusinessBriefOut"},"BusinessDetailOut":{"properties":{"number":{"type":"string","title":"Number"},"kind":{"type":"string","title":"Kind"},"type_code":{"type":"integer","title":"Type Code"},"type_abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Abbreviation"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"title":{"$ref":"#/components/schemas/SaidOut"},"status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Text"},"done":{"type":"boolean","title":"Done"},"status_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Status On"},"submitted_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Submitted On"},"first_council":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Council"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"latest":{"anyOf":[{"$ref":"#/components/schemas/ResolutionOut"},{"type":"null"}]},"tasks":{"items":{"$ref":"#/components/schemas/schwur_api__business_dto__TaskOut"},"type":"array","title":"Tasks"},"text":{"anyOf":[{"$ref":"#/components/schemas/BusinessTextOut"},{"type":"null"}]},"session":{"anyOf":[{"$ref":"#/components/schemas/schwur_api__business_dto__SessionOut"},{"type":"null"}]},"submission_council":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Council"},"legislative_period":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Legislative Period"},"federal_council_proposal":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Federal Council Proposal"},"federal_council_proposal_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Federal Council Proposal On"},"bills":{"items":{"$ref":"#/components/schemas/BillOut"},"type":"array","title":"Bills"},"resolutions":{"items":{"$ref":"#/components/schemas/ResolutionOut"},"type":"array","title":"Resolutions"},"committees":{"items":{"$ref":"#/components/schemas/CommitteeOut"},"type":"array","title":"Committees"},"authors":{"items":{"$ref":"#/components/schemas/schwur_api__business_dto__PersonOut"},"type":"array","title":"Authors"},"co_signers":{"items":{"$ref":"#/components/schemas/schwur_api__business_dto__PersonOut"},"type":"array","title":"Co Signers"},"votes":{"$ref":"#/components/schemas/VoteCountOut"},"political_objects":{"items":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"type":"array","title":"Political Objects"},"official_url":{"type":"string","title":"Official Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["number","kind","type_code","type_abbreviation","type_name","title","status_text","done","status_on","submitted_on","first_council","department","latest","tasks","text","session","submission_council","legislative_period","federal_council_proposal","federal_council_proposal_on","bills","resolutions","committees","authors","co_signers","votes","political_objects","official_url","source"],"title":"BusinessDetailOut"},"BusinessFilterOut":{"properties":{"q":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"council":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Council"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"session":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Session"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task"},"author":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Author"}},"additionalProperties":false,"type":"object","required":["q","kind","state","council","department","session","task","author"],"title":"BusinessFilterOut"},"BusinessLinkOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"business_number":{"type":"string","title":"Business Number"},"consultation":{"type":"string","title":"Consultation","description":"Fedlex's name for it: proj/2024/96/cons_1"}},"additionalProperties":false,"type":"object","required":["political_object","business_number","consultation"],"title":"BusinessLinkOut"},"BusinessListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BusinessBriefOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"pages":{"type":"integer","title":"Pages"},"filter":{"$ref":"#/components/schemas/BusinessFilterOut"},"departments":{"items":{"type":"string"},"type":"array","title":"Departments"},"sessions":{"items":{"$ref":"#/components/schemas/schwur_api__business_dto__SessionOut"},"type":"array","title":"Sessions"},"stored":{"type":"integer","title":"Stored"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"additionalProperties":false,"type":"object","required":["items","total","page","page_size","pages","filter","departments","sessions","stored","checked_at"],"title":"BusinessListOut"},"BusinessTextOut":{"properties":{"language":{"type":"string","title":"Language"},"title":{"type":"string","title":"Title"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Text"},"department_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Name"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"submitted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted By"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"submitted_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted Text","description":"HTML as the service gives it"},"reason_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Text","description":"HTML as the service gives it"},"federal_council_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Federal Council Response","description":"HTML as the service gives it"},"federal_council_proposal_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Federal Council Proposal Text"}},"additionalProperties":false,"type":"object","required":["language","title","type_name","status_text","department_name","tags","submitted_by","description","submitted_text","reason_text","federal_council_response","federal_council_proposal_text"],"title":"BusinessTextOut"},"CalendarDayOut":{"properties":{"on":{"type":"string","format":"date","title":"On"},"kind":{"type":"string","title":"Kind","description":"FIXED, RESERVED or ELECTION"},"proposals_set":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Proposals Set","description":"How many the BK counts on a fixed date"},"proposals":{"items":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"type":"array","title":"Proposals"}},"additionalProperties":false,"type":"object","required":["on","kind","proposals_set","proposals"],"title":"CalendarDayOut"},"CalendarDeadlineOut":{"properties":{"deadline":{"$ref":"#/components/schemas/DeadlineOut"},"register_kind":{"type":"string","title":"Register Kind","description":"INITIATIVE or REFERENDUM"},"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"notices":{"items":{"type":"string"},"type":"array","title":"Notices","description":"The kinds of the editors' notices standing now"}},"additionalProperties":false,"type":"object","required":["deadline","register_kind","political_object","notices"],"title":"CalendarDeadlineOut"},"CalendarOut":{"properties":{"today":{"type":"string","format":"date","title":"Today"},"days":{"items":{"$ref":"#/components/schemas/CalendarDayOut"},"type":"array","title":"Days"},"deadlines":{"items":{"$ref":"#/components/schemas/CalendarDeadlineOut"},"type":"array","title":"Deadlines"},"next_decision":{"anyOf":[{"$ref":"#/components/schemas/NextDecisionOut"},{"type":"null"}]},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"additionalProperties":false,"type":"object","required":["today","days","deadlines","next_decision","checked_at"],"title":"CalendarOut"},"CandidateOut":{"properties":{"source_id":{"type":"string","title":"Source Id"},"name":{"type":"string","title":"Name"},"votes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Votes"},"elected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Elected"}},"additionalProperties":false,"type":"object","required":["source_id","name","votes","elected"],"title":"CandidateOut"},"CantonOut":{"properties":{"code":{"type":"string","title":"Code"},"number":{"type":"integer","title":"Number"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["code","number","name"],"title":"CantonOut"},"CantonResultsOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"vorlagen_id":{"type":"integer","title":"Vorlagen Id"},"status":{"type":"string","title":"Status"},"canton":{"$ref":"#/components/schemas/AreaResultOut"},"municipalities":{"items":{"$ref":"#/components/schemas/AreaResultOut"},"type":"array","title":"Municipalities"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["political_object","vorlagen_id","status","canton","municipalities","source"],"title":"CantonResultsOut"},"ChancelleryBriefOut":{"properties":{"kind":{"type":"string","title":"Kind","description":"INITIATIVE or REFERENDUM"},"bk_id":{"type":"integer","title":"Bk Id"},"pending":{"type":"boolean","title":"Pending"},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"type_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Code"},"business_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Number"}},"additionalProperties":false,"type":"object","required":["kind","bk_id","pending","phase","type_code","business_number"],"title":"ChancelleryBriefOut"},"ChancelleryEntryOut":{"properties":{"kind":{"type":"string","title":"Kind","description":"INITIATIVE or REFERENDUM"},"bk_id":{"type":"integer","title":"Bk Id"},"pending":{"type":"boolean","title":"Pending"},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"type_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Code"},"business_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Number"},"bk_vote_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bk Vote Number"},"decided_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decided On"},"collection_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Collection Start"},"recommendation_government":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommendation Government"},"recommendation_parliament":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommendation Parliament"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"milestones":{"items":{"$ref":"#/components/schemas/MilestoneOut"},"type":"array","title":"Milestones"}},"additionalProperties":false,"type":"object","required":["kind","bk_id","pending","phase","type_code","business_number","bk_vote_number","decided_on","collection_start","recommendation_government","recommendation_parliament","outcome","milestones"],"title":"ChancelleryEntryOut"},"CheckOut":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"unit":{"type":"string","title":"Unit"},"threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threshold","description":"Null: no justified allowance exists"},"reason":{"type":"string","title":"Reason"},"holds":{"type":"boolean","title":"Holds"},"largest":{"type":"string","title":"Largest"},"failing_years":{"items":{"type":"integer"},"type":"array","title":"Failing Years"},"years":{"items":{"$ref":"#/components/schemas/CheckYearOut"},"type":"array","title":"Years"}},"additionalProperties":false,"type":"object","required":["key","title","unit","threshold","reason","holds","largest","failing_years","years"],"title":"CheckOut","description":"One equation with its raw differences. `holds` is false whenever no threshold is\njustified: an unexplained difference does not pass by being small."},"CheckYearOut":{"properties":{"year":{"type":"integer","title":"Year"},"stated":{"type":"string","title":"Stated"},"computed":{"type":"string","title":"Computed"},"difference":{"type":"string","title":"Difference","description":"stated - computed, raw and unrounded"}},"additionalProperties":false,"type":"object","required":["year","stated","computed","difference"],"title":"CheckYearOut"},"CheckedOut":{"properties":{"finished_at":{"type":"string","format":"date-time","title":"Finished At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["finished_at","note"],"title":"CheckedOut","description":"The last import: when it ran, and what it read."},"ChronicleEntryOut":{"properties":{"kind":{"type":"string","enum":["VOTE","NEWS","MEDIA","BALLOT"],"title":"Kind"},"on":{"type":"string","format":"date","title":"On"},"vote":{"anyOf":[{"$ref":"#/components/schemas/ColumnOut"},{"type":"null"}]},"news":{"anyOf":[{"$ref":"#/components/schemas/NewsRefOut"},{"type":"null"}]},"media":{"anyOf":[{"$ref":"#/components/schemas/MediaLinkOut"},{"type":"null"}]},"ballot":{"anyOf":[{"$ref":"#/components/schemas/BallotOutcomeOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["kind","on"],"title":"ChronicleEntryOut"},"CitationOut":{"properties":{"relation":{"type":"string","title":"Relation"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"fragment":{"$ref":"#/components/schemas/FragmentOut"},"source_version":{"$ref":"#/components/schemas/SourceVersionBriefOut"},"source":{"$ref":"#/components/schemas/SourceRefOut"}},"additionalProperties":false,"type":"object","required":["relation","note","fragment","source_version","source"],"title":"CitationOut"},"CitedFragmentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"type":{"type":"string","title":"Type"},"locator":{"type":"string","title":"Locator"},"sequence":{"type":"integer","title":"Sequence"},"text":{"type":"string","title":"Text"},"cited_by":{"type":"integer","title":"Cited By"}},"additionalProperties":false,"type":"object","required":["id","source_version_id","type","locator","sequence","text","cited_by"],"title":"CitedFragmentOut"},"ColumnOut":{"properties":{"key":{"type":"string","title":"Key","description":"The vote's page: nr-36555, sr-8385"},"vote":{"$ref":"#/components/schemas/ParliamentVoteOut"},"stage":{"type":"string","title":"Stage"},"tally":{"$ref":"#/components/schemas/TallyOut"},"lines":{"items":{"$ref":"#/components/schemas/GroupLineOut"},"type":"array","title":"Lines"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"The editors' marking, if the vote carries one"}},"additionalProperties":false,"type":"object","required":["key","vote","stage","tally","lines","role"],"title":"ColumnOut"},"CommitteeOut":{"properties":{"number":{"type":"integer","title":"Number"},"abbreviation":{"anyOf":[{"$ref":"#/components/schemas/SaidOut"},{"type":"null"}]},"name":{"anyOf":[{"$ref":"#/components/schemas/SaidOut"},{"type":"null"}]},"assigned_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Assigned On"}},"additionalProperties":false,"type":"object","required":["number","abbreviation","name","assigned_on"],"title":"CommitteeOut"},"CommunityActivityOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"author_is_ai":{"type":"boolean","title":"Author Is Ai","description":"Derived from the author's server-owned AI identity"},"guest":{"type":"boolean","title":"Guest"},"kind":{"type":"string","enum":["COMMENT","REPLY"],"title":"Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"language":{"type":"string","title":"Language"},"preview":{"type":"string","maxLength":240,"title":"Preview","description":"Plain-text excerpt, never translated"},"truncated":{"type":"boolean","title":"Truncated"},"title":{"type":"string","title":"Title","description":"The discussion's proposal or news title"},"path":{"type":"string","title":"Path","description":"Internal path to the full comment in its discussion"}},"additionalProperties":false,"type":"object","required":["id","author","author_is_ai","guest","kind","created_at","language","preview","truncated","title","path"],"title":"CommunityActivityOut"},"ConfidenceOut":{"properties":{"overall":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"causal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Causal"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"measurement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measurement"}},"additionalProperties":false,"type":"object","required":["overall","source","causal","model","measurement"],"title":"ConfidenceOut","description":"The overall confidence next to its four components - never the total alone."},"ConsultationBriefOut":{"properties":{"uri":{"type":"string","title":"Uri"},"event_id":{"type":"string","title":"Event Id"},"status":{"type":"string","title":"Status"},"authority":{"type":"string","title":"Authority"},"office":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Office"},"office_abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Office Abbreviation"},"opens_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Opens On"},"closes_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Closes On"},"planned_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned From","description":"Month precision: the first of the month"},"planned_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Until","description":"Month precision: the first of the month"},"business_numbers":{"items":{"type":"string"},"type":"array","title":"Business Numbers","description":"The parliamentary businesses Fedlex ties it to, once there are any"}},"additionalProperties":false,"type":"object","required":["uri","event_id","status","authority","office","office_abbreviation","opens_on","closes_on","planned_from","planned_until","business_numbers"],"title":"ConsultationBriefOut"},"ConsultationDocumentOut":{"properties":{"document_uri":{"type":"string","title":"Document Uri"},"kind":{"type":"string","title":"Kind"},"language":{"type":"string","title":"Language"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"format":{"type":"string","title":"Format"},"file_url":{"type":"string","title":"File Url"},"source_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Id","description":"Its source on schwur.ch once stored; null while it is still to be stored, and always for statements, which are only linked"}},"additionalProperties":false,"type":"object","required":["document_uri","kind","language","title","format","file_url","source_id"],"title":"ConsultationDocumentOut"},"ConsultationItemOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"type":{"type":"string","title":"Type"},"topics":{"items":{"$ref":"#/components/schemas/TopicOut"},"type":"array","title":"Topics"},"consultation":{"$ref":"#/components/schemas/ConsultationBriefOut"},"documents":{"type":"integer","title":"Documents","description":"Documents, each counted once whatever its languages"}},"additionalProperties":false,"type":"object","required":["political_object","type","topics","consultation","documents"],"title":"ConsultationItemOut"},"ConsultationListOut":{"properties":{"state":{"type":"string","title":"State"},"items":{"items":{"$ref":"#/components/schemas/ConsultationItemOut"},"type":"array","title":"Items"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","description":"Consultations per state"},"authorities":{"additionalProperties":{"type":"integer"},"type":"object","title":"Authorities","description":"In this state and topic, per authority, before the authority filter"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"additionalProperties":false,"type":"object","required":["state","items","counts","authorities","checked_at"],"title":"ConsultationListOut"},"ConsultationOut":{"properties":{"uri":{"type":"string","title":"Uri"},"event_id":{"type":"string","title":"Event Id"},"status":{"type":"string","title":"Status"},"authority":{"type":"string","title":"Authority"},"office":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Office"},"office_abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Office Abbreviation"},"opens_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Opens On"},"closes_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Closes On"},"planned_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned From","description":"Month precision: the first of the month"},"planned_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Until","description":"Month precision: the first of the month"},"business_numbers":{"items":{"type":"string"},"type":"array","title":"Business Numbers","description":"The parliamentary businesses Fedlex ties it to, once there are any"},"documents":{"items":{"$ref":"#/components/schemas/ConsultationDocumentOut"},"type":"array","title":"Documents"},"acts":{"items":{"$ref":"#/components/schemas/AffectedActOut"},"type":"array","title":"Acts"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRefOut"},{"type":"null"}]},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"}},"additionalProperties":false,"type":"object","required":["uri","event_id","status","authority","office","office_abbreviation","opens_on","closes_on","planned_from","planned_until","business_numbers","documents","acts","source","retrieved_at"],"title":"ConsultationOut"},"ContactOriginOut":{"properties":{"origin":{"type":"string","title":"Origin"},"found_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Found At"}},"additionalProperties":false,"type":"object","required":["origin","found_at"],"title":"ContactOriginOut"},"ContactOut":{"properties":{"kind":{"type":"string","title":"Kind"},"value":{"type":"string","title":"Value"},"text":{"type":"string","title":"Text"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"origins":{"items":{"$ref":"#/components/schemas/ContactOriginOut"},"type":"array","title":"Origins"},"read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read"}},"additionalProperties":false,"type":"object","required":["kind","value","text","url","origins","read"],"title":"ContactOut","description":"A public contact detail as its origin gives it (`value`), as a page writes it\n(`text`: @handle, a website without its scheme) and what it links to (`url`:\nmailto:, tel:, the profile; none for an address). `read` says for an account\nwhether schwur.ch reads its posts for «Stimmen aus dem Rat»; null for the rest."},"ContactSourceOut":{"properties":{"origin":{"type":"string","title":"Origin"},"source":{"$ref":"#/components/schemas/SourceStampOut"}},"additionalProperties":false,"type":"object","required":["origin","source"],"title":"ContactSourceOut"},"Council":{"type":"string","enum":["NATIONAL","STATES"],"title":"Council"},"CouncilLaneOut":{"properties":{"council":{"type":"string","title":"Council"},"columns":{"items":{"$ref":"#/components/schemas/ColumnOut"},"type":"array","title":"Columns"},"reversals":{"additionalProperties":{"type":"integer"},"type":"object","title":"Reversals","description":"Yes to no and no to yes per group, from the overall to the final vote"}},"additionalProperties":false,"type":"object","required":["council","columns","reversals"],"title":"CouncilLaneOut"},"CountsOut":{"properties":{"impacts":{"type":"integer","title":"Impacts"},"evidence":{"type":"integer","title":"Evidence"},"sources":{"type":"integer","title":"Sources"}},"additionalProperties":false,"type":"object","required":["impacts","evidence","sources"],"title":"CountsOut"},"CoverageItemOut":{"properties":{"dataset":{"$ref":"#/components/schemas/DatasetOut"},"receipt":{"$ref":"#/components/schemas/ReceiptOut"}},"additionalProperties":false,"type":"object","required":["dataset","receipt"],"title":"CoverageItemOut"},"CreditLinkOut":{"properties":{"credit":{"type":"string","title":"Credit"},"role":{"type":"string","title":"Role","description":"RECIPIENT or SECTOR"},"basis":{"type":"string","title":"Basis","description":"TITLE, EFV_DETAILS, DOCUMENT or EDITORS"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["credit","role","basis","reason","created_at"],"title":"CreditLinkOut"},"CreditTieIn":{"properties":{"organisation_id":{"type":"string","format":"uuid","title":"Organisation Id"},"role":{"type":"string","enum":["RECIPIENT","SECTOR"],"title":"Role"},"basis":{"type":"string","enum":["TITLE","EFV_DETAILS","DOCUMENT","EDITORS"],"title":"Basis","description":"RECIPIENT: TITLE, EFV_DETAILS or DOCUMENT; SECTOR: EDITORS"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"source_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Version Id","description":"For basis DOCUMENT"}},"additionalProperties":false,"type":"object","required":["organisation_id","role","basis","reason"],"title":"CreditTieIn"},"CreditTieOut":{"properties":{"credit":{"type":"string","title":"Credit"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"The credit's page; null if the newest release lacks it"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"role":{"type":"string","title":"Role","description":"RECIPIENT or SECTOR"},"basis":{"type":"string","title":"Basis"},"reason":{"type":"string","title":"Reason"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount","description":"The credit's payment in the last year with payments"}},"additionalProperties":false,"type":"object","required":["credit","slug","title","role","basis","reason","amount"],"title":"CreditTieOut"},"CreditVoteOut":{"properties":{"key":{"type":"string","title":"Key","description":"The vote's page: /parlament/abstimmungen/{key}"},"council":{"type":"string","title":"Council"},"voted_on":{"type":"string","format":"date","title":"Voted On"},"business_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Number"},"subject":{"type":"string","title":"Subject"},"meaning_yes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning Yes"},"meaning_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning No"},"meaning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning","description":"What yes meant, in the editors' words, if written"},"yes":{"type":"integer","title":"Yes"},"no":{"type":"integer","title":"No"},"abstention":{"type":"integer","title":"Abstention"},"not_voting":{"type":"integer","title":"Not Voting"}},"additionalProperties":false,"type":"object","required":["key","council","voted_on","business_number","subject","meaning_yes","meaning_no","meaning","yes","no","abstention","not_voting"],"title":"CreditVoteOut","description":"A chamber's vote whose subject names the credit - a budget's vote on it. Texts\nas the Parliamentary Services give them (French or German)."},"DatasetDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"publisher":{"$ref":"#/components/schemas/PublisherOut"},"source":{"$ref":"#/components/schemas/SourceRefOut"},"versions":{"items":{"$ref":"#/components/schemas/DatasetVersionDetailOut"},"type":"array","title":"Versions"}},"additionalProperties":false,"type":"object","required":["id","key","name","description","publisher","source","versions"],"title":"DatasetDetailOut"},"DatasetOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"family":{"type":"string","title":"Family"},"contract":{"type":"string","title":"Contract"},"from_year":{"type":"integer","title":"From Year"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"code_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Code Version Id"},"url":{"type":"string","title":"Url"},"sha256":{"type":"string","title":"Sha256"},"title":{"type":"string","title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_id":{"type":"string","format":"uuid","title":"Source Id","readOnly":true}},"additionalProperties":false,"type":"object","required":["id","key","family","contract","from_year","source_version_id","code_version_id","url","sha256","title","created_at","source_id"],"title":"DatasetOut"},"DatasetRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","name"],"title":"DatasetRefOut"},"DatasetVersionDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","title":"Status"},"is_current":{"type":"boolean","title":"Is Current"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"supersedes_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supersedes Id"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Superseded At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"observations":{"items":{"$ref":"#/components/schemas/schwur_api__dto__ObservationOut"},"type":"array","title":"Observations"}},"additionalProperties":false,"type":"object","required":["id","label","status","is_current","source_version_id","supersedes_id","superseded_at","created_at","observations"],"title":"DatasetVersionDetailOut"},"DatasetVersionIn":{"properties":{"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label","examples":["2024, definitiv"]},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"observations":{"items":{"$ref":"#/components/schemas/ObservationIn"},"type":"array","minItems":1,"title":"Observations"}},"additionalProperties":false,"type":"object","required":["label","source_version_id","observations"],"title":"DatasetVersionIn"},"DatasetVersionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","title":"Status"},"is_current":{"type":"boolean","title":"Is Current"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"supersedes_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supersedes Id"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Superseded At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","label","status","is_current","source_version_id","supersedes_id","superseded_at","created_at"],"title":"DatasetVersionOut"},"DatasetVersionPublishedOut":{"properties":{"version":{"$ref":"#/components/schemas/DatasetVersionOut"},"superseded":{"anyOf":[{"$ref":"#/components/schemas/DatasetVersionOut"},{"type":"null"}]},"stale_analysis_runs":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Stale Analysis Runs"},"stale_estimates":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Stale Estimates"}},"additionalProperties":false,"type":"object","required":["version","superseded","stale_analysis_runs","stale_estimates"],"title":"DatasetVersionPublishedOut"},"DateResultItemOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"result":{"$ref":"#/components/schemas/VoteResultOut"}},"additionalProperties":false,"type":"object","required":["political_object","result"],"title":"DateResultItemOut"},"DateResultsOut":{"properties":{"vote_date":{"type":"string","format":"date","title":"Vote Date"},"items":{"items":{"$ref":"#/components/schemas/DateResultItemOut"},"type":"array","title":"Items"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"},"dataset_url":{"type":"string","title":"Dataset Url"}},"additionalProperties":false,"type":"object","required":["vote_date","items","checked_at","dataset_url"],"title":"DateResultsOut"},"DeadlineOut":{"properties":{"kind":{"type":"string","title":"Kind"},"on":{"type":"string","format":"date","title":"On"},"reckoned":{"type":"boolean","title":"Reckoned","description":"schwur.ch's reckoning, not a date of the BK"},"rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule"}},"additionalProperties":false,"type":"object","required":["kind","on","reckoned","rule"],"title":"DeadlineOut"},"DepartmentMessagesOut":{"properties":{"code":{"type":"string","title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"items":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"authors":{"items":{"prefixItems":[{"type":"string"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Authors"},"since":{"type":"string","format":"date","title":"Since"},"checked":{"anyOf":[{"$ref":"#/components/schemas/CheckedOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["code","name","items","total","authors","since","checked"],"title":"DepartmentMessagesOut"},"DepartmentSubsidiesOut":{"properties":{"department":{"type":"string","title":"Department","description":"The EFV's code: EDA, EDI, EJPD, VBS, EFD, WBF, UVEK"},"total":{"type":"string","title":"Total"},"paid":{"type":"integer","title":"Paid","description":"Credits with a payment in the year"}},"additionalProperties":false,"type":"object","required":["department","total","paid"],"title":"DepartmentSubsidiesOut"},"DepartmentUnitsOut":{"properties":{"code":{"type":"string","title":"Code"},"available":{"type":"boolean","title":"Available"},"department_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Name","description":"As «Institutionen» names the department"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"years":{"items":{"$ref":"#/components/schemas/UnitYearOut"},"type":"array","title":"Years"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"totals":{"$ref":"#/components/schemas/UnitValuesOut","description":"The file's own row for the department"},"lines":{"items":{"$ref":"#/components/schemas/UnitLineOut"},"type":"array","title":"Lines"},"without_number":{"type":"integer","title":"Without Number"},"sources":{"$ref":"#/components/schemas/UnitSourcesOut"}},"additionalProperties":false,"type":"object","required":["code","available","department_name","year","years","actuals_through","totals","lines","without_number","sources"],"title":"DepartmentUnitsOut"},"DeviationOut":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton"},"decision":{"type":"string","title":"Decision"},"line":{"$ref":"#/components/schemas/GroupLineOut"}},"additionalProperties":false,"type":"object","required":["name","slug","group_code","canton","decision","line"],"title":"DeviationOut"},"DimensionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","name"],"title":"DimensionOut"},"DirectoryOut":{"properties":{"source":{"anyOf":[{"$ref":"#/components/schemas/schwur_api__municipal_dto__SourceOut"},{"type":"null"}]},"records":{"items":{"$ref":"#/components/schemas/MunicipalityOut"},"type":"array","title":"Records"},"total":{"type":"integer","title":"Total"},"offset":{"type":"integer","title":"Offset"},"limit":{"type":"integer","title":"Limit"}},"additionalProperties":false,"type":"object","required":["source","records","total","offset","limit"],"title":"DirectoryOut"},"DiscussionOut":{"properties":{"political_object":{"anyOf":[{"$ref":"#/components/schemas/PoliticalObjectRefOut"},{"type":"null"}]},"news_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"News Item Id"},"posts":{"items":{"$ref":"#/components/schemas/PostOut"},"type":"array","title":"Posts"},"threads":{"type":"integer","title":"Threads","description":"Top-level posts in all"},"total":{"type":"integer","title":"Total","description":"Every post, replies and deleted ones included"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"sort":{"type":"string","title":"Sort"},"writable":{"type":"boolean","title":"Writable","description":"False while writing is switched off (DISCUSSION_WRITE); reading stays open","default":true},"guests":{"type":"boolean","title":"Guests","description":"Whether a post can be written without an account (DISCUSSION_GUESTS)","default":true}},"additionalProperties":false,"type":"object","required":["political_object","news_item_id","posts","threads","total","page","page_size","sort"],"title":"DiscussionOut"},"DismissIn":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"DismissIn"},"DismissalOut":{"properties":{"post_id":{"type":"string","format":"uuid","title":"Post Id"},"outcome":{"type":"string","title":"Outcome","description":"SKIPPED"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"dismissed"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["post_id","outcome","reason","decided_at"],"title":"DismissalOut"},"DisplayNameIn":{"properties":{"display_name":{"type":"string","maxLength":100,"title":"Display Name"}},"additionalProperties":false,"type":"object","required":["display_name"],"title":"DisplayNameIn"},"DocumentVersionDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","title":"Status"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"political_object_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Political Object Id"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"provisions":{"items":{"$ref":"#/components/schemas/ProvisionNodeOut"},"type":"array","title":"Provisions"},"coverage":{"anyOf":[{"$ref":"#/components/schemas/schwur_api__dto__CoverageOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","label","status","valid_from","political_object_id","provisions","coverage"],"title":"DocumentVersionDetailOut"},"DocumentVersionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","title":"Status"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"political_object_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Political Object Id"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","label","status","valid_from","political_object_id"],"title":"DocumentVersionOut"},"DutyOut":{"properties":{"number":{"type":"string","title":"Number"},"type_code":{"type":"integer","title":"Type Code"},"language":{"type":"string","title":"Language"},"title":{"type":"string","title":"Title"},"submitted_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Submitted On"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"due_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due On"},"rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule"},"state":{"type":"string","title":"State"},"proposal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposal"},"proposal_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Proposal On"},"transferred_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Transferred On"},"reporting_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporting Rule"}},"additionalProperties":false,"type":"object","required":["number","type_code","language","title","submitted_on","department","due_on","rule","state","proposal","proposal_on","transferred_on","reporting_rule"],"title":"DutyOut"},"EdgeOut":{"properties":{"key":{"type":"string","title":"Key"},"type":{"$ref":"#/components/schemas/RelationTypeRefOut"},"source":{"type":"string","format":"uuid","title":"Source"},"target":{"type":"string","format":"uuid","title":"Target"},"derived":{"type":"boolean","title":"Derived"},"via":{"items":{"type":"string"},"type":"array","title":"Via","description":"A derived edge: the organisations or committees it rests on"},"relation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Relation Id"},"attributes":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Attributes"},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"},"named_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Named As"},"seen_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen From"}},"additionalProperties":false,"type":"object","required":["key","type","source","target","derived","via","relation_id","attributes","level","named_as","seen_from"],"title":"EdgeOut"},"EditIn":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"additionalProperties":false,"type":"object","required":["body"],"title":"EditIn"},"ElectionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"canton":{"type":"string","title":"Canton"},"elected_body":{"type":"string","title":"Elected Body"},"body_jurisdiction":{"type":"string","title":"Body Jurisdiction"},"election_date":{"type":"string","format":"date","title":"Election Date"},"district":{"type":"string","title":"District"},"round":{"type":"integer","title":"Round"},"system":{"type":"string","title":"System"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"},"preceding_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Preceding Round Id"},"title":{"type":"string","title":"Title"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"source_url":{"type":"string","title":"Source Url"},"publication_status":{"type":"string","title":"Publication Status"}},"additionalProperties":false,"type":"object","required":["id","canton","elected_body","body_jurisdiction","election_date","district","round","system","seats","preceding_round_id","title","source_version_id","source_url","publication_status"],"title":"ElectionOut"},"EmailIn":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"locale":{"type":"string","enum":["de","fr","it","en","uk"],"title":"Locale","description":"The language of the form and the mail","default":"de"}},"additionalProperties":false,"type":"object","required":["email"],"title":"EmailIn"},"EmergencyActOut":{"properties":{"eli":{"type":"string","title":"Eli"},"published_on":{"type":"string","format":"date","title":"Published On"},"in_force_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"In Force On"},"no_longer_in_force_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"No Longer In Force On"},"applicable_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Applicable Until"},"title":{"type":"string","title":"Title"},"language":{"type":"string","title":"Language"},"url":{"type":"string","title":"Url"},"bases":{"items":{"type":"string"},"type":"array","title":"Bases"}},"additionalProperties":false,"type":"object","required":["eli","published_on","in_force_on","no_longer_in_force_on","applicable_until","title","language","url","bases"],"title":"EmergencyActOut"},"EmergencyGroupOut":{"properties":{"first":{"$ref":"#/components/schemas/EmergencyActOut"},"acts":{"items":{"$ref":"#/components/schemas/EmergencyActOut"},"type":"array","title":"Acts"},"bases":{"items":{"type":"string"},"type":"array","title":"Bases"},"in_force":{"type":"boolean","title":"In Force"},"limits":{"items":{"$ref":"#/components/schemas/LimitOut"},"type":"array","title":"Limits"}},"additionalProperties":false,"type":"object","required":["first","acts","bases","in_force","limits"],"title":"EmergencyGroupOut"},"EmergencyOrdinancesOut":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/EmergencyGroupOut"},"type":"array","title":"Groups"},"read":{"additionalProperties":{"type":"integer"},"type":"object","title":"Read"},"since":{"type":"string","format":"date","title":"Since"},"xml_from":{"type":"string","format":"date","title":"Xml From"}},"additionalProperties":false,"type":"object","required":["groups","read","since","xml_from"],"title":"EmergencyOrdinancesOut"},"EndOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind","description":"PERSON, ORGANISATION or BODY"},"body_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Kind","description":"COUNCIL, GROUP, PARTY, COMMITTEE, INTERGROUP or DEPARTMENT, for a body"},"name":{"type":"string","title":"Name"},"person_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person Number","description":"Parliament person number after identity resolution; never inferred from a name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"The page of a person, an organisation or a body"},"council":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Council"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Name"},"group_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Colour"},"listed":{"type":"boolean","title":"Listed","description":"A name a list gives without a person number, not decided to be anyone"}},"additionalProperties":false,"type":"object","required":["id","kind","body_kind","name","person_number","slug","council","canton","group_code","group_name","group_colour","listed"],"title":"EndOut","description":"One end of a relation: a person, an organisation or a body."},"EpisodeBlockOut":{"properties":{"start_s":{"type":"integer","title":"Start S"},"end_s":{"type":"integer","title":"End S"},"outcome":{"type":"string","title":"Outcome","description":"ITEM (an opinion), NOT_TAKEN, or FILLER (greeting, advertising, farewell)"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Withheld for an opinion that has not appeared"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why a topic was not taken, as a code"},"item":{"anyOf":[{"$ref":"#/components/schemas/EpisodeItemOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["start_s","end_s","outcome","label","reason","item"],"title":"EpisodeBlockOut"},"EpisodeItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"}},"additionalProperties":false,"type":"object","required":["id","title"],"title":"EpisodeItemOut"},"EpisodeOut":{"properties":{"episode":{"$ref":"#/components/schemas/EpisodeRefOut"},"blocks":{"items":{"$ref":"#/components/schemas/EpisodeBlockOut"},"type":"array","title":"Blocks"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}],"description":"The stored transcript"}},"additionalProperties":false,"type":"object","required":["episode","blocks","source"],"title":"EpisodeOut"},"EpisodeRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"podcast":{"type":"string","title":"Podcast"},"podcast_name":{"type":"string","title":"Podcast Name"},"publisher":{"type":"string","title":"Publisher"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url","description":"The episode's page on the podcast's host"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"duration_s":{"type":"integer","title":"Duration S"}},"additionalProperties":false,"type":"object","required":["id","podcast","podcast_name","publisher","title","url","published_at","duration_s"],"title":"EpisodeRefOut"},"ErrorBodyOut":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Details"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},"additionalProperties":false,"type":"object","required":["code","message","details","request_id"],"title":"ErrorBodyOut"},"ErrorOut":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBodyOut"}},"additionalProperties":false,"type":"object","required":["error"],"title":"ErrorOut"},"EstimateDraftIn":{"properties":{"scenario":{"type":"string","title":"Scenario","examples":["PROPOSAL_ACCEPTED"]},"unit":{"type":"string","title":"Unit","examples":["CHF_MILLION_PER_YEAR"]},"low":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Low"},"central":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Central"},"high":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"High"},"methodology":{"type":"string","maxLength":10000,"minLength":1,"title":"Methodology"},"evidence":{"items":{"$ref":"#/components/schemas/EvidenceLinkIn"},"type":"array","title":"Evidence"},"analysis_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Analysis Run Id"},"probability":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Probability"},"confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"source_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Source Confidence"},"causal_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Causal Confidence"},"model_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Model Confidence"},"measurement_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Measurement Confidence"},"period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period End"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"currency_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Currency Year"},"price_basis":{"anyOf":[{"type":"string","enum":["NOMINAL","REAL"]},{"type":"null"}],"title":"Price Basis"},"supersedes_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supersedes Id"}},"additionalProperties":false,"type":"object","required":["scenario","unit","methodology"],"title":"EstimateDraftIn"},"EstimateOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"impact_id":{"type":"string","format":"uuid","title":"Impact Id"},"scenario":{"$ref":"#/components/schemas/ScenarioOut"},"unit":{"type":"string","title":"Unit"},"value":{"$ref":"#/components/schemas/ValueRangeOut"},"probability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probability"},"confidence":{"$ref":"#/components/schemas/ConfidenceOut"},"period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period End"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"currency_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Currency Year"},"price_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Basis"},"methodology":{"type":"string","title":"Methodology"},"status":{"type":"string","title":"Status"},"supersedes_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Supersedes Id"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"stale":{"anyOf":[{"$ref":"#/components/schemas/StaleOut"},{"type":"null"}]},"analysis_run":{"$ref":"#/components/schemas/AnalysisRunOut"},"model_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Run Id","description":"Set when a model computed the figure: GET /api/v1/model-runs/{id}"},"evidence_count":{"type":"integer","title":"Evidence Count"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","impact_id","scenario","unit","value","probability","confidence","period_start","period_end","currency","currency_year","price_basis","methodology","status","supersedes_id","published_at","stale","analysis_run","model_run_id","evidence_count"],"title":"EstimateOut"},"EventOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"bfs":{"type":"integer","title":"Bfs"},"historical_id":{"type":"integer","title":"Historical Id"},"event_date":{"type":"string","format":"date","title":"Event Date"},"source_id":{"type":"string","title":"Source Id"},"kind":{"type":"string","enum":["BALLOT","MAJORITY","PROPORTIONAL"],"title":"Kind"},"titles":{"items":{"$ref":"#/components/schemas/TitleOut"},"type":"array","title":"Titles"},"concluded":{"type":"boolean","title":"Concluded"},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepted"},"yes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yes"},"no":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"No"},"turnout":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Turnout"},"candidates":{"items":{"$ref":"#/components/schemas/CandidateOut"},"type":"array","title":"Candidates"},"parent_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Source Id"},"subtype":{"type":"string","title":"Subtype"},"locator":{"type":"string","title":"Locator"}},"additionalProperties":false,"type":"object","required":["id","bfs","historical_id","event_date","source_id","kind","titles","concluded","accepted","yes","no","turnout","candidates","parent_source_id","subtype","locator"],"title":"EventOut"},"EventRecordOut":{"properties":{"source":{"$ref":"#/components/schemas/schwur_api__municipal_dto__SourceOut"},"event":{"$ref":"#/components/schemas/EventOut"},"publication_status":{"type":"string","const":"PROVISIONAL_OFFICIAL","title":"Publication Status","default":"PROVISIONAL_OFFICIAL"}},"additionalProperties":false,"type":"object","required":["source","event"],"title":"EventRecordOut"},"EvidenceLinkIn":{"properties":{"fragment_id":{"type":"string","format":"uuid","title":"Fragment Id"},"relation":{"type":"string","enum":["SUPPORTS","CONTRADICTS","QUALIFIES","CONTEXT"],"title":"Relation"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["fragment_id","relation"],"title":"EvidenceLinkIn"},"EvidenceOut":{"properties":{"relation":{"type":"string","title":"Relation"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"scope":{"type":"string","enum":["impact","estimate"],"title":"Scope"},"estimate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Estimate Id"},"scenario_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario Key"},"fragment":{"$ref":"#/components/schemas/FragmentOut"},"source_version":{"$ref":"#/components/schemas/SourceVersionBriefOut"},"source":{"$ref":"#/components/schemas/SourceRefOut"}},"additionalProperties":false,"type":"object","required":["relation","note","scope","estimate_id","scenario_key","fragment","source_version","source"],"title":"EvidenceOut"},"FamilyCoverageOut":{"properties":{"kind":{"type":"string","title":"Kind"},"title":{"type":"string","title":"Title"},"imported":{"type":"boolean","title":"Imported"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"rows":{"type":"integer","title":"Rows","description":"Rows stored, counted from the release"},"first_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Year"},"last_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Year"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"note":{"type":"string","title":"Note"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["kind","title","imported","release_url","rows","first_year","last_year","actuals_through","note","source"],"title":"FamilyCoverageOut"},"FederalOut":{"properties":{"budget_available":{"type":"boolean","title":"Budget Available"},"subsidy_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subsidy Year","description":"The last year with payments"},"subsidy_total":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subsidy Total"},"departments":{"items":{"$ref":"#/components/schemas/DepartmentSubsidiesOut"},"type":"array","title":"Departments","description":"Largest first"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["budget_available","subsidy_year","subsidy_total","departments","source"],"title":"FederalOut"},"FeedbackIn":{"properties":{"check_id":{"type":"string","format":"uuid","title":"Check Id","description":"The check the 422 named (detail field «check»)"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"consent":{"type":"boolean","title":"Consent","description":"Whether schwur.ch may keep the draft","default":false},"draft":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Draft","description":"Kept only with consent, for 90 days"}},"additionalProperties":false,"type":"object","required":["check_id","reason"],"title":"FeedbackIn"},"FeedbackOut":{"properties":{"received":{"type":"boolean","title":"Received"}},"additionalProperties":false,"type":"object","required":["received"],"title":"FeedbackOut"},"FieldI18nOut":{"properties":{"status":{"type":"string","title":"Status","description":"OFFICIAL, REVIEWED or MACHINE when a translation is served; missing or outdated when the German original stands in"},"original":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original","description":"The German text a served translation translates"}},"additionalProperties":false,"type":"object","required":["status","original"],"title":"FieldI18nOut"},"FinanceCatalogueOut":{"properties":{"available":{"type":"boolean","title":"Available","description":"False until the first budget file is imported"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"first_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Year"},"last_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Year"},"values":{"type":"integer","title":"Values","description":"Values in the release"},"series":{"items":{"$ref":"#/components/schemas/FinanceSeriesOut"},"type":"array","title":"Series","description":"Every series, by topic then the file's key"},"dataset_url":{"type":"string","title":"Dataset Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","release_url","actuals_through","first_year","last_year","values","series","dataset_url","source"],"title":"FinanceCatalogueOut"},"FinanceCoverageOut":{"properties":{"families":{"items":{"$ref":"#/components/schemas/FamilyCoverageOut"},"type":"array","title":"Families"},"areas":{"items":{"$ref":"#/components/schemas/PortalAreaOut"},"type":"array","title":"Areas","description":"All five entrances of the EFV's portal"}},"additionalProperties":false,"type":"object","required":["families","areas"],"title":"FinanceCoverageOut","description":"What is covered, counted from the stored rows - not from a promise. Research\nextracts carry no source version and appear here nowhere."},"FinanceOut":{"properties":{"bfs":{"type":"integer","title":"Bfs"},"year":{"type":"integer","title":"Year"},"basis":{"type":"string","enum":["ACTUAL","BUDGET","PAYMENT","INDICATOR"],"title":"Basis"},"indicator":{"type":"string","title":"Indicator"},"label":{"type":"string","title":"Label"},"path":{"items":{"type":"string"},"type":"array","title":"Path"},"unit":{"type":"string","title":"Unit"},"value":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value"},"raw":{"type":"string","title":"Raw"},"locator":{"type":"string","title":"Locator"},"status":{"type":"string","title":"Status"},"method":{"type":"string","title":"Method"}},"additionalProperties":false,"type":"object","required":["bfs","year","basis","indicator","label","path","unit","value","raw","locator","status","method"],"title":"FinanceOut"},"FinancePageOut":{"properties":{"bfs":{"type":"integer","title":"Bfs"},"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis"},"sources":{"items":{"$ref":"#/components/schemas/schwur_api__municipal_dto__SourceOut"},"type":"array","title":"Sources"},"records":{"items":{"$ref":"#/components/schemas/FinanceRecordOut"},"type":"array","title":"Records"},"total":{"type":"integer","title":"Total"},"offset":{"type":"integer","title":"Offset"},"limit":{"type":"integer","title":"Limit"}},"additionalProperties":false,"type":"object","required":["bfs","year","basis","sources","records","total","offset","limit"],"title":"FinancePageOut"},"FinanceRecordOut":{"properties":{"snapshot_id":{"type":"string","format":"uuid","title":"Snapshot Id"},"observation":{"$ref":"#/components/schemas/FinanceOut"}},"additionalProperties":false,"type":"object","required":["snapshot_id","observation"],"title":"FinanceRecordOut"},"FinanceSeriesOut":{"properties":{"topic":{"type":"string","title":"Topic"},"variable_id":{"type":"integer","title":"Variable Id","description":"The file's own key; the name may change, this does not"},"name":{"type":"string","title":"Name"},"source_unit":{"type":"string","title":"Source Unit","description":"The file's own unit column, repeated and not believed"},"level":{"type":"integer","title":"Level"},"path":{"type":"string","title":"Path","description":"The place in the classification, without the unit in brackets"},"first_year":{"type":"integer","title":"First Year"},"last_year":{"type":"integer","title":"Last Year"},"values":{"type":"integer","title":"Values","description":"Years with a value"},"checked":{"type":"boolean","title":"Checked","description":"False: no one has checked what this series measures"},"money":{"type":"boolean","title":"Money","description":"May stand in a table of francs; false whenever unchecked"},"alias":{"type":"boolean","title":"Alias","description":"Repeats another series value for value; shown once"},"unit":{"anyOf":[{"$ref":"#/components/schemas/UnitOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["topic","variable_id","name","source_unit","level","path","first_year","last_year","values","checked","money","alias","unit"],"title":"FinanceSeriesOut"},"FinancesOut":{"properties":{"available":{"type":"boolean","title":"Available","description":"False until the first budget file is imported"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through","description":"The last year of the Rechnung"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url","description":"The EFV file the figures were read from"},"series":{"additionalProperties":{"items":{"$ref":"#/components/schemas/BudgetPointOut"},"type":"array"},"type":"object","title":"Series","description":"The debt-brake table, each series by year: INCOME, SPENDING, BALANCE, ORDINARY_BALANCE, EXTRAORDINARY_BALANCE, GROSS_DEBT, and since the accounts were opened up SELF_FINANCING, NET_INVESTMENT, SPENDING_CEILING, NET_DEBT, COMPENSATION_ACCOUNT and AMORTISATION_ACCOUNT. The last three are stocks and are not added over years; the table's economic references (Outputlücke, Konjunkturfaktor, Trend-BIP, BIP real) are not here, because they are not francs - see /federal/finances/series."},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year","description":"The year of `functions`"},"functions":{"items":{"$ref":"#/components/schemas/FunctionSpendingOut"},"type":"array","title":"Functions","description":"Spending by task area, largest first"},"checks":{"items":{"$ref":"#/components/schemas/CheckOut"},"type":"array","title":"Checks","description":"The equations of the file with their raw differences per year. One of them, «Ausgaben» against the task areas' total, has no justified threshold and therefore never counts as passed."},"dataset_url":{"type":"string","title":"Dataset Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","actuals_through","release_url","series","year","functions","checks","dataset_url","source"],"title":"FinancesOut"},"FormCountOut":{"properties":{"text":{"type":"string","title":"Text"},"persons":{"type":"integer","title":"Persons"}},"additionalProperties":false,"type":"object","required":["text","persons"],"title":"FormCountOut"},"FragmentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"type":{"type":"string","title":"Type"},"locator":{"type":"string","title":"Locator"},"sequence":{"type":"integer","title":"Sequence"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["id","source_version_id","type","locator","sequence","text"],"title":"FragmentOut"},"FunctionSpendingOut":{"properties":{"name":{"type":"string","title":"Name","description":"The task area as the EFV names it"},"value":{"type":"string","title":"Value"},"previous":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous","description":"The year before, if the file has it"},"basis":{"type":"string","title":"Basis"},"variable_id":{"type":"integer","title":"Variable Id","description":"The file's own key for the task area. The series is read by this, so a renamed area keeps its history and its comparison with the year before."}},"additionalProperties":false,"type":"object","required":["name","value","previous","basis","variable_id"],"title":"FunctionSpendingOut"},"FundingPageOut":{"properties":{"relations":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Relations"},"totals":{"items":{"$ref":"#/components/schemas/FundingTotalOut"},"type":"array","title":"Totals"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"}},"additionalProperties":false,"type":"object","required":["relations","totals","total","page","pages"],"title":"FundingPageOut"},"FundingTotalOut":{"properties":{"donor":{"$ref":"#/components/schemas/EndOut"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"basis":{"type":"string","title":"Basis"},"amount_chf":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount Chf"},"relations":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Relations"}},"additionalProperties":false,"type":"object","required":["donor","year","basis","amount_chf","relations"],"title":"FundingTotalOut"},"GapDecisionIn":{"properties":{"target_kind":{"anyOf":[{"type":"string","enum":["POLITICAL_OBJECT","PERSON","BODY","ORGANISATION","NEWS_ITEM"]},{"type":"null"}],"title":"Target Kind","description":"The entry's kind; null marks it as not an entry"},"target_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Id"}},"additionalProperties":false,"type":"object","title":"GapDecisionIn"},"GapOut":{"properties":{"text":{"type":"string","title":"Text"},"kind":{"type":"string","title":"Kind"}},"additionalProperties":false,"type":"object","required":["text","kind"],"title":"GapOut"},"GapReviewOut":{"properties":{"ref":{"type":"string","title":"Ref"},"text":{"type":"string","title":"Text"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status","description":"OPEN, LINKED, FILLED, CHOICE, FOUND, NOT_FOUND or OUT_OF_SCOPE"},"registry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry","description":"Where its key comes from: parlament_person, uid, ..."},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"pending":{"type":"boolean","title":"Pending","description":"Found after the opinion appeared: shown once confirmed"},"link":{"anyOf":[{"$ref":"#/components/schemas/NewsLinkOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["ref","text","kind","status","registry","key","url","note","pending","link"],"title":"GapReviewOut"},"GoalDetailOut":{"properties":{"period":{"type":"string","title":"Period"},"guideline":{"type":"integer","title":"Guideline"},"guideline_title":{"type":"string","title":"Guideline Title"},"number":{"type":"integer","title":"Number"},"title":{"type":"string","title":"Title"},"language":{"type":"string","title":"Language"},"measures":{"items":{"$ref":"#/components/schemas/MeasureOut"},"type":"array","title":"Measures"},"years":{"items":{"$ref":"#/components/schemas/GoalYearOut"},"type":"array","title":"Years"}},"additionalProperties":false,"type":"object","required":["period","guideline","guideline_title","number","title","language","measures","years"],"title":"GoalDetailOut"},"GoalDocumentOut":{"properties":{"eli":{"type":"string","title":"Eli"},"kind":{"type":"string","title":"Kind"},"year":{"type":"integer","title":"Year"},"published_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Published On"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["eli","kind","year","published_on","title","url"],"title":"GoalDocumentOut"},"GoalItemOut":{"properties":{"section":{"type":"string","title":"Section"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"title":{"type":"string","title":"Title"},"steps":{"items":{"type":"string"},"type":"array","title":"Steps"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["section","number","title","steps","text"],"title":"GoalItemOut"},"GoalSummaryOut":{"properties":{"number":{"type":"integer","title":"Number"},"title":{"type":"string","title":"Title"},"language":{"type":"string","title":"Language"},"measures":{"type":"integer","title":"Measures"},"ratings":{"additionalProperties":{"type":"string"},"type":"object","title":"Ratings"},"planned":{"additionalProperties":{"type":"integer"},"type":"object","title":"Planned"}},"additionalProperties":false,"type":"object","required":["number","title","language","measures","ratings","planned"],"title":"GoalSummaryOut"},"GoalYearOut":{"properties":{"year":{"type":"integer","title":"Year"},"rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating"},"goals_document":{"anyOf":[{"$ref":"#/components/schemas/GoalDocumentOut"},{"type":"null"}]},"report":{"anyOf":[{"$ref":"#/components/schemas/GoalDocumentOut"},{"type":"null"}]},"planned":{"items":{"$ref":"#/components/schemas/PlannedItemOut"},"type":"array","title":"Planned"},"unplanned":{"items":{"$ref":"#/components/schemas/GoalItemOut"},"type":"array","title":"Unplanned"}},"additionalProperties":false,"type":"object","required":["year","rating","goals_document","report","planned","unplanned"],"title":"GoalYearOut"},"GoalsOverviewOut":{"properties":{"period":{"type":"string","title":"Period"},"guidelines":{"items":{"$ref":"#/components/schemas/GuidelineOut"},"type":"array","title":"Guidelines"},"documents":{"items":{"$ref":"#/components/schemas/GoalDocumentOut"},"type":"array","title":"Documents"}},"additionalProperties":false,"type":"object","required":["period","guidelines","documents"],"title":"GoalsOverviewOut"},"Group":{"type":"string","enum":["proposals","parliament","federal","news","places"],"title":"Group","description":"The tabs of the search page."},"GroupCountOut":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abbreviation"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colour"},"persons":{"type":"integer","title":"Persons"}},"additionalProperties":false,"type":"object","required":["code","abbreviation","name","colour","persons"],"title":"GroupCountOut"},"GroupLineOut":{"properties":{"group_code":{"type":"string","title":"Group Code"},"decision":{"type":"string","title":"Decision"},"share":{"type":"string","title":"Share","description":"The line's share of the group's yes, no and abstentions"},"count":{"type":"integer","title":"Count"},"counted":{"type":"integer","title":"Counted"},"holds":{"type":"boolean","title":"Holds","description":"Two thirds or more make a line; below, the group is split"}},"additionalProperties":false,"type":"object","required":["group_code","decision","share","count","counted","holds"],"title":"GroupLineOut"},"GroupReferenceOut":{"properties":{"group_code":{"type":"string","title":"Group Code"},"council":{"type":"string","title":"Council"},"median":{"type":"number","title":"Median"},"members":{"type":"integer","title":"Members"}},"additionalProperties":false,"type":"object","required":["group_code","council","median","members"],"title":"GroupReferenceOut"},"GroupSeatsOut":{"properties":{"code":{"type":"string","title":"Code"},"abbreviation":{"type":"string","title":"Abbreviation"},"name":{"type":"string","title":"Name"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colour"},"national":{"type":"integer","title":"National"},"states":{"type":"integer","title":"States"}},"additionalProperties":false,"type":"object","required":["code","abbreviation","name","colour","national","states"],"title":"GroupSeatsOut"},"GroupTallyOut":{"properties":{"yes":{"type":"integer","title":"Yes"},"no":{"type":"integer","title":"No"},"abstention":{"type":"integer","title":"Abstention"},"not_voting":{"type":"integer","title":"Not Voting"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"}},"additionalProperties":false,"type":"object","required":["yes","no","abstention","not_voting","group_code"],"title":"GroupTallyOut"},"GuidelineOut":{"properties":{"number":{"type":"integer","title":"Number"},"title":{"type":"string","title":"Title"},"language":{"type":"string","title":"Language"},"goals":{"items":{"$ref":"#/components/schemas/GoalSummaryOut"},"type":"array","title":"Goals"}},"additionalProperties":false,"type":"object","required":["number","title","language","goals"],"title":"GuidelineOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthOut":{"properties":{"status":{"type":"string","enum":["ok","degraded"],"title":"Status"},"database":{"type":"string","enum":["ok","unreachable"],"title":"Database"},"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["status","database","version"],"title":"HealthOut"},"HelpfulOut":{"properties":{"helpful":{"type":"integer","title":"Helpful"},"given":{"type":"boolean","title":"Given"}},"additionalProperties":false,"type":"object","required":["helpful","given"],"title":"HelpfulOut"},"HitSourceOut":{"properties":{"publisher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"}},"additionalProperties":false,"type":"object","required":["publisher","retrieved_at"],"title":"HitSourceOut"},"HubSessionOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"$ref":"#/components/schemas/SaidOut"},"abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abbreviation"},"starts_on":{"type":"string","format":"date","title":"Starts On"},"ends_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ends On"},"running":{"type":"boolean","title":"Running"}},"additionalProperties":false,"type":"object","required":["id","name","abbreviation","starts_on","ends_on","running"],"title":"HubSessionOut"},"HubTaskOut":{"properties":{"task":{"type":"string","title":"Task"},"slug":{"type":"string","title":"Slug"},"open":{"type":"integer","title":"Open"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["task","slug","open","total"],"title":"HubTaskOut"},"I18nOut":{"properties":{"lang":{"type":"string","title":"Lang"},"fields":{"additionalProperties":{"$ref":"#/components/schemas/FieldI18nOut"},"type":"object","title":"Fields"}},"additionalProperties":false,"type":"object","required":["lang","fields"],"title":"I18nOut","description":"Per content field: what stands there in the requested language."},"IdentitiesIn":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"IdentitiesIn"},"IdentitiesOut":{"properties":{"accepted":{"type":"integer","title":"Accepted"}},"additionalProperties":false,"type":"object","required":["accepted"],"title":"IdentitiesOut"},"IdentityIn":{"properties":{"uid":{"type":"string","maxLength":20,"minLength":12,"title":"Uid","examples":["CHE-153.849.419"]},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["uid","reason"],"title":"IdentityIn"},"ImpactDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"political_object_id":{"type":"string","format":"uuid","title":"Political Object Id"},"dimension":{"$ref":"#/components/schemas/DimensionOut"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","title":"Type"},"direction":{"type":"string","title":"Direction"},"causal_distance":{"type":"integer","title":"Causal Distance"},"causal_distance_label":{"type":"string","title":"Causal Distance Label"},"affected_entity":{"type":"string","title":"Affected Entity"},"geography":{"type":"string","title":"Geography"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"reversibility":{"type":"string","title":"Reversibility"},"quantifiability":{"type":"string","title":"Quantifiability"},"status":{"type":"string","title":"Status"},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"}},"additionalProperties":false,"type":"object","required":["id","political_object_id","dimension","title","description","type","direction","causal_distance","causal_distance_label","affected_entity","geography","start_date","end_date","reversibility","quantifiability","status","confidence","version","created_at","updated_at","political_object"],"title":"ImpactDetailOut"},"ImpactListOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"scenario":{"anyOf":[{"$ref":"#/components/schemas/ScenarioOut"},{"type":"null"}]},"items":{"items":{"$ref":"#/components/schemas/ImpactSummaryOut"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["political_object","scenario","items"],"title":"ImpactListOut"},"ImpactOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"political_object_id":{"type":"string","format":"uuid","title":"Political Object Id"},"dimension":{"$ref":"#/components/schemas/DimensionOut"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","title":"Type"},"direction":{"type":"string","title":"Direction"},"causal_distance":{"type":"integer","title":"Causal Distance"},"causal_distance_label":{"type":"string","title":"Causal Distance Label"},"affected_entity":{"type":"string","title":"Affected Entity"},"geography":{"type":"string","title":"Geography"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"reversibility":{"type":"string","title":"Reversibility"},"quantifiability":{"type":"string","title":"Quantifiability"},"status":{"type":"string","title":"Status"},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","political_object_id","dimension","title","description","type","direction","causal_distance","causal_distance_label","affected_entity","geography","start_date","end_date","reversibility","quantifiability","status","confidence","version","created_at","updated_at"],"title":"ImpactOut"},"ImpactRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","title","status"],"title":"ImpactRefOut"},"ImpactSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"political_object_id":{"type":"string","format":"uuid","title":"Political Object Id"},"dimension":{"$ref":"#/components/schemas/DimensionOut"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","title":"Type"},"direction":{"type":"string","title":"Direction"},"causal_distance":{"type":"integer","title":"Causal Distance"},"causal_distance_label":{"type":"string","title":"Causal Distance Label"},"affected_entity":{"type":"string","title":"Affected Entity"},"geography":{"type":"string","title":"Geography"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"reversibility":{"type":"string","title":"Reversibility"},"quantifiability":{"type":"string","title":"Quantifiability"},"status":{"type":"string","title":"Status"},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"headline":{"anyOf":[{"$ref":"#/components/schemas/EstimateOut"},{"type":"null"}]},"evidence_count":{"type":"integer","title":"Evidence Count"},"sources":{"items":{"$ref":"#/components/schemas/SourceRefOut"},"type":"array","title":"Sources"}},"additionalProperties":false,"type":"object","required":["id","political_object_id","dimension","title","description","type","direction","causal_distance","causal_distance_label","affected_entity","geography","start_date","end_date","reversibility","quantifiability","status","confidence","version","created_at","updated_at","headline","evidence_count","sources"],"title":"ImpactSummaryOut"},"ImportIn":{"properties":{"sources":{"anyOf":[{"items":{"type":"string","enum":["offices","federal-council","intergroups","access-lists","staatskalender","courts","lindas-boards"]},"type":"array"},{"type":"null"}],"title":"Sources","description":"Default: every source configured"}},"additionalProperties":false,"type":"object","title":"ImportIn"},"InstrumentOut":{"properties":{"kind":{"type":"string","title":"Kind"},"total":{"type":"integer","title":"Total"},"statuses":{"items":{"prefixItems":[{"type":"string"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Statuses","description":"the service's status texts, in German"},"proposals":{"additionalProperties":{"type":"integer"},"type":"object","title":"Proposals","description":"ACCEPT, REJECT, PARTIAL, NONE"}},"additionalProperties":false,"type":"object","required":["kind","total","statuses","proposals"],"title":"InstrumentOut"},"InstrumentsOut":{"properties":{"since":{"type":"string","format":"date","title":"Since"},"instruments":{"items":{"$ref":"#/components/schemas/InstrumentOut"},"type":"array","title":"Instruments"},"by_group":{"items":{"prefixItems":[{"anyOf":[{"type":"string"},{"type":"null"}]},{"additionalProperties":{"type":"integer"},"type":"object"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"By Group","description":"per group code (null: a committee, a group as such or others)"}},"additionalProperties":false,"type":"object","required":["since","instruments","by_group"],"title":"InstrumentsOut"},"JobOut":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"doc":{"type":"string","title":"Doc","description":"The page in docs/ that says what the job does"},"schedules":{"items":{"type":"string"},"type":"array","title":"Schedules","description":"App Engine cron's, for this environment"},"next_due":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Due","description":"When cron fires next; empty when the schedule alone cannot say"},"running":{"type":"boolean","title":"Running"},"last_run":{"anyOf":[{"$ref":"#/components/schemas/RunOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","title","description","doc","schedules","next_due","running","last_run"],"title":"JobOut"},"JobsOut":{"properties":{"environment":{"type":"string","title":"Environment"},"cron_active":{"type":"boolean","title":"Cron Active","description":"Whether App Engine cron runs here at all"},"now":{"type":"string","format":"date-time","title":"Now"},"jobs":{"items":{"$ref":"#/components/schemas/JobOut"},"type":"array","title":"Jobs"}},"additionalProperties":false,"type":"object","required":["environment","cron_active","now","jobs"],"title":"JobsOut"},"Kind":{"type":"string","enum":["proposal","topic","impact","legal_impact","business","vote","member","person","organisation","body","department","unit","subsidy","news","canton","municipality"],"title":"Kind"},"KindOut":{"properties":{"kind":{"$ref":"#/components/schemas/Kind"},"group":{"$ref":"#/components/schemas/Group"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"}},"additionalProperties":false,"type":"object","required":["kind","group","label","description"],"title":"KindOut"},"LegalDocumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"legal_order":{"type":"string","title":"Legal Order","description":"CH, EU, or CH_EU for agreements between them"},"type":{"type":"string","title":"Type"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"versions":{"items":{"$ref":"#/components/schemas/DocumentVersionDetailOut"},"type":"array","title":"Versions"}},"additionalProperties":false,"type":"object","required":["id","key","title","short_title","identifier","legal_order","type","versions"],"title":"LegalDocumentOut"},"LegalDocumentRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"legal_order":{"type":"string","title":"Legal Order","description":"CH, EU, or CH_EU for agreements between them"},"type":{"type":"string","title":"Type"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","title","short_title","identifier","legal_order","type"],"title":"LegalDocumentRefOut"},"LegalImpactListOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"items":{"items":{"$ref":"#/components/schemas/LegalImpactSummaryOut"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["political_object","items"],"title":"LegalImpactListOut"},"LegalImpactOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"category":{"type":"string","title":"Category"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"provision_id":{"type":"string","format":"uuid","title":"Provision Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","category","title","description","status","political_object","provision_id","created_at","updated_at"],"title":"LegalImpactOut"},"LegalImpactSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"category":{"type":"string","title":"Category"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"provision_id":{"type":"string","format":"uuid","title":"Provision Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"affected":{"$ref":"#/components/schemas/ProvisionNodeOut"},"quantitative_count":{"type":"integer","title":"Quantitative Count"}},"additionalProperties":false,"type":"object","required":["id","category","title","description","status","political_object","provision_id","created_at","updated_at","affected","quantitative_count"],"title":"LegalImpactSummaryOut"},"LegalRelationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"source_provision_id":{"type":"string","format":"uuid","title":"Source Provision Id"},"target_provision_id":{"type":"string","format":"uuid","title":"Target Provision Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"evidence":{"items":{"$ref":"#/components/schemas/CitationOut"},"type":"array","title":"Evidence"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","type","source_provision_id","target_provision_id","note","evidence"],"title":"LegalRelationOut"},"LegalTraceOut":{"properties":{"legal_impact":{"$ref":"#/components/schemas/LegalImpactOut"},"affected_provision_id":{"type":"string","format":"uuid","title":"Affected Provision Id"},"provisions":{"items":{"$ref":"#/components/schemas/ProvisionNodeOut"},"type":"array","title":"Provisions"},"relations":{"items":{"$ref":"#/components/schemas/LegalRelationOut"},"type":"array","title":"Relations"},"comparisons":{"items":{"$ref":"#/components/schemas/ProvisionComparisonOut"},"type":"array","title":"Comparisons"},"evidence":{"items":{"$ref":"#/components/schemas/CitationOut"},"type":"array","title":"Evidence"},"quantitative":{"items":{"$ref":"#/components/schemas/QuantitativeImpactOut"},"type":"array","title":"Quantitative"}},"additionalProperties":false,"type":"object","required":["legal_impact","affected_provision_id","provisions","relations","comparisons","evidence","quantitative"],"title":"LegalTraceOut","description":"treaty -> EU law -> Swiss law -> legal impact -> quantitative impact ->\nevidence. `provisions` are in reading order: agreement, EU law, Swiss law."},"LimitOut":{"properties":{"rule":{"type":"string","title":"Rule"},"lapses_on":{"type":"string","format":"date","title":"Lapses On"},"condition":{"type":"string","title":"Condition"}},"additionalProperties":false,"type":"object","required":["rule","lapses_on","condition"],"title":"LimitOut"},"LineCheckOut":{"properties":{"line":{"type":"integer","title":"Line"},"name":{"type":"string","title":"Name"},"year":{"type":"integer","title":"Year"},"role":{"type":"string","title":"Role"},"stated":{"type":"string","title":"Stated"},"computed":{"type":"string","title":"Computed"},"difference":{"type":"string","title":"Difference"},"threshold":{"type":"string","title":"Threshold"},"parts":{"type":"integer","title":"Parts","description":"Children that entered the comparison"},"holds":{"type":"boolean","title":"Holds"}},"additionalProperties":false,"type":"object","required":["line","name","year","role","stated","computed","difference","threshold","parts","holds"],"title":"LineCheckOut"},"LinkDecisionOut":{"properties":{"link_id":{"type":"string","format":"uuid","title":"Link Id"},"status":{"type":"string","title":"Status"},"relation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relation"},"reason":{"type":"string","title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["link_id","status","relation","reason","decided_at"],"title":"LinkDecisionOut"},"LinkOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status","description":"CANDIDATE, CONFIRMED or REJECTED: the newest decision"},"relation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relation","description":"SAME or PART, once confirmed"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"matched":{"type":"string","title":"Matched","description":"The spelling found in the register entry, folded"},"organisation":{"$ref":"#/components/schemas/OrganisationRefOut"},"entry":{"anyOf":[{"$ref":"#/components/schemas/RegisterEntryOut"},{"type":"null"}],"description":"Null if the newest register lacks it"},"member":{"anyOf":[{"$ref":"#/components/schemas/TieMemberOut"},{"type":"null"}]},"credits":{"items":{"$ref":"#/components/schemas/CreditTieOut"},"type":"array","title":"Credits"},"suggested_relation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Relation","description":"For an open proposal: the relation to confirm with (SAME)"},"suggested_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Reason","description":"For an open proposal: a reason from what the entry names, to be checked"},"ballots":{"items":{"$ref":"#/components/schemas/TieBallotOut"},"type":"array","title":"Ballots","description":"Only while FEDERAL_TIES_BESIDE_VOTES is on"}},"additionalProperties":false,"type":"object","required":["id","status","relation","reason","decided_at","matched","organisation","entry","member","credits"],"title":"LinkOut"},"LoginIn":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"password":{"type":"string","maxLength":1024,"title":"Password"}},"additionalProperties":false,"type":"object","required":["email","password"],"title":"LoginIn"},"MandateOut":{"properties":{"slug":{"type":"string","title":"Slug"},"since":{"type":"string","format":"date","title":"Since"},"attendance":{"$ref":"#/components/schemas/AttendanceOut"},"seats":{"items":{"$ref":"#/components/schemas/SeatOut"},"type":"array","title":"Seats"},"authored":{"additionalProperties":{"type":"integer"},"type":"object","title":"Authored","description":"per kind (MOTION, POSTULATE, …)"},"co_signed":{"type":"integer","title":"Co Signed"}},"additionalProperties":false,"type":"object","required":["slug","since","attendance","seats","authored","co_signed"],"title":"MandateOut"},"MeasureOut":{"properties":{"number":{"type":"integer","title":"Number"},"text":{"type":"string","title":"Text"},"language":{"type":"string","title":"Language"}},"additionalProperties":false,"type":"object","required":["number","text","language"],"title":"MeasureOut"},"MediaLinkIn":{"properties":{"url":{"type":"string","maxLength":2000,"title":"Url","examples":["https://www.srf.ch/news/..."]},"outlet":{"type":"string","maxLength":100,"minLength":1,"title":"Outlet","examples":["SRF"]},"note":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Note","description":"The editors' own line - never the report's"},"language":{"type":"string","enum":["de","fr","it","rm","en","uk"],"title":"Language"},"published_on":{"type":"string","format":"date","title":"Published On"}},"additionalProperties":false,"type":"object","required":["url","outlet","language","published_on"],"title":"MediaLinkIn"},"MediaLinkOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"outlet":{"type":"string","title":"Outlet"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"The editors' own line"},"language":{"type":"string","title":"Language"},"published_on":{"type":"string","format":"date","title":"Published On"}},"additionalProperties":false,"type":"object","required":["id","url","outlet","note","language","published_on"],"title":"MediaLinkOut"},"MemberDetailOut":{"properties":{"member":{"$ref":"#/components/schemas/schwur_api__dto__MemberOut"},"group":{"anyOf":[{"$ref":"#/components/schemas/ParliamentGroupOut"},{"type":"null"}]},"votes":{"items":{"$ref":"#/components/schemas/MemberVoteOut"},"type":"array","title":"Votes"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"contacts":{"items":{"$ref":"#/components/schemas/ContactOut"},"type":"array","title":"Contacts"},"contact_sources":{"items":{"$ref":"#/components/schemas/ContactSourceOut"},"type":"array","title":"Contact Sources"}},"additionalProperties":false,"type":"object","required":["member","group","votes","source","contacts","contact_sources"],"title":"MemberDetailOut"},"MemberInterestOut":{"properties":{"register_id":{"type":"string","title":"Register Id"},"name":{"type":"string","title":"Name"},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form"},"organ":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organ"},"function":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"},"paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Paid"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"}},"additionalProperties":false,"type":"object","required":["register_id","name","legal_form","organ","function","paid","modified_at","first_seen_at"],"title":"MemberInterestOut"},"MemberRecordOut":{"properties":{"member":{"$ref":"#/components/schemas/schwur_api__dto__MemberOut"},"group":{"anyOf":[{"$ref":"#/components/schemas/ParliamentGroupOut"},{"type":"null"}]},"summary":{"$ref":"#/components/schemas/RecordSummaryOut"},"alignment":{"$ref":"#/components/schemas/AlignmentOut","description":"over every vote of the basis"},"on_proposals":{"$ref":"#/components/schemas/AlignmentOut","description":"over the votes on the proposals only"},"basis":{"$ref":"#/components/schemas/BasisOut"},"against":{"items":{"$ref":"#/components/schemas/AgainstOut"},"type":"array","title":"Against"},"reference":{"anyOf":[{"$ref":"#/components/schemas/GroupReferenceOut"},{"type":"null"}]},"strips":{"items":{"$ref":"#/components/schemas/StripOut"},"type":"array","title":"Strips"},"rows":{"items":{"$ref":"#/components/schemas/RecordRowOut"},"type":"array","title":"Rows"},"interests":{"items":{"$ref":"#/components/schemas/MemberInterestOut"},"type":"array","title":"Interests"},"interests_source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"interests_withheld":{"type":"boolean","title":"Interests Withheld","description":"The register's entries are for signed-in readers only","default":false}},"additionalProperties":false,"type":"object","required":["member","group","summary","alignment","on_proposals","basis","against","reference","strips","rows","interests","interests_source","source"],"title":"MemberRecordOut"},"MemberVoteOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"role":{"type":"string","title":"Role"},"meaning":{"type":"string","title":"Meaning"},"vote":{"$ref":"#/components/schemas/ParliamentVoteOut"},"decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["political_object","role","meaning","vote","decision"],"title":"MemberVoteOut"},"MergeOut":{"properties":{"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"object_id":{"type":"string","format":"uuid","title":"Object Id"},"reason":{"type":"string","title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["subject_id","object_id","reason","decided_at"],"title":"MergeOut"},"MessageOut":{"properties":{"nsb_id":{"type":"string","title":"Nsb Id"},"published_on":{"type":"string","format":"date","title":"Published On"},"meeting_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Meeting On"},"day":{"type":"string","format":"date","title":"Day"},"author":{"type":"string","title":"Author"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"language":{"type":"string","title":"Language"},"title":{"type":"string","title":"Title"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead"},"url":{"type":"string","title":"Url"},"tasks":{"additionalProperties":{"type":"string"},"type":"object","title":"Tasks"}},"additionalProperties":false,"type":"object","required":["nsb_id","published_on","meeting_on","day","author","department","language","title","lead","url","tasks"],"title":"MessageOut"},"MetricOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"unit":{"type":"string","title":"Unit"},"geography":{"type":"string","title":"Geography"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","name","unit","geography"],"title":"MetricOut"},"MilestoneOut":{"properties":{"code":{"type":"string","title":"Code"},"on":{"type":"string","format":"date","title":"On"},"label":{"type":"string","title":"Label"},"language":{"type":"string","title":"Language","description":"The language of `label`"},"citation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citation"},"fedlex_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fedlex Url","description":"The Federal Gazette entry the citation names"}},"additionalProperties":false,"type":"object","required":["code","on","label","language","citation","fedlex_url"],"title":"MilestoneOut"},"ModelInputOut":{"properties":{"name":{"type":"string","title":"Name"},"observation":{"$ref":"#/components/schemas/schwur_api__dto__ObservationOut"},"dataset":{"$ref":"#/components/schemas/DatasetRefOut"},"dataset_version":{"$ref":"#/components/schemas/DatasetVersionOut"},"fragment":{"anyOf":[{"$ref":"#/components/schemas/FragmentOut"},{"type":"null"}]},"source_version":{"anyOf":[{"$ref":"#/components/schemas/SourceVersionBriefOut"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRefOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["name","observation","dataset","dataset_version","fragment","source_version","source"],"title":"ModelInputOut","description":"One input, down to the passage that states its value (None if the\nobservation was recorded without a fragment)."},"ModelOut":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"version":{"type":"string","title":"Version"},"formula":{"type":"string","title":"Formula"},"implementation":{"type":"string","title":"Implementation"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","name","description","version","formula","implementation"],"title":"ModelOut"},"ModelRunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"model":{"$ref":"#/components/schemas/ModelOut"},"scenario":{"$ref":"#/components/schemas/ScenarioOut"},"horizon":{"type":"string","title":"Horizon"},"input_hash":{"type":"string","title":"Input Hash"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"analysis_run":{"$ref":"#/components/schemas/AnalysisRunOut"},"inputs":{"items":{"$ref":"#/components/schemas/ModelInputOut"},"type":"array","title":"Inputs"},"parameter_sets":{"items":{"$ref":"#/components/schemas/ParameterSetOut"},"type":"array","title":"Parameter Sets"},"estimates":{"items":{"$ref":"#/components/schemas/ProducedEstimateOut"},"type":"array","title":"Estimates"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","model","scenario","horizon","input_hash","notes","created_at","analysis_run","inputs","parameter_sets","estimates"],"title":"ModelRunOut"},"MunicipalCoverageOut":{"properties":{"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis"},"values":{"type":"integer","title":"Values"},"missing":{"type":"integer","title":"Missing"},"sources":{"type":"integer","title":"Sources"},"status":{"type":"string","enum":["STRUCTURED","SOURCE_WITHOUT_VALUES"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["year","basis","values","missing","sources","status"],"title":"MunicipalCoverageOut"},"MunicipalityOut":{"properties":{"bfs":{"type":"integer","title":"Bfs"},"historical_id":{"type":"integer","title":"Historical Id"},"name":{"type":"string","title":"Name"},"canton":{"type":"string","title":"Canton"},"district":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"District"},"district_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District Name"},"valid_from":{"type":"string","format":"date","title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"pilot":{"type":"boolean","title":"Pilot"}},"additionalProperties":false,"type":"object","required":["bfs","historical_id","name","canton","district","district_name","valid_from","valid_to","pilot"],"title":"MunicipalityOut"},"NameCellOut":{"properties":{"decision":{"type":"string","title":"Decision"},"deviates":{"type":"boolean","title":"Deviates"},"switched":{"type":"boolean","title":"Switched"}},"additionalProperties":false,"type":"object","required":["decision","deviates","switched"],"title":"NameCellOut"},"NameMatrixOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"council":{"type":"string","title":"Council"},"columns":{"items":{"$ref":"#/components/schemas/ColumnOut"},"type":"array","title":"Columns"},"rows":{"items":{"$ref":"#/components/schemas/NameRowOut"},"type":"array","title":"Rows"},"groups":{"items":{"$ref":"#/components/schemas/ParliamentGroupOut"},"type":"array","title":"Groups"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["political_object","council","columns","rows","groups","source"],"title":"NameMatrixOut"},"NameRowOut":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"party":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Party"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton"},"cells":{"items":{"anyOf":[{"$ref":"#/components/schemas/NameCellOut"},{"type":"null"}]},"type":"array","title":"Cells","description":"null: not in the chamber at that vote"}},"additionalProperties":false,"type":"object","required":["name","slug","group_code","party","canton","cells"],"title":"NameRowOut"},"NamedSourceIn":{"properties":{"ref":{"type":"string","pattern":"^[A-Z][0-9]{1,3}$","title":"Ref"},"text":{"type":"string","maxLength":300,"minLength":1,"title":"Text"},"url":{"type":"string","maxLength":2000,"title":"Url","default":""}},"additionalProperties":false,"type":"object","required":["ref","text"],"title":"NamedSourceIn"},"NetworkOut":{"properties":{"seeds":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Seeds"},"nodes":{"items":{"$ref":"#/components/schemas/NodeOut"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/EdgeOut"},"type":"array","title":"Edges"},"type_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Type Counts","description":"Every type around the seeds, before filters"},"depth":{"type":"integer","title":"Depth"},"at":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"At"},"sources":{"items":{"$ref":"#/components/schemas/SourceStampOut"},"type":"array","title":"Sources"},"withheld":{"items":{"type":"string"},"type":"array","title":"Withheld","description":"Relation types left out because the reader is not signed in: the register of interests (REGISTER_TIE) and the access badges (ACCESS_BADGE, BADGE_FOR). Counts resting on them are 0 then."}},"additionalProperties":false,"type":"object","required":["seeds","nodes","edges","type_counts","depth","at","sources"],"title":"NetworkOut"},"NewsItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"language":{"type":"string","title":"Language","description":"The language of title, lead and author"},"title":{"type":"string","title":"Title"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","description":"The committee or service, the podcast, or the member of a statement"},"url":{"type":"string","title":"Url","description":"The full text on parlament.ch in `language`, an opinion's episode, or a statement's first post"},"political_objects":{"items":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"type":"array","title":"Political Objects","description":"The proposals whose business number the item names"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"opinion":{"anyOf":[{"$ref":"#/components/schemas/OpinionOut"},{"type":"null"}],"description":"For an opinion from a podcast"},"statement":{"anyOf":[{"$ref":"#/components/schemas/StatementOut"},{"type":"null"}],"description":"For a member's statement or video note"},"reactions":{"items":{"$ref":"#/components/schemas/ReactionOut"},"type":"array","title":"Reactions","description":"The members' published statements linking to this item, newest first"},"review":{"anyOf":[{"$ref":"#/components/schemas/OpinionReviewOut"},{"type":"null"}],"description":"For the editors only"}},"additionalProperties":false,"type":"object","required":["id","kind","published_at","language","title","lead","author","url","political_objects","source"],"title":"NewsItemOut"},"NewsKind":{"type":"string","enum":["PRESS_RELEASE","INFORMATION","VISIT_ABROAD","VISIT_FROM_ABROAD","EVENT","OPINION","STATEMENT","VIDEO_NOTE"],"title":"NewsKind"},"NewsLinkOut":{"properties":{"kind":{"type":"string","title":"Kind","description":"POLITICAL_OBJECT, PERSON, BODY, ORGANISATION or NEWS_ITEM"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"The page's address: a proposal's, person's, body's or organisation's slug, or an item's id"},"why":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref","description":"How the text's markers name it: L1 for a link, G2 for a gap filled since (see marked_lead)"},"filled":{"type":"boolean","title":"Filled","description":"A gap the Redaktor or an editor found the entry for","default":false}},"additionalProperties":false,"type":"object","required":["kind","id","name","slug","why"],"title":"NewsLinkOut"},"NewsPageOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NewsItemOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"kinds":{"additionalProperties":{"type":"integer"},"type":"object","title":"Kinds","description":"Items per kind, within the proposal and person filters"},"political_object":{"anyOf":[{"$ref":"#/components/schemas/PoliticalObjectRefOut"},{"type":"null"}]},"person":{"anyOf":[{"$ref":"#/components/schemas/PersonRefOut"},{"type":"null"}],"description":"The member filtered on"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When parlament.ch was last asked"}},"additionalProperties":false,"type":"object","required":["items","total","page","page_size","kinds","political_object","checked_at"],"title":"NewsPageOut"},"NewsRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"language":{"type":"string","title":"Language"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["id","kind","published_at","language","title","url"],"title":"NewsRefOut"},"NextDateOut":{"properties":{"kind":{"type":"string","title":"Kind","description":"A deadline's kind, CONSULTATION_END or VOTE"},"on":{"type":"string","format":"date","title":"On"},"reckoned":{"type":"boolean","title":"Reckoned"},"rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule"}},"additionalProperties":false,"type":"object","required":["kind","on","reckoned","rule"],"title":"NextDateOut"},"NextDecisionOut":{"properties":{"vote_date":{"type":"string","format":"date","title":"Vote Date"},"decision_by":{"type":"string","format":"date","title":"Decision By","description":"Four months before the vote date: reckoned"}},"additionalProperties":false,"type":"object","required":["vote_date","decision_by"],"title":"NextDecisionOut"},"NodeOut":{"properties":{"end":{"$ref":"#/components/schemas/EndOut"},"ring":{"type":"integer","title":"Ring","description":"0 a starting point, 1 its ends, 2 through an organisation or a badge"}},"additionalProperties":false,"type":"object","required":["end","ring"],"title":"NodeOut"},"NoticeIn":{"properties":{"political_object":{"type":"string","maxLength":300,"minLength":1,"title":"Political Object","description":"Slug or id"},"kind":{"type":"string","title":"Kind","examples":["REFERENDUM_ANNOUNCED"]},"url":{"type":"string","maxLength":2000,"minLength":12,"title":"Url","description":"The https page it rests on"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["political_object","kind","url"],"title":"NoticeIn"},"NoticeItemOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"notice":{"$ref":"#/components/schemas/NoticeOut"}},"additionalProperties":false,"type":"object","required":["political_object","notice"],"title":"NoticeItemOut"},"NoticeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind","description":"REFERENDUM_ANNOUNCED or WITHDRAWAL_EFFECTIVE"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRefOut"},{"type":"null"}],"description":"The page it rests on, as stored"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"}},"additionalProperties":false,"type":"object","required":["id","kind","note","created_at","source","retrieved_at"],"title":"NoticeOut","description":"An editors' notice: not official data, and shown only with its stored source."},"NoticeRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"political_object_id":{"type":"string","format":"uuid","title":"Political Object Id"},"source_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Version Id"},"retracts_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Retracts Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","kind","political_object_id","source_version_id","retracts_id","created_at"],"title":"NoticeRefOut"},"ObjectBusinessOut":{"properties":{"business_number":{"type":"string","title":"Business Number"},"role":{"type":"string","title":"Role"}},"additionalProperties":false,"type":"object","required":["business_number","role"],"title":"ObjectBusinessOut"},"ObjectConsultationOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"consultation":{"anyOf":[{"$ref":"#/components/schemas/ConsultationOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["political_object","consultation"],"title":"ObjectConsultationOut"},"ObjectParliamentOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"votes":{"items":{"$ref":"#/components/schemas/ObjectVoteOut"},"type":"array","title":"Votes"},"groups":{"items":{"$ref":"#/components/schemas/ParliamentGroupOut"},"type":"array","title":"Groups"}},"additionalProperties":false,"type":"object","required":["political_object","votes","groups"],"title":"ObjectParliamentOut"},"ObjectRegisterOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"entry":{"anyOf":[{"$ref":"#/components/schemas/ChancelleryEntryOut"},{"type":"null"}]},"deadlines":{"items":{"$ref":"#/components/schemas/DeadlineOut"},"type":"array","title":"Deadlines"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRefOut"},{"type":"null"}]},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"},"notices":{"items":{"$ref":"#/components/schemas/NoticeOut"},"type":"array","title":"Notices","description":"The editors' notices standing now"}},"additionalProperties":false,"type":"object","required":["political_object","entry","deadlines","source","retrieved_at","notices"],"title":"ObjectRegisterOut"},"ObjectResultsOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"vote_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Vote Date"},"main":{"anyOf":[{"$ref":"#/components/schemas/VoteResultOut"},{"type":"null"}]},"linked":{"items":{"$ref":"#/components/schemas/VoteResultOut"},"type":"array","title":"Linked","description":"Counter-proposal and deciding question"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When the BFS was last asked"},"dataset_url":{"type":"string","title":"Dataset Url"}},"additionalProperties":false,"type":"object","required":["political_object","vote_date","main","linked","checked_at","dataset_url"],"title":"ObjectResultsOut"},"ObjectTimelineOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"businesses":{"items":{"$ref":"#/components/schemas/ObjectBusinessOut"},"type":"array","title":"Businesses"},"lanes":{"items":{"$ref":"#/components/schemas/CouncilLaneOut"},"type":"array","title":"Lanes"},"groups":{"items":{"$ref":"#/components/schemas/ParliamentGroupOut"},"type":"array","title":"Groups"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"unpublished_lists":{"items":{"type":"string"},"type":"array","title":"Unpublished Lists","description":"Council of States sessions without a published roll-call list"}},"additionalProperties":false,"type":"object","required":["political_object","businesses","lanes","groups","source","unpublished_lists"],"title":"ObjectTimelineOut"},"ObjectVoteOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"role":{"type":"string","title":"Role"},"meaning":{"type":"string","title":"Meaning"},"reason":{"type":"string","title":"Reason"},"vote":{"$ref":"#/components/schemas/ParliamentVoteOut"},"tally":{"$ref":"#/components/schemas/TallyOut"},"groups":{"items":{"$ref":"#/components/schemas/GroupTallyOut"},"type":"array","title":"Groups"},"ballots":{"items":{"$ref":"#/components/schemas/schwur_api__dto__BallotOut"},"type":"array","title":"Ballots"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","role","meaning","reason","vote","tally","groups","ballots","source"],"title":"ObjectVoteOut"},"ObservationIn":{"properties":{"metric":{"type":"string","title":"Metric","examples":["CH_POPULATION"]},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Value"},"fragment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Fragment Id"}},"additionalProperties":false,"type":"object","required":["metric","period_start","period_end","value"],"title":"ObservationIn"},"OfficialCellOut":{"properties":{"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis","description":"ACTUAL (Rechnung) or BUDGET (Voranschlag)"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Null wherever the source printed a mark instead of a number"},"raw":{"type":"string","title":"Raw","description":"What the source printed, exactly"}},"additionalProperties":false,"type":"object","required":["year","basis","value","raw"],"title":"OfficialCellOut"},"OfficialCheckOut":{"properties":{"line":{"type":"integer","title":"Line"},"name":{"type":"string","title":"Name"},"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis"},"role":{"type":"string","title":"Role","description":"SUM or DIFFERENCE (the first term less the rest)"},"says":{"type":"string","title":"Says"},"stated":{"type":"string","title":"Stated"},"computed":{"type":"string","title":"Computed"},"difference":{"type":"string","title":"Difference","description":"stated - computed, raw and unrounded"},"threshold":{"type":"string","title":"Threshold","description":"Half a printed step per figure compared; 0 where the relation is an identity between two printed figures"},"parts":{"type":"integer","title":"Parts"},"holds":{"type":"boolean","title":"Holds"}},"additionalProperties":false,"type":"object","required":["line","name","year","basis","role","says","stated","computed","difference","threshold","parts","holds"],"title":"OfficialCheckOut","description":"One equation the printed table asserts, against one column of it."},"OfficialColumnOut":{"properties":{"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis","description":"ACTUAL (Rechnung) or BUDGET (Voranschlag)"}},"additionalProperties":false,"type":"object","required":["year","basis"],"title":"OfficialColumnOut","description":"A year on one basis. Band 2 prints two columns headed with the same year."},"OfficialDocumentOut":{"properties":{"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"sha256":{"type":"string","title":"Sha256"},"pdf_page":{"type":"integer","title":"Pdf Page","description":"The page of the PDF file"},"printed_page":{"type":"string","title":"Printed Page","description":"The page the EFV prints at the foot - in Band 1B not the PDF's own"},"table_title":{"type":"string","title":"Table Title","description":"The heading over the table, verbatim"},"heading":{"type":"string","title":"Heading","description":"Whose closing it is, as the volume prints it"},"rounding_step":{"type":"string","title":"Rounding Step","description":"The smallest printed step: 1 Mio. in Band 1B, 0.1 in Band 2"}},"additionalProperties":false,"type":"object","required":["title","url","sha256","pdf_page","printed_page","table_title","heading","rounding_step"],"title":"OfficialDocumentOut","description":"The printed origin of one closing: the file, and the page in it."},"OfficialFamily":{"type":"string","enum":["CASH_FLOW","CASH_FUND","DEPARTMENT_ACCOUNTS","AUTHORITY_ACCOUNTS","AUTHORITY_GLOBAL_BUDGET","DEPARTMENT_UNITS","DEPARTMENT_SEGMENTS"],"title":"OfficialFamily"},"OfficialFamilyOut":{"properties":{"family":{"type":"string","title":"Family","description":"CASH_FLOW, CASH_FUND, DEPARTMENT_ACCOUNTS, AUTHORITY_ACCOUNTS, AUTHORITY_GLOBAL_BUDGET or DEPARTMENT_SEGMENTS"},"title":{"type":"string","title":"Title"},"volume":{"type":"string","title":"Volume"},"unit":{"type":"string","title":"Unit"},"scale":{"type":"integer","title":"Scale","description":"The power of ten the figures are in; 6 = millions, 0 = francs"},"imported":{"type":"boolean","title":"Imported"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"columns":{"items":{"$ref":"#/components/schemas/OfficialColumnOut"},"type":"array","title":"Columns"},"scopes":{"items":{"$ref":"#/components/schemas/OfficialScopeOut"},"type":"array","title":"Scopes"},"lines":{"type":"integer","title":"Lines"},"cells":{"type":"integer","title":"Cells"},"markers":{"type":"integer","title":"Markers"},"note":{"type":"string","title":"Note"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}],"description":"The extraction receipt the release was written from"}},"additionalProperties":false,"type":"object","required":["family","title","volume","unit","scale","imported","release_url","actuals_through","columns","scopes","lines","cells","markers","note","source"],"title":"OfficialFamilyOut"},"OfficialIndexOut":{"properties":{"fiscal_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscal Year","description":"Null before the first import"},"publication":{"$ref":"#/components/schemas/OfficialPublicationOut"},"unit":{"type":"string","title":"Unit"},"scale":{"type":"integer","title":"Scale"},"aggregation_allowed":{"type":"boolean","title":"Aggregation Allowed","description":"Always false: see aggregation_note"},"aggregation_note":{"type":"string","title":"Aggregation Note"},"families":{"items":{"$ref":"#/components/schemas/OfficialFamilyOut"},"type":"array","title":"Families"}},"additionalProperties":false,"type":"object","required":["fiscal_year","publication","unit","scale","aggregation_allowed","aggregation_note","families"],"title":"OfficialIndexOut"},"OfficialNotCheckedOut":{"properties":{"line":{"type":"integer","title":"Line"},"name":{"type":"string","title":"Name"},"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis"},"says":{"type":"string","title":"Says"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["line","name","year","basis","says","reason"],"title":"OfficialNotCheckedOut"},"OfficialPublicationOut":{"properties":{"title":{"type":"string","title":"Title"},"index_url":{"type":"string","title":"Index Url"},"publisher":{"type":"string","title":"Publisher"}},"additionalProperties":false,"type":"object","required":["title","index_url","publisher"],"title":"OfficialPublicationOut","description":"The publication the four printed families are read from."},"OfficialRowOut":{"properties":{"line":{"type":"integer","title":"Line","description":"The row's place in the printed table, from 1"},"order":{"type":"integer","title":"Order"},"level":{"type":"integer","title":"Level","description":"The printed indentation, not a hierarchy: no parent is derived from it"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","title":"Scope"},"parent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent","description":"Always null: these tables carry no tree (see parent_derived)"},"role":{"type":"string","title":"Role","description":"Always LEAF: what belongs together is in checks, not in the rows","default":"LEAF"},"cells":{"items":{"$ref":"#/components/schemas/OfficialCellOut"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["line","order","level","name","scope","cells"],"title":"OfficialRowOut"},"OfficialScopeOut":{"properties":{"scope":{"type":"string","title":"Scope","description":"The code: BUND, EDA ... or BVers, BK, BGer ..."},"kind":{"type":"string","title":"Kind","description":"CONFEDERATION, DEPARTMENT, AUTHORITY, OTHER (Band 1B's «Übrige») or ELIMINATION"},"name":{"type":"string","title":"Name"},"published_within":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Within","description":"The volume an authority's closing is printed in; it is where it stands, never a body it is part of and never a total"},"document":{"$ref":"#/components/schemas/OfficialDocumentOut"},"lines":{"type":"integer","title":"Lines"},"cells":{"type":"integer","title":"Cells"},"markers":{"type":"integer","title":"Markers"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["scope","kind","name","published_within","document","lines","cells","markers","source"],"title":"OfficialScopeOut"},"OfficialStatementOut":{"properties":{"available":{"type":"boolean","title":"Available"},"family":{"type":"string","title":"Family"},"title":{"type":"string","title":"Title"},"volume":{"type":"string","title":"Volume"},"scope":{"type":"string","title":"Scope"},"scope_kind":{"type":"string","title":"Scope Kind"},"scope_name":{"type":"string","title":"Scope Name"},"published_within":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Within"},"unit":{"type":"string","title":"Unit"},"scale":{"type":"integer","title":"Scale"},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"actuals_through":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actuals Through"},"parent_derived":{"type":"boolean","title":"Parent Derived","description":"False: the printed tables carry no hierarchy. What belongs together is in checks"},"columns":{"items":{"$ref":"#/components/schemas/OfficialColumnOut"},"type":"array","title":"Columns"},"years":{"items":{"type":"integer"},"type":"array","title":"Years"},"origin":{"$ref":"#/components/schemas/OfficialDocumentOut"},"lines":{"items":{"$ref":"#/components/schemas/OfficialRowOut"},"type":"array","title":"Lines"},"checks":{"items":{"$ref":"#/components/schemas/OfficialCheckOut"},"type":"array","title":"Checks"},"not_checkable":{"items":{"$ref":"#/components/schemas/OfficialNotCheckedOut"},"type":"array","title":"Not Checkable","description":"Equations a printed marker leaves open: a dash means zero or no value"},"markers":{"type":"integer","title":"Markers"},"note":{"type":"string","title":"Note"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","family","title","volume","scope","scope_kind","scope_name","published_within","unit","scale","release_url","actuals_through","parent_derived","columns","years","origin","lines","checks","not_checkable","markers","note","source"],"title":"OfficialStatementOut"},"OpinionDecisionIn":{"properties":{"action":{"type":"string","enum":["approve","reject","withdraw","edit"],"title":"Action"},"title":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Title"},"lead":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Lead"},"body":{"anyOf":[{"items":{"type":"string","maxLength":3000},"type":"array","maxItems":8},{"type":"null"}],"title":"Body"}},"additionalProperties":false,"type":"object","required":["action"],"title":"OpinionDecisionIn"},"OpinionOut":{"properties":{"status":{"type":"string","title":"Status","description":"HELD, PUBLISHED, REJECTED or WITHDRAWN"},"episode":{"anyOf":[{"$ref":"#/components/schemas/EpisodeRefOut"},{"type":"null"}]},"start_s":{"type":"integer","title":"Start S"},"end_s":{"type":"integer","title":"End S"},"body":{"items":{"type":"string"},"type":"array","title":"Body","description":"The paragraphs after the lead"},"origin":{"type":"string","title":"Origin","description":"AGENT (the Redaktor), EDITOR or MACHINE"},"quotes":{"items":{"$ref":"#/components/schemas/QuoteOut"},"type":"array","title":"Quotes"},"links":{"items":{"$ref":"#/components/schemas/NewsLinkOut"},"type":"array","title":"Links"},"gaps":{"items":{"$ref":"#/components/schemas/GapOut"},"type":"array","title":"Gaps","description":"What the episode names and schwur.ch has no entry for"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"marked_lead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marked Lead","description":"The lead with links: [[text|L1]] names links[ref=L1], G2 a filled gap, Q1 sources[ref=Q1]; `lead` is the same text without them"},"marked_body":{"items":{"type":"string"},"type":"array","title":"Marked Body","description":"The paragraphs, marked"},"sources":{"items":{"$ref":"#/components/schemas/schwur_api__dto__SourceOut"},"type":"array","title":"Sources","description":"The reports and studies it names, found and checked"}},"additionalProperties":false,"type":"object","required":["status","episode","start_s","end_s","body","origin","quotes","links","gaps","decided_at"],"title":"OpinionOut"},"OpinionQueueOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NewsItemOut"},"type":"array","title":"Items","description":"What agents wrote (opinions, statements, video notes; `kind` says which) waiting for an editor, then the last ones decided"}},"additionalProperties":false,"type":"object","required":["items"],"title":"OpinionQueueOut"},"OpinionReviewOut":{"properties":{"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"What schwur.ch's review noted, as code:detail"},"draft":{"anyOf":[{"$ref":"#/components/schemas/OpinionTextOut"},{"type":"null"}],"description":"The agent's own text"},"marked_lead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marked Lead","description":"The lead with every marker"},"marked_body":{"items":{"type":"string"},"type":"array","title":"Marked Body"},"gaps":{"items":{"$ref":"#/components/schemas/GapReviewOut"},"type":"array","title":"Gaps"},"sources":{"items":{"$ref":"#/components/schemas/SourceReviewOut"},"type":"array","title":"Sources"},"addendum":{"anyOf":[{"$ref":"#/components/schemas/OpinionTextOut"},{"type":"null"}],"description":"The published text with links set since, waiting to be confirmed"},"evidence_runs":{"type":"integer","title":"Evidence Runs","description":"Calls to the Redaktor to back it up","default":0}},"additionalProperties":false,"type":"object","required":["warnings","draft"],"title":"OpinionReviewOut"},"OpinionTextOut":{"properties":{"title":{"type":"string","title":"Title"},"lead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead"},"body":{"items":{"type":"string"},"type":"array","title":"Body"}},"additionalProperties":false,"type":"object","required":["title","lead","body"],"title":"OpinionTextOut"},"OrganisationIdentityOut":{"properties":{"uid":{"type":"string","title":"Uid"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["uid","reason","created_at"],"title":"OrganisationIdentityOut"},"OrganisationIn":{"properties":{"name":{"type":"string","maxLength":300,"minLength":1,"title":"Name","examples":["Schweiz Tourismus"]},"spellings":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Spellings","examples":[["Suisse Tourisme"]]}},"additionalProperties":false,"type":"object","required":["name"],"title":"OrganisationIn"},"OrganisationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"spellings":{"items":{"type":"string"},"type":"array","title":"Spellings"},"credits":{"items":{"$ref":"#/components/schemas/CreditLinkOut"},"type":"array","title":"Credits"},"identity":{"anyOf":[{"$ref":"#/components/schemas/OrganisationIdentityOut"},{"type":"null"}]},"registry":{"anyOf":[{"$ref":"#/components/schemas/RegisterRecordOut"},{"type":"null"}],"description":"What the registers state about the identity's UID"}},"additionalProperties":false,"type":"object","required":["id","name","spellings","credits"],"title":"OrganisationOut"},"OrganisationPageOut":{"properties":{"organisation":{"$ref":"#/components/schemas/EndOut"},"forms":{"items":{"$ref":"#/components/schemas/FormCountOut"},"type":"array","title":"Forms"},"ties":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Ties"},"groups":{"items":{"$ref":"#/components/schemas/GroupCountOut"},"type":"array","title":"Groups"},"paid":{"type":"integer","title":"Paid"},"parts":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Parts"},"part_of":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Part Of"},"secretariat_of":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Secretariat Of"},"badges":{"items":{"$ref":"#/components/schemas/BadgeOut"},"type":"array","title":"Badges"},"merges":{"items":{"$ref":"#/components/schemas/MergeOut"},"type":"array","title":"Merges"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"withheld":{"items":{"type":"string"},"type":"array","title":"Withheld","description":"Relation types left out because the reader is not signed in: the register of interests (REGISTER_TIE) and the access badges (ACCESS_BADGE, BADGE_FOR). Counts resting on them are 0 then."},"board":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Board","description":"Ring 2: the board of directors, the chair first"},"executive":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Executive","description":"Ring 2: the executive board, the chair first"}},"additionalProperties":false,"type":"object","required":["organisation","forms","ties","groups","paid","parts","part_of","secretariat_of","badges","merges","source"],"title":"OrganisationPageOut"},"OrganisationRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"registry":{"anyOf":[{"$ref":"#/components/schemas/RegisterRefOut"},{"type":"null"}],"description":"What the official registers state, once identified"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"OrganisationRefOut"},"OrganisationUidOut":{"properties":{"unit":{"$ref":"#/components/schemas/RegisterRefOut","description":"Name, legal form, seat and the registers' pages; no street address"},"decided_at":{"type":"string","format":"date-time","title":"Decided At","description":"When the editors linked the organisation to it"}},"additionalProperties":false,"type":"object","required":["unit","decided_at"],"title":"OrganisationUidOut"},"OverviewOut":{"properties":{"members":{"items":{"$ref":"#/components/schemas/schwur_api__government_dto__MemberOut"},"type":"array","title":"Members"},"members_retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Members Retrieved At"},"tasks":{"items":{"$ref":"#/components/schemas/schwur_api__government_dto__TaskOut"},"type":"array","title":"Tasks"},"recent":{"type":"integer","title":"Recent"},"recent_unassigned":{"type":"integer","title":"Recent Unassigned"},"since":{"type":"string","format":"date","title":"Since"},"meeting_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Meeting On"},"meeting_read":{"type":"boolean","title":"Meeting Read"},"meeting":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Meeting"},"checked":{"anyOf":[{"$ref":"#/components/schemas/CheckedOut"},{"type":"null"}]},"verdicts":{"$ref":"#/components/schemas/VerdictSummaryOut"}},"additionalProperties":false,"type":"object","required":["members","members_retrieved_at","tasks","recent","recent_unassigned","since","meeting_on","meeting_read","meeting","checked","verdicts"],"title":"OverviewOut"},"PageOut":{"properties":{"release":{"anyOf":[{"$ref":"#/components/schemas/ReleaseOut"},{"type":"null"}]},"records":{"items":{"$ref":"#/components/schemas/RecordOut"},"type":"array","title":"Records"},"total":{"type":"integer","title":"Total"},"datasets":{"items":{"$ref":"#/components/schemas/DatasetOut"},"type":"array","title":"Datasets"}},"additionalProperties":false,"type":"object","required":["release","records","total","datasets"],"title":"PageOut"},"ParameterSetOut":{"properties":{"key":{"type":"string","title":"Key","examples":["CENTRAL"]},"parameters":{"additionalProperties":{"type":"string"},"type":"object","title":"Parameters"},"result":{"type":"string","title":"Result"}},"additionalProperties":false,"type":"object","required":["key","parameters","result"],"title":"ParameterSetOut"},"ParliamentDutiesOut":{"properties":{"overdue":{"items":{"$ref":"#/components/schemas/DutyOut"},"type":"array","title":"Overdue"},"upcoming":{"items":{"$ref":"#/components/schemas/DutyOut"},"type":"array","title":"Upcoming"},"reporting":{"items":{"$ref":"#/components/schemas/DutyOut"},"type":"array","title":"Reporting"},"states":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"States"},"proposals":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Proposals"},"rejected_but_adopted":{"type":"integer","title":"Rejected But Adopted"},"transferred":{"type":"integer","title":"Transferred"},"since":{"type":"string","format":"date","title":"Since"},"today":{"type":"string","format":"date","title":"Today"}},"additionalProperties":false,"type":"object","required":["overdue","upcoming","reporting","states","proposals","rejected_but_adopted","transferred","since","today"],"title":"ParliamentDutiesOut"},"ParliamentGroupOut":{"properties":{"code":{"type":"string","title":"Code"},"abbreviation":{"type":"string","title":"Abbreviation"},"name":{"type":"string","title":"Name"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colour"}},"additionalProperties":false,"type":"object","required":["code","abbreviation","name","colour"],"title":"ParliamentGroupOut"},"ParliamentHubOut":{"properties":{"session":{"anyOf":[{"$ref":"#/components/schemas/HubSessionOut"},{"type":"null"}]},"tasks":{"items":{"$ref":"#/components/schemas/HubTaskOut"},"type":"array","title":"Tasks"},"recent":{"items":{"$ref":"#/components/schemas/RecentResolutionOut"},"type":"array","title":"Recent"},"stored":{"type":"integer","title":"Stored"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"additionalProperties":false,"type":"object","required":["session","tasks","recent","stored","checked_at"],"title":"ParliamentHubOut"},"ParliamentOut":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/GroupSeatsOut"},"type":"array","title":"Groups"},"members":{"items":{"$ref":"#/components/schemas/schwur_api__dto__MemberOut"},"type":"array","title":"Members"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["groups","members","source"],"title":"ParliamentOut"},"ParliamentVoteOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"council":{"type":"string","title":"Council"},"external_id":{"type":"string","title":"External Id"},"business_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Number"},"bill_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bill Title"},"subject":{"type":"string","title":"Subject"},"meaning_yes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning Yes"},"meaning_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning No"},"voted_on":{"type":"string","format":"date","title":"Voted On"},"voted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Voted At"}},"additionalProperties":false,"type":"object","required":["id","council","external_id","business_number","bill_title","subject","meaning_yes","meaning_no","voted_on","voted_at"],"title":"ParliamentVoteOut"},"PeopleImportOut":{"properties":{"source":{"type":"string","title":"Source","description":"offices, federal-council, intergroups or access-lists"},"new_version":{"type":"boolean","title":"New Version","description":"The source's bytes had not been seen before"},"actors":{"type":"integer","title":"Actors"},"name_forms":{"type":"integer","title":"Name Forms"},"relations":{"type":"integer","title":"Relations"},"ended":{"type":"integer","title":"Ended"},"unmatched":{"type":"integer","title":"Unmatched","description":"Records of a person who is no member schwur.ch holds"},"counted":{"type":"integer","title":"Counted","description":"Access badges counted, not named"},"failed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed"}},"additionalProperties":false,"type":"object","required":["source","new_version","actors","name_forms","relations","ended","unmatched","counted","failed"],"title":"PeopleImportOut"},"PeopleSearchOut":{"properties":{"query":{"type":"string","title":"Query"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"hits":{"items":{"$ref":"#/components/schemas/schwur_api__dto__HitOut"},"type":"array","title":"Hits"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"},"persons":{"type":"integer","title":"Persons"},"organisations":{"type":"integer","title":"Organisations"},"bodies":{"type":"integer","title":"Bodies"},"withheld":{"items":{"type":"string"},"type":"array","title":"Withheld","description":"Relation types left out because the reader is not signed in: the register of interests (REGISTER_TIE) and the access badges (ACCESS_BADGE, BADGE_FOR). Counts resting on them are 0 then."}},"additionalProperties":false,"type":"object","required":["query","kind","hits","total","page","pages","persons","organisations","bodies"],"title":"PeopleSearchOut"},"PersonRefOut":{"properties":{"number":{"type":"integer","title":"Number","description":"The member's person number at the Parliamentary Services"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"The member's page"},"council":{"type":"string","title":"Council","description":"NATIONAL or STATES"},"canton":{"type":"string","title":"Canton"},"party":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Party"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code","description":"The parliamentary group, as /api/v1/parliament gives it"},"group_colour":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Colour","description":"The parliamentary group's published colour"}},"additionalProperties":false,"type":"object","required":["number","name","slug","council","canton","party","group_code","group_colour"],"title":"PersonRefOut"},"PipelineItemOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title"},"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"topics":{"items":{"$ref":"#/components/schemas/TopicOut"},"type":"array","title":"Topics"},"entry":{"anyOf":[{"$ref":"#/components/schemas/ChancelleryBriefOut"},{"type":"null"}],"description":"Its entry in the BK's register"},"consultation":{"anyOf":[{"$ref":"#/components/schemas/ConsultationBriefOut"},{"type":"null"}]},"next":{"anyOf":[{"$ref":"#/components/schemas/NextDateOut"},{"type":"null"}]},"notices":{"items":{"type":"string"},"type":"array","title":"Notices","description":"The kinds of the editors' notices standing now"}},"additionalProperties":false,"type":"object","required":["political_object","short_title","type","status","topics","entry","consultation","next","notices"],"title":"PipelineItemOut"},"PipelineListOut":{"properties":{"status":{"type":"string","title":"Status"},"items":{"items":{"$ref":"#/components/schemas/PipelineItemOut"},"type":"array","title":"Items"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When the register was last read"}},"additionalProperties":false,"type":"object","required":["status","items","checked_at"],"title":"PipelineListOut"},"PlannedItemOut":{"properties":{"section":{"type":"string","title":"Section"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"title":{"type":"string","title":"Title"},"steps":{"items":{"type":"string"},"type":"array","title":"Steps"},"text":{"type":"string","title":"Text"},"outcome":{"anyOf":[{"$ref":"#/components/schemas/GoalItemOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["section","number","title","steps","text","outcome"],"title":"PlannedItemOut"},"PolicyIn":{"properties":{"approval_required":{"type":"boolean","title":"Approval Required"}},"additionalProperties":false,"type":"object","required":["approval_required"],"title":"PolicyIn"},"PolicyOut":{"properties":{"approval_required":{"type":"boolean","title":"Approval Required","description":"A new account waits for the owner"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["approval_required","updated_at"],"title":"PolicyOut"},"PoliticalObjectDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"decision_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decision Date"},"vote_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Vote Date"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"topics":{"items":{"$ref":"#/components/schemas/TopicOut"},"type":"array","title":"Topics"},"counts":{"$ref":"#/components/schemas/CountsOut"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]},"scenarios":{"items":{"$ref":"#/components/schemas/ScenarioOut"},"type":"array","title":"Scenarios"}},"additionalProperties":false,"type":"object","required":["id","type","jurisdiction","external_id","slug","title","short_title","description","status","decision_date","vote_date","valid_from","valid_until","topics","counts","version","created_at","updated_at","scenarios"],"title":"PoliticalObjectDetailOut"},"PoliticalObjectOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"jurisdiction":{"type":"string","title":"Jurisdiction"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"decision_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decision Date"},"vote_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Vote Date"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"topics":{"items":{"$ref":"#/components/schemas/TopicOut"},"type":"array","title":"Topics"},"counts":{"$ref":"#/components/schemas/CountsOut"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","type","jurisdiction","external_id","slug","title","short_title","description","status","decision_date","vote_date","valid_from","valid_until","topics","counts","version","created_at","updated_at"],"title":"PoliticalObjectOut"},"PoliticalObjectPageOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PoliticalObjectOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"PoliticalObjectPageOut"},"PoliticalObjectRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","slug","title"],"title":"PoliticalObjectRefOut"},"PoliticsOut":{"properties":{"records":{"items":{"$ref":"#/components/schemas/EventRecordOut"},"type":"array","title":"Records"},"checked_dates":{"items":{"type":"string","format":"date"},"type":"array","title":"Checked Dates"},"context_results":{"items":{"$ref":"#/components/schemas/ResultsOut"},"type":"array","title":"Context Results"},"coverage":{"type":"string","enum":["PARTIAL","NOT_IMPORTED"],"title":"Coverage"}},"additionalProperties":false,"type":"object","required":["records","checked_dates","context_results","coverage"],"title":"PoliticsOut"},"PortalAreaOut":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"families":{"items":{"type":"string"},"type":"array","title":"Families","description":"What of this area is imported; empty if nothing"},"missing":{"type":"string","title":"Missing","description":"What is not imported, in plain words"}},"additionalProperties":false,"type":"object","required":["key","title","url","families","missing"],"title":"PortalAreaOut"},"PostIn":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"language":{"type":"string","enum":["de","fr","it","rm","en","uk"],"title":"Language","description":"The language the post is written in"},"source_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Source Url","description":"A source to propose to the editors (https); accounts only"},"source_label":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Source Label"},"guest_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Guest Name","description":"Without an account: the name the post shows with «Gast». Without an account and without a name, the answer is 401."}},"additionalProperties":false,"type":"object","required":["body","language"],"title":"PostIn"},"PostOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","description":"The display name; null once deleted"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body","description":"Null once deleted"},"language":{"type":"string","title":"Language"},"status":{"type":"string","title":"Status","description":"VISIBLE or DELETED"},"deleted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted By","description":"AUTHOR, or OPERATOR for a removal on a legal demand"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edited At"},"editable_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Editable Until","description":"Until when the reader can still edit this post of theirs"},"helpful":{"type":"integer","title":"Helpful"},"helpful_given":{"type":"boolean","title":"Helpful Given","description":"The reader has marked it helpful"},"mine":{"type":"boolean","title":"Mine","description":"The reader wrote it - for a guest's post, in this browser session"},"proposal":{"anyOf":[{"$ref":"#/components/schemas/SourceProposalOut"},{"type":"null"}]},"guest":{"type":"boolean","title":"Guest","description":"Written without an account; `author` is the name the guest chose","default":false},"author_is_ai":{"type":"boolean","title":"Author Is Ai","description":"The author is an AI identity. Derived server-side from the owned account; false for legacy, human and guest posts, and never accepted from a client","default":false},"replies":{"items":{"$ref":"#/components/schemas/ReplyOut"},"type":"array","title":"Replies","description":"Oldest first; there is one level of replies"}},"additionalProperties":false,"type":"object","required":["id","author","body","language","status","deleted_by","created_at","edited_at","editable_until","helpful","helpful_given","mine","proposal","replies"],"title":"PostOut"},"PostRefOut":{"properties":{"platform":{"type":"string","title":"Platform","description":"X, BLUESKY, MASTODON or YOUTUBE"},"kind":{"type":"string","title":"Kind","description":"POST, QUOTE or VIDEO"},"url":{"type":"string","title":"Url","description":"The original on the network: link it beside the paraphrase"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"role":{"type":"string","title":"Role","description":"SOURCE (what the statement says) or ATTACHED (read with it)"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution","description":"The network's terms as datastore gives them: show them with the link"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle","description":"The account it was read from, as the network names it: cedricwermuth.bsky.social, cedricwermuth, user@host, @name, channel/…, playlist/…"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When the daily re-check last saw it as it was; null if never"}},"additionalProperties":false,"type":"object","required":["platform","kind","url","published_at","role","attribution","handle","checked_at"],"title":"PostRefOut"},"ProducedEstimateOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"impact_id":{"type":"string","format":"uuid","title":"Impact Id"},"status":{"type":"string","title":"Status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"stale":{"anyOf":[{"$ref":"#/components/schemas/StaleOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","impact_id","status","published_at","stale"],"title":"ProducedEstimateOut"},"ProfileOut":{"properties":{"municipality":{"$ref":"#/components/schemas/MunicipalityOut"},"registry":{"$ref":"#/components/schemas/schwur_api__municipal_dto__SourceOut"},"sources":{"items":{"$ref":"#/components/schemas/SourceEntryOut"},"type":"array","title":"Sources"},"aggregate_href":{"type":"string","title":"Aggregate Href"},"district_href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District Href"}},"additionalProperties":false,"type":"object","required":["municipality","registry","sources","aggregate_href","district_href"],"title":"ProfileOut"},"ProjectionIn":{"properties":{"impact_id":{"type":"string","format":"uuid","title":"Impact Id"},"scenario":{"type":"string","title":"Scenario","examples":["PROPOSAL_ACCEPTED"]},"year":{"type":"integer","maximum":2200.0,"minimum":1900.0,"title":"Year","examples":[2030]},"growth":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}]},"propertyNames":{"enum":["LOW","CENTRAL","HIGH"]},"type":"object","title":"Growth","examples":[{"CENTRAL":"0.035","HIGH":"0.041","LOW":"0.027"}]},"methodology":{"type":"string","maxLength":10000,"minLength":1,"title":"Methodology"},"evidence":{"items":{"$ref":"#/components/schemas/EvidenceLinkIn"},"type":"array","title":"Evidence"},"demo":{"type":"boolean","title":"Demo","default":false},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Notes"},"confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"source_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Source Confidence"},"causal_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Causal Confidence"},"model_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Model Confidence"},"measurement_confidence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Measurement Confidence"}},"additionalProperties":false,"type":"object","required":["impact_id","scenario","year","growth","methodology"],"title":"ProjectionIn"},"ProposalDecisionIn":{"properties":{"kind":{"type":"string","enum":["MERGE","PART_OF","IDENTITY"],"title":"Kind"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id","description":"MERGE: merged away; PART_OF: the body; IDENTITY: the listed name"},"object_id":{"type":"string","format":"uuid","title":"Object Id","description":"MERGE: kept; PART_OF: the organisation; IDENTITY: the member"},"accept":{"type":"boolean","title":"Accept"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["kind","subject_id","object_id","accept","reason"],"title":"ProposalDecisionIn"},"ProposalDecisionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"object_id":{"type":"string","format":"uuid","title":"Object Id"},"reason":{"type":"string","title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"},"subject":{"anyOf":[{"$ref":"#/components/schemas/EndOut"},{"type":"null"}]},"object":{"anyOf":[{"$ref":"#/components/schemas/EndOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","kind","status","subject_id","object_id","reason","decided_at"],"title":"ProposalDecisionOut"},"ProposalOut":{"properties":{"kind":{"type":"string","title":"Kind"},"rule":{"type":"string","title":"Rule","description":"SEAT, SHORT_FORM or CONTAINS; for an identity NAME, NAME_CANTON or NAME_CANTON_COUNCIL"},"suggested_reason":{"type":"string","title":"Suggested Reason"},"subject":{"$ref":"#/components/schemas/EndOut"},"object":{"$ref":"#/components/schemas/EndOut"},"subject_forms":{"items":{"$ref":"#/components/schemas/FormCountOut"},"type":"array","title":"Subject Forms"},"object_forms":{"items":{"$ref":"#/components/schemas/FormCountOut"},"type":"array","title":"Object Forms"},"uses":{"type":"integer","title":"Uses","description":"An identity: the current relations the listed name has"}},"additionalProperties":false,"type":"object","required":["kind","rule","suggested_reason","subject","object","subject_forms","object_forms","uses"],"title":"ProposalOut"},"ProposalQueueItemOut":{"properties":{"proposal":{"$ref":"#/components/schemas/SourceProposalOut"},"post":{"$ref":"#/components/schemas/ReplyOut"},"political_object":{"anyOf":[{"$ref":"#/components/schemas/PoliticalObjectRefOut"},{"type":"null"}]},"news_item":{"anyOf":[{"$ref":"#/components/schemas/NewsRefOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["proposal","post","political_object","news_item"],"title":"ProposalQueueItemOut"},"ProposalsOut":{"properties":{"new":{"type":"integer","title":"New","description":"Proposals added; those made before are not made again"},"organisations":{"type":"integer","title":"Organisations","description":"Organisations made from the EFV's sheet"},"credits":{"type":"integer","title":"Credits","description":"Credits tied to the recipient their title and the EFV's sheet both name"}},"additionalProperties":false,"type":"object","required":["new","organisations","credits"],"title":"ProposalsOut"},"ProposedImpactIn":{"properties":{"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"dimension":{"type":"string","maxLength":100,"minLength":1,"title":"Dimension"},"impact_type":{"type":"string","title":"Impact Type"},"direction":{"type":"string","title":"Direction"},"causal_distance":{"type":"integer","maximum":4.0,"minimum":0.0,"title":"Causal Distance"},"affected_entity":{"type":"string","maxLength":300,"title":"Affected Entity","default":""},"geography":{"type":"string","title":"Geography","default":"CH"},"reversibility":{"type":"string","title":"Reversibility","default":"UNKNOWN"},"quantifiability":{"type":"string","title":"Quantifiability","default":"UNKNOWN"},"description":{"type":"string","maxLength":20000,"title":"Description","default":""},"perspective":{"type":"string","enum":["SUPPORTERS","OPPONENTS","METHOD"],"title":"Perspective"},"position":{"type":"string","enum":["PRO","CONTRA","MIXED"],"title":"Position"},"argument":{"type":"string","maxLength":1500,"minLength":1,"title":"Argument"},"figures":{"type":"boolean","title":"Figures","default":false},"sources":{"items":{"$ref":"#/components/schemas/NamedSourceIn"},"type":"array","maxItems":3,"title":"Sources"}},"additionalProperties":false,"type":"object","required":["title","dimension","impact_type","direction","causal_distance","perspective","position","argument"],"title":"ProposedImpactIn"},"ProvisionComparisonOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"outcome":{"type":"string","title":"Outcome"},"left_provision_id":{"type":"string","format":"uuid","title":"Left Provision Id"},"right_provision_id":{"type":"string","format":"uuid","title":"Right Provision Id"},"summary":{"type":"string","title":"Summary"},"evidence":{"items":{"$ref":"#/components/schemas/CitationOut"},"type":"array","title":"Evidence"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","outcome","left_provision_id","right_provision_id","summary","evidence"],"title":"ProvisionComparisonOut"},"ProvisionNodeOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"citation":{"type":"string","title":"Citation","examples":["Art. 41d Abs. 1"]},"level":{"type":"string","title":"Level"},"number":{"type":"string","title":"Number"},"heading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading"},"document":{"$ref":"#/components/schemas/LegalDocumentRefOut"},"document_version":{"anyOf":[{"$ref":"#/components/schemas/DocumentVersionOut"},{"type":"null"}]},"fragment":{"anyOf":[{"$ref":"#/components/schemas/FragmentOut"},{"type":"null"}]},"source_version":{"anyOf":[{"$ref":"#/components/schemas/SourceVersionBriefOut"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRefOut"},{"type":"null"}]},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","citation","level","number","heading","document","document_version","fragment","source_version","source"],"title":"ProvisionNodeOut","description":"A provision and its wording, which is a fragment of the stored source."},"PublisherOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","name","type","url"],"title":"PublisherOut"},"QuantitativeImpactOut":{"properties":{"impact":{"$ref":"#/components/schemas/ImpactOut"},"estimates":{"items":{"$ref":"#/components/schemas/EstimateOut"},"type":"array","title":"Estimates"},"evidence":{"items":{"$ref":"#/components/schemas/CitationOut"},"type":"array","title":"Evidence"}},"additionalProperties":false,"type":"object","required":["impact","estimates","evidence"],"title":"QuantitativeImpactOut"},"QueueEntryOut":{"properties":{"item":{"$ref":"#/components/schemas/AppraisalItemOut"},"run":{"$ref":"#/components/schemas/AppraisalRunOut"},"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"argument":{"anyOf":[{"$ref":"#/components/schemas/ArgumentOut"},{"type":"null"}]},"impact":{"anyOf":[{"$ref":"#/components/schemas/ImpactRefOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["item","run","political_object","argument","impact"],"title":"QueueEntryOut"},"QueueOut":{"properties":{"pending":{"items":{"$ref":"#/components/schemas/QueueEntryOut"},"type":"array","title":"Pending"},"runs":{"items":{"$ref":"#/components/schemas/QueueRunOut"},"type":"array","title":"Runs"}},"additionalProperties":false,"type":"object","required":["pending","runs"],"title":"QueueOut"},"QueueRunOut":{"properties":{"run":{"$ref":"#/components/schemas/AppraisalRunOut"},"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"}},"additionalProperties":false,"type":"object","required":["run","political_object"],"title":"QueueRunOut"},"QuoteOut":{"properties":{"text":{"type":"string","title":"Text","description":"Word for word as the transcript has it"},"at_s":{"type":"integer","title":"At S","description":"The second of the episode it is spoken at"}},"additionalProperties":false,"type":"object","required":["text","at_s"],"title":"QuoteOut"},"ReactionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind","description":"STATEMENT or VIDEO_NOTE"},"title":{"type":"string","title":"Title"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"person":{"anyOf":[{"$ref":"#/components/schemas/PersonRefOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","kind","title","published_at","person"],"title":"ReactionOut"},"ReadingObjectionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"person_number":{"type":"integer","title":"Person Number"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"objects":{"type":"boolean","title":"Objects"},"reason":{"type":"string","title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["id","person_number","platform","objects","reason","decided_at"],"title":"ReadingObjectionOut"},"ReceiptOut":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"source_rows":{"type":"integer","title":"Source Rows"},"observations":{"type":"integer","title":"Observations"},"numeric":{"type":"integer","title":"Numeric"},"missing":{"type":"integer","title":"Missing"},"structural":{"type":"integer","title":"Structural"},"outside_scope":{"type":"integer","title":"Outside Scope"},"sheets":{"type":"integer","title":"Sheets"},"cells":{"type":"integer","title":"Cells"},"details":{"additionalProperties":{"type":"string"},"type":"object","title":"Details"}},"additionalProperties":false,"type":"object","required":["dataset_id","source_rows","observations","numeric","missing","structural","outside_scope","sheets","cells","details"],"title":"ReceiptOut"},"RecentResolutionOut":{"properties":{"number":{"type":"string","title":"Number"},"kind":{"type":"string","title":"Kind"},"title":{"$ref":"#/components/schemas/SaidOut"},"resolution":{"$ref":"#/components/schemas/ResolutionOut"}},"additionalProperties":false,"type":"object","required":["number","kind","title","resolution"],"title":"RecentResolutionOut"},"RecommendationCountOut":{"properties":{"recommendation":{"type":"string","title":"Recommendation"},"accepted":{"type":"integer","title":"Accepted"},"rejected":{"type":"integer","title":"Rejected"}},"additionalProperties":false,"type":"object","required":["recommendation","accepted","rejected"],"title":"RecommendationCountOut"},"RecordOut":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"observation":{"$ref":"#/components/schemas/schwur_api__cantonal_dto__ObservationOut"}},"additionalProperties":false,"type":"object","required":["dataset_id","observation"],"title":"RecordOut"},"RecordRowOut":{"properties":{"key":{"type":"string","title":"Key"},"vote":{"$ref":"#/components/schemas/ParliamentVoteOut"},"stage":{"type":"string","title":"Stage"},"decision":{"type":"string","title":"Decision"},"line":{"anyOf":[{"$ref":"#/components/schemas/GroupLineOut"},{"type":"null"}]},"deviates":{"type":"boolean","title":"Deviates"},"switched":{"type":"boolean","title":"Switched"},"tally":{"$ref":"#/components/schemas/TallyOut"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"political_object":{"anyOf":[{"$ref":"#/components/schemas/PoliticalObjectRefOut"},{"type":"null"}]},"meaning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","vote","stage","decision","line","deviates","switched","tally","role","political_object","meaning"],"title":"RecordRowOut"},"RecordSummaryOut":{"properties":{"votes":{"type":"integer","title":"Votes"},"yes":{"type":"integer","title":"Yes"},"no":{"type":"integer","title":"No"},"abstention":{"type":"integer","title":"Abstention"},"away":{"type":"integer","title":"Away"},"deviations":{"type":"integer","title":"Deviations"},"switches":{"type":"integer","title":"Switches"}},"additionalProperties":false,"type":"object","required":["votes","yes","no","abstention","away","deviations","switches"],"title":"RecordSummaryOut"},"ReferendumCandidateOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"bk_id":{"type":"integer","title":"Bk Id"},"business_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Number"},"ends_on":{"type":"string","format":"date","title":"Ends On"}},"additionalProperties":false,"type":"object","required":["political_object","bk_id","business_number","ends_on"],"title":"ReferendumCandidateOut"},"RegisterAddressOut":{"properties":{"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"house_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"House Number"},"post_box":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Box"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"town":{"type":"string","title":"Town"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton","description":"The UID register names it, Zefix does not"},"country":{"type":"string","title":"Country"}},"additionalProperties":false,"type":"object","required":["street","house_number","post_box","zip_code","town","canton","country"],"title":"RegisterAddressOut"},"RegisterDifferenceOut":{"properties":{"field":{"type":"string","title":"Field","description":"legal_name, street, house_number, zip_code or town"},"commercial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial"},"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}},"additionalProperties":false,"type":"object","required":["field","commercial","uid"],"title":"RegisterDifferenceOut"},"RegisterEntryOut":{"properties":{"register_id":{"type":"string","title":"Register Id"},"text":{"type":"string","title":"Text","description":"As the register writes it"},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"function":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"},"paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Paid"}},"additionalProperties":false,"type":"object","required":["register_id","text","legal_form","body","function","paid"],"title":"RegisterEntryOut"},"RegisterExtractOut":{"properties":{"kind":{"type":"string","title":"Kind","description":"COMMERCIAL (the commercial register, through Zefix) or UID (the BFS's)"},"legal_name":{"type":"string","title":"Legal Name"},"legal_form_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form Code","description":"The register's code: Zefix 7, UID 0110"},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form","description":"The register's German name; null for a code"},"seat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seat"},"address":{"anyOf":[{"$ref":"#/components/schemas/RegisterAddressOut"},{"type":"null"}]},"status":{"type":"string","title":"Status","description":"As stated: Zefix EXISTIEREND; the UID register's code"},"checked_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Checked On","description":"UID register: the address last checked; Zefix: the last SHAB notice"},"ehraid":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ehraid"},"translations":{"items":{"type":"string"},"type":"array","title":"Translations"},"excerpt_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt Url","description":"The cantonal excerpt, as Zefix names it"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"}},"additionalProperties":false,"type":"object","required":["kind","legal_name","legal_form_code","legal_form","seat","address","status","checked_on","ehraid","translations","excerpt_url","source_version_id","retrieved_at"],"title":"RegisterExtractOut"},"RegisterHitOut":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town"},"legal_form_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form Code"},"rating":{"type":"integer","title":"Rating","description":"The UID register's score, 100 for an exact name"}},"additionalProperties":false,"type":"object","required":["uid","name","town","legal_form_code","rating"],"title":"RegisterHitOut"},"RegisterRecordOut":{"properties":{"uid":{"type":"string","title":"Uid","examples":["CHE-153.849.419"]},"legal_name":{"type":"string","title":"Legal Name","description":"The commercial register's, else the UID register's"},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form"},"legal_form_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form Code"},"legal_form_names":{"additionalProperties":{"type":"string"},"type":"object","title":"Legal Form Names","description":"Zefix's names of the legal form by language; empty for a UID code"},"seat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seat"},"address":{"anyOf":[{"$ref":"#/components/schemas/RegisterAddressOut"},{"type":"null"}]},"uid_register":{"anyOf":[{"$ref":"#/components/schemas/RegisterExtractOut"},{"type":"null"}]},"commercial":{"anyOf":[{"$ref":"#/components/schemas/RegisterExtractOut"},{"type":"null"}]},"differences":{"items":{"$ref":"#/components/schemas/RegisterDifferenceOut"},"type":"array","title":"Differences","description":"Where both registers hold the unit and state it differently"},"uid_page":{"type":"string","title":"Uid Page"},"zefix_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zefix Page"}},"additionalProperties":false,"type":"object","required":["uid","legal_name","legal_form","legal_form_code","legal_form_names","seat","address","uid_register","commercial","differences","uid_page","zefix_page"],"title":"RegisterRecordOut"},"RegisterRefOut":{"properties":{"uid":{"type":"string","title":"Uid"},"legal_name":{"type":"string","title":"Legal Name"},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form"},"legal_form_names":{"additionalProperties":{"type":"string"},"type":"object","title":"Legal Form Names"},"seat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seat","description":"The legal seat, else the town of the address"},"uid_page":{"type":"string","title":"Uid Page"},"zefix_page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zefix Page"}},"additionalProperties":false,"type":"object","required":["uid","legal_name","legal_form","legal_form_names","seat","uid_page","zefix_page"],"title":"RegisterRefOut"},"RelationDecisionOut":{"properties":{"relation_id":{"type":"string","format":"uuid","title":"Relation Id"},"visible":{"type":"boolean","title":"Visible"},"reason":{"type":"string","title":"Reason"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"}},"additionalProperties":false,"type":"object","required":["relation_id","visible","reason","decided_at"],"title":"RelationDecisionOut"},"RelationDetailOut":{"properties":{"relation":{"$ref":"#/components/schemas/RelationOut"},"decisions":{"items":{"$ref":"#/components/schemas/RelationDecisionOut"},"type":"array","title":"Decisions","description":"Corrections, oldest first"},"merge":{"anyOf":[{"$ref":"#/components/schemas/MergeOut"},{"type":"null"}],"description":"The merge that shows the object as another"},"identity":{"anyOf":[{"$ref":"#/components/schemas/MergeOut"},{"type":"null"}],"description":"The decision that shows the subject, a listed name, as the member"}},"additionalProperties":false,"type":"object","required":["relation","decisions","merge","identity"],"title":"RelationDetailOut"},"RelationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"amount_chf":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Chf"},"type":{"$ref":"#/components/schemas/RelationTypeRefOut"},"subject":{"$ref":"#/components/schemas/EndOut","description":"A listed name as the member it was decided to be"},"object":{"$ref":"#/components/schemas/EndOut","description":"An organisation as the one it was merged into"},"subject_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject As","description":"The list's name, where the subject is shown as the member it is"},"named_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Named As","description":"The source's wording where it differs"},"attributes":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Attributes","description":"The source's own words"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"seen_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen From"},"ended_seen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended Seen","description":"When the first snapshot no longer holding it was fetched"},"current":{"type":"boolean","title":"Current"},"level":{"type":"string","title":"Level","description":"OFFICIAL or DOCUMENT"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","type","subject","object","subject_as","named_as","attributes","valid_from","valid_to","seen_from","ended_seen","current","level","quote","reason","source"],"title":"RelationOut"},"RelationTypeDetailOut":{"properties":{"code":{"type":"string","title":"Code"},"version":{"type":"integer","title":"Version"},"category":{"type":"string","title":"Category"},"label":{"type":"string","title":"Label","description":"How the relation reads, in the requested language"},"inverse":{"type":"string","title":"Inverse"},"directed":{"type":"boolean","title":"Directed"},"subject_kinds":{"items":{"type":"string"},"type":"array","title":"Subject Kinds"},"object_kinds":{"items":{"type":"string"},"type":"array","title":"Object Kinds"},"time_kind":{"type":"string","title":"Time Kind","description":"VALID: dates from the source; SEEN: from snapshots"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"inverses":{"additionalProperties":{"type":"string"},"type":"object","title":"Inverses"},"definition":{"type":"string","title":"Definition","description":"German, the reference"},"legal_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Basis"},"source":{"type":"string","title":"Source"},"attributes":{"items":{"$ref":"#/components/schemas/AttributeOut"},"type":"array","title":"Attributes"},"wording_yes":{"items":{"type":"string"},"type":"array","title":"Wording Yes"},"wording_no":{"items":{"type":"string"},"type":"array","title":"Wording No"},"reason":{"type":"string","title":"Reason"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"versions":{"type":"integer","title":"Versions"},"current":{"type":"integer","title":"Current","description":"Current relations; for a derived type, the pairs"},"history":{"items":{"$ref":"#/components/schemas/RelationTypeVersionOut"},"type":"array","title":"History"},"vocabulary":{"items":{"$ref":"#/components/schemas/VocabularyOut"},"type":"array","title":"Vocabulary"}},"additionalProperties":false,"type":"object","required":["code","version","category","label","inverse","directed","subject_kinds","object_kinds","time_kind","labels","inverses","definition","legal_basis","source","attributes","wording_yes","wording_no","reason","created_at","versions","current","history","vocabulary"],"title":"RelationTypeDetailOut"},"RelationTypeOut":{"properties":{"code":{"type":"string","title":"Code"},"version":{"type":"integer","title":"Version"},"category":{"type":"string","title":"Category"},"label":{"type":"string","title":"Label","description":"How the relation reads, in the requested language"},"inverse":{"type":"string","title":"Inverse"},"directed":{"type":"boolean","title":"Directed"},"subject_kinds":{"items":{"type":"string"},"type":"array","title":"Subject Kinds"},"object_kinds":{"items":{"type":"string"},"type":"array","title":"Object Kinds"},"time_kind":{"type":"string","title":"Time Kind","description":"VALID: dates from the source; SEEN: from snapshots"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"inverses":{"additionalProperties":{"type":"string"},"type":"object","title":"Inverses"},"definition":{"type":"string","title":"Definition","description":"German, the reference"},"legal_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Basis"},"source":{"type":"string","title":"Source"},"attributes":{"items":{"$ref":"#/components/schemas/AttributeOut"},"type":"array","title":"Attributes"},"wording_yes":{"items":{"type":"string"},"type":"array","title":"Wording Yes"},"wording_no":{"items":{"type":"string"},"type":"array","title":"Wording No"},"reason":{"type":"string","title":"Reason"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"versions":{"type":"integer","title":"Versions"},"current":{"type":"integer","title":"Current","description":"Current relations; for a derived type, the pairs"}},"additionalProperties":false,"type":"object","required":["code","version","category","label","inverse","directed","subject_kinds","object_kinds","time_kind","labels","inverses","definition","legal_basis","source","attributes","wording_yes","wording_no","reason","created_at","versions","current"],"title":"RelationTypeOut"},"RelationTypeRefOut":{"properties":{"code":{"type":"string","title":"Code"},"version":{"type":"integer","title":"Version"},"category":{"type":"string","title":"Category"},"label":{"type":"string","title":"Label","description":"How the relation reads, in the requested language"},"inverse":{"type":"string","title":"Inverse"}},"additionalProperties":false,"type":"object","required":["code","version","category","label","inverse"],"title":"RelationTypeRefOut"},"RelationTypeVersionOut":{"properties":{"version":{"type":"integer","title":"Version"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"reason":{"type":"string","title":"Reason"},"definition":{"type":"string","title":"Definition"}},"additionalProperties":false,"type":"object","required":["version","created_at","reason","definition"],"title":"RelationTypeVersionOut"},"ReleaseOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"fingerprint":{"type":"string","title":"Fingerprint"},"contract":{"type":"string","title":"Contract"},"from_year":{"type":"integer","title":"From Year"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"dataset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Dataset Ids"}},"additionalProperties":false,"type":"object","required":["id","fingerprint","contract","from_year","created_at","dataset_ids"],"title":"ReleaseOut"},"ReplyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","description":"The display name; null once deleted"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body","description":"Null once deleted"},"language":{"type":"string","title":"Language"},"status":{"type":"string","title":"Status","description":"VISIBLE or DELETED"},"deleted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted By","description":"AUTHOR, or OPERATOR for a removal on a legal demand"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edited At"},"editable_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Editable Until","description":"Until when the reader can still edit this post of theirs"},"helpful":{"type":"integer","title":"Helpful"},"helpful_given":{"type":"boolean","title":"Helpful Given","description":"The reader has marked it helpful"},"mine":{"type":"boolean","title":"Mine","description":"The reader wrote it - for a guest's post, in this browser session"},"proposal":{"anyOf":[{"$ref":"#/components/schemas/SourceProposalOut"},{"type":"null"}]},"guest":{"type":"boolean","title":"Guest","description":"Written without an account; `author` is the name the guest chose","default":false},"author_is_ai":{"type":"boolean","title":"Author Is Ai","description":"The author is an AI identity. Derived server-side from the owned account; false for legacy, human and guest posts, and never accepted from a client","default":false}},"additionalProperties":false,"type":"object","required":["id","author","body","language","status","deleted_by","created_at","edited_at","editable_until","helpful","helpful_given","mine","proposal"],"title":"ReplyOut"},"ResetIn":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token"},"password":{"type":"string","maxLength":1024,"title":"Password"}},"additionalProperties":false,"type":"object","required":["token","password"],"title":"ResetIn"},"ResolutionOut":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"council":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Council","description":"NATIONAL, STATES or null for a committee's"},"committee":{"anyOf":[{"$ref":"#/components/schemas/SaidOut"},{"type":"null"}]},"text":{"$ref":"#/components/schemas/SaidOut"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"bill":{"anyOf":[{"$ref":"#/components/schemas/BillOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["date","council","committee","text","category","bill"],"title":"ResolutionOut"},"ResultProgressOut":{"properties":{"cantons_concluded":{"type":"integer","title":"Cantons Concluded"},"cantons":{"type":"integer","title":"Cantons"},"municipalities_counted":{"type":"integer","title":"Municipalities Counted"},"municipalities":{"type":"integer","title":"Municipalities"}},"additionalProperties":false,"type":"object","required":["cantons_concluded","cantons","municipalities_counted","municipalities"],"title":"ResultProgressOut"},"ResultsOut":{"properties":{"level":{"type":"string","title":"Level"},"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"date":{"type":"string","format":"date","title":"Date"},"href":{"type":"string","title":"Href"},"yes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yes"},"no":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"No"},"turnout":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Turnout"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"}},"additionalProperties":false,"type":"object","required":["level","id","title","date","href","yes","no","turnout","source_version_id"],"title":"ResultsOut"},"RetractIn":{"properties":{"note":{"type":"string","maxLength":1000,"minLength":1,"title":"Note","description":"Why it is taken back"}},"additionalProperties":false,"type":"object","required":["note"],"title":"RetractIn"},"RunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job":{"type":"string","title":"Job"},"trigger":{"type":"string","enum":["CRON","MANUAL"],"title":"Trigger"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Seconds","description":"How long the run took, once it ended"},"outcome":{"type":"string","enum":["RUNNING","OK","SKIPPED","FAILED","ABANDONED"],"title":"Outcome","description":"ABANDONED: still RUNNING long after it began - the end was never recorded"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor User Id","description":"Who started it by hand; empty for cron"}},"additionalProperties":false,"type":"object","required":["id","job","trigger","started_at","finished_at","seconds","outcome","summary","error","actor_user_id"],"title":"RunOut"},"SaidOut":{"properties":{"text":{"type":"string","title":"Text"},"language":{"type":"string","title":"Language","description":"de, fr or it: the language the text is in"}},"additionalProperties":false,"type":"object","required":["text","language"],"title":"SaidOut"},"ScenarioOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","type","title","description"],"title":"ScenarioOut"},"SearchOut":{"properties":{"query":{"type":"string","title":"Query"},"lang":{"type":"string","title":"Lang"},"group":{"anyOf":[{"$ref":"#/components/schemas/Group"},{"type":"null"}]},"kinds":{"items":{"$ref":"#/components/schemas/Kind"},"type":"array","title":"Kinds"},"total":{"type":"integer","title":"Total","description":"Pages found within the group and kind filter"},"counts":{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/Kind"},"type":"object","title":"Counts","description":"Pages found per kind, without the filter"},"groups":{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/Group"},"type":"object","title":"Groups","description":"Pages found per group, without the filter"},"hits":{"items":{"$ref":"#/components/schemas/schwur_api__search_dto__HitOut"},"type":"array","title":"Hits"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"suggestion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggestion","description":"«Did you mean», only when nothing was found"},"index_built_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Index Built At"},"terms_url":{"type":"string","title":"Terms Url"}},"additionalProperties":false,"type":"object","required":["query","lang","group","kinds","total","counts","groups","hits","next_cursor","suggestion","index_built_at","terms_url"],"title":"SearchOut"},"SeatOut":{"properties":{"committee_number":{"type":"integer","title":"Committee Number"},"abbreviation":{"anyOf":[{"$ref":"#/components/schemas/SaidOut"},{"type":"null"}]},"name":{"anyOf":[{"$ref":"#/components/schemas/SaidOut"},{"type":"null"}]},"function":{"anyOf":[{"$ref":"#/components/schemas/SaidOut"},{"type":"null"}]},"function_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Function Code","description":"1: member, as the service numbers it"}},"additionalProperties":false,"type":"object","required":["committee_number","abbreviation","name","function","function_code"],"title":"SeatOut"},"SheetOut":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"name":{"type":"string","title":"Name"},"cells":{"items":{"prefixItems":[{"type":"string"},{"type":"string"},{"type":"string"},{"anyOf":[{"type":"string"},{"type":"null"}]}],"type":"array","maxItems":4,"minItems":4},"type":"array","title":"Cells"},"merges":{"items":{"type":"string"},"type":"array","title":"Merges"}},"additionalProperties":false,"type":"object","required":["dataset_id","name","cells","merges"],"title":"SheetOut"},"SignupIn":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"password":{"type":"string","maxLength":1024,"title":"Password"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"locale":{"type":"string","enum":["de","fr","it","en","uk"],"title":"Locale","description":"The language of the form and the mails","default":"de"}},"additionalProperties":false,"type":"object","required":["email","password"],"title":"SignupIn"},"SourceDecisionIn":{"properties":{"action":{"type":"string","enum":["remove","set"],"title":"Action"},"url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Url"}},"additionalProperties":false,"type":"object","required":["action"],"title":"SourceDecisionIn"},"SourceDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"language":{"type":"string","title":"Language"},"canonical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Url"},"publisher":{"$ref":"#/components/schemas/PublisherOut"},"versions":{"items":{"$ref":"#/components/schemas/SourceVersionOut"},"type":"array","title":"Versions"},"current_fragments":{"items":{"$ref":"#/components/schemas/CitedFragmentOut"},"type":"array","title":"Current Fragments"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","type","title","language","canonical_url","publisher","versions","current_fragments"],"title":"SourceDetailOut"},"SourceEntryOut":{"properties":{"kind":{"type":"string","title":"Kind"},"url":{"type":"string","title":"Url"},"status":{"type":"string","title":"Status"}},"additionalProperties":false,"type":"object","required":["kind","url","status"],"title":"SourceEntryOut"},"SourceProposalOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Null once the post was deleted"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"status":{"type":"string","title":"Status","description":"OPEN, ACCEPTED, REJECTED or WITHDRAWN"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why the editors did not take the source"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"additionalProperties":false,"type":"object","required":["id","url","label","status","reason","decided_at"],"title":"SourceProposalOut"},"SourceRefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type"},"canonical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Url"},"publisher":{"$ref":"#/components/schemas/PublisherOut"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","title","type","canonical_url","publisher"],"title":"SourceRefOut"},"SourceReviewOut":{"properties":{"ref":{"type":"string","title":"Ref"},"named":{"type":"string","title":"Named","description":"As the opinion names it"},"status":{"type":"string","title":"Status","description":"OPEN, PRIMARY, SECONDARY, NOT_FOUND or REJECTED"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher"},"published_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Published On"},"passage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passage"},"announced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Announced By"},"checks":{"items":{"type":"string"},"type":"array","title":"Checks","description":"What schwur.ch's check noted"},"pending":{"type":"boolean","title":"Pending"}},"additionalProperties":false,"type":"object","required":["ref","named","status","url","title","publisher","published_on","passage","announced_by","checks","pending"],"title":"SourceReviewOut"},"SourceStampOut":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id"},"publisher":{"type":"string","title":"Publisher"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"}},"additionalProperties":false,"type":"object","required":["source_id","publisher","retrieved_at"],"title":"SourceStampOut","description":"Where the data come from and when they were fetched - shown with them."},"SourceVersionBriefOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"sha256":{"type":"string","title":"Sha256"},"mime_type":{"type":"string","title":"Mime Type"}},"additionalProperties":false,"type":"object","required":["id","retrieved_at","sha256","mime_type"],"title":"SourceVersionBriefOut"},"SourceVersionCreatedOut":{"properties":{"created":{"type":"boolean","title":"Created"},"version":{"$ref":"#/components/schemas/SourceVersionBriefOut"}},"additionalProperties":false,"type":"object","required":["created","version"],"title":"SourceVersionCreatedOut"},"SourceVersionIn":{"properties":{"content_base64":{"type":"string","maxLength":20000000,"title":"Content Base64"},"mime_type":{"type":"string","title":"Mime Type"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"normalized_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Text"}},"additionalProperties":false,"type":"object","required":["content_base64","mime_type","retrieved_at"],"title":"SourceVersionIn"},"SourceVersionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"sha256":{"type":"string","title":"Sha256"},"mime_type":{"type":"string","title":"Mime Type"},"byte_size":{"type":"integer","title":"Byte Size"},"storage_uri":{"type":"string","title":"Storage Uri"},"is_current":{"type":"boolean","title":"Is Current"},"fragment_count":{"type":"integer","title":"Fragment Count"},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["id","retrieved_at","sha256","mime_type","byte_size","storage_uri","is_current","fragment_count","metadata"],"title":"SourceVersionOut"},"SpellingIn":{"properties":{"text":{"type":"string","maxLength":300,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"SpellingIn"},"StageCountOut":{"properties":{"stage":{"type":"string","title":"Stage"},"weight":{"type":"integer","title":"Weight"},"counted":{"type":"integer","title":"Counted"},"deviating":{"type":"integer","title":"Deviating"}},"additionalProperties":false,"type":"object","required":["stage","weight","counted","deviating"],"title":"StageCountOut"},"StagesOut":{"properties":{"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"additionalProperties":false,"type":"object","required":["counts"],"title":"StagesOut","description":"How many proposals stand at each status: the counts on /vorlagen's tabs."},"StaleOut":{"properties":{"since":{"type":"string","format":"date-time","title":"Since"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["since","reason"],"title":"StaleOut","description":"Set once an input the figure was computed from has been superseded. The\nfigure stays as published; the note says a recomputation would differ."},"StatementAccountOut":{"properties":{"person_number":{"type":"integer","title":"Person Number"},"platform":{"type":"string","title":"Platform"},"handle":{"type":"string","title":"Handle","description":"As the network names it: no leading @; Mastodon user@host; YouTube @name or channel/<id>"},"origin":{"type":"string","title":"Origin"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"read":{"type":"boolean","title":"Read"}},"additionalProperties":false,"type":"object","required":["person_number","platform","handle","origin","evidence","read"],"title":"StatementAccountOut","description":"A sitting member's account whose public posts datastore reads - or, with `read`\nfalse, lists without reading them, because the member objected."},"StatementAccountsOut":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/StatementAccountOut"},"type":"array","title":"Accounts"}},"additionalProperties":false,"type":"object","required":["accounts"],"title":"StatementAccountsOut"},"StatementCellOut":{"properties":{"year":{"type":"integer","title":"Year"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Null wherever the source wrote a mark instead of a number"},"raw":{"type":"string","title":"Raw","description":"What the source wrote, exactly, so a dash and a zero stay apart"},"basis":{"type":"string","title":"Basis"}},"additionalProperties":false,"type":"object","required":["year","value","raw","basis"],"title":"StatementCellOut"},"StatementFamily":{"type":"string","enum":["INCOME_STATEMENT","INVESTMENTS","BALANCE_SHEET"],"title":"StatementFamily","description":"The tables of the annual accounts the portal publishes as data.\n\nThe Geldflussrechnung is not among them: no portal dataset holds it, and it is\nread from the printed Staatsrechnung instead (schwur.finance.official). A family\nhere is one this module can fetch and parse; a member without a FamilySpec would\nbe an address that answers nothing."},"StatementLineOut":{"properties":{"line":{"type":"integer","title":"Line","description":"The publisher's own line number: the locator"},"order":{"type":"integer","title":"Order","description":"Its place in the publisher's order, from 0"},"level":{"type":"integer","title":"Level"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","title":"Scope","description":"Whose accounts: BUND for the Confederation"},"parent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent","description":"Derived from the publisher's order and levels, not stored and not a key the source carries"},"role":{"type":"string","title":"Role","description":"LEAF, SUM or DIFFERENCE (the first child less the rest)"},"cells":{"items":{"$ref":"#/components/schemas/StatementCellOut"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["line","order","level","name","scope","parent","role","cells"],"title":"StatementLineOut"},"StatementOut":{"properties":{"status":{"type":"string","title":"Status","description":"HELD, PUBLISHED, REJECTED or WITHDRAWN"},"person":{"anyOf":[{"$ref":"#/components/schemas/PersonRefOut"},{"type":"null"}],"description":"The member whose posts these are"},"posts":{"items":{"$ref":"#/components/schemas/PostRefOut"},"type":"array","title":"Posts","description":"Sources first, oldest first"},"body":{"items":{"type":"string"},"type":"array","title":"Body","description":"The paragraphs after the lead"},"origin":{"type":"string","title":"Origin","description":"AGENT (the Chronist), EDITOR or MACHINE"},"quote":{"anyOf":[{"$ref":"#/components/schemas/StatementQuoteOut"},{"type":"null"}],"description":"At most one; none for a video note"},"links":{"items":{"$ref":"#/components/schemas/NewsLinkOut"},"type":"array","title":"Links"},"gaps":{"items":{"$ref":"#/components/schemas/GapOut"},"type":"array","title":"Gaps","description":"What the posts name and schwur.ch has no entry for"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At","description":"When an editor decided, or the statement appeared on its own"}},"additionalProperties":false,"type":"object","required":["status","person","posts","body","origin","quote","links","gaps","decided_at"],"title":"StatementOut"},"StatementQuoteOut":{"properties":{"text":{"type":"string","title":"Text","description":"Word for word as the post has it"},"post":{"anyOf":[{"$ref":"#/components/schemas/PostRefOut"},{"type":"null"}],"description":"The post it is from"}},"additionalProperties":false,"type":"object","required":["text","post"],"title":"StatementQuoteOut"},"StatesOut":{"properties":{"yes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Yes"},"no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"No"},"total":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total"}},"additionalProperties":false,"type":"object","required":["yes","no","total"],"title":"StatesOut","description":"The cantons' votes; a half canton counts one half."},"StripOut":{"properties":{"business_number":{"type":"string","title":"Business Number"},"political_object":{"anyOf":[{"$ref":"#/components/schemas/PoliticalObjectRefOut"},{"type":"null"}]},"rows":{"items":{"$ref":"#/components/schemas/RecordRowOut"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["business_number","political_object","rows"],"title":"StripOut"},"SubsidyDetailOut":{"properties":{"variable":{"type":"string","title":"Variable"},"value":{"type":"string","title":"Value"}},"additionalProperties":false,"type":"object","required":["variable","value"],"title":"SubsidyDetailOut"},"SubsidyLineOut":{"properties":{"subsidy":{"$ref":"#/components/schemas/SubsidyOut"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount","description":"Paid in the year; null: no payment"},"recipient":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient","description":"The EFV's «Subventionsempfänger», as written"}},"additionalProperties":false,"type":"object","required":["subsidy","amount","recipient"],"title":"SubsidyLineOut"},"SubsidyListOut":{"properties":{"available":{"type":"boolean","title":"Available","description":"False until the first import"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"totals":{"items":{"$ref":"#/components/schemas/YearAmountOut"},"type":"array","title":"Totals","description":"Every credit per year, oldest first"},"departments":{"items":{"$ref":"#/components/schemas/DepartmentSubsidiesOut"},"type":"array","title":"Departments"},"credits":{"type":"integer","title":"Credits"},"paid":{"type":"integer","title":"Paid"},"matching":{"type":"integer","title":"Matching","description":"Credits passing the filters"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"items":{"items":{"$ref":"#/components/schemas/SubsidyLineOut"},"type":"array","title":"Items","description":"Largest first"},"site_url":{"type":"string","title":"Site Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","year","totals","departments","credits","paid","matching","page","page_size","items","site_url","source"],"title":"SubsidyListOut"},"SubsidyOut":{"properties":{"credit":{"type":"string","title":"Credit"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"department":{"type":"string","title":"Department"},"unit":{"type":"string","title":"Unit"},"function":{"type":"string","title":"Function","description":"The task area, named as in the budget file"}},"additionalProperties":false,"type":"object","required":["credit","slug","title","department","unit","function"],"title":"SubsidyOut"},"SubsidyViewOut":{"properties":{"subsidy":{"$ref":"#/components/schemas/SubsidyOut"},"last_year":{"type":"integer","title":"Last Year","description":"The last year the database has payments for"},"amounts":{"items":{"$ref":"#/components/schemas/YearAmountOut"},"type":"array","title":"Amounts","description":"The years with a payment, oldest first"},"details":{"items":{"$ref":"#/components/schemas/SubsidyDetailOut"},"type":"array","title":"Details","description":"The EFV's sheet, empty entries left out"},"votes":{"items":{"$ref":"#/components/schemas/CreditVoteOut"},"type":"array","title":"Votes","description":"Oldest first"},"ties":{"items":{"$ref":"#/components/schemas/LinkOut"},"type":"array","title":"Ties","description":"Confirmed ties to the credit's organisations, recipients first"},"ties_beside_votes":{"type":"boolean","title":"Ties Beside Votes","description":"Whether ballots stand next to ties (FEDERAL_TIES_BESIDE_VOTES)","default":false},"ties_withheld":{"type":"boolean","title":"Ties Withheld","description":"The ties rest on the register: for signed-in readers only","default":false},"site_url":{"type":"string","title":"Site Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["subsidy","last_year","amounts","details","votes","site_url","source"],"title":"SubsidyViewOut"},"SuggestOut":{"properties":{"query":{"type":"string","title":"Query"},"items":{"items":{"$ref":"#/components/schemas/SuggestionOut"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["query","items"],"title":"SuggestOut"},"SuggestionOut":{"properties":{"kind":{"$ref":"#/components/schemas/Kind"},"kind_label":{"type":"string","title":"Kind Label"},"group":{"$ref":"#/components/schemas/Group"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"path":{"type":"string","title":"Path"},"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["kind","kind_label","group","title","subtitle","path","url"],"title":"SuggestionOut"},"SwitchOut":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"before":{"type":"string","title":"Before"},"after":{"type":"string","title":"After"},"reversal":{"type":"boolean","title":"Reversal"}},"additionalProperties":false,"type":"object","required":["name","slug","group_code","before","after","reversal"],"title":"SwitchOut"},"SyncOut":{"properties":{"types":{"type":"integer","title":"Types"},"actors":{"type":"integer","title":"Actors"},"name_forms":{"type":"integer","title":"Name Forms"},"relations":{"type":"integer","title":"Relations"},"ended":{"type":"integer","title":"Ended"},"unmatched":{"type":"integer","title":"Unmatched"}},"additionalProperties":false,"type":"object","required":["types","actors","name_forms","relations","ended","unmatched"],"title":"SyncOut"},"TallyOut":{"properties":{"yes":{"type":"integer","title":"Yes"},"no":{"type":"integer","title":"No"},"abstention":{"type":"integer","title":"Abstention"},"not_voting":{"type":"integer","title":"Not Voting"}},"additionalProperties":false,"type":"object","required":["yes","no","abstention","not_voting"],"title":"TallyOut"},"Task":{"type":"string","enum":["PLAN","LEGISLATE","EXECUTE","FINANCE","FOREIGN","SECURITY","OVERSIGHT","PARLIAMENT"],"title":"Task","description":"The Federal Council's tasks as a collegial body, Art. 180-187 BV."},"TaskPageOut":{"properties":{"task":{"type":"string","title":"Task"},"article":{"type":"string","title":"Article"},"acts":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ActOut"},"type":"array"},"type":"object","title":"Acts"},"act_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Act Counts"},"in_force":{"items":{"$ref":"#/components/schemas/ActOut"},"type":"array","title":"In Force"},"messages":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Messages"},"message_count":{"type":"integer","title":"Message Count"},"since":{"type":"string","format":"date","title":"Since"},"checked":{"anyOf":[{"$ref":"#/components/schemas/CheckedOut"},{"type":"null"}]},"acts_checked":{"anyOf":[{"$ref":"#/components/schemas/CheckedOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["task","article","acts","act_counts","in_force","messages","message_count","since","checked","acts_checked"],"title":"TaskPageOut"},"TieBallotOut":{"properties":{"key":{"type":"string","title":"Key"},"voted_on":{"type":"string","format":"date","title":"Voted On"},"decision":{"type":"string","title":"Decision"},"group_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Line","description":"The member's group's line; null if it split"}},"additionalProperties":false,"type":"object","required":["key","voted_on","decision","group_line"],"title":"TieBallotOut"},"TieListOut":{"properties":{"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year","description":"Of the amounts"},"entries":{"type":"integer","title":"Entries","description":"Entries in the newest register snapshot"},"members":{"type":"integer","title":"Members"},"paid":{"type":"integer","title":"Paid"},"recipients":{"type":"integer","title":"Recipients","description":"Organisations tied to a credit as its recipient"},"ties":{"items":{"$ref":"#/components/schemas/LinkOut"},"type":"array","title":"Ties","description":"Confirmed, by credit, then member"},"register_source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"subsidy_source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"ties_withheld":{"type":"boolean","title":"Ties Withheld","description":"The ties rest on the register: for signed-in readers only","default":false}},"additionalProperties":false,"type":"object","required":["year","entries","members","paid","recipients","ties","register_source","subsidy_source"],"title":"TieListOut"},"TieMemberOut":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"name":{"type":"string","title":"Name"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"canton":{"type":"string","title":"Canton"},"council":{"type":"string","title":"Council"}},"additionalProperties":false,"type":"object","required":["slug","name","group_code","canton","council"],"title":"TieMemberOut"},"TieOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"amount_chf":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Chf"},"type":{"$ref":"#/components/schemas/RelationTypeRefOut"},"subject":{"$ref":"#/components/schemas/EndOut","description":"A listed name as the member it was decided to be"},"object":{"$ref":"#/components/schemas/EndOut","description":"An organisation as the one it was merged into"},"subject_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject As","description":"The list's name, where the subject is shown as the member it is"},"named_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Named As","description":"The source's wording where it differs"},"attributes":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Attributes","description":"The source's own words"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"seen_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen From"},"ended_seen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended Seen","description":"When the first snapshot no longer holding it was fetched"},"current":{"type":"boolean","title":"Current"},"level":{"type":"string","title":"Level","description":"OFFICIAL or DOCUMENT"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"shared":{"type":"integer","title":"Shared","description":"Other people whose current entries name the same organisation"}},"additionalProperties":false,"type":"object","required":["id","type","subject","object","subject_as","named_as","attributes","valid_from","valid_to","seen_from","ended_seen","current","level","quote","reason","source","shared"],"title":"TieOut"},"TitleOut":{"properties":{"language":{"type":"string","title":"Language"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["language","text"],"title":"TitleOut"},"TopicOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","key","name","parent_id"],"title":"TopicOut"},"UidAcceptIn":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"limit":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Limit","description":"Links in this call, each looked up","default":5}},"additionalProperties":false,"type":"object","required":["reason"],"title":"UidAcceptIn"},"UidAcceptOut":{"properties":{"linked":{"type":"integer","title":"Linked"},"left":{"type":"integer","title":"Left"},"failed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed"}},"additionalProperties":false,"type":"object","required":["linked","left","failed"],"title":"UidAcceptOut"},"UidCandidateOut":{"properties":{"rank":{"type":"integer","title":"Rank"},"uid":{"type":"string","title":"Uid","description":"CHE-123.456.789"},"name":{"type":"string","title":"Name","description":"The legal name the UID register gives"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town"},"legal_form_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Form Code","description":"eCH-0097, as the UID register gives it"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"The UID register's status; «3» for an active unit"},"rating":{"type":"integer","title":"Rating","description":"The UID register's own score, 100 for an exact name"},"exact":{"type":"boolean","title":"Exact","description":"Its legal name and town are the organisation's"}},"additionalProperties":false,"type":"object","required":["rank","uid","name","town","legal_form_code","status","rating","exact"],"title":"UidCandidateOut"},"UidLinkIn":{"properties":{"uid":{"type":"string","maxLength":20,"minLength":12,"title":"Uid","description":"CHE-123.456.789"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["uid","reason"],"title":"UidLinkIn"},"UidProposalOut":{"properties":{"organisation":{"$ref":"#/components/schemas/EndOut"},"persons":{"type":"integer","title":"Persons","description":"Members whose current entries name it"},"query":{"type":"string","title":"Query","description":"What the UID register was asked"},"town":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Town","description":"The town the wording gives"},"searched_at":{"type":"string","format":"date-time","title":"Searched At"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"proposed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed","description":"The UID the rule proposes, if any"},"candidates":{"items":{"$ref":"#/components/schemas/UidCandidateOut"},"type":"array","title":"Candidates"}},"additionalProperties":false,"type":"object","required":["organisation","persons","query","town","searched_at","source_version_id","proposed","candidates"],"title":"UidProposalOut"},"UidQueueOut":{"properties":{"organisations":{"type":"integer","title":"Organisations","description":"Organisations a current relation names"},"searched":{"type":"integer","title":"Searched"},"decided":{"type":"integer","title":"Decided"},"proposals":{"items":{"$ref":"#/components/schemas/UidProposalOut"},"type":"array","title":"Proposals"}},"additionalProperties":false,"type":"object","required":["organisations","searched","decided","proposals"],"title":"UidQueueOut"},"UidReasonIn":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"UidReasonIn"},"UidSearchIn":{"properties":{"limit":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Limit","description":"Searches in this call","default":10}},"additionalProperties":false,"type":"object","title":"UidSearchIn"},"UidSearchOut":{"properties":{"searched":{"type":"integer","title":"Searched"},"with_candidates":{"type":"integer","title":"With Candidates"},"proposed":{"type":"integer","title":"Proposed"},"left":{"type":"integer","title":"Left","description":"Organisations still to search"},"failed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed"}},"additionalProperties":false,"type":"object","required":["searched","with_candidates","proposed","left","failed"],"title":"UidSearchOut"},"UndoIn":{"properties":{"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"object_id":{"type":"string","format":"uuid","title":"Object Id"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"kind":{"type":"string","enum":["MERGE","IDENTITY"],"title":"Kind"}},"additionalProperties":false,"type":"object","required":["subject_id","object_id","reason","kind"],"title":"UndoIn"},"UndoMergeIn":{"properties":{"subject_id":{"type":"string","format":"uuid","title":"Subject Id"},"object_id":{"type":"string","format":"uuid","title":"Object Id"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["subject_id","object_id","reason"],"title":"UndoMergeIn"},"UnitCellOut":{"properties":{"values":{"items":{"type":"string"},"type":"array","title":"Values","description":"What the file gives for the key: one value, or several that disagree"},"conflicting":{"type":"boolean","title":"Conflicting","description":"The file gives the key twice with different values"},"basis":{"type":"string","title":"Basis","description":"ACTUAL, BUDGET or PLAN"}},"additionalProperties":false,"type":"object","required":["values","conflicting","basis"],"title":"UnitCellOut"},"UnitCreditOut":{"properties":{"subsidy":{"$ref":"#/components/schemas/SubsidyOut"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"}},"additionalProperties":false,"type":"object","required":["subsidy","amount"],"title":"UnitCreditOut"},"UnitDocumentOut":{"properties":{"publication":{"type":"string","title":"Publication"},"url":{"type":"string","title":"Url"},"first_page":{"type":"integer","title":"First Page"}},"additionalProperties":false,"type":"object","required":["publication","url","first_page"],"title":"UnitDocumentOut"},"UnitHeadsOut":{"properties":{"body_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Slug","description":"The unit's page among the bodies, if it has one"},"heads":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Heads","description":"Current UNIT_HEAD relations, as the source names them"}},"additionalProperties":false,"type":"object","required":["body_slug","heads"],"title":"UnitHeadsOut"},"UnitLineOut":{"properties":{"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number","description":"The EFV's unit number; null for a name Band 2 lacks"},"abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abbreviation"},"name":{"type":"string","title":"Name"},"names_in_file":{"items":{"type":"string"},"type":"array","title":"Names In File","description":"How «Institutionen» names the unit"},"values":{"$ref":"#/components/schemas/UnitValuesOut"},"subsidies":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subsidies","description":"The unit's credits in the subsidy database in the year, CHF; null if none"}},"additionalProperties":false,"type":"object","required":["number","abbreviation","name","names_in_file","values","subsidies"],"title":"UnitLineOut"},"UnitOut":{"properties":{"quantity":{"type":"string","title":"Quantity","description":"MONEY, RATIO or FACTOR"},"measure":{"type":"string","title":"Measure","description":"FLOW (addable over years) or STOCK (not)"},"unit":{"type":"string","title":"Unit","description":"What to write after the number; empty for a quotient"},"scale":{"type":"integer","title":"Scale","description":"The power of ten the stored value is in; 0 = the unit itself"},"addable_over_years":{"type":"boolean","title":"Addable Over Years"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"alias_of_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias Of Topic","description":"The twin this series repeats, if any"},"alias_of_variable_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alias Of Variable Id"}},"additionalProperties":false,"type":"object","required":["quantity","measure","unit","scale","addable_over_years","note","alias_of_topic","alias_of_variable_id"],"title":"UnitOut","description":"What a series measures, from the checked register and not from the file."},"UnitPointOut":{"properties":{"year":{"type":"integer","title":"Year"},"cell":{"$ref":"#/components/schemas/UnitCellOut"}},"additionalProperties":false,"type":"object","required":["year","cell"],"title":"UnitPointOut"},"UnitRefOut":{"properties":{"number":{"type":"string","title":"Number"},"abbreviation":{"type":"string","title":"Abbreviation"},"name":{"type":"string","title":"Name"},"department":{"type":"string","title":"Department"},"publications":{"items":{"type":"string"},"type":"array","title":"Publications"}},"additionalProperties":false,"type":"object","required":["number","abbreviation","name","department","publications"],"title":"UnitRefOut"},"UnitSeriesOut":{"properties":{"personnel":{"items":{"$ref":"#/components/schemas/UnitPointOut"},"type":"array","title":"Personnel"},"positions":{"items":{"$ref":"#/components/schemas/UnitPointOut"},"type":"array","title":"Positions"},"it":{"items":{"$ref":"#/components/schemas/UnitPointOut"},"type":"array","title":"It"},"consultancy":{"items":{"$ref":"#/components/schemas/UnitPointOut"},"type":"array","title":"Consultancy"}},"additionalProperties":false,"type":"object","required":["personnel","positions","it","consultancy"],"title":"UnitSeriesOut"},"UnitSourcesOut":{"properties":{"unit_register":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"institutions":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"subsidies":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"institutions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institutions Url"}},"additionalProperties":false,"type":"object","required":["unit_register","institutions","subsidies","institutions_url"],"title":"UnitSourcesOut"},"UnitTotalOut":{"properties":{"year":{"type":"integer","title":"Year"},"chf":{"type":"string","title":"Chf"}},"additionalProperties":false,"type":"object","required":["year","chf"],"title":"UnitTotalOut"},"UnitValuesOut":{"properties":{"personnel":{"anyOf":[{"$ref":"#/components/schemas/UnitCellOut"},{"type":"null"}],"description":"Personalausgaben, CHF"},"positions":{"anyOf":[{"$ref":"#/components/schemas/UnitCellOut"},{"type":"null"}],"description":"Anzahl Vollzeitstellen, FTE"},"it":{"anyOf":[{"$ref":"#/components/schemas/UnitCellOut"},{"type":"null"}],"description":"Informatik, CHF"},"consultancy":{"anyOf":[{"$ref":"#/components/schemas/UnitCellOut"},{"type":"null"}],"description":"Beratung und externe Dienstleistungen, CHF"}},"additionalProperties":false,"type":"object","required":["personnel","positions","it","consultancy"],"title":"UnitValuesOut"},"UnitYearOut":{"properties":{"year":{"type":"integer","title":"Year"},"basis":{"type":"string","title":"Basis","description":"ACTUAL, BUDGET or PLAN"}},"additionalProperties":false,"type":"object","required":["year","basis"],"title":"UnitYearOut"},"UpkeepQueueOut":{"properties":{"today":{"type":"string","format":"date","title":"Today"},"referendums":{"items":{"$ref":"#/components/schemas/ReferendumCandidateOut"},"type":"array","title":"Referendums","description":"Referendum deadlines running without a notice"},"analyses":{"items":{"$ref":"#/components/schemas/AnalysisDueOut"},"type":"array","title":"Analyses","description":"Set on a voting day without any impact yet: the analysis is due"},"links":{"items":{"$ref":"#/components/schemas/BusinessLinkOut"},"type":"array","title":"Links","description":"Consultations Fedlex tied to a business, most recently changed first"},"notices":{"items":{"$ref":"#/components/schemas/NoticeItemOut"},"type":"array","title":"Notices"},"consultations_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consultations Read At"},"register_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Register Read At"}},"additionalProperties":false,"type":"object","required":["today","referendums","analyses","links","notices","consultations_read_at","register_read_at"],"title":"UpkeepQueueOut","description":"What the daily imports may not decide alone (S36), for the editors."},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","title":"Role"},"email_verified":{"type":"boolean","title":"Email Verified"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"The name shown with the account's posts"},"approved":{"type":"boolean","title":"Approved","description":"Let in by the owner; until then the account gets what a reader without one gets"}},"additionalProperties":false,"type":"object","required":["id","email","name","role","email_verified","display_name","approved"],"title":"UserOut"},"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"},"ValueCountOut":{"properties":{"value":{"type":"string","title":"Value"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["value","count"],"title":"ValueCountOut"},"ValueRangeOut":{"properties":{"low":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Low"},"central":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Central"},"high":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"High"}},"additionalProperties":false,"type":"object","required":["low","central","high"],"title":"ValueRangeOut"},"VerdictOut":{"properties":{"initiative_id":{"type":"integer","title":"Initiative Id"},"vote_number":{"type":"integer","title":"Vote Number"},"title":{"type":"string","title":"Title"},"recommendation":{"type":"string","title":"Recommendation"},"accepted":{"type":"boolean","title":"Accepted"},"followed":{"type":"boolean","title":"Followed"}},"additionalProperties":false,"type":"object","required":["initiative_id","vote_number","title","recommendation","accepted","followed"],"title":"VerdictOut"},"VerdictSummaryOut":{"properties":{"total":{"type":"integer","title":"Total"},"followed":{"type":"integer","title":"Followed"},"by_recommendation":{"items":{"$ref":"#/components/schemas/RecommendationCountOut"},"type":"array","title":"By Recommendation"},"latest":{"items":{"$ref":"#/components/schemas/VerdictOut"},"type":"array","title":"Latest"},"checked":{"anyOf":[{"$ref":"#/components/schemas/CheckedOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["total","followed","by_recommendation","latest","checked"],"title":"VerdictSummaryOut"},"VisibilityIn":{"properties":{"visible":{"type":"boolean","title":"Visible"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["visible","reason"],"title":"VisibilityIn"},"VocabularyOut":{"properties":{"attribute":{"type":"string","title":"Attribute"},"values":{"items":{"$ref":"#/components/schemas/ValueCountOut"},"type":"array","title":"Values"}},"additionalProperties":false,"type":"object","required":["attribute","values"],"title":"VocabularyOut"},"VoteCheckOut":{"properties":{"ballots":{"type":"integer","title":"Ballots"},"counted":{"type":"integer","title":"Counted"},"unmatched":{"type":"integer","title":"Unmatched"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"},"protocol_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol Url"},"list_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Url"}},"additionalProperties":false,"type":"object","required":["ballots","counted","unmatched","sha256","retrieved_at","protocol_url","list_url"],"title":"VoteCheckOut"},"VoteContextOut":{"properties":{"registration_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Registration Number"},"legislative_period":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Legislative Period"},"bill_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bill Number"},"business_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Title"},"business_author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Author"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"session_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Name"}},"additionalProperties":false,"type":"object","required":["registration_number","legislative_period","bill_number","business_title","business_author","session_id","session_name"],"title":"VoteContextOut"},"VoteCountOut":{"properties":{"national":{"type":"integer","title":"National"},"states":{"type":"integer","title":"States"},"first_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First On"},"last_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last On"}},"additionalProperties":false,"type":"object","required":["national","states","first_on","last_on"],"title":"VoteCountOut"},"VoteDetailOut":{"properties":{"key":{"type":"string","title":"Key"},"vote":{"$ref":"#/components/schemas/ParliamentVoteOut"},"context":{"anyOf":[{"$ref":"#/components/schemas/VoteContextOut"},{"type":"null"}]},"stage":{"type":"string","title":"Stage"},"tally":{"$ref":"#/components/schemas/TallyOut"},"groups":{"items":{"$ref":"#/components/schemas/GroupTallyOut"},"type":"array","title":"Groups"},"lines":{"items":{"$ref":"#/components/schemas/GroupLineOut"},"type":"array","title":"Lines"},"deviations":{"items":{"$ref":"#/components/schemas/DeviationOut"},"type":"array","title":"Deviations"},"switches":{"items":{"$ref":"#/components/schemas/SwitchOut"},"type":"array","title":"Switches"},"overall_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Key","description":"For a final vote: the overall vote compared"},"ballots":{"items":{"$ref":"#/components/schemas/schwur_api__dto__BallotOut"},"type":"array","title":"Ballots"},"objects":{"items":{"$ref":"#/components/schemas/VoteObjectOut"},"type":"array","title":"Objects"},"meaning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning","description":"What yes meant, in the editors' words"},"meaning_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meaning By","description":"MARKING or EDITORS"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"check":{"$ref":"#/components/schemas/VoteCheckOut"},"party_groups":{"items":{"$ref":"#/components/schemas/ParliamentGroupOut"},"type":"array","title":"Party Groups"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"i18n":{"anyOf":[{"$ref":"#/components/schemas/I18nOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","vote","context","stage","tally","groups","lines","deviations","switches","overall_key","ballots","objects","meaning","meaning_by","reason","check","party_groups","source"],"title":"VoteDetailOut"},"VoteObjectOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"role":{"type":"string","title":"Role"}},"additionalProperties":false,"type":"object","required":["political_object","role"],"title":"VoteObjectOut"},"VoteResultOut":{"properties":{"vorlagen_id":{"type":"integer","title":"Vorlagen Id"},"kind":{"type":"string","title":"Kind"},"main_vorlagen_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Main Vorlagen Id"},"title":{"type":"string","title":"Title"},"language":{"type":"string","title":"Language","description":"The language of `title`"},"status":{"type":"string","title":"Status","description":"EMPTY, COUNTING, PROVISIONAL_OFFICIAL or FINAL"},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepted","description":"Null until concluded; for a deciding question: the initiative wins"},"double_majority":{"type":"boolean","title":"Double Majority","description":"The cantons' votes count as well"},"states":{"$ref":"#/components/schemas/StatesOut"},"country":{"anyOf":[{"$ref":"#/components/schemas/AreaResultOut"},{"type":"null"}]},"cantons":{"items":{"$ref":"#/components/schemas/AreaResultOut"},"type":"array","title":"Cantons"},"progress":{"$ref":"#/components/schemas/ResultProgressOut"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["vorlagen_id","kind","main_vorlagen_id","title","language","status","accepted","double_majority","states","country","cantons","progress","updated_at","source"],"title":"VoteResultOut"},"WithdrawalIn":{"properties":{"person_number":{"type":"integer","minimum":1.0,"title":"Person Number"},"platform":{"type":"string","enum":["X","INSTAGRAM","FACEBOOK","LINKEDIN","BLUESKY","MASTODON","TIKTOK","YOUTUBE"],"title":"Platform"},"handle":{"type":"string","maxLength":200,"minLength":1,"title":"Handle"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["person_number","platform","handle","reason"],"title":"WithdrawalIn"},"YearAmountOut":{"properties":{"year":{"type":"integer","title":"Year"},"chf":{"type":"string","title":"Chf"}},"additionalProperties":false,"type":"object","required":["year","chf"],"title":"YearAmountOut"},"schwur_api__arguments_dto__DecisionIn":{"properties":{"action":{"type":"string","enum":["confirm","reject","set_source"],"title":"Action"},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Url"},"passage":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Passage"}},"additionalProperties":false,"type":"object","required":["action"],"title":"DecisionIn"},"schwur_api__arguments_dto__ObjectionIn":{"properties":{"impact":{"type":"string","pattern":"^I[0-9]{1,3}$","title":"Impact"},"perspective":{"type":"string","enum":["SUPPORTERS","OPPONENTS","METHOD"],"title":"Perspective"},"position":{"type":"string","enum":["PRO","CONTRA","MIXED"],"title":"Position"},"text":{"type":"string","maxLength":1500,"minLength":1,"title":"Text"},"figures":{"type":"boolean","title":"Figures","default":false},"sources":{"items":{"$ref":"#/components/schemas/NamedSourceIn"},"type":"array","maxItems":3,"title":"Sources"}},"additionalProperties":false,"type":"object","required":["impact","perspective","position","text"],"title":"ObjectionIn"},"schwur_api__business_dto__PersonOut":{"properties":{"slug":{"type":"string","title":"Slug"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"council":{"type":"string","title":"Council"},"canton":{"type":"string","title":"Canton"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"}},"additionalProperties":false,"type":"object","required":["slug","first_name","last_name","council","canton","group_code"],"title":"PersonOut"},"schwur_api__business_dto__SessionOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"$ref":"#/components/schemas/SaidOut"},"abbreviation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abbreviation"},"starts_on":{"type":"string","format":"date","title":"Starts On"},"ends_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ends On"}},"additionalProperties":false,"type":"object","required":["id","name","abbreviation","starts_on","ends_on"],"title":"SessionOut"},"schwur_api__business_dto__TaskOut":{"properties":{"task":{"type":"string","title":"Task"},"slug":{"type":"string","title":"Slug"},"basis":{"type":"string","title":"Basis","description":"RULE or EDITOR"},"rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule","description":"the rule's key, for a task a rule gave"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"the editors' reason, for a task they decided"}},"additionalProperties":false,"type":"object","required":["task","slug","basis","rule","reason"],"title":"TaskOut"},"schwur_api__cantonal_dto__AccountOut":{"properties":{"release_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"},"canton":{"type":"string","title":"Canton"},"household":{"type":"string","title":"Household"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"years":{"items":{"type":"integer"},"type":"array","title":"Years"},"dataset":{"anyOf":[{"$ref":"#/components/schemas/DatasetOut"},{"type":"null"}]},"records":{"items":{"$ref":"#/components/schemas/RecordOut"},"type":"array","title":"Records"}},"additionalProperties":false,"type":"object","required":["release_id","canton","household","year","years","dataset","records"],"title":"AccountOut"},"schwur_api__cantonal_dto__BallotOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"canton":{"type":"string","title":"Canton"},"vote_date":{"type":"string","format":"date","title":"Vote Date"},"source_number":{"type":"integer","title":"Source Number"},"kind_code":{"type":"integer","title":"Kind Code"},"main_source_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Main Source Number"},"titles":{"items":{"$ref":"#/components/schemas/TitleOut"},"type":"array","title":"Titles"},"concluded":{"type":"boolean","title":"Concluded"},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepted"},"areas":{"items":{"$ref":"#/components/schemas/AreaResultOut"},"type":"array","title":"Areas"},"area_count":{"type":"integer","title":"Area Count"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"source_url":{"type":"string","title":"Source Url"},"imported_at":{"type":"string","format":"date-time","title":"Imported At"}},"additionalProperties":false,"type":"object","required":["id","canton","vote_date","source_number","kind_code","main_source_number","titles","concluded","accepted","areas","area_count","source_version_id","source_url","imported_at"],"title":"BallotOut"},"schwur_api__cantonal_dto__CoverageOut":{"properties":{"release":{"anyOf":[{"$ref":"#/components/schemas/ReleaseOut"},{"type":"null"}]},"datasets":{"items":{"$ref":"#/components/schemas/CoverageItemOut"},"type":"array","title":"Datasets"},"years":{"items":{"type":"integer"},"type":"array","title":"Years"}},"additionalProperties":false,"type":"object","required":["release","datasets","years"],"title":"CoverageOut"},"schwur_api__cantonal_dto__ObservationOut":{"properties":{"ordinal":{"type":"integer","title":"Ordinal"},"canton":{"type":"string","title":"Canton"},"household":{"type":"string","title":"Household"},"year":{"type":"integer","title":"Year"},"model":{"type":"string","title":"Model"},"dimension":{"type":"string","title":"Dimension"},"account":{"type":"string","title":"Account"},"function":{"type":"string","title":"Function"},"label":{"type":"string","title":"Label"},"unit":{"type":"string","title":"Unit"},"scale":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Scale"},"value":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value"},"raw":{"type":"string","title":"Raw"},"status":{"type":"string","title":"Status"},"locator":{"type":"string","title":"Locator"},"attributes":{"additionalProperties":{"type":"string"},"type":"object","title":"Attributes"}},"additionalProperties":false,"type":"object","required":["ordinal","canton","household","year","model","dimension","account","function","label","unit","scale","value","raw","status","locator","attributes"],"title":"ObservationOut"},"schwur_api__dto__BallotOut":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"decision":{"type":"string","title":"Decision"}},"additionalProperties":false,"type":"object","required":["name","slug","canton","group_code","decision"],"title":"BallotOut"},"schwur_api__dto__ChronicleOut":{"properties":{"political_object":{"$ref":"#/components/schemas/PoliticalObjectRefOut"},"entries":{"items":{"$ref":"#/components/schemas/ChronicleEntryOut"},"type":"array","title":"Entries","description":"Oldest first"}},"additionalProperties":false,"type":"object","required":["political_object","entries"],"title":"ChronicleOut"},"schwur_api__dto__CoverageOut":{"properties":{"provisions_total":{"type":"integer","title":"Provisions Total"},"provisions_related":{"type":"integer","title":"Provisions Related"},"provisions_with_impacts":{"type":"integer","title":"Provisions With Impacts"},"method_version":{"type":"string","title":"Method Version"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"additionalProperties":false,"type":"object","required":["provisions_total","provisions_related","provisions_with_impacts","method_version","generated_at"],"title":"CoverageOut"},"schwur_api__dto__HitOut":{"properties":{"end":{"$ref":"#/components/schemas/EndOut"},"matched":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched","description":"The way of writing found, where not the name"},"count":{"type":"integer","title":"Count","description":"A person's register entries; the people naming an organisation; a body's members"}},"additionalProperties":false,"type":"object","required":["end","matched","count"],"title":"HitOut"},"schwur_api__dto__MemberOut":{"properties":{"slug":{"type":"string","title":"Slug"},"person_number":{"type":"integer","title":"Person Number"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"council":{"type":"string","title":"Council"},"canton":{"type":"string","title":"Canton"},"party":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Party"},"group_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Code"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"joined_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Joined On"},"left_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Left On"},"active":{"type":"boolean","title":"Active"}},"additionalProperties":false,"type":"object","required":["slug","person_number","first_name","last_name","council","canton","party","group_code","gender","joined_on","left_on","active"],"title":"MemberOut"},"schwur_api__dto__ObservationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"metric":{"$ref":"#/components/schemas/MetricOut"},"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"value":{"type":"string","title":"Value"},"fragment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Fragment Id"}},"additionalProperties":false,"type":"object","required":["id","metric","period_start","period_end","value","fragment_id"],"title":"ObservationOut"},"schwur_api__dto__PersonOut":{"properties":{"person":{"$ref":"#/components/schemas/EndOut"},"offices":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Offices"},"committees":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Committees"},"intergroups":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Intergroups"},"badges":{"items":{"$ref":"#/components/schemas/BadgeOut"},"type":"array","title":"Badges"},"ties":{"items":{"$ref":"#/components/schemas/TieOut"},"type":"array","title":"Ties"},"paid":{"type":"integer","title":"Paid"},"unpaid":{"type":"integer","title":"Unpaid"},"former":{"items":{"$ref":"#/components/schemas/RelationOut"},"type":"array","title":"Former"},"register_source":{"anyOf":[{"$ref":"#/components/schemas/SourceStampOut"},{"type":"null"}]},"withheld":{"items":{"type":"string"},"type":"array","title":"Withheld","description":"Relation types left out because the reader is not signed in: the register of interests (REGISTER_TIE) and the access badges (ACCESS_BADGE, BADGE_FOR). Counts resting on them are 0 then."}},"additionalProperties":false,"type":"object","required":["person","offices","committees","intergroups","badges","ties","paid","unpaid","former","register_source"],"title":"PersonOut"},"schwur_api__dto__SourceOut":{"properties":{"ref":{"type":"string","title":"Ref","description":"How the text's markers name it: Q1"},"kind":{"type":"string","title":"Kind","description":"PRIMARY (the issuer's own publication) or SECONDARY (a media report: no primary source was found)"},"url":{"type":"string","title":"Url","description":"The original, where the publisher keeps it"},"title":{"type":"string","title":"Title"},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher"},"published_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Published On"},"announced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Announced By","description":"The announcement that links it, if any"}},"additionalProperties":false,"type":"object","required":["ref","kind","url","title","publisher","published_on","announced_by"],"title":"SourceOut"},"schwur_api__government_dto__ChronicleOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task"},"unassigned":{"type":"boolean","title":"Unassigned"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"since":{"type":"string","format":"date","title":"Since"},"checked":{"anyOf":[{"$ref":"#/components/schemas/CheckedOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["items","total","page","page_size","task","unassigned","counts","since","checked"],"title":"ChronicleOut"},"schwur_api__government_dto__MemberOut":{"properties":{"person":{"$ref":"#/components/schemas/EndOut"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"department":{"type":"string","title":"Department"},"department_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Name"},"president":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"President"},"party":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Party"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"},"department_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Since"}},"additionalProperties":false,"type":"object","required":["person","name","slug","role","department","department_name","president","party","canton","since","department_since"],"title":"MemberOut"},"schwur_api__government_dto__TaskOut":{"properties":{"task":{"type":"string","title":"Task"},"article":{"type":"string","title":"Article"},"recent":{"type":"integer","title":"Recent"},"total":{"type":"integer","title":"Total"},"months":{"items":{"prefixItems":[{"type":"string"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Months"},"latest":{"anyOf":[{"$ref":"#/components/schemas/MessageOut"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["task","article","recent","total","months","latest"],"title":"TaskOut"},"schwur_api__municipal_dto__SourceOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"key":{"type":"string","title":"Key"},"as_of":{"type":"string","format":"date","title":"As Of"},"contract":{"type":"string","title":"Contract"},"source_version_id":{"type":"string","format":"uuid","title":"Source Version Id"},"index_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Index Version Id"},"dependency_version_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Dependency Version Ids"},"source_url":{"type":"string","title":"Source Url"},"sha256":{"type":"string","title":"Sha256"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","kind","key","as_of","contract","source_version_id","index_version_id","dependency_version_ids","source_url","sha256","created_at"],"title":"SourceOut"},"schwur_api__routes__accounts_admin__AccountOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status","description":"PENDING, APPROVED, UNCONFIRMED or BLOCKED"},"sign_in":{"items":{"type":"string","enum":["GOOGLE","PASSWORD"]},"type":"array","title":"Sign In","description":"How the account signs in"},"locale":{"type":"string","title":"Locale"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"approved_by_owner":{"type":"boolean","title":"Approved By Owner","description":"Let in by the owner, not automatically (the switch, or before 0026)"},"posts":{"type":"integer","title":"Posts","description":"Posts in the discussion, not deleted"}},"additionalProperties":false,"type":"object","required":["id","email","name","display_name","role","status","sign_in","locale","created_at","last_login_at","approved_at","approved_by_owner","posts"],"title":"AccountOut"},"schwur_api__routes__admin__DecisionIn":{"properties":{"accept":{"type":"boolean","title":"Accept"},"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason","description":"Required when the source is rejected"}},"additionalProperties":false,"type":"object","required":["accept"],"title":"DecisionIn"},"schwur_api__routes__auth__SessionOut":{"properties":{"user":{"anyOf":[{"$ref":"#/components/schemas/UserOut"},{"type":"null"}]},"csrf_token":{"type":"string","title":"Csrf Token"},"google_enabled":{"type":"boolean","title":"Google Enabled"}},"additionalProperties":false,"type":"object","required":["user","csrf_token","google_enabled"],"title":"SessionOut"},"schwur_api__routes__federal_admin__LinkDecisionIn":{"properties":{"confirm":{"type":"boolean","title":"Confirm"},"relation":{"anyOf":[{"type":"string","enum":["SAME","PART"]},{"type":"null"}],"title":"Relation","description":"Required to confirm: the entry names the organisation or a part"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["confirm","reason"],"title":"LinkDecisionIn"},"schwur_api__routes__opinions__LinkDecisionIn":{"properties":{"action":{"type":"string","const":"remove","title":"Action"}},"additionalProperties":false,"type":"object","required":["action"],"title":"LinkDecisionIn"},"schwur_api__routes__parliament__ObjectionIn":{"properties":{"person_number":{"type":"integer","minimum":1.0,"title":"Person Number"},"platform":{"anyOf":[{"type":"string","enum":["X","BLUESKY","MASTODON","YOUTUBE"]},{"type":"null"}],"title":"Platform","description":"null: every network"},"objects":{"type":"boolean","title":"Objects","description":"true records the objection, false revokes it"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason","examples":["E-Mail vom 15.09.2026"]}},"additionalProperties":false,"type":"object","required":["person_number","objects","reason"],"title":"ObjectionIn"},"schwur_api__search_dto__HitOut":{"properties":{"kind":{"$ref":"#/components/schemas/Kind"},"kind_label":{"type":"string","title":"Kind Label","description":"The kind, named in the language asked for"},"group":{"$ref":"#/components/schemas/Group","description":"The tab of the search page the kind belongs to"},"ref":{"type":"string","title":"Ref","description":"The page's key within its kind: a slug, a number, an id"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet","description":"Plain text around the first word of the query the page holds; none for pages whose text may be shown on schwur.ch only"},"language":{"type":"string","title":"Language","description":"The language title and snippet are in"},"origin":{"type":"string","title":"Origin","description":"original, official (the authority's own wording in that language), translated, or german: the page has no text in the language asked for"},"path":{"type":"string","title":"Path","description":"The page on schwur.ch, in the language asked for"},"url":{"type":"string","title":"Url"},"api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Url","description":"The page's data as JSON"},"dated":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dated"},"source":{"anyOf":[{"$ref":"#/components/schemas/HitSourceOut"},{"type":"null"}],"description":"Who published the data behind the page"}},"additionalProperties":false,"type":"object","required":["kind","kind_label","group","ref","title","subtitle","snippet","language","origin","path","url","api_url","dated","source"],"title":"HitOut"}}}}