{"openapi":"3.1.0","info":{"title":"Phoenix API","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health_check"],"summary":"Get","description":"Always respond 200 OK for health checks\n\nReturns\n-------\nResponse\n    200 OK","operationId":"get_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metrics":{"get":{"tags":["metrics"],"summary":"Metrics Endpoint","description":"Exposes Prometheus metrics for monitoring.\n\nReturns:\n    Response: A response containing the latest Prometheus metrics in the appropriate content type.","operationId":"metrics_endpoint_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/token":{"post":{"tags":["login"],"summary":"Request Authorization Token","operationId":"request_authorization_token_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_request_authorization_token_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"tags":["login"],"summary":"Logout","description":"Log out the current user by ending its session family and clearing cookies.\n\nThis endpoint is tolerant of expired/missing tokens so that users can\nalways log out from the browser. The access cookie is parsed even when\nexpired (the refresh cookie covers a missing access cookie), and the\nnamed family -- every one of its records, not just the presented one --\nis ended in the user's live-session hash. The cleanup is best effort:\nthe cookies are cleared regardless.","operationId":"logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Logout Logout Post"}}}}}}},"/register":{"post":{"tags":["login"],"summary":"Register","operationId":"register_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/register/verification-code":{"get":{"tags":["login"],"summary":"Get Local Verification Code","operationId":"get_local_verification_code_register_verification_code_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":320,"title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationCodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/register/verify":{"post":{"tags":["login"],"summary":"Register Verify","operationId":"register_verify_register_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterVerify"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reset_password":{"post":{"tags":["login"],"summary":"Reset Password","operationId":"reset_password_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPassword"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/saml/metadata/{domain}":{"get":{"tags":["login"],"summary":"Saml Metadata","operationId":"saml_metadata_saml_metadata__domain__get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","examples":["domain.com"],"title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"string"}}],"title":"Response Saml Metadata Saml Metadata  Domain  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/saml/start/{domain}":{"get":{"tags":["login"],"summary":"Saml Start","description":"303 straight to the customer IdP for ``domain`` (MTM-2530).\n\nKeycloak's browser flow sends SSO domains that still use this SP here\nwhile customers move to Keycloak's SP.\nThe Keycloak login's return path is carried over when it is\nallow-listed (MTM-2654). Removed with the SP (MTM-2531).","operationId":"saml_start_saml_start__domain__get","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","examples":["domain.com"],"title":"Domain"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/saml/acs/{domain}":{"post":{"tags":["login"],"summary":"Acs","operationId":"acs_saml_acs__domain__post","parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","examples":["domain.com"],"title":"Domain"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/config":{"get":{"tags":["keycloak_login"],"summary":"Login Config","description":"Public: tells the login page whether to send the browser to ``/auth/login``.\n\nWith Keycloak login on, ``account_url`` is the account console the\ncredential_management_moved 409 also points at.","operationId":"login_config_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginConfigResponse"}}}}}}},"/auth/login":{"get":{"tags":["keycloak_login"],"summary":"Keycloak Login","description":"Start a Keycloak login. ``reauth`` forces Keycloak to ask for credentials again.\n\nThe step-up rule (``require_recent_login``) needs a fresh login, so a\nre-authentication must not be satisfied silently by the Keycloak SSO cookie.\n\n``idp`` (an identity-provider alias) and ``login_hint`` (an email address)\nlet an IdP dashboard tile land on the customer's IdP without the user\ntyping their email (MTM-2775). An invalid value is dropped, never forwarded.","operationId":"keycloak_login_auth_login_get","parameters":[{"name":"return_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Url"}},{"name":"reauth","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reauth"}},{"name":"idp","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idp"}},{"name":"login_hint","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Hint"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback":{"get":{"tags":["keycloak_login"],"summary":"Keycloak Callback","operationId":"keycloak_callback_auth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control_sets/{control_set_key}/export/document":{"post":{"tags":["report_export"],"summary":"Export Document","operationId":"export_document_clients__client_uid__control_sets__control_set_key__export_document_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$","examples":["0123456789ABCDEFGHJKMNPQRS"],"title":"Client Uid"}},{"name":"control_set_key","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$","examples":["0123456789ABCDEFGHJKMNPQRS"],"title":"Control Set Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me":{"get":{"tags":["users"],"summary":"Read Me Endpoint","operationId":"read_me_endpoint_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}}},"put":{"tags":["users"],"summary":"Update Me Endpoint","operationId":"update_me_endpoint_users_me_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"409":{"description":"The email belongs to another user, or the username of a Keycloak user would change."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete Me Endpoint","description":"Self-delete: run the cascade then clear this session's auth cookies.\n\nCookies are cleared ONLY after the cascade succeeds. A cascade\nfailure (503) leaves the session intact so the client can retry.","operationId":"delete_me_endpoint_users_me_delete","responses":{"204":{"description":"Successful Response"}}}},"/users/me/clients/{key}":{"get":{"tags":["users"],"summary":"Read Me Client Context Endpoint","description":"Return the client hierarchy tree for a specific client the user has access to.","operationId":"read_me_client_context_endpoint_users_me_clients__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientTreeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/defaults":{"get":{"tags":["users"],"summary":"Read Me Defaults Endpoint","description":"Return the current default context for the user.","operationId":"read_me_defaults_endpoint_users_me_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDefaultsResponse"}}}}}}},"/users/me/dashboard":{"post":{"tags":["users"],"summary":"Update Me Dashboard Endpoint","operationId":"update_me_dashboard_endpoint_users_me_dashboard_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/dashboard/{role}":{"put":{"tags":["users"],"summary":"Update Me Dashboard Screen Endpoint","operationId":"update_me_dashboard_screen_endpoint_users_me_dashboard__role__put","parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardScreenUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardScreenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{uid}":{"get":{"tags":["users"],"summary":"Read Endpoint","operationId":"read_endpoint_users__uid__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}}},"put":{"tags":["users"],"summary":"Update Endpoint","operationId":"update_endpoint_users__uid__put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"409":{"description":"The email belongs to another user, or the username of a Keycloak user would change."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete Endpoint","description":"Graph-first user delete (MTM-2048): mtm-graph cascade THEN Phoenix delete.\n\nOrdering matters: the graph cascade must succeed before any\nPhoenix mutation so a Phoenix record cannot outlive its\nauthorization. See §D3 of the MTM-2048 plan.\n\nAudit-log outcomes are distinct: ``delete`` on success,\n``delete_cascade_failed`` when the graph step fails,\n``delete_failed`` when the Phoenix step fails after a successful\ngraph cascade. A single ``delete`` action would hide cascade\nfailures under a name that implies success (this is what the\npre-PR-4 endpoint did).","operationId":"delete_endpoint_users__uid__delete","responses":{"204":{"description":"Successful Response"}}}},"/users/{uid}/change_password":{"post":{"tags":["users"],"summary":"Change Password Endpoint","operationId":"change_password_endpoint_users__uid__change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePassword"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{uid}/reset_mfa":{"post":{"tags":["users"],"summary":"Reset Mfa Endpoint","operationId":"reset_mfa_endpoint_users__uid__reset_mfa_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}}}},"/users":{"get":{"tags":["users"],"summary":"List Endpoint","operationId":"list_endpoint_users_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_UserResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{uid}/allowed_clients":{"get":{"tags":["users"],"summary":"List Allowed Clients Endpoint","operationId":"list_allowed_clients_endpoint_users__uid__allowed_clients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClientTreeResponse"},"type":"array","title":"Response List Allowed Clients Endpoint Users  Uid  Allowed Clients Get"}}}}}}},"/users/me/mcp_connections":{"get":{"tags":["users"],"summary":"List Mcp Connections Me Endpoint","description":"List the caller's own MCP app connections (no refresh hashes).","operationId":"list_mcp_connections_me_endpoint_users_me_mcp_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MCPConnectionResponse"},"type":"array","title":"Response List Mcp Connections Me Endpoint Users Me Mcp Connections Get"}}}}}}},"/users/me/mcp_connections/{connection_uid}":{"delete":{"tags":["users"],"summary":"Delete Mcp Connection Me Endpoint","description":"Revoke one of the caller's own MCP app connections.","operationId":"delete_mcp_connection_me_endpoint_users_me_mcp_connections__connection_uid__delete","parameters":[{"name":"connection_uid","in":"path","required":true,"schema":{"type":"string","title":"Connection Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{uid}/mcp_connections":{"get":{"tags":["users"],"summary":"List Mcp Connections Endpoint","description":"List a user's MCP app connections (admin user page).","operationId":"list_mcp_connections_endpoint_users__uid__mcp_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MCPConnectionResponse"},"type":"array","title":"Response List Mcp Connections Endpoint Users  Uid  Mcp Connections Get"}}}}}}},"/users/{uid}/mcp_connections/{connection_uid}":{"delete":{"tags":["users"],"summary":"Delete Mcp Connection Endpoint","description":"Admin revoke of one of a user's MCP app connections.","operationId":"delete_mcp_connection_endpoint_users__uid__mcp_connections__connection_uid__delete","parameters":[{"name":"connection_uid","in":"path","required":true,"schema":{"type":"string","title":"Connection Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/users":{"get":{"tags":["users"],"summary":"List Client Users","description":"List all users who have role bindings at a specific client scope,\nincluding users who inherit access from ancestor scopes.\n\nQueries Neo4j via mtm-graph for authoritative role bindings,\nthen enriches with user profile data from Redis.\n\nAuthorization: Requires client:read permission on the client.","operationId":"list_client_users_clients__client_uid__users_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ClientUserSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{uid}/realm_roles":{"get":{"tags":["realm_roles"],"summary":"Read Realm Roles Endpoint","operationId":"read_realm_roles_endpoint_users__uid__realm_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealmRolesResponse"}}}}}}},"/users/{uid}/realm_roles/{role}":{"put":{"tags":["realm_roles"],"summary":"Grant Realm Role Endpoint","operationId":"grant_realm_role_endpoint_users__uid__realm_roles__role__put","parameters":[{"name":"role","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManageableRealmRole"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["realm_roles"],"summary":"Remove Realm Role Endpoint","operationId":"remove_realm_role_endpoint_users__uid__realm_roles__role__delete","parameters":[{"name":"role","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManageableRealmRole"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/stream":{"get":{"tags":["notifications"],"summary":"Stream Notifications Endpoint","operationId":"stream_notifications_endpoint_notifications_stream_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications Endpoint","operationId":"list_notifications_endpoint_notifications_get","parameters":[{"name":"include_dismissed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Dismissed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_UserNotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/{id}":{"patch":{"tags":["notifications"],"summary":"Update Notification Endpoint","operationId":"update_notification_endpoint_notifications__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/dismiss":{"post":{"tags":["notifications"],"summary":"Bulk Dismiss Notifications","description":"Bulk dismiss notifications. filter=all dismisses everything, filter=read dismisses only read.","operationId":"bulk_dismiss_notifications_notifications_dismiss_post","parameters":[{"name":"filter","in":"query","required":false,"schema":{"enum":["all","read"],"type":"string","default":"all","title":"Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDismissResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/{notification_id}/dismiss":{"post":{"tags":["notifications"],"summary":"Dismiss Notification","description":"Soft-hide a notification (recoverable via include_dismissed=true).","operationId":"dismiss_notification_notifications__notification_id__dismiss_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/mark-all-read":{"post":{"tags":["notifications"],"summary":"Mark All Read","description":"Mark all unread notifications as read.","operationId":"mark_all_read_notifications_mark_all_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkAllReadResponse"}}}}}}},"/notification-preferences":{"get":{"tags":["notifications"],"summary":"Get Notification Preferences","description":"Get user's notification preferences. Returns defaults if none stored.","operationId":"get_notification_preferences_notification_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferencesResponse"}}}}}},"patch":{"tags":["notifications"],"summary":"Update Notification Preferences","description":"Update notification preferences. Merges partial updates into existing.","operationId":"update_notification_preferences_notification_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationPreferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/release_notes/list":{"get":{"tags":["release_notes"],"summary":"Release Notes List","operationId":"release_notes_list_release_notes_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Release Notes List Release Notes List Get"}}}}}}},"/release_notes/download":{"get":{"tags":["release_notes"],"summary":"Release Notes Download","operationId":"release_notes_download_release_notes_download_get","parameters":[{"name":"search","in":"query","required":true,"schema":{"type":"string","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/releases/active":{"get":{"tags":["releases"],"summary":"Get Active Releases Endpoint","description":"Return active releases for the current user, excluding permanently dismissed.","operationId":"get_active_releases_endpoint_releases_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveReleasesResponse"}}}}}}},"/releases":{"get":{"tags":["releases"],"summary":"List Releases Endpoint","operationId":"list_releases_endpoint_releases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_Release_"}}}}}},"post":{"tags":["releases"],"summary":"Create Release Endpoint","operationId":"create_release_endpoint_releases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/releases/{uid}":{"get":{"tags":["releases"],"summary":"Get Release Endpoint","operationId":"get_release_endpoint_releases__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["releases"],"summary":"Update Release Endpoint","operationId":"update_release_endpoint_releases__uid__put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["releases"],"summary":"Delete Release Endpoint","operationId":"delete_release_endpoint_releases__uid__delete","responses":{"204":{"description":"Successful Response"}}}},"/releases/{id}/dismiss":{"post":{"tags":["releases"],"summary":"Dismiss Release Endpoint","description":"Dismiss a release for the current user.","operationId":"dismiss_release_endpoint_releases__id__dismiss_post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReleaseDismiss"},{"type":"null"}],"title":"Body"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sso/{key}":{"get":{"tags":["sso"],"summary":"Get Sso Endpoint","operationId":"get_sso_endpoint_sso__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["sso"],"summary":"Update Sso Endpoint","operationId":"update_sso_endpoint_sso__key__put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sso"],"summary":"Delete Sso Endpoint","operationId":"delete_sso_endpoint_sso__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sso/client/{client_uid}":{"get":{"tags":["sso"],"summary":"Get Sso By Client Endpoint","operationId":"get_sso_by_client_endpoint_sso_client__client_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sso":{"post":{"tags":["sso"],"summary":"Create Sso Endpoint","operationId":"create_sso_endpoint_sso_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSO"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/mcp/authorize":{"get":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Authorize Endpoint","description":"Validate and park the request, then send the browser to the web consent page.\n\nNever reads the session and never issues a code: the code is issued\nonly by an ``allow`` at ``POST /oauth/mcp/consent/{handle}``.","operationId":"authorize_endpoint_oauth_mcp_authorize_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri"}},{"name":"response_type","in":"query","required":false,"schema":{"type":"string","default":"code","title":"Response Type"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"offline_access","title":"Scope"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code_challenge","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Challenge Method"}},{"name":"resource","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource"}},{"name":"handle","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/mcp/consent/{handle}":{"get":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Consent Details Endpoint","description":"What the user is about to allow, for the web consent screen.","operationId":"consent_details_endpoint_oauth_mcp_consent__handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Consent Decision Endpoint","description":"``allow`` issues the one-shot code; ``deny`` ends the flow.\n\nEither way the web page sends the browser to the returned\n``redirect_url`` (the app's allowlisted redirect URI).","operationId":"consent_decision_endpoint_oauth_mcp_consent__handle__post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/mcp/token":{"post":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Token Endpoint","operationId":"token_endpoint_oauth_mcp_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp_policy/client/{client_uid}":{"get":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Get Mcp Policy Endpoint","operationId":"get_mcp_policy_endpoint_mcp_policy_client__client_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPPolicy"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Update Mcp Policy Endpoint","operationId":"update_mcp_policy_endpoint_mcp_policy_client__client_uid__put","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPPolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPPolicy"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal_employees":{"get":{"tags":["oauth_mcp","oauth_mcp"],"summary":"List Internal Employees Endpoint","operationId":"list_internal_employees_endpoint_internal_employees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Internal Employees Endpoint Internal Employees Get"}}}}}}},"/internal_employees/{uid}":{"put":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Add Internal Employee Endpoint","operationId":"add_internal_employee_endpoint_internal_employees__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["oauth_mcp","oauth_mcp"],"summary":"Remove Internal Employee Endpoint","operationId":"remove_internal_employee_endpoint_internal_employees__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support/tickets":{"post":{"tags":["support"],"summary":"Create Ticket","description":"Create a new support ticket.","operationId":"create_ticket_support_tickets_post","parameters":[{"name":"x-highlight-request","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Highlight-Request"}},{"name":"traceparent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traceparent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTicketRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["support"],"summary":"Get Tickets","description":"Get all support tickets for the current user.","operationId":"get_tickets_support_tickets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TicketResponse"},"title":"Response Get Tickets Support Tickets Get"}}}}}}},"/support/tickets/{key}":{"get":{"tags":["support"],"summary":"Get Ticket","description":"Get a support ticket by key.","operationId":"get_ticket_support_tickets__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["support"],"summary":"Update Ticket","description":"Update ticket status/priority.","operationId":"update_ticket_support_tickets__key__patch","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support/tickets/{key}/comments":{"post":{"tags":["support"],"summary":"Add Ticket Comment","description":"Add a comment to a ticket.","operationId":"add_ticket_comment_support_tickets__key__comments_post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCommentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support/tickets/{key}/attachments":{"post":{"tags":["support"],"summary":"Upload Attachment","description":"Upload an attachment to a ticket\n\nIf external_id exists, proceed with normal sync.\nIf no external_id, store as pending attachment.","operationId":"upload_attachment_support_tickets__key__attachments_post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_attachment_support_tickets__key__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/jwks.json":{"get":{"tags":["well-known","well-known"],"summary":"Jwks","description":"Serve the RFC 7517 §5 JWK Set document.\n\nReads the current signing snapshot (and, during a rotation overlap window,\nthe previous public snapshot) from the file-watched\n:class:`~app.lib.auth.signing_key_manager.SigningKeySnapshotManager` via\n:func:`~app.lib.auth.jwt.active_public_snapshots_for_jwks`.\n\nEvery JWK is built with :meth:`mtm_lib.auth.jwks.JWK.from_rsa_public_key`\nwhich serializes only the RFC 7517 §4.1 RSA public parameters\n(``kty``, ``n``, ``e``, ``kid``, ``use``, ``alg``). The dataclass simply\nhas no fields for the private parameters (``d``, ``p``, ``q``, ...), so\nthere is no code path here that could accidentally serialize them.\n\nCache-Control is set on the response object directly; the app-wide\n``no-store`` middleware exempts ``/.well-known/*`` so this value reaches\nthe wire unmodified.\n\nRaises:\n    RuntimeError: if the snapshot manager has not been initialized. FastAPI's\n        default 500 handler turns this into a generic ``{\"detail\": \"Internal\n        Server Error\"}`` body — no cert/key file paths leak into the response.","operationId":"jwks__well_known_jwks_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Jwks  Well Known Jwks Json Get"}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"tags":["well-known","well-known"],"summary":"Oauth Protected Resource","description":"RFC 9728 protected-resource metadata for the MCP surface.\n\nPoints MCP clients at the authorization server serving ``/mcp``. The\n401 middleware in ``app.main`` names this document in the\n``WWW-Authenticate`` header so onboarding can be discovered\nautomatically.","operationId":"oauth_protected_resource__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Oauth Protected Resource  Well Known Oauth Protected Resource Get"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["well-known","well-known"],"summary":"Oauth Authorization Server","description":"RFC 8414 authorization-server metadata for MCP onboarding.\n\nOnly the allowlisted vendor CIMD URLs are client ids; no dynamic\nregistration, ever. The ``iss``\nresponse parameter (RFC 9207) collapses client-side redirect\nallowlists to a single stable URI.","operationId":"oauth_authorization_server__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Oauth Authorization Server  Well Known Oauth Authorization Server Get"}}}}}}}},"components":{"schemas":{"ActiveReleasesResponse":{"properties":{"releases":{"items":{"$ref":"#/components/schemas/Release"},"type":"array","title":"Releases"},"userReleaseStates":{"items":{"$ref":"#/components/schemas/ReleaseState"},"type":"array","title":"Userreleasestates"}},"type":"object","title":"ActiveReleasesResponse","description":"Active releases for the current user, with per-user dismiss states."},"AddCommentRequest":{"properties":{"comment_text":{"type":"string","title":"Comment Text"}},"type":"object","required":["comment_text"],"title":"AddCommentRequest","description":"Request to add a comment to a ticket."},"AttachmentResponse":{"properties":{"key":{"type":"string","title":"Key"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"uploaded_by":{"type":"string","title":"Uploaded By"},"uploaded_at":{"type":"string","format":"date-time","title":"Uploaded At"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"is_public":{"type":"boolean","title":"Is Public","default":true}},"type":"object","required":["key","filename","mime_type","size_bytes","uploaded_by","uploaded_at"],"title":"AttachmentResponse","description":"Attachment details for API response."},"Body_request_authorization_token_token_post":{"properties":{"grant_type":{"type":"string","pattern":"refresh_token","title":"Grant Type"},"scope":{"type":"string","title":"Scope","default":""},"consortium_access_expire_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consortium Access Expire Time"},"consortium_refresh_expire_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consortium Refresh Expire Time"}},"type":"object","required":["grant_type"],"title":"Body_request_authorization_token_token_post"},"Body_upload_attachment_support_tickets__key__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_attachment_support_tickets__key__attachments_post"},"BulkDismissResponse":{"properties":{"dismissed_count":{"type":"integer","title":"Number of notifications dismissed"}},"type":"object","required":["dismissed_count"],"title":"BulkDismissResponse","description":"Response from bulk dismiss operation."},"ChangePassword":{"properties":{"old_password":{"type":"string","title":"Old Password","default":""},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["new_password"],"title":"ChangePassword"},"ClientTreeResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"c_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"C Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employees"},"security_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Security Employees"},"endpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endpoints"},"servers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Servers"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"naics_sector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Sector Key"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue"},"demo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Demo"},"risk_tolerance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Risk Tolerance"},"cyber_fte_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cyber Fte Cost"},"total_it_spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total It Spend"},"naics":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Naics"},"default_control_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Control Set"},"relationship_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Code"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated"},"amv_answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Amv Answers"},"children":{"items":{"$ref":"#/components/schemas/ClientTreeResponse"},"type":"array","title":"Children"}},"type":"object","required":["uid","name"],"title":"ClientTreeResponse","description":"Client hierarchy node returned by the allowed-clients endpoint.\n\nMirrors graph.ClientTreeNode — the full shape the graph service returns."},"ClientUserRole":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uid","name"],"title":"ClientUserRole","description":"A role bound to a user at the client scope."},"ClientUserSummary":{"properties":{"uid":{"type":"string","title":"Uid"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"roles":{"items":{"$ref":"#/components/schemas/ClientUserRole"},"type":"array","title":"Roles"}},"type":"object","required":["uid","first_name","last_name","email","roles"],"title":"ClientUserSummary","description":"User summary enriched with roles for a specific client."},"CommentResponse":{"properties":{"comment_text":{"type":"string","title":"Comment Text"},"author":{"type":"string","title":"Author"},"created":{"type":"string","format":"date-time","title":"Created"},"is_public":{"type":"boolean","title":"Is Public","default":true}},"type":"object","required":["comment_text","author","created"],"title":"CommentResponse","description":"Comment details for API response."},"CreateTicketRequest":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"support_type":{"$ref":"#/components/schemas/SupportType"},"priority":{"anyOf":[{"$ref":"#/components/schemas/TicketPriority"},{"type":"null"}]},"cc_emails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Cc Emails"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number","description":"Contact phone number"},"browser_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Browser Version","description":"Browser version information from frontend"}},"type":"object","required":["client_uid","title","description","support_type"],"title":"CreateTicketRequest","description":"Request to create a support ticket."},"DashboardResponse":{"properties":{"dashboard":{"additionalProperties":{"$ref":"#/components/schemas/DashboardScreenResponse"},"type":"object","title":"Dashboard screens by role"}},"type":"object","title":"DashboardResponse","description":"Dashboard configuration keyed by role."},"DashboardScreen":{"properties":{"tabs":{"additionalProperties":{"items":{"$ref":"#/components/schemas/DashboardWidget"},"type":"array"},"type":"object","title":"Collection of widgets for each tab"}},"type":"object","title":"DashboardScreen"},"DashboardScreenResponse":{"properties":{"tabs":{"additionalProperties":{"items":{"$ref":"#/components/schemas/DashboardWidgetResponse"},"type":"array"},"type":"object","title":"Tabs for the dashboard screen"}},"type":"object","required":["tabs"],"title":"DashboardScreenResponse"},"DashboardScreenUpdate":{"properties":{"tabs":{"additionalProperties":{"items":{"$ref":"#/components/schemas/DashboardWidgetUpdate"},"type":"array"},"type":"object","title":"Collection of widgets for each tab"}},"type":"object","title":"DashboardScreenUpdate"},"DashboardUpdate":{"properties":{"dashboard":{"additionalProperties":{"$ref":"#/components/schemas/DashboardScreenUpdate"},"type":"object","title":"Collection of tabs for the dashboard"}},"type":"object","title":"DashboardUpdate"},"DashboardWidget":{"properties":{"uid":{"type":"string","title":"Uid"},"title":{"type":"string","title":"Widget Title (Name)"},"size":{"type":"string","title":"Size of the widget"},"row":{"type":"integer","title":"Row of the widget"},"column":{"type":"integer","title":"Column of the widget"},"data":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Data for widget","default":""},"valueType":{"type":"string","title":"Value Type","default":""},"graph":{"type":"string","title":"Graph Type","default":""},"isTimeBased":{"type":"boolean","title":"Is the widget time based","default":false},"isControlMetricsView":{"type":"boolean","title":"Is Control Metrics View","default":false},"isStockMetricsView":{"type":"boolean","title":"Is Stock Metrics View","default":false},"isBusinessImpactView":{"type":"boolean","title":"Is Business Impact View","default":false},"isReputationImpactView":{"type":"boolean","title":"Is Reputation Impact View","default":false},"isRevenueView":{"type":"boolean","title":"Is Revenue View","default":false},"isFianceView":{"type":"boolean","title":"Is Fiance View","default":false}},"type":"object","required":["title","size","row","column"],"title":"DashboardWidget"},"DashboardWidgetResponse":{"properties":{"uid":{"type":"string","title":"Unique identifier"},"title":{"type":"string","title":"Title of the widget"},"size":{"type":"string","title":"Size of the widget"},"row":{"type":"integer","title":"Row of the widget"},"column":{"type":"integer","title":"Column of the widget"},"data":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Data for the widget","default":""},"valueType":{"type":"string","title":"Value Type","default":""},"graph":{"type":"string","title":"Graph Type","default":""},"isTimeBased":{"type":"boolean","title":"Is the widget time based","default":false},"isControlMetricsView":{"type":"boolean","title":"Is Control Metrics View","default":false},"isStockMetricsView":{"type":"boolean","title":"Is Stock Metrics View","default":false},"isBusinessImpactView":{"type":"boolean","title":"Is Business Impact View","default":false},"isReputationImpactView":{"type":"boolean","title":"Is Reputation Impact View","default":false},"isRevenueView":{"type":"boolean","title":"Is Revenue View","default":false},"isFianceView":{"type":"boolean","title":"Is Fiance View","default":false}},"type":"object","required":["uid","title","size","row","column"],"title":"DashboardWidgetResponse"},"DashboardWidgetUpdate":{"properties":{"key":{"type":"string","title":"Key of the widget"},"title":{"type":"string","title":"Widget Title (Name)"},"size":{"type":"string","title":"Size of the widget"},"row":{"type":"integer","title":"Row of the widget"},"column":{"type":"integer","title":"Column of the widget"},"data":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Data for the widget","default":""},"valueType":{"type":"string","title":"Value Type","default":""},"graph":{"type":"string","title":"Graph Type","default":""},"isTimeBased":{"type":"boolean","title":"Is the widget time based","default":false},"isControlMetricsView":{"type":"boolean","title":"Is Control Metrics View","default":false},"isStockMetricsView":{"type":"boolean","title":"Is Stock Metrics View","default":false},"isBusinessImpactView":{"type":"boolean","title":"Is Business Impact View","default":false},"isReputationImpactView":{"type":"boolean","title":"Is Reputation Impact View","default":false},"isRevenueView":{"type":"boolean","title":"Is Revenue View","default":false},"isFianceView":{"type":"boolean","title":"Is Fiance View","default":false}},"type":"object","required":["key","title","size","row","column"],"title":"DashboardWidgetUpdate"},"DocumentExportRequest":{"properties":{"format":{"$ref":"#/components/schemas/DocumentFormat"},"source_path":{"type":"string","maxLength":300,"title":"Source Path","default":""},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"text":{"anyOf":[{"$ref":"#/components/schemas/DocumentText"},{"type":"null"}]},"sections":{"items":{"$ref":"#/components/schemas/DocumentSection"},"type":"array","maxItems":40,"minItems":1,"title":"Sections"},"settings":{"$ref":"#/components/schemas/DocumentSettings"}},"type":"object","required":["format","title","sections"],"title":"DocumentExportRequest"},"DocumentFormat":{"type":"string","enum":["pdf","xlsx","pptx"],"title":"DocumentFormat"},"DocumentLogo":{"type":"string","enum":["none","mtm","company"],"title":"DocumentLogo"},"DocumentOrientation":{"type":"string","enum":["portrait","landscape"],"title":"DocumentOrientation"},"DocumentPaper":{"type":"string","enum":["letter","legal","tabloid","a4"],"title":"DocumentPaper"},"DocumentSection":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"summary":{"items":{"items":{"type":"string","maxLength":2000},"type":"array"},"type":"array","maxItems":50,"title":"Summary"},"table":{"anyOf":[{"$ref":"#/components/schemas/DocumentTable"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["title"],"title":"DocumentSection"},"DocumentSettings":{"properties":{"orientation":{"$ref":"#/components/schemas/DocumentOrientation","default":"portrait"},"paper":{"$ref":"#/components/schemas/DocumentPaper","default":"letter"},"margin_inches":{"type":"number","maximum":2.0,"minimum":0.25,"title":"Margin Inches","default":1.0},"template":{"$ref":"#/components/schemas/DocumentTemplate","default":"blank"},"logo":{"$ref":"#/components/schemas/DocumentLogo","default":"none"},"header_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Header Title"},"footer_notice":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Footer Notice"},"slide_size":{"$ref":"#/components/schemas/DocumentSlideSize","default":"16:9"}},"type":"object","title":"DocumentSettings"},"DocumentSlideSize":{"type":"string","enum":["16:9","4:3"],"title":"DocumentSlideSize"},"DocumentTable":{"properties":{"headers":{"items":{"type":"string","maxLength":2000},"type":"array","maxItems":30,"minItems":1,"title":"Headers"},"rows":{"items":{"items":{"type":"string","maxLength":2000},"type":"array"},"type":"array","maxItems":5000,"title":"Rows"}},"type":"object","required":["headers"],"title":"DocumentTable"},"DocumentTemplate":{"type":"string","enum":["blank","mtm"],"title":"DocumentTemplate"},"DocumentText":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title","default":""},"body":{"type":"string","maxLength":5000,"title":"Body","default":""}},"type":"object","title":"DocumentText"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ListMeta":{"properties":{"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"sort_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"},"sort_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort Dir"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions","description":"Allowed actions on the parent resource (e.g. create)"}},"type":"object","required":["total","page","page_size"],"title":"ListMeta","description":"Pagination and sort metadata for list responses."},"ListResponse_ClientUserSummary_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ClientUserSummary"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ClientUserSummary]"},"ListResponse_Release_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Release"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[Release]"},"ListResponse_UserNotificationResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserNotificationResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[UserNotificationResponse]"},"ListResponse_UserResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[UserResponse]"},"LoginConfigResponse":{"properties":{"keycloak_login":{"type":"boolean","title":"Interactive login goes through Keycloak via /auth/login"},"account_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keycloak account console URL; null when keycloak_login is false"}},"type":"object","required":["keycloak_login"],"title":"LoginConfigResponse","description":"Which login path this environment uses (MTM-2449)."},"MCPApps":{"properties":{"claude_hosted":{"type":"boolean","title":"Claude","default":false},"chatgpt":{"type":"boolean","title":"ChatGPT","default":false}},"type":"object","title":"MCPApps","description":"Per-app AI-sharing switches. Off unless a company admin turns one on."},"MCPCategories":{"properties":{"control":{"type":"boolean","title":"Controls","default":true},"control_set":{"type":"boolean","title":"Control Sets","default":true},"risk":{"type":"boolean","title":"Risks","default":true}},"type":"object","title":"MCPCategories","description":"Per-category AI-sharing flags. All three on by default (once an app is on)."},"MCPConnectionResponse":{"properties":{"uid":{"type":"string","title":"Connection UID"},"app":{"type":"string","title":"Catalog app slug"},"created":{"type":"string","format":"date-time","title":"Timestamp of connection creation"},"last_used":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp of last use"},"expires":{"type":"string","format":"date-time","title":"Timestamp the connection ends (rolling)"}},"type":"object","required":["uid","app","created","expires"],"title":"MCPConnectionResponse","description":"A live MCP connection without secret material (the refresh hash is never exposed)."},"MCPPolicy":{"properties":{"client_uid":{"type":"string","title":"Client (company) UID"},"apps":{"$ref":"#/components/schemas/MCPApps","title":"Apps"},"categories":{"$ref":"#/components/schemas/MCPCategories","title":"Categories"},"modified":{"type":"string","title":"Modified"},"modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified By"}},"type":"object","required":["client_uid"],"title":"MCPPolicy","description":"A company's AI-sharing policy for MCP connections.\n\nAn absent record means every app off and every category on; this\nrecord only exists once a company admin saves the policy. The\nshared-data / peer-benchmark restriction is a platform rule and is not\na field here."},"MCPPolicyUpdate":{"properties":{"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"apps":{"anyOf":[{"$ref":"#/components/schemas/MCPApps"},{"type":"null"}]},"categories":{"anyOf":[{"$ref":"#/components/schemas/MCPCategories"},{"type":"null"}]},"modified":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified"},"modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified By"}},"type":"object","title":"MCPPolicyUpdate"},"ManageableRealmRole":{"type":"string","enum":["sales","advisory","customer_success","presales","sales_manager","deal_desk","alliances","sales_ops","marketing","ceo","cro","cfo","leadership","curator","content-administrator","c3_admin","mtm_internal_employee"],"title":"ManageableRealmRole","description":"The realm roles declared in mtm-apps' ``mtm-keycloak`` ``realm.yaml`` that the gateway assigns.\n\nC3's staff roles (D37, PM-12; C3's administrator role is ``c3_admin``, never\n``admin``) and the internal-employees roster (D38)."},"MarkAllReadResponse":{"properties":{"updated_count":{"type":"integer","title":"Number of notifications marked as read"}},"type":"object","required":["updated_count"],"title":"MarkAllReadResponse","description":"Response from mark-all-read operation."},"NotificationChannel":{"type":"string","enum":["sse","email","sms","none"],"title":"NotificationChannel"},"NotificationPreferenceSettingResponse":{"properties":{"type":{"type":"string","title":"Type"},"channel":{"$ref":"#/components/schemas/NotificationChannel"}},"type":"object","required":["type","channel"],"title":"NotificationPreferenceSettingResponse"},"NotificationPreferenceUpdate":{"properties":{"type":{"type":"string","title":"Type"},"channel":{"$ref":"#/components/schemas/NotificationChannel"}},"type":"object","required":["type","channel"],"title":"NotificationPreferenceUpdate"},"NotificationPreferencesResponse":{"properties":{"version":{"type":"integer","title":"Version"},"userId":{"type":"string","title":"Userid"},"preferences":{"items":{"$ref":"#/components/schemas/NotificationPreferenceSettingResponse"},"type":"array","title":"Preferences"}},"type":"object","required":["version","userId","preferences"],"title":"NotificationPreferencesResponse"},"NotificationPriority":{"type":"string","enum":["NORMAL","HIGH"],"title":"NotificationPriority"},"RealmRolesResponse":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/ManageableRealmRole"},"type":"array","title":"Roles"}},"type":"object","required":["roles"],"title":"RealmRolesResponse"},"RegisterVerify":{"properties":{"email":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Email"},"code":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Code"}},"type":"object","required":["email","code"],"title":"RegisterVerify"},"Release":{"properties":{"uid":{"type":"string","title":"Uid"},"title":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"$ref":"#/components/schemas/ReleaseType"},"status":{"$ref":"#/components/schemas/ReleaseStatus"},"release_date":{"type":"string","format":"date","title":"Release Date"},"expire_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expire Date"},"dismissible":{"type":"boolean","title":"Dismissible"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["title","type","status","release_date","dismissible"],"title":"Release","description":"Release entity stored in Redis JSON.\n\nNo Unique/Indexed fields — all lookups are by uid (direct key).\nConstraints (title pattern, expire >= release) live here — the model\nIS the source of truth for both storage and validation."},"ReleaseCreate":{"properties":{"title":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"$ref":"#/components/schemas/ReleaseType"},"status":{"$ref":"#/components/schemas/ReleaseStatus"},"release_date":{"type":"string","format":"date","title":"Release Date"},"expire_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expire Date"},"dismissible":{"type":"boolean","title":"Dismissible"}},"type":"object","required":["title","type","status","release_date","dismissible"],"title":"ReleaseCreate","description":"Auto-generated fields + cross-field validation."},"ReleaseDismiss":{"properties":{"dismissed_permanently":{"type":"boolean","title":"Dismiss permanently","default":true}},"type":"object","title":"ReleaseDismiss"},"ReleaseState":{"properties":{"user_uid":{"type":"string","title":"User Uid"},"release_uid":{"type":"string","title":"Release Uid"},"dismissed_permanently":{"type":"boolean","title":"Dismissed Permanently"},"dismissed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dismissed At"}},"type":"object","required":["user_uid","release_uid","dismissed_permanently"],"title":"ReleaseState","description":"Per-user release dismiss state stored in Redis JSON.\n\nNo Unique/Indexed fields — all lookups by composite key."},"ReleaseStatus":{"type":"string","enum":["draft","active","archived"],"title":"ReleaseStatus"},"ReleaseType":{"type":"string","enum":["critical","feature","improvement","bugfix","notes"],"title":"ReleaseType"},"ReleaseUpdate":{"properties":{"title":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"anyOf":[{"$ref":"#/components/schemas/ReleaseType"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/ReleaseStatus"},{"type":"null"}]},"release_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Release Date"},"expire_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expire Date"},"dismissible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dismissible"}},"type":"object","title":"ReleaseUpdate","description":"Auto-generated fields (all optional) + cross-field validation."},"ResetPassword":{"properties":{"email":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Email"}},"type":"object","required":["email"],"title":"ResetPassword"},"SSO":{"properties":{"uid":{"type":"string","title":"Uid"},"idp_entity_id":{"type":"string","title":"Identity Provider Entity ID"},"idp_single_sign_on_service_url":{"type":"string","title":"Identity Provider Single Sign-On Service"},"idp_x509_cert":{"type":"string","title":"Identity Provider X.509 Certificate"},"domains":{"items":{"type":"string"},"type":"array","title":"Client Domains"},"clients":{"items":{"type":"string"},"type":"array","title":"Client IDs"},"is_enabled":{"type":"boolean","title":"Is SSO Enabled","default":false}},"type":"object","required":["idp_entity_id","idp_single_sign_on_service_url","idp_x509_cert","domains","clients"],"title":"SSO","description":"SSO configuration entity stored in Redis JSON.\n\nIndexed fields (clients, domains) are searchable via FT.SEARCH\nTAG queries.  No uniqueness constraints."},"SSOCreate":{"properties":{"idp_entity_id":{"type":"string","title":"Idp Entity Id"},"idp_single_sign_on_service_url":{"type":"string","title":"Idp Single Sign On Service Url"},"idp_x509_cert":{"type":"string","title":"Idp X509 Cert"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"clients":{"items":{"type":"string"},"type":"array","title":"Clients"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":false}},"type":"object","required":["idp_entity_id","idp_single_sign_on_service_url","idp_x509_cert","domains","clients"],"title":"SSOCreate"},"SSOUpdate":{"properties":{"idp_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idp Entity Id"},"idp_single_sign_on_service_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idp Single Sign On Service Url"},"idp_x509_cert":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idp X509 Cert"},"domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Domains"},"clients":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Clients"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"}},"type":"object","title":"SSOUpdate"},"SupportType":{"type":"string","enum":["general","technical","bug","feature_request","enhancement","sales","account_services","other"],"title":"SupportType","description":"Classification of a support request."},"TicketPriority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"],"title":"TicketPriority","description":"Priority level for a support ticket."},"TicketResponse":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"support_type":{"anyOf":[{"$ref":"#/components/schemas/SupportType"},{"type":"null"}]},"created":{"type":"string","format":"date-time","title":"Created"},"modified":{"type":"string","format":"date-time","title":"Modified"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"comments":{"items":{"$ref":"#/components/schemas/CommentResponse"},"type":"array","title":"Comments","default":[]},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentResponse"},"type":"array","title":"Attachments","default":[]},"days_since_created":{"type":"integer","title":"Days Since Created","default":0},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"cc_emails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Cc Emails"},"sync_status":{"type":"string","title":"Sync Status","description":"Sync status","default":"synced"}},"type":"object","required":["key","title","description","status","created","modified"],"title":"TicketResponse","description":"API response model for a support ticket."},"TicketUpdateResponse":{"properties":{"status":{"type":"string","title":"Status"},"key":{"type":"string","title":"Key"}},"type":"object","required":["status","key"],"title":"TicketUpdateResponse","description":"Response returned after updating a ticket."},"TokenResponse":{"properties":{"success":{"type":"boolean","title":"Whether authentication succeeded"},"token_type":{"type":"string","title":"Token delivery mechanism"},"expires_in":{"type":"integer","title":"Access token lifetime in seconds"},"message":{"type":"string","title":"Human-readable status message"}},"type":"object","required":["success","token_type","expires_in","message"],"title":"TokenResponse","description":"Response from the /token authentication endpoint."},"UpdateNotificationPreferencesRequest":{"properties":{"preferences":{"items":{"$ref":"#/components/schemas/NotificationPreferenceUpdate"},"type":"array","title":"Preferences"}},"type":"object","required":["preferences"],"title":"UpdateNotificationPreferencesRequest"},"UpdateTicketRequest":{"properties":{"external_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Status"},"external_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Priority"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"}},"type":"object","title":"UpdateTicketRequest","description":"Request to update a ticket."},"UserCreate":{"properties":{"username":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Username"},"first_name":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"First Name"},"last_name":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Last Name"},"email":{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$","title":"Email"},"password":{"type":"string","title":"Password"},"sms_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Phone"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"mfa_sms":{"type":"boolean","title":"Mfa Sms","default":false},"mfa_otp":{"type":"boolean","title":"Mfa Otp","default":false},"no_expire":{"type":"boolean","title":"No Expire","default":false},"active":{"type":"boolean","title":"Active","default":true},"theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Theme","default":"Default"},"default_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Client"},"default_page_size":{"type":"integer","title":"Default Page Size","default":10},"preferred_notification_channel":{"$ref":"#/components/schemas/NotificationChannel","default":"sse"},"dashboard":{"additionalProperties":{"$ref":"#/components/schemas/DashboardScreen"},"type":"object","title":"Dashboard"}},"type":"object","required":["username","first_name","last_name","email","password"],"title":"UserCreate","description":"Auto-generated fields + input validation (patterns, MX check, password complexity)."},"UserDefaultsResponse":{"properties":{"cid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default client UID"},"csk":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default control set key"},"uid":{"type":"string","title":"User UID"}},"type":"object","required":["uid"],"title":"UserDefaultsResponse","description":"Current default context for the user."},"UserNotificationResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"user_uid":{"type":"string","title":"User Uid"},"notification_request_uid":{"type":"string","title":"Notification Request Uid"},"template_id":{"type":"string","title":"Template Id"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"read":{"type":"boolean","title":"Read"},"dismissed":{"type":"boolean","title":"Dismissed"},"priority":{"$ref":"#/components/schemas/NotificationPriority"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["uid","user_uid","notification_request_uid","template_id","data","read","dismissed","priority","correlation_id","created_at","expires_at"],"title":"UserNotificationResponse"},"UserNotificationUpdate":{"properties":{"read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read"},"dismissed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dismissed"}},"type":"object","title":"UserNotificationUpdate"},"UserResponse":{"properties":{"uid":{"type":"string","title":"Unique identifier"},"created":{"type":"string","format":"date-time","title":"Timestamp of item created"},"modified":{"type":"string","format":"date-time","title":"Timestamp of the last modification"},"username":{"type":"string","title":"Unique anonymous identifier"},"first_name":{"type":"string","title":"First name"},"last_name":{"type":"string","title":"Last name"},"email":{"type":"string","title":"Company email address"},"sms_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"SMS phone number"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone number"},"mfa_sms":{"type":"boolean","title":"SMS 2FA is enabled","default":false},"mfa_otp":{"type":"boolean","title":"OTP 2FA is enabled","default":false},"last_active":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp of last user activity"},"no_expire":{"type":"boolean","title":"Account never expires","default":false},"locked":{"type":"boolean","title":"User account is locked due to login failures","default":false},"active":{"type":"boolean","title":"Account is active","default":true},"theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color theme for the UI","default":"Default"},"default_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default client for the user"},"default_page_size":{"type":"integer","title":"Default page size for the user","default":10},"preferred_notification_channel":{"$ref":"#/components/schemas/NotificationChannel","title":"Preferred notification channel for the user","default":"sse"},"mcp_connections":{"items":{"$ref":"#/components/schemas/MCPConnectionResponse"},"type":"array","title":"Live MCP connections for the user"},"dashboard":{"additionalProperties":{"$ref":"#/components/schemas/DashboardScreenResponse"},"type":"object","title":"Dashboard configuration"},"can_impersonate":{"type":"boolean","title":"User can impersonate other clients (platform admin)","default":false},"legacy_sso_session":{"type":"boolean","title":"Session came through SSO (legacy or Keycloak-brokered); the identity provider manages sign-in (GET /users/me only)","default":false}},"type":"object","required":["uid","created","modified","username","first_name","last_name","email"],"title":"UserResponse","description":"Public fields from User(ContractModel). Excludes Private() fields (password, tokens, etc.)."},"UserUpdate":{"properties":{"username":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$"},{"type":"null"}],"title":"Username"},"first_name":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9!@#$%^&*\\-_~+., :/'()]*$"},{"type":"null"}],"title":"Phone Number"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Theme"},"default_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Client"},"default_page_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Page Size"},"preferred_notification_channel":{"anyOf":[{"$ref":"#/components/schemas/NotificationChannel"},{"type":"null"}]},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"no_expire":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Expire"}},"type":"object","title":"UserUpdate","description":"The fields PUT /users may write, listed one by one.\n\nAny other stored user field (password, MFA state, tokens, MCP connections, ...)\nis refused, so a field added to ``User`` stays unwritable here until it is\nadded to this list. Keys that are not stored user fields are ignored."},"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"},"VerificationCodeResponse":{"properties":{"code":{"type":"string","title":"Verification code"},"verify_url_api":{"type":"string","title":"API verification URL"},"verify_url_frontend":{"type":"string","title":"Frontend verification URL"}},"type":"object","required":["code","verify_url_api","verify_url_frontend"],"title":"VerificationCodeResponse","description":"Local-dev verification code response."}}}}