{"openapi":"3.1.0","info":{"title":"RegDoor API","description":"API documentation","version":"1.0.0"},"paths":{"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/auth/login-method":{"post":{"tags":["auth"],"summary":"Login Method","operationId":"login_method_api_auth_login_method_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginMethodLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginMethodPublicResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/companies/{company_uuid}/conversations/{conversation_uuid}/attachments":{"post":{"tags":["conversation-attachments"],"summary":"Associate Conversation Attachments","operationId":"associate_conversation_attachments_api_companies__company_uuid__conversations__conversation_uuid__attachments_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationAttachmentCreate"},"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationAttachmentOut"},"title":"Response Associate Conversation Attachments Api Companies  Company Uuid  Conversations  Conversation Uuid  Attachments Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["conversation-attachments"],"summary":"List Conversation Attachments","operationId":"list_conversation_attachments_api_companies__company_uuid__conversations__conversation_uuid__attachments_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationAttachmentOut"},"title":"Response List Conversation Attachments Api Companies  Company Uuid  Conversations  Conversation Uuid  Attachments Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/conversations/attachments/{attachment_id}/download":{"get":{"tags":["conversation-attachments"],"summary":"Download Conversation Attachment","operationId":"download_conversation_attachment_api_companies__company_uuid__conversations_attachments__attachment_id__download_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attachment Id"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationAttachmentDownloadOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/conversations/":{"get":{"tags":["conversations"],"summary":"List Conversations","operationId":"list_conversations_api_companies__company_uuid__conversations__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationOut"},"title":"Response List Conversations Api Companies  Company Uuid  Conversations  Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["conversations"],"summary":"Create Conversation","operationId":"create_conversation_api_companies__company_uuid__conversations__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/conversations/{conversation_uuid}":{"get":{"tags":["conversations"],"summary":"Get Conversation","operationId":"get_conversation_api_companies__company_uuid__conversations__conversation_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["conversations"],"summary":"Update Conversation","operationId":"update_conversation_api_companies__company_uuid__conversations__conversation_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["conversations"],"summary":"Delete Conversation","operationId":"delete_conversation_api_companies__company_uuid__conversations__conversation_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/conversations/by-session/{session_id}/usage":{"post":{"tags":["conversations"],"summary":"Accumulate Conversation Usage","description":"Accumulate AgentSDK turn cost/tokens onto the conversation (upsert).","operationId":"accumulate_conversation_usage_api_companies__company_uuid__conversations_by_session__session_id__usage_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUsageAccumulate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/conversations/{conversation_uuid}/read-state":{"patch":{"tags":["conversations"],"summary":"Update Conversation Read State","operationId":"update_conversation_read_state_api_companies__company_uuid__conversations__conversation_uuid__read_state_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationReadStateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/conversations/{conversation_uuid}/activity":{"post":{"tags":["conversations"],"summary":"Record Conversation Activity","description":"Mark the chat unread when the actor left for another Nicky chat.","operationId":"record_conversation_activity_api_companies__company_uuid__conversations__conversation_uuid__activity_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationActivity"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationOut"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/setup":{"get":{"tags":["company-setup"],"summary":"Get Setup Profile","description":"Get the company profile for the setup app. Accepts OTP token as query parameter.\nDoes not invalidate or consume the token.","operationId":"get_setup_profile_api_companies_setup_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","description":"OTP token for company setup","title":"Token"},"description":"OTP token for company setup"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySetupProfileResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["company-setup"],"summary":"Setup Company","description":"Write a company profile using a one-time password.\nNo authentication required — the OTP token is the credential.","operationId":"setup_company_api_companies_setup_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySetupResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/companies/setup/otp":{"post":{"tags":["company-setup"],"summary":"Generate Otp","description":"Generate a one-time password for company setup. Requires authentication.","operationId":"generate_otp_api_companies_setup_otp_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OTPGenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OTPGenerateResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/users":{"get":{"tags":["company-users"],"summary":"List Company Users","operationId":"list_company_users_api_companies__company_uuid__users_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"include-superadmins","in":"query","required":false,"schema":{"type":"boolean","description":"When true, include super admin users in the list","default":false,"title":"Include-Superadmins"},"description":"When true, include super admin users in the list"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserSettings_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-users"],"summary":"Invite Company User","operationId":"invite_company_user_api_companies__company_uuid__users_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBase"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/users/{user_uuid}":{"patch":{"tags":["company-users"],"summary":"Update Company User Access","operationId":"update_company_user_access_api_companies__company_uuid__users__user_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"user_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyUserAccessUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-users"],"summary":"Delete Company User","operationId":"delete_company_user_api_companies__company_uuid__users__user_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"user_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/users/{user_uuid}/mfa-method":{"delete":{"tags":["company-users"],"summary":"Clear Company User Mfa Method","description":"Clear stored MFA so the user can re-enroll (lost passkey / locked account).","operationId":"clear_company_user_mfa_method_api_companies__company_uuid__users__user_uuid__mfa_method_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"user_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/users/{user_uuid}/resend-invitation":{"post":{"tags":["company-users"],"summary":"Resend Company User Invitation","operationId":"resend_company_user_invitation_api_companies__company_uuid__users__user_uuid__resend_invitation_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"user_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/permissions/me":{"get":{"tags":["permission-profiles"],"summary":"Get My Permissions","description":"The caller's scope for every action in this company, so the interface can hide\ncontrols the caller cannot use. Any member can read their own; enforcement stays\nin each endpoint.","operationId":"get_my_permissions_api_companies__company_uuid__permissions_me_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyPermissionsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/permission-profiles/area-access":{"get":{"tags":["permission-profiles"],"summary":"List Permission Role Area Access","description":"Roles with access to a product area — used by Share → General access.\n\nReadable by any company member (not only permission-profile managers).","operationId":"list_permission_role_area_access_api_companies__company_uuid__permission_profiles_area_access_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"area","in":"query","required":true,"schema":{"type":"string","description":"Product area key (e.g. interactions, library, contact)","title":"Area"},"description":"Product area key (e.g. interactions, library, contact)"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PermissionRoleAreaAccess"},"title":"Response List Permission Role Area Access Api Companies  Company Uuid  Permission Profiles Area Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/permission-profiles":{"get":{"tags":["permission-profiles"],"summary":"List Permission Profiles","operationId":"list_permission_profiles_api_companies__company_uuid__permission_profiles_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PermissionProfileRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["permission-profiles"],"summary":"Create Permission Profile","operationId":"create_permission_profile_api_companies__company_uuid__permission_profiles_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionProfileCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/permission-profiles/matrix":{"get":{"tags":["permission-profiles"],"summary":"Get Permission Matrix Actions","description":"The canonical (category, action) taxonomy + PT-BR labels, so the editor can\nrender the HubSpot-style matrix grouped by category without hardcoding a copy\nof §8 on the frontend.","operationId":"get_permission_matrix_actions_api_companies__company_uuid__permission_profiles_matrix_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PermissionMatrixActionRead"},"title":"Response Get Permission Matrix Actions Api Companies  Company Uuid  Permission Profiles Matrix Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/permission-profiles/{profile_uuid}":{"get":{"tags":["permission-profiles"],"summary":"Get Permission Profile","operationId":"get_permission_profile_api_companies__company_uuid__permission_profiles__profile_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"profile_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["permission-profiles"],"summary":"Update Permission Profile","operationId":"update_permission_profile_api_companies__company_uuid__permission_profiles__profile_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"profile_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["permission-profiles"],"summary":"Delete Permission Profile","operationId":"delete_permission_profile_api_companies__company_uuid__permission_profiles__profile_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"profile_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/permission-profiles/{profile_uuid}/duplicate":{"post":{"tags":["permission-profiles"],"summary":"Duplicate Permission Profile","operationId":"duplicate_permission_profile_api_companies__company_uuid__permission_profiles__profile_uuid__duplicate_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"profile_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/users/bulk-permission-profile":{"post":{"tags":["permission-profiles"],"summary":"Bulk Assign Permission Profile","operationId":"bulk_assign_permission_profile_api_companies__company_uuid__users_bulk_permission_profile_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPermissionProfileAssign"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/users/{user_uuid}/resource-grants":{"get":{"tags":["resource-grants"],"summary":"List User Resource Grants","description":"Grants on resources for Manage users → Shared access drawer.","operationId":"list_user_resource_grants_api_companies__company_uuid__users__user_uuid__resource_grants_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"user_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserResourceGrantRead"},"title":"Response List User Resource Grants Api Companies  Company Uuid  Users  User Uuid  Resource Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/resources/{resource_type}/{resource_uuid}/accessors":{"get":{"tags":["resource-grants"],"summary":"List Resource Accessors","operationId":"list_resource_accessors_api_companies__company_uuid__resources__resource_type___resource_uuid__accessors_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"resource_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ResourceType"}},{"name":"resource_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceAccessor"},"title":"Response List Resource Accessors Api Companies  Company Uuid  Resources  Resource Type   Resource Uuid  Accessors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/resources/{resource_type}/{resource_uuid}/grants":{"get":{"tags":["resource-grants"],"summary":"List Resource Grants","operationId":"list_resource_grants_api_companies__company_uuid__resources__resource_type___resource_uuid__grants_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"resource_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ResourceType"}},{"name":"resource_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceGrantRead"},"title":"Response List Resource Grants Api Companies  Company Uuid  Resources  Resource Type   Resource Uuid  Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["resource-grants"],"summary":"Create Resource Grant","operationId":"create_resource_grant_api_companies__company_uuid__resources__resource_type___resource_uuid__grants_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"resource_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ResourceType"}},{"name":"resource_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceGrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceGrantRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/resources/{resource_type}/{resource_uuid}/owner":{"post":{"tags":["resource-grants"],"summary":"Transfer Resource Owner","description":"Hand ownership to another member (current owner only).","operationId":"transfer_resource_owner_api_companies__company_uuid__resources__resource_type___resource_uuid__owner_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"resource_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ResourceType"}},{"name":"resource_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resource Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalOwnerTransfer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceAccessor"},"title":"Response Transfer Resource Owner Api Companies  Company Uuid  Resources  Resource Type   Resource Uuid  Owner Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/resources/grants/{grant_uuid}":{"patch":{"tags":["resource-grants"],"summary":"Update Resource Grant","operationId":"update_resource_grant_api_companies__company_uuid__resources_grants__grant_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"grant_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceGrantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceGrantRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["resource-grants"],"summary":"Delete Resource Grant","operationId":"delete_resource_grant_api_companies__company_uuid__resources_grants__grant_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"grant_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/company-vault/companies/{company_uuid}/files":{"get":{"tags":["company-vault"],"summary":"List Vault Files","operationId":"list_vault_files_api_company_vault_companies__company_uuid__files_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/company-vault/companies/{company_uuid}/files/{filename}":{"get":{"tags":["company-vault"],"summary":"Get Vault File","operationId":"get_vault_file_api_company_vault_companies__company_uuid__files__filename__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company-vault"],"summary":"Save Vault File","operationId":"save_vault_file_api_company_vault_companies__company_uuid__files__filename__put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/vault/files":{"get":{"tags":["agent-company-context"],"summary":"List Agent Vault Files","description":"List company vault markdown files (with content) for agent/MCP consumers.","operationId":"list_agent_vault_files_api_companies__company_uuid__vault_files_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/vault/files/{filename}":{"get":{"tags":["agent-company-context"],"summary":"Get Agent Vault File","description":"Read a single company vault markdown file for agent/MCP consumers.","operationId":"get_agent_vault_file_api_companies__company_uuid__vault_files__filename__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent-company-context"],"summary":"Save Agent Vault File","description":"Overwrite a company vault markdown file (M2M / admin-scoped writers).","operationId":"save_agent_vault_file_api_companies__company_uuid__vault_files__filename__put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVaultFileSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/regulatory-profile":{"get":{"tags":["agent-company-context"],"summary":"Get Agent Regulatory Profile","description":"Return company regulatory profile JSON with attachment download URLs.","operationId":"get_agent_regulatory_profile_api_companies__company_uuid__regulatory_profile_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryProfileGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-regulatory-profile"],"summary":"Patch Regulatory Profile","description":"Partial update of `company.profile` (regulatory / setup JSON).","operationId":"patch_regulatory_profile_api_companies__company_uuid__regulatory_profile_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryProfilePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryProfilePatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/":{"get":{"tags":["companies"],"summary":"List Companies","operationId":"list_companies_api_companies__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by company name","title":"Search"},"description":"Search by company name"},{"name":"short_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by company short name","title":"Short Name"},"description":"Search by company short name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Company_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["companies"],"summary":"Create Company","operationId":"create_company_api_companies__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{uuid}":{"get":{"tags":["companies"],"summary":"Get Company","operationId":"get_company_api_companies__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}":{"patch":{"tags":["companies"],"summary":"Update Company","operationId":"update_company_api_companies__company_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/slack/info":{"get":{"tags":["companies"],"summary":"Get Slack Info","operationId":"get_slack_info_api_companies_slack_info_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"team_id","in":"query","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackCompanyInfo"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/dashboard":{"get":{"tags":["companies"],"summary":"Get Company Dashboard","description":"Returns the dashboard data for a company between the specified dates.\nIncludes:\n- Total interactions\n- Total unique contacts\n- Total unique organizations\n- Interactions grouped by day\n- Interactions grouped by contact\n- Interactions grouped by user\n- Interactions grouped by country","operationId":"get_company_dashboard_api_companies__company_uuid__dashboard_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Start date","title":"Start Date"},"description":"Start date"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"End date","title":"End Date"},"description":"End date"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyDashboard"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/regulatory-profile/attachments/download":{"get":{"tags":["company-regulatory-profile"],"summary":"Download Regulatory Profile Attachment","description":"Return a short-lived presigned URL for a company regulatory profile file.","operationId":"download_regulatory_profile_attachment_api_companies__company_uuid__regulatory_profile_attachments_download_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"storage_filename","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Storage filename of the regulatory profile attachment","title":"Storage Filename"},"description":"Storage filename of the regulatory profile attachment"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryProfileAttachmentDownloadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/complete-onboarding":{"post":{"tags":["company-onboarding"],"summary":"Complete Onboarding","description":"Complete in-app company setup for any member of the company.","operationId":"complete_onboarding_api_companies__company_uuid__complete_onboarding_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryProfilePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryProfilePatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations":{"get":{"tags":["company-organizations"],"summary":"List Company Organizations","description":"List organizations for a company with optional filtering.\n\nArgs:\n    company_uuid (UUID): The company UUID.\n    db_session (DBSessionDep): Database session dependency.\n    type (str, optional): Filter by organization type.\n    search (str, optional): Search by organization name.\n    country_id (List[int], optional): Filter by country ID(s).\n    selected (bool, optional): Filter by selection status.\n    user_uuid (UUID, optional): Filter by organization owner.\n    sort_by (str, optional): Sort by field ('name', 'short_name', or 'country').\n    sort_order (str, optional): Sort order ('asc' or 'desc').\n\nReturns:\n    Page[CompanyOrganizationResponse]: Paginated list of organizations.","operationId":"list_company_organizations_api_companies__company_uuid__organizations_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by organization type","title":"Type"},"description":"Filter by organization type"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by organization name","title":"Search"},"description":"Search by organization name"},{"name":"country_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by country ID(s). Can specify multiple times.","default":[],"title":"Country Id"},"description":"Filter by country ID(s). Can specify multiple times."},{"name":"selected","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by selection status","title":"Selected"},"description":"Filter by selection status"},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization owner","title":"User Uuid"},"description":"Filter by organization owner"},{"name":"collection_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Filter by collection name(s). Can specify multiple times.","default":[],"title":"Collection List"},"description":"Filter by collection name(s). Can specify multiple times."},{"name":"group_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by company group UUID(s). Can specify multiple times.","default":[],"title":"Group Uuid"},"description":"Filter by company group UUID(s). Can specify multiple times."},{"name":"government_body_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"}},{"type":"null"}],"description":"Filter government bodies by role. Match if the org has any selected role.","title":"Government Body Type"},"description":"Filter government bodies by role. Match if the org has any selected role."},{"name":"service_provider_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"}},{"type":"null"}],"description":"Filter by service provider subtype. Match if the org has any selected subtype.","title":"Service Provider Type"},"description":"Filter by service provider subtype. Match if the org has any selected subtype."},{"name":"regulatory_scope","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/RegulatoryScopeEnum"}},{"type":"null"}],"description":"Filter by regulatory scope tags. capital_markets matches any child scope.","title":"Regulatory Scope"},"description":"Filter by regulatory scope tags. capital_markets matches any child scope."},{"name":"regulatory_power","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/RegulatoryPowerEnum"}},{"type":"null"}],"description":"Filter by regulatory power tags. Match if the org has any selected power.","title":"Regulatory Power"},"description":"Filter by regulatory power tags. Match if the org has any selected power."},{"name":"institutional_form","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/InstitutionalFormEnum"}},{"type":"null"}],"description":"Filter by institutional form. Match if the org has any selected form.","title":"Institutional Form"},"description":"Filter by institutional form. Match if the org has any selected form."},{"name":"group_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by responsible area (group). Match if the org has any of them.","title":"Group Uuid List"},"description":"Filter by responsible area (group). Match if the org has any of them."},{"name":"unassigned_group","in":"query","required":false,"schema":{"type":"boolean","description":"Only selected organizations without any area. Combined with group_uuid_list returns the union.","default":false,"title":"Unassigned Group"},"description":"Only selected organizations without any area. Combined with group_uuid_list returns the union."},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field (name, short_name, first_interaction, last_interaction, total_interactions_count, sentiment_score, contacts_total, or country)","title":"Sort By"},"description":"Sort by field (name, short_name, first_interaction, last_interaction, total_interactions_count, sentiment_score, contacts_total, or country)"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","default":"asc","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CompanyOrganizationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/collections":{"get":{"tags":["company-organizations"],"summary":"Get Organization Collections","description":"Return all distinct collection names across organizations of this company.\n\nAggregated across the three organization types so the editor autocomplete\nrecognises a collection regardless of which listing created it.","operationId":"get_organization_collections_api_companies__company_uuid__organizations_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-organizations"],"summary":"Delete Organization Collection","description":"Remove a collection label from organizations of one listing type.\n\nThis touches every organization of that type, so it cannot be scoped to \"own\".\n\nDoes not delete organizations. Removes the collection row when no associations remain.","operationId":"delete_organization_collection_api_companies__company_uuid__organizations_collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Collection name","title":"Name"},"description":"Collection name"},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Organization type for this listing","title":"Type"},"description":"Organization type for this listing"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/collections/summary":{"get":{"tags":["company-organizations"],"summary":"Get Organization Collections Summary","description":"Return grouped collections for one organization listing's Collections tab.","operationId":"get_organization_collections_summary_api_companies__company_uuid__organizations_collections_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Organization type for this listing","title":"Type"},"description":"Organization type for this listing"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_organizations","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_organizations"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":3,"title":"Preview Limit"}},{"name":"group_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by collection owner group (not org membership)","default":[],"title":"Group Uuid"},"description":"Filter by collection owner group (not org membership)"},{"name":"country_id","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"description":"Optional jurisdiction filter for org counts/preview","default":[],"title":"Country Id"},"description":"Optional jurisdiction filter for org counts/preview"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCollectionsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/groups/summary":{"get":{"tags":["company-organizations"],"summary":"Get Organization Groups Summary","description":"Return company groups with organization counts/previews for the Groups tab.","operationId":"get_organization_groups_summary_api_companies__company_uuid__organizations_groups_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional organization type filter for this listing","title":"Type"},"description":"Optional organization type filter for this listing"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_organizations","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_organizations"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGroupsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}":{"get":{"tags":["company-organizations"],"summary":"Get Company Organization","operationId":"get_company_organization_api_companies__company_uuid__organizations__organization_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-organizations"],"summary":"Update Company Organization","operationId":"update_company_organization_api_companies__company_uuid__organizations__organization_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-organizations"],"summary":"Delete Company Organization","operationId":"delete_company_organization_api_companies__company_uuid__organizations__organization_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Delete Company Organization Api Companies  Company Uuid  Organizations  Organization Uuid  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}/hierarchy":{"get":{"tags":["company-organizations"],"summary":"Get Company Organization Hierarchy","description":"Return the visible family tree for an organization org-chart view.","operationId":"get_company_organization_hierarchy_api_companies__company_uuid__organizations__organization_uuid__hierarchy_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationHierarchyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/create":{"post":{"tags":["company-organizations"],"summary":"Create Company Organization","operationId":"create_company_organization_api_companies__company_uuid__organizations_create_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}/collections":{"patch":{"tags":["company-organizations"],"summary":"Update Organization Collections","description":"Replace all collections for a given organization.","operationId":"update_organization_collections_api_companies__company_uuid__organizations__organization_uuid__collections_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCollectionsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}/select":{"post":{"tags":["company-organizations"],"summary":"Select Organization","operationId":"select_organization_api_companies__company_uuid__organizations__organization_uuid__select_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-organizations"],"summary":"Deselect Organization","operationId":"deselect_organization_api_companies__company_uuid__organizations__organization_uuid__select_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/bulk/preview":{"post":{"tags":["company-organizations"],"summary":"Preview Bulk Organizations","operationId":"preview_bulk_organizations_api_companies__company_uuid__organizations_bulk_preview_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/bulk":{"post":{"tags":["company-organizations"],"summary":"Bulk Organizations","operationId":"bulk_organizations_api_companies__company_uuid__organizations_bulk_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOrganizationBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}/groups":{"get":{"tags":["company-organizations"],"summary":"List Organization Groups","operationId":"list_organization_groups_api_companies__company_uuid__organizations__organization_uuid__groups_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company-organizations"],"summary":"Set Organization Groups","operationId":"set_organization_groups_api_companies__company_uuid__organizations__organization_uuid__groups_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGroupsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}/visibility":{"patch":{"tags":["company-organizations"],"summary":"Set Organization Visibility","operationId":"set_organization_visibility_api_companies__company_uuid__organizations__organization_uuid__visibility_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCompanyData"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/organizations/{organization_uuid}/owners":{"get":{"tags":["company-organizations"],"summary":"List Organization Relationship Owners","operationId":"list_organization_relationship_owners_api_companies__company_uuid__organizations__organization_uuid__owners_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by user name","title":"Search"},"description":"Search by user name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserMTM_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-organizations"],"summary":"Add Organization Relationship Owner","operationId":"add_organization_relationship_owner_api_companies__company_uuid__organizations__organization_uuid__owners_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-organizations"],"summary":"Remove Organization Relationship Owner","operationId":"remove_organization_relationship_owner_api_companies__company_uuid__organizations__organization_uuid__owners_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"organization_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/create":{"post":{"tags":["company-contacts"],"summary":"Create Company Contact","operationId":"create_company_contact_api_companies__company_uuid__contacts_create_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts":{"get":{"tags":["company-contacts"],"summary":"List Company Contacts","description":"List contacts for a company with filtering options.\n\nArgs:\n    company_uuid (UUID): The company UUID.\n    db_session (DBSessionDep): Database session dependency.\n    selected (bool, optional): Filter by selection status.\n    search (str, optional): Search term for contact name, department or position (role).\n    search_name (str, optional): Search term for contact name only.\n    user_uuid (UUID, optional): Filter by contact owner.\n    organization_uuid (List[UUID], optional): Filter by organization UUID(s).\n    organization_type (List[TypeEnum], optional): Filter by organization type(s).\n    country_id (List[int], optional): Filter by country ID(s).\n    position (str, optional): Filter by contact position using fuzzy matching.\n    department (str, optional): Filter by contact department using fuzzy matching.\n    sort_by (str, optional): Sort by field ('name', 'first_interaction', 'last_interaction', 'total_interactions_count', 'sentiment_score').\n    sort_order (str, optional): Sort order ('asc' or 'desc').\n\nReturns:\n    Page[CompanyContactResponse]: Paginated list of contacts.","operationId":"list_company_contacts_api_companies__company_uuid__contacts_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"selected","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by selection status","title":"Selected"},"description":"Filter by selection status"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search term for contact name or position (role)","title":"Search"},"description":"Search term for contact name or position (role)"},{"name":"search_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search term for contact name only","title":"Search Name"},"description":"Search term for contact name only"},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by contact owner","title":"User Uuid"},"description":"Filter by contact owner"},{"name":"organization_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUID(s). Can specify multiple times.","default":[],"title":"Organization Uuid"},"description":"Filter by organization UUID(s). Can specify multiple times."},{"name":"organization_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/TypeEnum"}},{"type":"null"}],"description":"Filter by organization type. Can specify multiple times.","title":"Organization Type"},"description":"Filter by organization type. Can specify multiple times."},{"name":"country_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by country ID(s). Can specify multiple times.","default":[],"title":"Country Id"},"description":"Filter by country ID(s). Can specify multiple times."},{"name":"position","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by contact position","title":"Position"},"description":"Filter by contact position"},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by contact department","title":"Department"},"description":"Filter by contact department"},{"name":"regdoor_verified","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by regdoor verified status","title":"Regdoor Verified"},"description":"Filter by regdoor verified status"},{"name":"collection_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Filter by collection name(s). Can specify multiple times.","default":[],"title":"Collection List"},"description":"Filter by collection name(s). Can specify multiple times."},{"name":"group_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by area (group) via collections owned by these groups.","default":[],"title":"Group Uuid"},"description":"Filter by area (group) via collections owned by these groups."},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field (name, first_interaction, last_interaction, total_interactions_count, sentiment_score)","title":"Sort By"},"description":"Sort by field (name, first_interaction, last_interaction, total_interactions_count, sentiment_score)"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","default":"asc","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CompanyContactResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/collections":{"get":{"tags":["company-contacts"],"summary":"Get Contact Collections","description":"Return all distinct collection names for contacts of this company.","operationId":"get_contact_collections_api_companies__company_uuid__contacts_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-contacts"],"summary":"Delete Contact Collection","description":"Remove a collection label from all contacts of this company.\n\nThis touches every contact in the company, so it cannot be scoped to \"own\".\n\nDoes not delete contacts. Removes the collection row when no associations remain.","operationId":"delete_contact_collection_api_companies__company_uuid__contacts_collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Collection name","title":"Name"},"description":"Collection name"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/groups/summary":{"get":{"tags":["company-contacts"],"summary":"Get Contact Groups Summary","description":"Return the caller's areas with contact counts/previews for the My areas tab.","operationId":"get_contact_groups_summary_api_companies__company_uuid__contacts_groups_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_contacts","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_contacts"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/collections/summary":{"get":{"tags":["company-contacts"],"summary":"Get Contact Collections Summary","description":"Return grouped collections for the contacts Collections tab.","operationId":"get_contact_collections_summary_api_companies__company_uuid__contacts_collections_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_contacts","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_contacts"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":3,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCollectionsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}":{"get":{"tags":["company-contacts"],"summary":"Get Company Contact","operationId":"get_company_contact_api_companies__company_uuid__contacts__contact_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-contacts"],"summary":"Update Company Contact","operationId":"update_company_contact_api_companies__company_uuid__contacts__contact_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-contacts"],"summary":"Delete Company Contact","operationId":"delete_company_contact_api_companies__company_uuid__contacts__contact_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/bulk/preview":{"post":{"tags":["company-contacts"],"summary":"Preview Bulk Contacts","operationId":"preview_bulk_contacts_api_companies__company_uuid__contacts_bulk_preview_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/bulk":{"post":{"tags":["company-contacts"],"summary":"Bulk Contacts","operationId":"bulk_contacts_api_companies__company_uuid__contacts_bulk_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/collections":{"patch":{"tags":["company-contacts"],"summary":"Update Contact Collections","description":"Replace all collections for a given contact.","operationId":"update_contact_collections_api_companies__company_uuid__contacts__contact_uuid__collections_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCollectionsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/groups":{"get":{"tags":["company-contacts"],"summary":"List Contact Groups","operationId":"list_contact_groups_api_companies__company_uuid__contacts__contact_uuid__groups_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company-contacts"],"summary":"Set Contact Groups","operationId":"set_contact_groups_api_companies__company_uuid__contacts__contact_uuid__groups_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactGroupsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/visibility":{"patch":{"tags":["company-contacts"],"summary":"Set Contact Visibility","operationId":"set_contact_visibility_api_companies__company_uuid__contacts__contact_uuid__visibility_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__schemas__company_contact_schema__ContactVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCompanyData"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/contents":{"patch":{"tags":["company-contacts"],"summary":"Update Contact Contents","description":"Replace this company's private document links for a contact.","operationId":"update_contact_contents_api_companies__company_uuid__contacts__contact_uuid__contents_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactContentsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/avatar":{"delete":{"tags":["company-contacts"],"summary":"Delete Company Contact Avatar","operationId":"delete_company_contact_avatar_api_companies__company_uuid__contacts__contact_uuid__avatar_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/select":{"post":{"tags":["company-contacts"],"summary":"Select Contact","operationId":"select_contact_api_companies__company_uuid__contacts__contact_uuid__select_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-contacts"],"summary":"Deselect Contact","operationId":"deselect_contact_api_companies__company_uuid__contacts__contact_uuid__select_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContactSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contacts/{contact_uuid}/owners":{"get":{"tags":["company-contacts"],"summary":"List Contact Relationship Owners","operationId":"list_contact_relationship_owners_api_companies__company_uuid__contacts__contact_uuid__owners_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search term for owner name","title":"Search"},"description":"Search term for owner name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserMTM_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-contacts"],"summary":"Add Contact Owner","operationId":"add_contact_owner_api_companies__company_uuid__contacts__contact_uuid__owners_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-contacts"],"summary":"Remove Contact Owner","operationId":"remove_contact_owner_api_companies__company_uuid__contacts__contact_uuid__owners_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"contact_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/collections/rename":{"post":{"tags":["company-collections"],"summary":"Rename Company Collection","operationId":"rename_company_collection_api_companies__company_uuid__collections_rename_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__schemas__collection_schema__RenameCollectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/collections/update":{"post":{"tags":["company-collections"],"summary":"Update Company Collection","operationId":"update_company_collection_api_companies__company_uuid__collections_update_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCollectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/collections/duplicate":{"post":{"tags":["company-collections"],"summary":"Duplicate Company Collection","operationId":"duplicate_company_collection_api_companies__company_uuid__collections_duplicate_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateCollectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/collections":{"delete":{"tags":["company-collections"],"summary":"Delete Company Collection","operationId":"delete_company_collection_api_companies__company_uuid__collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Collection name","title":"Name"},"description":"Collection name"},{"name":"group_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Group that owns the collection; omit for company-wide","title":"Group Uuid"},"description":"Group that owns the collection; omit for company-wide"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{uuid}/events/{event_uuid}/select":{"get":{"tags":["company-events"],"summary":"Get Event Selection","description":"Return whether the company has selected the event (events_companies).","operationId":"get_event_selection_api_companies__uuid__events__event_uuid__select_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-events"],"summary":"Select Event","operationId":"select_event_api_companies__uuid__events__event_uuid__select_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-events"],"summary":"Deselect Event","operationId":"deselect_event_api_companies__uuid__events__event_uuid__select_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{uuid}/events/bulk/preview":{"post":{"tags":["company-events"],"summary":"Preview Bulk Events","operationId":"preview_bulk_events_api_companies__uuid__events_bulk_preview_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{uuid}/events/bulk":{"post":{"tags":["company-events"],"summary":"Bulk Events","operationId":"bulk_events_api_companies__uuid__events_bulk_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries":{"get":{"tags":["company-countries"],"summary":"List Company Countries","description":"List countries for a company.\n\nArgs:\n    company_uuid (UUID): The company UUID.\n    db_session (DBSessionDep): Database session dependency.\n    search (str, optional): Search term for country name or code.\n    selected (bool, optional): If True, only selected countries for the company are returned.\n    entitled (bool, optional): If set, only released or only unreleased countries.\n    user_uuid (UUID, optional): Filter by countries whose areas intersect\n        the user's groups.\n    sort_by (str, optional): Field to sort by ('name' or 'code').\n    sort_order (str, optional): Sort order ('asc' or 'desc').\n    ids (List[int], optional): Filter by specific country IDs.\n\nReturns:\n    Page[Country]: Paginated list of countries.","operationId":"list_company_countries","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"selected","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected"}},{"name":"entitled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Entitled"}},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Uuid"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field (name, code, first_interaction, last_interaction, total_interactions_count, sentiment_score, service_providers_total, associations_total, government_bodies_total)","default":"name","title":"Sort By"},"description":"Sort by field (name, code, first_interaction, last_interaction, total_interactions_count, sentiment_score, service_providers_total, associations_total, government_bodies_total)"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","default":"asc","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by specific country IDs","title":"Ids"},"description":"Filter by specific country IDs"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Country_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/bulk/preview":{"post":{"tags":["company-countries"],"summary":"Preview Bulk Company Countries","operationId":"preview_bulk_company_countries","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/bulk":{"post":{"tags":["company-countries"],"summary":"Bulk Company Countries","operationId":"bulk_company_countries","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryBulkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}/entitle":{"post":{"tags":["company-countries"],"summary":"Release a jurisdiction for a company","operationId":"entitle_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-countries"],"summary":"Remove a jurisdiction from a company's released set","operationId":"unentitle_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}/select":{"post":{"tags":["company-countries"],"summary":"Select a country for a company","operationId":"select_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-countries"],"summary":"Deselect a country for a company","operationId":"deselect_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}/owners":{"post":{"tags":["company-countries"],"summary":"Add Country Relationship Owner","operationId":"add_country_relationship_owner","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-countries"],"summary":"Remove Country Relationship Owner","operationId":"remove_country_relationship_owner","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}/groups":{"get":{"tags":["company-countries"],"summary":"List Country Groups","operationId":"list_country_groups","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company-countries"],"summary":"Set Country Groups","operationId":"set_country_groups","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryGroupsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}/conversations":{"get":{"tags":["company-countries"],"summary":"List Jurisdiction Conversations","operationId":"list_jurisdiction_conversations_api_companies__company_uuid__countries__country_id__conversations_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JurisdictionConversation"},"title":"Response List Jurisdiction Conversations Api Companies  Company Uuid  Countries  Country Id  Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-countries"],"summary":"Link Jurisdiction Conversation","operationId":"link_jurisdiction_conversation_api_companies__company_uuid__countries__country_id__conversations_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionConversationLink"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionConversation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}/instructions":{"get":{"tags":["company-countries"],"summary":"Get Jurisdiction Agent Instructions","operationId":"get_jurisdiction_agent_instructions_api_companies__company_uuid__countries__country_id__instructions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionAgentInstructions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company-countries"],"summary":"Save Jurisdiction Agent Instructions","operationId":"save_jurisdiction_agent_instructions_api_companies__company_uuid__countries__country_id__instructions_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionAgentInstructions"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionAgentInstructions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/{country_id}":{"get":{"tags":["company-countries"],"summary":"Get Company Country","operationId":"get_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-countries"],"summary":"Update Company Country","operationId":"update_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__company__countries__schema__Country"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-countries"],"summary":"Soft delete a country","operationId":"delete_company_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__company__countries__schema__CountryMTM"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/countries/create":{"post":{"tags":["company-countries"],"summary":"Create Country","operationId":"create_country","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/internal-notes/":{"post":{"tags":["internal-notes"],"summary":"Create Internal Note","description":"Create an internal note.\n\nArgs:\n- company_uuid: The UUID of the company\n- internal_note: The internal note to create\n- text: The text of the internal note\n- parent_pk: The primary key of the parent entity (id or UUID)\n- parent_type: The type of the parent entity (Jurisdiction, Organization, Contact, Interaction, Project)","operationId":"create_internal_note_api_companies__company_uuid__internal_notes__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_internal_note_api_companies__company_uuid__internal_notes__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalNoteResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["internal-notes"],"summary":"List Internal Notes","description":"List internal notes for a specific company and parent entity.\n\nArgs:\n- company_uuid: The UUID of the company\n\nFilters:\n- parent_pk: The primary key of the parent entity (id or UUID)\n- mentioned_kind + mentioned_uuid: notes whose text mentions that entity","operationId":"list_internal_notes_api_companies__company_uuid__internal_notes__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"parent_pk","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by parent primary key","title":"Parent Pk"},"description":"Filter by parent primary key"},{"name":"parent_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ParentTypeEnum"},{"type":"null"}],"description":"Parent entity type (required with parent_pk for ACL)","title":"Parent Type"},"description":"Parent entity type (required with parent_pk for ACL)"},{"name":"mentioned_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-z]+(?:-[a-z]+)*$"},{"type":"null"}],"description":"Entity mention kind in note text (e.g. contact, user)","title":"Mentioned Kind"},"description":"Entity mention kind in note text (e.g. contact, user)"},{"name":"mentioned_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Entity UUID embedded in [[entity:kind:uuid|…]] tokens","title":"Mentioned Uuid"},"description":"Entity UUID embedded in [[entity:kind:uuid|…]] tokens"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_InternalNoteResponse_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/internal-notes/{uuid}":{"patch":{"tags":["internal-notes"],"summary":"Update Internal Note","description":"Update an internal note.\n\nArgs:\n- company_uuid: The UUID of the company\n- uuid: The UUID of the internal note\n- text: The new text for the internal note","operationId":"update_internal_note_api_companies__company_uuid__internal_notes__uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_update_internal_note_api_companies__company_uuid__internal_notes__uuid__patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalNoteResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["internal-notes"],"summary":"Delete Internal Note","description":"Delete an internal note.\n\nArgs:\n- company_uuid: The UUID of the company\n- uuid: The UUID of the internal note","operationId":"delete_internal_note_api_companies__company_uuid__internal_notes__uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalNoteResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/mcp-scope":{"get":{"tags":["company-mcp-scope"],"summary":"Get Mcp Scope","operationId":"get_mcp_scope_api_companies__company_uuid__mcp_scope_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpScopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-mcp-scope"],"summary":"Update Mcp Scope","operationId":"update_mcp_scope_api_companies__company_uuid__mcp_scope_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpScopeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpScopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/login-method":{"get":{"tags":["company-login-method"],"summary":"Get Login Method","operationId":"get_login_method_api_companies__company_uuid__login_method_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginMethodAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-login-method"],"summary":"Update Login Method","operationId":"update_login_method_api_companies__company_uuid__login_method_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginMethodAdminUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginMethodAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"Inbox for the authenticated user in this company.","operationId":"list_notifications_api_companies__company_uuid__notifications_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Size"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Unread Count","operationId":"unread_count_api_companies__company_uuid__notifications_unread_count_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_api_companies__company_uuid__notifications_read_all_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkAllReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/notifications/{notification_uuid}/read":{"post":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_api_companies__company_uuid__notifications__notification_uuid__read_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"notification_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/legal-entities":{"get":{"tags":["company-legal-entities"],"summary":"List Company Legal Entities","operationId":"list_company_legal_entities_api_companies__company_uuid__legal_entities_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by legal name","title":"Search"},"description":"Search by legal name"},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by jurisdiction (country) ID","title":"Jurisdiction Id"},"description":"Filter by jurisdiction (country) ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LegalEntityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-legal-entities"],"summary":"Create Company Legal Entity","operationId":"create_company_legal_entity_api_companies__company_uuid__legal_entities_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/legal-entities/{legal_entity_uuid}":{"get":{"tags":["company-legal-entities"],"summary":"Get Company Legal Entity","operationId":"get_company_legal_entity_api_companies__company_uuid__legal_entities__legal_entity_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"legal_entity_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Legal Entity Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-legal-entities"],"summary":"Update Company Legal Entity","operationId":"update_company_legal_entity_api_companies__company_uuid__legal_entities__legal_entity_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"legal_entity_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Legal Entity Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-legal-entities"],"summary":"Delete Company Legal Entity","operationId":"delete_company_legal_entity_api_companies__company_uuid__legal_entities__legal_entity_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"legal_entity_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Legal Entity Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups":{"get":{"tags":["company-groups"],"summary":"List Company Groups","operationId":"list_company_groups_api_companies__company_uuid__groups_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by group name","title":"Search"},"description":"Search by group name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-groups"],"summary":"Create Company Group","operationId":"create_company_group_api_companies__company_uuid__groups_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/mine":{"get":{"tags":["company-groups"],"summary":"List My Company Groups","description":"Áreas em que o usuário logado é líder ou membro, com a contagem de organizações.","operationId":"list_my_company_groups_api_companies__company_uuid__groups_mine_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MyGroupLite"},"title":"Response List My Company Groups Api Companies  Company Uuid  Groups Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/{group_uuid}":{"get":{"tags":["company-groups"],"summary":"Get Company Group","operationId":"get_company_group_api_companies__company_uuid__groups__group_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-groups"],"summary":"Update Company Group","operationId":"update_company_group_api_companies__company_uuid__groups__group_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-groups"],"summary":"Delete Company Group","operationId":"delete_company_group_api_companies__company_uuid__groups__group_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/{group_uuid}/deletion-impact":{"get":{"tags":["company-groups"],"summary":"Get Company Group Deletion Impact","operationId":"get_company_group_deletion_impact_api_companies__company_uuid__groups__group_uuid__deletion_impact_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupDeletionImpact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/{group_uuid}/owners":{"get":{"tags":["company-groups"],"summary":"List Group Owners","operationId":"list_group_owners_api_companies__company_uuid__groups__group_uuid__owners_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by user name","title":"Search"},"description":"Search by user name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserBase_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-groups"],"summary":"Add Group Owner","operationId":"add_group_owner_api_companies__company_uuid__groups__group_uuid__owners_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-groups"],"summary":"Remove Group Owner","operationId":"remove_group_owner_api_companies__company_uuid__groups__group_uuid__owners_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/{group_uuid}/members":{"get":{"tags":["company-groups"],"summary":"List Group Members","operationId":"list_group_members_api_companies__company_uuid__groups__group_uuid__members_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by user name","title":"Search"},"description":"Search by user name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserBase_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-groups"],"summary":"Add Group Member","operationId":"add_group_member_api_companies__company_uuid__groups__group_uuid__members_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-groups"],"summary":"Remove Group Member","operationId":"remove_group_member_api_companies__company_uuid__groups__group_uuid__members_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/{group_uuid}/legal-entities":{"get":{"tags":["company-groups"],"summary":"List Group Legal Entities","operationId":"list_group_legal_entities_api_companies__company_uuid__groups__group_uuid__legal_entities_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LegalEntityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-groups"],"summary":"Add Group Legal Entity","operationId":"add_group_legal_entity_api_companies__company_uuid__groups__group_uuid__legal_entities_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupLegalEntityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupLegalEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/groups/{group_uuid}/legal-entities/{legal_entity_uuid}":{"delete":{"tags":["company-groups"],"summary":"Remove Group Legal Entity","operationId":"remove_group_legal_entity_api_companies__company_uuid__groups__group_uuid__legal_entities__legal_entity_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"group_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Uuid"}},{"name":"legal_entity_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Legal Entity Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupLegalEntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/task-settings":{"get":{"tags":["company-task-settings"],"summary":"Get Task Settings","description":"The evaluator Group + Task SLA day counts for this company.","operationId":"get_task_settings_api_companies__company_uuid__task_settings_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyTaskSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-task-settings"],"summary":"Patch Task Settings","description":"Partial update of the evaluator Group and/or Task SLA day counts.","operationId":"patch_task_settings_api_companies__company_uuid__task_settings_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyTaskSettingsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyTaskSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions":{"get":{"tags":["company-interactions"],"summary":"List Company Interactions","description":"List all interactions for a company, with support for dynamic field selection.","operationId":"list_company_interactions_api_companies__company_uuid__interactions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search interactions by title, description, contact, organization, or country","title":"Search"},"description":"Search interactions by title, description, contact, organization, or country"},{"name":"user_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by user UUID(s). Can specify multiple times.","default":[],"title":"User Uuid"},"description":"Filter by user UUID(s). Can specify multiple times."},{"name":"organization_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by organization UUID(s). Can specify multiple times.","default":[],"title":"Organization Uuid"},"description":"Filter by organization UUID(s). Can specify multiple times."},{"name":"contact_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by contact UUID(s). Can specify multiple times.","default":[],"title":"Contact Uuid"},"description":"Filter by contact UUID(s). Can specify multiple times."},{"name":"country_id","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"description":"Filter by country ID(s). Can specify multiple times.","default":[],"title":"Country Id"},"description":"Filter by country ID(s). Can specify multiple times."},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by start date (YYYY-MM-DD)","title":"Start Date"},"description":"Filter by start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by end date (YYYY-MM-DD)","title":"End Date"},"description":"Filter by end date (YYYY-MM-DD)"},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field (interacted_at, medium, or sentiment)","title":"Sort By"},"description":"Sort by field (interacted_at, medium, or sentiment)"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","default":"asc","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by status (draft, published). Can specify multiple times.","title":"Status"},"description":"Filter by status (draft, published). Can specify multiple times."},{"name":"collection_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Filter by collection name(s). Can specify multiple times.","default":[],"title":"Collection List"},"description":"Filter by collection name(s). Can specify multiple times."},{"name":"group_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by area (group) via collections owned by these groups.","default":[],"title":"Group Uuid"},"description":"Filter by area (group) via collections owned by these groups."},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to include in the response, including relations. Available fields: uuid, company_uuid, title, description, interacted_at, medium, sentiment, sentiment_numeric, created_at, updated_at, attachments, users, organizations, other_participants, email_body, source. Example: 'uuid,title,users'","title":"Fields"},"description":"Comma-separated list of fields to include in the response, including relations. Available fields: uuid, company_uuid, title, description, interacted_at, medium, sentiment, sentiment_numeric, created_at, updated_at, attachments, users, organizations, other_participants, email_body, source. Example: 'uuid,title,users'"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CompanyInteraction_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-interactions"],"summary":"Create Company Interaction","description":"Create a new company interaction.\n\nThe interaction can include file attachments that were previously uploaded using the /api/files/upload endpoint.\nFor each attachment, provide:\n- storage_filename: The storage filename returned by the upload endpoint\n- original_name: The original filename of the uploaded file\n- content_type: The content type of the file\n\nThe files will be moved from the upload folder to the interaction's permanent storage location.","operationId":"create_company_interaction_api_companies__company_uuid__interactions_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteractionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteraction"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/collections":{"get":{"tags":["company-interactions"],"summary":"Get Interaction Collections","description":"Return all distinct collection names for interactions of this company.","operationId":"get_interaction_collections_api_companies__company_uuid__interactions_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-interactions"],"summary":"Delete Interaction Collection","description":"Remove a collection label from all interactions of this company.\n\nThis removes the label across every interaction in the company, so it cannot be\nscoped to \"own\" — only callers with \"all\" scope on edit_interaction may use it.\n\nDoes not delete interactions. Removes the collection row when no associations remain.","operationId":"delete_interaction_collection_api_companies__company_uuid__interactions_collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Collection name","title":"Name"},"description":"Collection name"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/{company_interaction_uuid}/groups":{"get":{"tags":["company-interactions"],"summary":"List Interaction Groups","operationId":"list_interaction_groups_api_companies__company_uuid__interactions__company_interaction_uuid__groups_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionGroupsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company-interactions"],"summary":"Set Interaction Groups","operationId":"set_interaction_groups_api_companies__company_uuid__interactions__company_interaction_uuid__groups_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionGroupsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionGroupsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/{company_interaction_uuid}/visibility":{"patch":{"tags":["company-interactions"],"summary":"Set Interaction Visibility","operationId":"set_interaction_visibility_api_companies__company_uuid__interactions__company_interaction_uuid__visibility_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionVisibilityData"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/groups/summary":{"get":{"tags":["company-interactions"],"summary":"Get Interaction Groups Summary","description":"Return the caller's areas with interaction counts/previews for the My areas tab.","operationId":"get_interaction_groups_summary_api_companies__company_uuid__interactions_groups_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_interactions","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_interactions"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/collections/summary":{"get":{"tags":["company-interactions"],"summary":"Get Interaction Collections Summary","description":"Return grouped collections for the interactions Collections tab.","operationId":"get_interaction_collections_summary_api_companies__company_uuid__interactions_collections_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_interactions","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_interactions"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":3,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionCollectionsSummaryResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/{company_interaction_uuid}":{"get":{"tags":["company-interactions"],"summary":"Get Company Interaction","description":"Get a specific company interaction by UUID","operationId":"get_company_interaction_api_companies__company_uuid__interactions__company_interaction_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteraction"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["company-interactions"],"summary":"Update Company Interaction","description":"Update an existing company interaction with partial data.\n\nOnly the fields that are provided will be updated. All fields are optional.","operationId":"update_company_interaction_api_companies__company_uuid__interactions__company_interaction_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteractionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteraction"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company-interactions"],"summary":"Delete Company Interaction","description":"Delete a company interaction","operationId":"delete_company_interaction_api_companies__company_uuid__interactions__company_interaction_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/{company_interaction_uuid}/collections":{"patch":{"tags":["company-interactions"],"summary":"Update Interaction Collections","description":"Replace all collections for a given interaction.","operationId":"update_interaction_collections_api_companies__company_uuid__interactions__company_interaction_uuid__collections_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"company_interaction_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Interaction Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InteractionCollectionsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteraction"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/bulk/preview":{"post":{"tags":["company-interactions"],"summary":"Preview Bulk Interactions","operationId":"preview_bulk_interactions_api_companies__company_uuid__interactions_bulk_preview_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteractionBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteractionBulkResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/interactions/bulk":{"post":{"tags":["company-interactions"],"summary":"Bulk Interactions","operationId":"bulk_interactions_api_companies__company_uuid__interactions_bulk_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteractionBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyInteractionBulkResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/":{"get":{"tags":["contacts"],"summary":"List Contacts","operationId":"list_contacts_api_contacts__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by name or email.","title":"Search"},"description":"Search by name or email."},{"name":"organization_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUID(s). Can specify multiple times.","title":"Organization Uuid"},"description":"Filter by organization UUID(s). Can specify multiple times."},{"name":"organization_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/TypeEnum"}},{"type":"null"}],"description":"Filter by organization type. Can specify multiple times.","title":"Organization Type"},"description":"Filter by organization type. Can specify multiple times."},{"name":"country_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by linked organization country. Can specify multiple times.","title":"Country Id"},"description":"Filter by linked organization country. Can specify multiple times."},{"name":"missing_photo","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, only contacts without an avatar file.","title":"Missing Photo"},"description":"When true, only contacts without an avatar file."},{"name":"visible","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by is_visible. Omit to include hidden globals.","title":"Visible"},"description":"Filter by is_visible. Omit to include hidden globals."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Contact_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{uuid}":{"get":{"tags":["contacts"],"summary":"Get Contact","operationId":"get_contact_api_contacts__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/create":{"post":{"tags":["contacts"],"summary":"Create Contact","operationId":"create_contact_api_contacts_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contacts/update/{uuid}":{"post":{"tags":["contacts"],"summary":"Update Contact","operationId":"update_contact_api_contacts_update__uuid__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{uuid}/visibility":{"post":{"tags":["contacts"],"summary":"Set Contact Visibility","operationId":"set_contact_visibility_api_contacts__uuid__visibility_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__schemas__contact_schema__ContactVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{uuid}/avatar":{"delete":{"tags":["contacts"],"summary":"Delete Contact Avatar","operationId":"delete_contact_avatar_api_contacts__uuid__avatar_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_chunks/":{"get":{"tags":["content_chunks"],"summary":"List Content Chunks","description":"Retrieve all content chunks. Optionally filter by one or more content_uuids and/or tags_uuids.\n\nYou can pass a single content_uuid or multiple content_uuids as query parameters.\nYou can pass a single tag_uuid or multiple tags_uuids as query parameters.\nExample: /api/content_chunks/?content_uuid=uuid1&content_uuid=uuid2&tags_uuids=tag1&tags_uuids=tag2","operationId":"list_content_chunks_api_content_chunks__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more content UUIDs","title":"Content Uuids"},"description":"Filter by one or more content UUIDs"},{"name":"tags_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by one or more tag UUIDs","title":"Tags Uuids"},"description":"Filter by one or more tag UUIDs"},{"name":"has_error","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by error property in info JSONB field. True returns chunks with error, False returns chunks without error","title":"Has Error"},"description":"Filter by error property in info JSONB field. True returns chunks with error, False returns chunks without error"},{"name":"has_tags","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by tag existence. True returns chunks with at least one tag, False returns chunks without tags","title":"Has Tags"},"description":"Filter by tag existence. True returns chunks with at least one tag, False returns chunks without tags"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContentChunk_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["content_chunks"],"summary":"Create Content Chunk","description":"Create a new content chunk.\n\nCreates a new chunk for a specific content. The chunk can optionally include\nan embedding and be associated with tags.","operationId":"create_content_chunk_api_content_chunks__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunk"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_chunks/{chunk_uuid}":{"get":{"tags":["content_chunks"],"summary":"Get Content Chunk","description":"Retrieve a specific content chunk by UUID.","operationId":"get_content_chunk_api_content_chunks__chunk_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"chunk_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunk"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["content_chunks"],"summary":"Update Content Chunk","description":"Update an existing content chunk.\n\nUpdates the text, embedding, or tags of an existing chunk. Only provided\nfields will be updated. The actor is taken from X-Regdoor-Actor-* headers\nset by content-proxy, not from the JSON body. This API trusts any caller\nthat already holds the main-api/admin machine scope. It does not check\nthat the header matches a person.","operationId":"update_content_chunk_api_content_chunks__chunk_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"chunk_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Uuid"}},{"name":"X-Regdoor-Actor-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Regdoor-Actor-Email"}},{"name":"X-Regdoor-Actor-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Regdoor-Actor-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunk"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["content_chunks"],"summary":"Delete Content Chunk","description":"Delete a content chunk.\n\nDeletes the chunk and all its tag associations.","operationId":"delete_content_chunk_api_content_chunks__chunk_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"chunk_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_chunks/{chunk_uuid}/edits":{"get":{"tags":["content_chunks"],"summary":"List Content Chunk Edits","description":"Newest manual, promote, and consolidator edits for one chunk.","operationId":"list_content_chunk_edits_api_content_chunks__chunk_uuid__edits_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"chunk_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContentChunkEdit"},"title":"Response List Content Chunk Edits Api Content Chunks  Chunk Uuid  Edits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_chunks/{chunk_uuid}/split":{"post":{"tags":["content_chunks"],"summary":"Split Content Chunk","description":"Create sibling or child chunks and keep parent/contains in one transaction.","operationId":"split_content_chunk_api_content_chunks__chunk_uuid__split_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"chunk_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Uuid"}},{"name":"X-Regdoor-Actor-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Regdoor-Actor-Email"}},{"name":"X-Regdoor-Actor-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Regdoor-Actor-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkSplitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkSplitResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_chunk_conflicts/":{"get":{"tags":["content_chunk_conflicts"],"summary":"List Content Chunk Conflicts","description":"Open consolidator conflicts for chunks that have a manual edit.","operationId":"list_content_chunk_conflicts_api_content_chunk_conflicts__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Content Uuid"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"open","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkConflictList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_chunk_conflicts/{conflict_uuid}/resolve":{"post":{"tags":["content_chunk_conflicts"],"summary":"Resolve Content Chunk Conflict","description":"Keep the manual value, or accept the consolidator value onto the chunk.\n\nThe actor headers are trusted only from a caller that already has the\nmain-api/admin machine scope.","operationId":"resolve_content_chunk_conflict_api_content_chunk_conflicts__conflict_uuid__resolve_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"conflict_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conflict Uuid"}},{"name":"X-Regdoor-Actor-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Regdoor-Actor-Email"}},{"name":"X-Regdoor-Actor-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Regdoor-Actor-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkConflictResolve"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentChunkConflict"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_types/":{"get":{"tags":["content_types"],"summary":"List Content Types","description":"List all non-deleted content types (deleted_at IS NULL).\n\nArgs:\n    name: Optional filter by content type name (case insensitive exact match)\n    search: Optional search by content type name (case insensitive partial match)\n    parent_type_uuid: Optional filter to list only subtypes of a main type\n    only_main_types: If true, return only main types\n\nReturns:\n    Paginated list of non-deleted ContentType instances","operationId":"list_content_types_api_content_types__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by content type name (case insensitive)","title":"Name"},"description":"Filter by content type name (case insensitive)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by content type name (case insensitive partial match)","title":"Search"},"description":"Search by content type name (case insensitive partial match)"},{"name":"parent_type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter subtypes by parent content type UUID","title":"Parent Type Uuid"},"description":"Filter subtypes by parent content type UUID"},{"name":"only_main_types","in":"query","required":false,"schema":{"type":"boolean","description":"If true, return only main types (parent_type_uuid IS NULL)","default":false,"title":"Only Main Types"},"description":"If true, return only main types (parent_type_uuid IS NULL)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContentType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["content_types"],"summary":"Create Content Type","description":"Create a new content type.\n\nArgs:\n    payload: ContentTypeCreate payload with name and optional info\n\nReturns:\n    Created ContentType instance","operationId":"create_content_type_api_content_types__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTypeCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentType"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content_types/{content_type_uuid}":{"get":{"tags":["content_types"],"summary":"Get Content Type","description":"Get a specific content type by UUID.\n\nArgs:\n    content_type_uuid: UUID of the content type to retrieve\n\nReturns:\n    ContentType instance","operationId":"get_content_type_api_content_types__content_type_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_type_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Type Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentType"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["content_types"],"summary":"Update Content Type","description":"Update an existing content type.\n\nArgs:\n    content_type_uuid: UUID of the content type to update\n    payload: ContentTypeUpdate payload with optional fields to update\n\nReturns:\n    Updated ContentType instance","operationId":"update_content_type_api_content_types__content_type_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_type_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Type Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTypeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentType"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["content_types"],"summary":"Delete Content Type","description":"Soft delete a content type by UUID.\n\nTypes with subtypes or related contents cannot be deleted until those\nrelationships are handled first.\n\nArgs:\n    content_type_uuid: UUID of the content type to delete","operationId":"delete_content_type_api_content_types__content_type_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_type_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Type Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/curation":{"get":{"tags":["admin_contents"],"summary":"List Content Curation","description":"List global contents for Super Admin curation with optional facet counts.","operationId":"list_content_curation_api_admin_contents_curation_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"view","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ContentCurationView","default":"all"}},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Summary"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid"}},{"name":"organization_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Organization List"}},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"default":[],"title":"Jurisdiction List"}},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Sector Uuid List"}},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published From"}},{"name":"published_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published To"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated From"}},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated To"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field: name, english_title, released_at, created_at, updated_at, type, original_file_name","default":"released_at","title":"Sort By"},"description":"Sort by field: name, english_title, released_at, created_at, updated_at, type, original_file_name"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentCurationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/costs":{"get":{"tags":["admin_contents"],"summary":"List Content Processing Costs Endpoint","description":"Sum embeddings, main_topics, consolidator, promote and public_communications usage from contents.info.","operationId":"list_content_processing_costs_endpoint_api_admin_contents_costs_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Content Uuid"}},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid"}},{"name":"organization_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Organization List"}},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"default":[],"title":"Jurisdiction List"}},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Sector Uuid List"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated From"}},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentProcessingCostsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/public-communications-audit":{"get":{"tags":["admin_contents"],"summary":"List Public Communications Audit Endpoint","description":"Super Admin queue for Public Communications enrichment audit.","operationId":"list_public_communications_audit_endpoint_api_admin_contents_public_communications_audit_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Size"}},{"name":"needs_type_review","in":"query","required":false,"schema":{"type":"boolean","description":"Legacy queue flag; ignored when queue is set","default":true,"title":"Needs Type Review"},"description":"Legacy queue flag; ignored when queue is set"},{"name":"queue","in":"query","required":false,"schema":{"anyOf":[{"enum":["all","in_review","not_run","completed"],"type":"string"},{"type":"null"}],"description":"all | in_review | not_run | completed","title":"Queue"},"description":"all | in_review | not_run | completed"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"organization_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Keep documents linked to this organization","title":"Organization Uuid"},"description":"Keep documents linked to this organization"},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Keep documents linked to this country id","title":"Jurisdiction Id"},"description":"Keep documents linked to this country id"},{"name":"overall_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact match on public_communications.overall_status","title":"Overall Status"},"description":"Exact match on public_communications.overall_status"},{"name":"type_validation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact match on public_communications.type_validation","title":"Type Validation"},"description":"Exact match on public_communications.type_validation"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin_contents"],"summary":"Reclassify Public Communications Type Endpoint","description":"Change the library content type and clear type review. Does not re-run enrichment.","operationId":"reclassify_public_communications_type_endpoint_api_admin_contents_public_communications_audit_patch","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsTypeReclassifyPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsAuditItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/public-communications-capture-queue":{"get":{"tags":["admin_contents"],"summary":"List Public Communications Capture Queue Endpoint","description":"Docs cited by PC enrichment that are not in the library (scrape worklist).","operationId":"list_public_communications_capture_queue_endpoint_api_admin_contents_public_communications_capture_queue_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Size"}},{"name":"capture_status","in":"query","required":false,"schema":{"type":"string","default":"open","title":"Capture Status"}},{"name":"attempt_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attempt Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"organization_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Keep rows whose source document is linked to this organization","title":"Organization Uuid"},"description":"Keep rows whose source document is linked to this organization"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsCaptureResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin_contents"],"summary":"Patch Public Communications Capture Queue Endpoint","description":"Mark a missing cited doc as open / captured / ignored. Does not auto-relink.","operationId":"patch_public_communications_capture_queue_endpoint_api_admin_contents_public_communications_capture_queue_patch","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsCaptureStatusPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsCaptureItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/public-communications-capture-queue/resolve":{"post":{"tags":["admin_contents"],"summary":"Resolve Public Communications Capture Queue Endpoint","description":"Start the resolver task for selected or open cited documents.","operationId":"resolve_public_communications_capture_queue_endpoint_api_admin_contents_public_communications_capture_queue_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsCaptureResolveRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsCaptureResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/contents/{content_uuid}/public-communications-relationships":{"get":{"tags":["admin_contents"],"summary":"Get Public Communications Relationships Endpoint","description":"Read related documents, events, and global contacts for one PC.","operationId":"get_public_communications_relationships_endpoint_api_admin_contents__content_uuid__public_communications_relationships_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsRelationshipsPatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin_contents"],"summary":"Patch Public Communications Relationships Endpoint","description":"Link or unlink related documents, events, and global contacts for one PC.","operationId":"patch_public_communications_relationships_endpoint_api_admin_contents__content_uuid__public_communications_relationships_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsRelationshipsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsRelationshipsPatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/{content_uuid}/sync-status":{"get":{"tags":["admin_contents"],"summary":"Get Content Sync Status","operationId":"get_content_sync_status_api_admin_contents__content_uuid__sync_status_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/contents/{content_uuid}/agent-check":{"post":{"tags":["admin_contents"],"summary":"Run Content Agent Check","operationId":"run_content_agent_check_api_admin_contents__content_uuid__agent_check_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentAgentCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/consolidator-prompts":{"get":{"tags":["admin_consolidator_prompts"],"summary":"List Consolidator Prompts","operationId":"list_consolidator_prompts_api_admin_consolidator_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidatorPromptList"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/consolidator-prompts/{prompt_id}":{"get":{"tags":["admin_consolidator_prompts"],"summary":"Get Consolidator Prompt","operationId":"get_consolidator_prompt_api_admin_consolidator_prompts__prompt_id__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidatorPromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin_consolidator_prompts"],"summary":"Save Consolidator Prompt","operationId":"save_consolidator_prompt_api_admin_consolidator_prompts__prompt_id__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidatorPromptSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidatorPromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/public-communications-prompts":{"get":{"tags":["admin_public_communications_prompts"],"summary":"List Public Communications Prompts","operationId":"list_public_communications_prompts_api_admin_public_communications_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsPromptList"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/public-communications-prompts/{prompt_id}":{"get":{"tags":["admin_public_communications_prompts"],"summary":"Get Public Communications Prompt","operationId":"get_public_communications_prompt_api_admin_public_communications_prompts__prompt_id__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsPromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin_public_communications_prompts"],"summary":"Save Public Communications Prompt","operationId":"save_public_communications_prompt_api_admin_public_communications_prompts__prompt_id__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsPromptSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommunicationsPromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/web-scrape-prompts":{"get":{"tags":["admin_web_scrape_prompts"],"summary":"List Web Scrape Prompts","operationId":"list_web_scrape_prompts_api_admin_web_scrape_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebScrapePromptList"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/web-scrape-prompts/{prompt_id}":{"get":{"tags":["admin_web_scrape_prompts"],"summary":"Get Web Scrape Prompt","operationId":"get_web_scrape_prompt_api_admin_web_scrape_prompts__prompt_id__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebScrapePromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin_web_scrape_prompts"],"summary":"Save Web Scrape Prompt","operationId":"save_web_scrape_prompt_api_admin_web_scrape_prompts__prompt_id__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebScrapePromptSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebScrapePromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/notification-prompts":{"get":{"tags":["admin_notification_prompts"],"summary":"List Notification Prompts","operationId":"list_notification_prompts_api_admin_notification_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPromptList"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/notification-prompts/{prompt_id}":{"get":{"tags":["admin_notification_prompts"],"summary":"Get Notification Prompt","operationId":"get_notification_prompt_api_admin_notification_prompts__prompt_id__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin_notification_prompts"],"summary":"Save Notification Prompt","operationId":"save_notification_prompt_api_admin_notification_prompts__prompt_id__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPromptSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPromptContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/company-contents":{"get":{"tags":["admin_company_contents"],"summary":"List Company Content Endpoint","description":"List company_content rows for Super Admin relevance review.","operationId":"list_company_content_endpoint_api_admin_company_contents_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search document name, type, organization name/short name, or jurisdiction name/code.","title":"Search"},"description":"Search document name, type, organization name/short name, or jurisdiction name/code."},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by content type UUID","title":"Type Uuid"},"description":"Filter by content type UUID"},{"name":"organization_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by organization UUIDs linked to the document","default":[],"title":"Organization List"},"description":"Filter by organization UUIDs linked to the document"},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"description":"Filter by country IDs linked to the document","default":[],"title":"Jurisdiction List"},"description":"Filter by country IDs linked to the document"},{"name":"company_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by company_content.company_uuid","title":"Company Uuid"},"description":"Filter by company_content.company_uuid"},{"name":"content_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by company_content.content_uuid","title":"Content Uuid"},"description":"Filter by company_content.content_uuid"},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}],"description":"Filter by mapped relevance: None, Low, Moderate, High, Critical","title":"Relevance"},"description":"Filter by mapped relevance: None, Low, Moderate, High, Critical"},{"name":"curated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by info.curated. True = curated; false = missing or not true.","title":"Curated"},"description":"Filter by info.curated. True = curated; false = missing or not true."},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.created_at from (inclusive)","title":"Created From"},"description":"Filter by company_content.created_at from (inclusive)"},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.created_at to (inclusive)","title":"Created To"},"description":"Filter by company_content.created_at to (inclusive)"},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.updated_at from (inclusive)","title":"Updated From"},"description":"Filter by company_content.updated_at from (inclusive)"},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.updated_at to (inclusive)","title":"Updated To"},"description":"Filter by company_content.updated_at to (inclusive)"},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by: updated_at, created_at, name, relevance","default":"updated_at","title":"Sort By"},"description":"Sort by: updated_at, created_at, name, relevance"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Sort Order"}},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","description":"Include relevance facet counts for the current common filters","default":false,"title":"Include Summary"},"description":"Include relevance facet counts for the current common filters"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/company-contents/costs":{"get":{"tags":["admin_company_contents"],"summary":"List Company Content Costs Endpoint","description":"Aggregate set-relevance session cost/tokens from ``info.session`` by company.","operationId":"list_company_content_costs_endpoint_api_admin_company_contents_costs_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search document name, type, organization name/short name, or jurisdiction name/code.","title":"Search"},"description":"Search document name, type, organization name/short name, or jurisdiction name/code."},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by content type UUID","title":"Type Uuid"},"description":"Filter by content type UUID"},{"name":"organization_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by organization UUIDs linked to the document","default":[],"title":"Organization List"},"description":"Filter by organization UUIDs linked to the document"},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"description":"Filter by country IDs linked to the document","default":[],"title":"Jurisdiction List"},"description":"Filter by country IDs linked to the document"},{"name":"company_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by company_content.company_uuid","title":"Company Uuid"},"description":"Filter by company_content.company_uuid"},{"name":"content_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by company_content.content_uuid","title":"Content Uuid"},"description":"Filter by company_content.content_uuid"},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}],"description":"Filter by mapped relevance: None, Low, Moderate, High, Critical","title":"Relevance"},"description":"Filter by mapped relevance: None, Low, Moderate, High, Critical"},{"name":"curated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by info.curated. True = curated; false = missing or not true.","title":"Curated"},"description":"Filter by info.curated. True = curated; false = missing or not true."},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.created_at from (inclusive)","title":"Created From"},"description":"Filter by company_content.created_at from (inclusive)"},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.created_at to (inclusive)","title":"Created To"},"description":"Filter by company_content.created_at to (inclusive)"},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.updated_at from (inclusive)","title":"Updated From"},"description":"Filter by company_content.updated_at from (inclusive)"},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by company_content.updated_at to (inclusive)","title":"Updated To"},"description":"Filter by company_content.updated_at to (inclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentCostsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/company-contents/bulk":{"patch":{"tags":["admin_company_contents"],"summary":"Bulk Update Company Content Endpoint","description":"Bulk-update relevance and/or curated on company_content rows.","operationId":"bulk_update_company_content_endpoint_api_admin_company_contents_bulk_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentBulkUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentBulkUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/company-contents/set-relevance":{"post":{"tags":["admin_company_contents"],"summary":"Set Relevance Endpoint","description":"Trigger the set-relevance ECS API in batches of at most 20 documents.","operationId":"set_relevance_endpoint_api_admin_company_contents_set_relevance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentSetRelevanceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentSetRelevanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/company-contents/{company_uuid}/{content_uuid}":{"get":{"tags":["admin_company_contents"],"summary":"Get Company Content Endpoint","operationId":"get_company_content_endpoint_api_admin_company_contents__company_uuid___content_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin_company_contents"],"summary":"Update Company Content Endpoint","operationId":"update_company_content_endpoint_api_admin_company_contents__company_uuid___content_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/costs/daily":{"get":{"tags":["admin_costs"],"summary":"List Daily Costs Endpoint","operationId":"list_daily_costs_endpoint_api_admin_costs_daily_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"created_from","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Inclusive start","title":"Created From"},"description":"Inclusive start"},{"name":"created_to","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Inclusive end","title":"Created To"},"description":"Inclusive end"},{"name":"company_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Limits Nicky, relevância and JEV. Main topics stay global.","default":[],"title":"Company Uuid"},"description":"Limits Nicky, relevância and JEV. Main topics stay global."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyCostsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations/costs":{"get":{"tags":["admin_conversations"],"summary":"List Conversation Costs Endpoint","operationId":"list_conversation_costs_endpoint_api_admin_conversations_costs_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by conversations.company_uuid","title":"Company Uuid"},"description":"Filter by conversations.company_uuid"},{"name":"agent_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by agent_type (e.g. agent/regdoor)","title":"Agent Type"},"description":"Filter by agent_type (e.g. agent/regdoor)"},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by created_at from (inclusive)","title":"Created From"},"description":"Filter by created_at from (inclusive)"},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by created_at to (inclusive)","title":"Created To"},"description":"Filter by created_at to (inclusive)"},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include soft-deleted conversations (default true for cost reporting)","default":true,"title":"Include Deleted"},"description":"Include soft-deleted conversations (default true for cost reporting)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCostsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/relevance-system-prompt":{"get":{"tags":["admin_relevance_prompts"],"summary":"Get Relevance System Prompt Endpoint","description":"Return `relevance_agent/system_prompt.md` from the media bucket.","operationId":"get_relevance_system_prompt_endpoint_api_admin_relevance_system_prompt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelevanceSystemPrompt"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["admin_relevance_prompts"],"summary":"Post Relevance System Prompt Endpoint","description":"Overwrite `relevance_agent/system_prompt.md` in the media bucket.","operationId":"post_relevance_system_prompt_endpoint_api_admin_relevance_system_prompt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelevancePromptUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelevanceSystemPrompt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/admin/company-relevance-prompt/{company_uuid}":{"get":{"tags":["admin_relevance_prompts"],"summary":"Get Company Relevance Prompt Endpoint","description":"Return `{company_uuid}/relevance-prompt/relevance_prompt.md` from S3.","operationId":"get_company_relevance_prompt_endpoint_api_admin_company_relevance_prompt__company_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRelevancePrompt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin_relevance_prompts"],"summary":"Post Company Relevance Prompt Endpoint","description":"Overwrite `{company_uuid}/relevance-prompt/relevance_prompt.md` in S3.","operationId":"post_company_relevance_prompt_endpoint_api_admin_company_relevance_prompt__company_uuid__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelevancePromptUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRelevancePrompt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/":{"get":{"tags":["events"],"summary":"List Events","description":"List all events.\n\nArgs:\n    type: Optional filter by event type (case insensitive exact match)\n    organization_uuid: Optional filter by organization UUID\n    search: Optional search by event name (case insensitive partial match)\n    selected: Optional filter to events selected for the company via events_companies\n    company_uuid: Company context for selected / collection filters and response\n    collection_list: Optional filter by collection name(s)\n    country_id: Optional filter by organization jurisdiction (country_id)\n    contact_list: Optional filter by people (contact UUIDs) in the bill snapshot\n    sort_by: Optional sort field\n    sort_order: Optional sort order\n\nReturns:\n    Paginated list of Event instances","operationId":"list_events_api_events__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by event type (case insensitive)","title":"Type"},"description":"Filter by event type (case insensitive)"},{"name":"organization_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by organization UUID","title":"Organization Uuid"},"description":"Filter by organization UUID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by event name (case insensitive partial match)","title":"Search"},"description":"Search by event name (case insensitive partial match)"},{"name":"selected","in":"query","required":false,"schema":{"type":"boolean","description":"When true with company_uuid, only events selected for the company","default":false,"title":"Selected"},"description":"When true with company_uuid, only events selected for the company"},{"name":"company_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Company context for selected filter and collections","title":"Company Uuid"},"description":"Company context for selected filter and collections"},{"name":"collection_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Filter by collection name(s). Can specify multiple times.","default":[],"title":"Collection List"},"description":"Filter by collection name(s). Can specify multiple times."},{"name":"group_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by area (group) via collections owned by these groups.","default":[],"title":"Group Uuid"},"description":"Filter by area (group) via collections owned by these groups."},{"name":"country_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by organization jurisdiction (country_id). Can specify multiple times.","title":"Country Id"},"description":"Filter by organization jurisdiction (country_id). Can specify multiple times."},{"name":"contact_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by people (contact UUIDs) in the bill snapshot (sponsor, co-sponsor, rapporteur, author, members). Can specify multiple times.","title":"Contact List"},"description":"Filter by people (contact UUIDs) in the bill snapshot (sponsor, co-sponsor, rapporteur, author, members). Can specify multiple times."},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"enum":["released_at","created_at","name","type"],"type":"string"},{"type":"null"}],"description":"Sort by field: released_at, created_at, name, type","title":"Sort By"},"description":"Sort by field: released_at, created_at, name, type"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Event_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["events"],"summary":"Create Event","description":"Create a new event.\n\nArgs:\n    payload: EventCreate payload with event data\n\nReturns:\n    Created Event instance","operationId":"create_event_api_events__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/collections":{"get":{"tags":["events"],"summary":"Get Event Collections","description":"Return all distinct collection names for events of this company.","operationId":"get_event_collections_api_events_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Delete Event Collection","description":"Remove a collection label from all events of this company.\n\nDoes not delete events. Removes the collection row when no associations remain.","operationId":"delete_event_collection_api_events_collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Company UUID","title":"Company Uuid"},"description":"Company UUID"},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Collection name","title":"Name"},"description":"Collection name"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/collections/summary":{"get":{"tags":["events"],"summary":"Get Event Collections Summary","description":"Return grouped collections for the events Collections tab.","operationId":"get_event_collections_summary_api_events_collections_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_events","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_events"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":3,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCollectionsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_uuid}/selected-companies":{"get":{"tags":["events"],"summary":"List Event Selected Companies","description":"List company UUIDs that selected this event (events_companies).","operationId":"list_event_selected_companies_api_events__event_uuid__selected_companies_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSelectedCompaniesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_uuid}":{"get":{"tags":["events"],"summary":"Get Event","description":"Get a specific event by UUID.\n\nArgs:\n    event_uuid: UUID of the event to retrieve\n    company_uuid: Optional company context to attach collections and is_selected\n\nReturns:\n    Event instance","operationId":"get_event_api_events__event_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"company_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Company context for collections and selection","title":"Company Uuid"},"description":"Company context for collections and selection"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["events"],"summary":"Update Event","description":"Update an existing event.\n\nOnly the fields that are provided will be updated. All fields are optional.\n\nArgs:\n    event_uuid: UUID of the event to update\n    payload: EventUpdate payload with optional fields to update\n\nReturns:\n    Updated Event instance","operationId":"update_event_api_events__event_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Delete Event","description":"Delete an event and all its related event_contents records.\n\nArgs:\n    event_uuid: UUID of the event to delete","operationId":"delete_event_api_events__event_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_uuid}/collections":{"patch":{"tags":["events"],"summary":"Update Event Collections","description":"Replace all collections for a given event.","operationId":"update_event_collections_api_events__event_uuid__collections_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Company UUID","title":"Company Uuid"},"description":"Company UUID"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCollectionsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_uuid}/contents":{"post":{"tags":["events"],"summary":"Add Contents To Event","description":"Add content relationships to an existing event.\n\nThis endpoint adds new event-content relationships without removing existing ones.\nIf a content is already associated with the event, an error will be returned.\n\nArgs:\n    event_uuid: UUID of the event to add contents to\n    payload: List of EventContentAssociation objects with content_uuid and optional info\n\nReturns:\n    List of created EventContent instances","operationId":"add_contents_to_event_api_events__event_uuid__contents_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventContentAssociation"},"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventContent"},"title":"Response Add Contents To Event Api Events  Event Uuid  Contents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["events"],"summary":"List Event Contents","description":"List all contents associated with an event.\n\nArgs:\n    event_uuid: UUID of the event\n\nReturns:\n    List of EventContent instances","operationId":"list_event_contents_api_events__event_uuid__contents_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventContent"},"title":"Response List Event Contents Api Events  Event Uuid  Contents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_uuid}/contents/{content_uuid}":{"get":{"tags":["events"],"summary":"Get Event Content","description":"Get a specific event-content relationship.\n\nArgs:\n    event_uuid: UUID of the event\n    content_uuid: UUID of the content\n\nReturns:\n    EventContent instance with event_uuid, content_uuid, and info","operationId":"get_event_content_api_events__event_uuid__contents__content_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["events"],"summary":"Update Event Content","description":"Update the info field of an event-content relationship.\n\nArgs:\n    event_uuid: UUID of the event\n    content_uuid: UUID of the content\n    payload: EventContentUpdate payload with optional info field\n\nReturns:\n    Updated EventContent instance","operationId":"update_event_content_api_events__event_uuid__contents__content_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventContentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Delete Event Content","description":"Remove a content-event relationship.\n\nArgs:\n    event_uuid: UUID of the event\n    content_uuid: UUID of the content","operationId":"delete_event_content_api_events__event_uuid__contents__content_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"event_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/":{"get":{"tags":["organizations"],"summary":"List Organizations","operationId":"list_organizations_api_organizations__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TypeEnum"},{"type":"null"}],"description":"Filter by organization type","title":"Type"},"description":"Filter by organization type"},{"name":"company_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by company UUID","title":"Company Uuid"},"description":"Filter by company UUID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search organizations by name","title":"Search"},"description":"Search organizations by name"},{"name":"country_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by country ID","title":"Country Id"},"description":"Filter by country ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_OrganizationList_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/list/{company_uuid}":{"get":{"tags":["organizations"],"summary":"List Organizations By Company Countries","operationId":"list_organizations_by_company_countries_api_organizations_list__company_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Organization_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{uuid}":{"get":{"tags":["organizations"],"summary":"Get Organization","operationId":"get_organization_api_organizations__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/create":{"post":{"tags":["organizations"],"summary":"Create Organization","operationId":"create_organization_api_organizations_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/organizations/update/{uuid}":{"post":{"tags":["organizations"],"summary":"Update Organization","operationId":"update_organization_api_organizations_update__uuid__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{uuid}/contacts":{"get":{"tags":["organizations"],"summary":"List Organization Contacts","operationId":"list_organization_contacts_api_organizations__uuid__contacts_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search contacts by name","title":"Search"},"description":"Search contacts by name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Contact_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organizations"],"summary":"Add Organization Contact","operationId":"add_organization_contact_api_organizations__uuid__contacts_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationContactUpdate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Remove Organization Contact","operationId":"remove_organization_contact_api_organizations__uuid__contacts_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/policies/documents":{"get":{"tags":["policies"],"summary":"List Policy Documents","description":"List all policy documents. Content admin only (M2M with main-api/admin).","operationId":"list_policy_documents_api_policies_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PolicyDocumentResponse"},"type":"array","title":"Response List Policy Documents Api Policies Documents Get"}}}},"404":{"description":"Not found"}},"security":[{"BearerAuth":[]}]},"post":{"tags":["policies"],"summary":"Create Policy Document","description":"Create a new policy document. Admin only. Slug must be unique.","operationId":"create_policy_document_api_policies_documents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyDocumentCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyDocumentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/policies/documents/{document_uuid}":{"patch":{"tags":["policies"],"summary":"Patch Policy Document","description":"Partially update a policy document. Admin only. At least one of title or content must be provided.","operationId":"patch_policy_document_api_policies_documents__document_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"document_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyDocumentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyDocumentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/policies/public/documents":{"get":{"tags":["policies"],"summary":"List Public Policy Documents","description":"List policy documents for unauthenticated clients (login checkbox links).","operationId":"list_public_policy_documents_api_policies_public_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PolicyDocumentPublicSummary"},"type":"array","title":"Response List Public Policy Documents Api Policies Public Documents Get"}}}},"404":{"description":"Not found"}},"security":[{"BearerAuth":[]}]}},"/api/policies/public/documents/{slug}":{"get":{"tags":["policies"],"summary":"Get Public Policy Document","description":"Get a policy document by slug for unauthenticated clients.","operationId":"get_public_policy_document_api_policies_public_documents__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/PolicyDocumentPublicResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/policies/consent/check":{"get":{"tags":["policies"],"summary":"Check Consent","description":"Check whether the current user has accepted the latest version\nof all policy documents.","operationId":"check_consent_api_policies_consent_check_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyConsentCheck"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/policies/consent":{"post":{"tags":["policies"],"summary":"Record Consent","description":"Record the current user's consent for a specific policy document.\nSets the accepted version to the document's current version.","operationId":"record_consent_api_policies_consent_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyConsentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyConsentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/status":{"get":{"tags":["onboarding"],"summary":"Get Onboarding Status","description":"Return company setup signal and per-tour progress for the current user.","operationId":"get_onboarding_status_api_onboarding_status_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Active company UUID","title":"Company Uuid"},"description":"Active company UUID"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatusResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/tours/{tour_id}/complete":{"post":{"tags":["onboarding"],"summary":"Complete Tour","operationId":"complete_tour_api_onboarding_tours__tour_id__complete_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"tour_id","in":"path","required":true,"schema":{"type":"string","title":"Tour Id"}},{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Active company UUID","title":"Company Uuid"},"description":"Active company UUID"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourActionResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/tours/{tour_id}/skip":{"post":{"tags":["onboarding"],"summary":"Skip Tour","operationId":"skip_tour_api_onboarding_tours__tour_id__skip_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"tour_id","in":"path","required":true,"schema":{"type":"string","title":"Tour Id"}},{"name":"company_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Active company UUID","title":"Company Uuid"},"description":"Active company UUID"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TourActionResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me/mfa-method":{"put":{"tags":["users"],"summary":"Set My Mfa Method","operationId":"set_my_mfa_method_api_users_me_mfa_method_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-Cognito-Access-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cognito-Access-Token"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMfaMethodUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMfaMethodUpdate"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Clear My Mfa Method","description":"Disable the caller's enrolled MFA (password users only).","operationId":"clear_my_mfa_method_api_users_me_mfa_method_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"get":{"tags":["users"],"summary":"Get Current User Info","operationId":"get_current_user_info_api_users_me_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMe"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{uuid}":{"get":{"tags":["users"],"summary":"Get User","operationId":"get_user_api_users__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_users__uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBase"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{uuid}/resend-invitation":{"post":{"tags":["users"],"summary":"Resend Invitation","description":"Resend invitation to a user by email","operationId":"resend_invitation_api_users__uuid__resend_invitation_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/avatar":{"post":{"tags":["users"],"summary":"Upload Avatar","description":"Upload a user avatar image to the temporary upload folder\nReturns the filename that can be used later in user creation/update","operationId":"upload_avatar_api_users_avatar_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_api_users_avatar_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Upload Avatar Api Users Avatar Post"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{uuid}/avatar":{"delete":{"tags":["users"],"summary":"Delete Avatar","description":"Delete a user's avatar image","operationId":"delete_avatar_api_users__uuid__avatar_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMTM"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/countries/":{"get":{"tags":["countries"],"summary":"List Countries","description":"List global countries for admin pickers/filters (lite payload).","operationId":"list_countries_api_countries__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by name or code.","title":"Search"},"description":"Search by name or code."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CountryBase_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/countries/{country_id}":{"get":{"tags":["countries"],"summary":"Get Country","operationId":"get_country_api_countries__country_id__get","parameters":[{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__schemas__country_schema__Country"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/countries/{country_id}/report":{"post":{"tags":["countries"],"summary":"Upload Report","description":"Upload a report for a country","operationId":"upload_report_api_countries__country_id__report_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_report_api_countries__country_id__report_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryBase"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["countries"],"summary":"Delete Report","description":"Delete a country's report","operationId":"delete_report_api_countries__country_id__report_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"country_id","in":"path","required":true,"schema":{"type":"integer","title":"Country Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryBase"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/upload":{"post":{"tags":["files"],"summary":"Upload File","description":"Upload a file to the general upload folder.\nReturns information about the uploaded file including the storage filename, original filename, and content type.\n\nArgs:\n    file: The file to upload\n    use_original_name: If True, uses the original filename, if False generates a UUID","operationId":"upload_file_api_files_upload_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"use_original_name","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Use Original Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_files_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents/upload":{"post":{"tags":["contents","contents"],"summary":"Upload Global File","description":"Upload a file to the global content library (not associated with any company).\nReturns information about the uploaded file including the storage uuid.","operationId":"upload_global_file_api_contents_upload_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_global_file_api_contents_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents":{"post":{"tags":["contents"],"summary":"Upload Company File","description":"Upload a file to the company content library.\nReturns information about the uploaded file including the storage uuid.\n\nArgs:\n    file: The file to upload\n    type: The type of the content\n    name: The name of the content\n    released_at: The release date of the content\n    info: Additional metadata for the content, must be a valid JSON string","operationId":"upload_company_file_api_companies__company_uuid__contents_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_company_file_api_companies__company_uuid__contents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contents"],"summary":"List Company Contents","description":"Retrieve all content for a specific company.","operationId":"list_company_contents_api_companies__company_uuid__contents_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code.","title":"Search"},"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code."},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by user UUID","title":"User Uuid"},"description":"Filter by user UUID"},{"name":"user_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by multiple user UUIDs (content created by any of these users)","default":[],"title":"User Uuid List"},"description":"Filter by multiple user UUIDs (content created by any of these users)"},{"name":"content_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by content type","title":"Content Type"},"description":"Filter by content type"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by content type name (from content_types table, matches name field)","title":"Type"},"description":"Filter by content type name (from content_types table, matches name field)"},{"name":"type_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by multiple content type names (OR logic, matches name field in content_types table)","default":[],"title":"Type List"},"description":"Filter by multiple content type names (OR logic, matches name field in content_types table)"},{"name":"content_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by content list","default":[],"title":"Content List"},"description":"Filter by content list"},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by content type UUID (from content_types table)","title":"Type Uuid"},"description":"Filter by content type UUID (from content_types table)"},{"name":"organization_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUIDs (OR): content linked to any listed organization","default":[],"title":"Organization List"},"description":"Filter by organization UUIDs (OR): content linked to any listed organization"},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by jurisdiction IDs","default":[],"title":"Jurisdiction List"},"description":"Filter by jurisdiction IDs"},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by sector UUIDs (OR): content linked to any listed sector","default":[],"title":"Sector Uuid List"},"description":"Filter by sector UUIDs (OR): content linked to any listed sector"},{"name":"subsector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by subsector UUIDs (OR): content linked to any listed sector that has a parent sector","default":[],"title":"Subsector Uuid List"},"description":"Filter by subsector UUIDs (OR): content linked to any listed sector that has a parent sector"},{"name":"contact_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by contact UUIDs (OR): global content directly linked to any listed contact for this company","default":[],"title":"Contact List"},"description":"Filter by contact UUIDs (OR): global content directly linked to any listed contact for this company"},{"name":"relevances","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"}},{"type":"null"}],"description":"Filter by company_content.relevance values (OR). Empty list means no relevance filter. Values: None, Low, Moderate, High, Critical.","default":[],"title":"Relevances"},"description":"Filter by company_content.relevance values (OR). Empty list means no relevance filter. Values: None, Low, Moderate, High, Critical."},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field: name, english_title, released_at, created_at, updated_at, type, original_file_name, relevance, arrival (latest tramitação of the linked events, else created_at)","title":"Sort By"},"description":"Sort by field: name, english_title, released_at, created_at, updated_at, type, original_file_name, relevance, arrival (latest tramitação of the linked events, else created_at)"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"only_company","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only return contents for the company","default":false,"title":"Only Company"},"description":"Only return contents for the company"},{"name":"only_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only return global (public) contents","default":false,"title":"Only Public"},"description":"Only return global (public) contents"},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-01-01T00:00:00Z, 2024-01-01T00:00:00+00:00, or 2024-01-01T00:00:00","title":"Published From"},"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-01-01T00:00:00Z, 2024-01-01T00:00:00+00:00, or 2024-01-01T00:00:00"},{"name":"published_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-06-30T23:59:59Z, 2024-06-30T23:59:59+00:00, or 2024-06-30T23:59:59","title":"Published To"},"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-06-30T23:59:59Z, 2024-06-30T23:59:59+00:00, or 2024-06-30T23:59:59"},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content created_at from (inclusive). ISO 8601, naive UTC in DB.","title":"Created From"},"description":"Filter by content created_at from (inclusive). ISO 8601, naive UTC in DB."},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content created_at to (inclusive). ISO 8601, naive UTC in DB.","title":"Created To"},"description":"Filter by content created_at to (inclusive). ISO 8601, naive UTC in DB."},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content updated_at from (inclusive). ISO 8601, naive UTC in DB.","title":"Updated From"},"description":"Filter by content updated_at from (inclusive). ISO 8601, naive UTC in DB."},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content updated_at to (inclusive). ISO 8601, naive UTC in DB.","title":"Updated To"},"description":"Filter by content updated_at to (inclusive). ISO 8601, naive UTC in DB."},{"name":"list_with_tags","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, includes chunk tags in the response","default":false,"title":"List With Tags"},"description":"If true, includes chunk tags in the response"},{"name":"list_with_subjects","in":"query","required":false,"schema":{"type":"boolean","description":"Deprecated and ignored: subjects are no longer computed for library listings (removed the chunks/tags/subjects join for performance). subjects_list is always null in list responses.","deprecated":true,"default":false,"title":"List With Subjects"},"description":"Deprecated and ignored: subjects are no longer computed for library listings (removed the chunks/tags/subjects join for performance). subjects_list is always null in list responses.","deprecated":true},{"name":"list_with_types","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, includes content type information in the response","default":true,"title":"List With Types"},"description":"If true, includes content type information in the response"},{"name":"list_with_sectors","in":"query","required":false,"schema":{"type":"boolean","description":"If true, includes sectors in the response (default: omit for lighter payloads)","default":false,"title":"List With Sectors"},"description":"If true, includes sectors in the response (default: omit for lighter payloads)"},{"name":"collection_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by collections (OR logic)","default":[],"title":"Collection List"},"description":"Filter by collections (OR logic)"},{"name":"collections_unassigned_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, return only company private documents with no collections (NULL or empty JSON array). Ignores collection_list.","default":false,"title":"Collections Unassigned Only"},"description":"When true, return only company private documents with no collections (NULL or empty JSON array). Ignores collection_list."},{"name":"list_selected_contents","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, return only documents linked (organizations_contents) to at least one organization that is selected for this company (row in organizations_companies). Applies on top of the usual scope: global contents plus this company's private contents (unless only_company is true).","default":false,"title":"List Selected Contents"},"description":"When true, return only documents linked (organizations_contents) to at least one organization that is selected for this company (row in organizations_companies). Applies on top of the usual scope: global contents plus this company's private contents (unless only_company is true)."},{"name":"group_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by area (group) via collections owned by these groups (My areas tab).","default":[],"title":"Group Uuid"},"description":"Filter by area (group) via collections owned by these groups (My areas tab)."},{"name":"group_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by responsible area (group) UUIDs (OR): content whose organizations have any listed area in this company.","default":[],"title":"Group Uuid List"},"description":"Filter by responsible area (group) UUIDs (OR): content whose organizations have any listed area in this company."},{"name":"mine_groups","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, adds the authenticated user's areas (leader or member) to group_uuid_list. Ignored when the user has no area.","default":false,"title":"Mine Groups"},"description":"When true, adds the authenticated user's areas (leader or member) to group_uuid_list. Ignored when the user has no area."},{"name":"unassigned_group","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, returns content whose organizations have no area in this company. Combined with group_uuid_list/mine_groups returns the union.","default":false,"title":"Unassigned Group"},"description":"When true, returns content whose organizations have no area in this company. Combined with group_uuid_list/mine_groups returns the union."},{"name":"evaluation_status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","in_treatment","treated","not_applicable"],"type":"string"},{"type":"null"}],"description":"Filter by evaluation status in this company: `pending` (no task yet), `in_treatment` (open non-discarded work), `treated` (only terminal non-discarded tasks) or `not_applicable` (evaluated and discarded).","title":"Evaluation Status"},"description":"Filter by evaluation status in this company: `pending` (no task yet), `in_treatment` (open non-discarded work), `treated` (only terminal non-discarded tasks) or `not_applicable` (evaluated and discarded)."},{"name":"with_events","in":"query","required":false,"schema":{"type":"boolean","description":"When true, each item lists the events it belongs to (`event_refs`).","default":false,"title":"With Events"},"description":"When true, each item lists the events it belongs to (`event_refs`)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContentWithRelationsResponse_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/collections":{"get":{"tags":["contents"],"summary":"Get Company Collections","description":"Returns all collection names for this company (shared across public and private library views).","operationId":"get_company_collections_api_companies__company_uuid__contents_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contents"],"summary":"Delete Company Collection","description":"Remove a collection label from documents in the given scope for this company.\n\nDoes not delete documents. Removes the collection row when no associations remain.\n\nThis removes the label company-wide within the chosen library scope, so it\ncannot be scoped to \"own\" — only callers with \"all\" scope on\nedit_private_content may use it.","operationId":"delete_company_collection_api_companies__company_uuid__contents_collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Collection name","title":"Name"},"description":"Collection name"},{"name":"scope","in":"query","required":true,"schema":{"enum":["private","public"],"type":"string","description":"Library scope: private (company docs) or public (global docs)","title":"Scope"},"description":"Library scope: private (company docs) or public (global docs)"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/groups/summary":{"get":{"tags":["contents"],"summary":"Get Company Contents Groups Summary","description":"Return the caller's areas with document counts/previews for the My areas tab.","operationId":"get_company_contents_groups_summary_api_companies__company_uuid__contents_groups_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_documents","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_documents"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Preview Limit"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/collections/summary":{"get":{"tags":["contents"],"summary":"Get Company Collections Summary","description":"Grouped collections for the library Collections tab (lightweight, single round-trip).","operationId":"get_company_collections_summary_api_companies__company_uuid__contents_collections_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"only_company","in":"query","required":false,"schema":{"type":"boolean","description":"When true, summary covers private company documents only","default":false,"title":"Only Company"},"description":"When true, summary covers private company documents only"},{"name":"only_public","in":"query","required":false,"schema":{"type":"boolean","description":"When true, summary covers public (global) documents only","default":false,"title":"Only Public"},"description":"When true, summary covers public (global) documents only"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"Group sort: recently_updated, name_az, or most_documents","default":"recently_updated","title":"Sort"},"description":"Group sort: recently_updated, name_az, or most_documents"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":3,"title":"Preview Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Uuid"}},{"name":"user_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"User Uuid List"}},{"name":"content_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Content List"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"type_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Type List"}},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid"}},{"name":"organization_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Organization List"}},{"name":"contact_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Contact List"}},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Jurisdiction List"}},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Sector Uuid List"}},{"name":"subsector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Subsector Uuid List"}},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published From"}},{"name":"published_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published To"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated From"}},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated To"}},{"name":"collection_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Collection List"}},{"name":"collections_unassigned_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Collections Unassigned Only"}},{"name":"list_selected_contents","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"List Selected Contents"}},{"name":"group_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by responsible area (group) UUIDs (OR): content whose organizations have any listed area in this company.","default":[],"title":"Group Uuid List"},"description":"Filter by responsible area (group) UUIDs (OR): content whose organizations have any listed area in this company."},{"name":"mine_groups","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, adds the authenticated user's areas (leader or member) to group_uuid_list. Ignored when the user has no area.","default":false,"title":"Mine Groups"},"description":"When true, adds the authenticated user's areas (leader or member) to group_uuid_list. Ignored when the user has no area."},{"name":"unassigned_group","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, returns content whose organizations have no area in this company. Combined with group_uuid_list/mine_groups returns the union.","default":false,"title":"Unassigned Group"},"description":"When true, returns content whose organizations have no area in this company. Combined with group_uuid_list/mine_groups returns the union."},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionsSummaryResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/collections/rename":{"post":{"tags":["contents"],"summary":"Rename Company Collection","description":"Rename a collection label on all company private documents that reference it.\n\nThis renames the label across every document in the company, so it cannot be\nscoped to \"own\" — only callers with \"all\" scope on edit_private_content may\nuse it.","operationId":"rename_company_collection_api_companies__company_uuid__contents_collections_rename_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__views__media__schemas__RenameCollectionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameCollectionResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/bulk/preview":{"post":{"tags":["contents"],"summary":"Preview Bulk Contents","operationId":"preview_bulk_contents_api_companies__company_uuid__contents_bulk_preview_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentBulkResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/bulk":{"post":{"tags":["contents"],"summary":"Bulk Contents","operationId":"bulk_contents_api_companies__company_uuid__contents_bulk_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentBulkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyContentBulkResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{uuid}":{"patch":{"tags":["contents"],"summary":"Update Company Content","description":"Update company content by UUID.","operationId":"update_company_content_api_companies__company_uuid__contents__uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_update_company_content_api_companies__company_uuid__contents__uuid__patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contents"],"summary":"Get Company Content","description":"Retrieve content details by UUID, including the file URL.","operationId":"get_company_content_api_companies__company_uuid__contents__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentWithRelationsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contents"],"summary":"Delete Company Content","description":"Delete company content by UUID.","operationId":"delete_company_content_api_companies__company_uuid__contents__uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents/{uuid}":{"patch":{"tags":["contents"],"summary":"Update Global Content","description":"Update global content by UUID.","operationId":"update_global_content_api_contents__uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_update_global_content_api_contents__uuid__patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contents"],"summary":"Get Global Content","description":"Retrieve global content details by UUID, including the file URL.","operationId":"get_global_content_api_contents__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentWithRelationsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contents"],"summary":"Delete Global Content","description":"Delete global content by UUID.","operationId":"delete_global_content_api_contents__uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents/{uuid}/add-sectors":{"post":{"tags":["contents"],"summary":"Add Sectors To Content","description":"Add sector relationships to an existing content.\n\nThis endpoint adds new content-sector relationships without removing existing ones.\nIf a sector is already associated with the content, an error will be returned.\n\nArgs:\n    uuid: UUID of the content to add sectors to\n    payload: List of ContentSectorAssociation objects with sector_uuid, impact_level, and optional info\n\nReturns:\n    Updated Content instance","operationId":"add_sectors_to_content_api_contents__uuid__add_sectors_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContentSectorAssociation"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentWithRelationsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/inbox/stats":{"get":{"tags":["contents"],"summary":"Get Company Inbox Stats","description":"Counters for the Inbox dashboard: public documents of the organizations the\ncompany selected, by evaluation status (same scope as the Inbox list).","operationId":"get_company_inbox_stats_api_companies__company_uuid__inbox_stats_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"since","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start of the window counted as new (e.g. start of today)","title":"Since"},"description":"Start of the window counted as new (e.g. start of today)"},{"name":"group_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Only documents whose organizations have any of these areas","default":[],"title":"Group Uuid List"},"description":"Only documents whose organizations have any of these areas"},{"name":"mine_groups","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Also include the caller's own areas (leader or member)","default":false,"title":"Mine Groups"},"description":"Also include the caller's own areas (leader or member)"},{"name":"unassigned_group","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Also include documents with no area in this company","default":false,"title":"Unassigned Group"},"description":"Also include documents with no area in this company"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code.","title":"Search"},"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code."},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxStatsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents":{"get":{"tags":["contents"],"summary":"List Global Contents","description":"Retrieve all global content (not associated with any company).","operationId":"list_global_contents_api_contents_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code.","title":"Search"},"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code."},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by user UUID","title":"User Uuid"},"description":"Filter by user UUID"},{"name":"user_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by multiple user UUIDs (content created by any of these users)","default":[],"title":"User Uuid List"},"description":"Filter by multiple user UUIDs (content created by any of these users)"},{"name":"content_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by content type","title":"Content Type"},"description":"Filter by content type"},{"name":"content_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by content list","default":[],"title":"Content List"},"description":"Filter by content list"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by content type name (from content_types table, matches name field)","title":"Type"},"description":"Filter by content type name (from content_types table, matches name field)"},{"name":"type_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by multiple content type names (OR logic, matches name field in content_types table)","title":"Type List"},"description":"Filter by multiple content type names (OR logic, matches name field in content_types table)"},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by content type UUID (from content_types table)","title":"Type Uuid"},"description":"Filter by content type UUID (from content_types table)"},{"name":"organization_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUIDs (OR): content linked to any listed organization","default":[],"title":"Organization List"},"description":"Filter by organization UUIDs (OR): content linked to any listed organization"},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by jurisdiction IDs","default":[],"title":"Jurisdiction List"},"description":"Filter by jurisdiction IDs"},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by sector UUIDs (OR): content linked to any listed sector","default":[],"title":"Sector Uuid List"},"description":"Filter by sector UUIDs (OR): content linked to any listed sector"},{"name":"subsector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by subsector UUIDs (OR): content linked to any listed sector that has a parent sector","default":[],"title":"Subsector Uuid List"},"description":"Filter by subsector UUIDs (OR): content linked to any listed sector that has a parent sector"},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field: name, english_title, released_at, created_at, updated_at, type, original_file_name","title":"Sort By"},"description":"Sort by field: name, english_title, released_at, created_at, updated_at, type, original_file_name"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc)","title":"Sort Order"},"description":"Sort order (asc or desc)"},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-01-01T00:00:00Z, 2024-01-01T00:00:00+00:00, or 2024-01-01T00:00:00","title":"Published From"},"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-01-01T00:00:00Z, 2024-01-01T00:00:00+00:00, or 2024-01-01T00:00:00"},{"name":"published_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-06-30T23:59:59Z, 2024-06-30T23:59:59+00:00, or 2024-06-30T23:59:59","title":"Published To"},"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-06-30T23:59:59Z, 2024-06-30T23:59:59+00:00, or 2024-06-30T23:59:59"},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content created_at from (inclusive). ISO 8601, naive UTC in DB.","title":"Created From"},"description":"Filter by content created_at from (inclusive). ISO 8601, naive UTC in DB."},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content created_at to (inclusive). ISO 8601, naive UTC in DB.","title":"Created To"},"description":"Filter by content created_at to (inclusive). ISO 8601, naive UTC in DB."},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content updated_at from (inclusive). ISO 8601, naive UTC in DB.","title":"Updated From"},"description":"Filter by content updated_at from (inclusive). ISO 8601, naive UTC in DB."},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content updated_at to (inclusive). ISO 8601, naive UTC in DB.","title":"Updated To"},"description":"Filter by content updated_at to (inclusive). ISO 8601, naive UTC in DB."},{"name":"list_with_tags","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, includes chunk tags in the response","default":false,"title":"List With Tags"},"description":"If true, includes chunk tags in the response"},{"name":"list_with_subjects","in":"query","required":false,"schema":{"type":"boolean","description":"Deprecated and ignored: subjects are no longer computed for library listings (removed the chunks/tags/subjects join for performance). subjects_list is always null in list responses.","deprecated":true,"default":false,"title":"List With Subjects"},"description":"Deprecated and ignored: subjects are no longer computed for library listings (removed the chunks/tags/subjects join for performance). subjects_list is always null in list responses.","deprecated":true},{"name":"list_with_types","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, includes content type information in the response","default":true,"title":"List With Types"},"description":"If true, includes content type information in the response"},{"name":"list_with_sectors","in":"query","required":false,"schema":{"type":"boolean","description":"If true, includes sectors in the response (default: omit for lighter payloads)","default":false,"title":"List With Sectors"},"description":"If true, includes sectors in the response (default: omit for lighter payloads)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContentWithRelationsResponse_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/company-contents":{"get":{"tags":["contents"],"summary":"List Company Contents With Relevance","description":"List global contents that have a company_content row for the company,\nwith the same filters/shape as GET /api/contents plus relevance fields.","operationId":"list_company_contents_with_relevance_api_companies__company_uuid__company_contents_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code.","title":"Search"},"description":"Free-text search. Whitespace-separated terms use AND semantics: each term must match at least one of name, original file name, info.english_title, info.original_title, linked sector name, or jurisdiction name/code."},{"name":"user_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by user UUID","title":"User Uuid"},"description":"Filter by user UUID"},{"name":"user_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by multiple user UUIDs (content created by any of these users)","default":[],"title":"User Uuid List"},"description":"Filter by multiple user UUIDs (content created by any of these users)"},{"name":"content_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by content list","default":[],"title":"Content List"},"description":"Filter by content list"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by content type name (from content_types table, matches name field)","title":"Type"},"description":"Filter by content type name (from content_types table, matches name field)"},{"name":"type_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by multiple content type names (OR logic, matches name field in content_types table)","title":"Type List"},"description":"Filter by multiple content type names (OR logic, matches name field in content_types table)"},{"name":"type_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by content type UUID (from content_types table)","title":"Type Uuid"},"description":"Filter by content type UUID (from content_types table)"},{"name":"organization_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUIDs (OR): content linked to any listed organization","default":[],"title":"Organization List"},"description":"Filter by organization UUIDs (OR): content linked to any listed organization"},{"name":"jurisdiction_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by jurisdiction IDs","default":[],"title":"Jurisdiction List"},"description":"Filter by jurisdiction IDs"},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by sector UUIDs (OR): content linked to any listed sector","default":[],"title":"Sector Uuid List"},"description":"Filter by sector UUIDs (OR): content linked to any listed sector"},{"name":"subsector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by subsector UUIDs (OR): content linked to any listed sector that has a parent sector","default":[],"title":"Subsector Uuid List"},"description":"Filter by subsector UUIDs (OR): content linked to any listed sector that has a parent sector"},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"}},{"type":"null"}],"description":"Filter by company_content.relevance values (OR). Example: [\"Critical\"] or [\"Critical\",\"High\",\"Moderate\"]. Empty (default) returns all relevance values.","default":[],"title":"Relevance"},"description":"Filter by company_content.relevance values (OR). Example: [\"Critical\"] or [\"Critical\",\"High\",\"Moderate\"]. Empty (default) returns all relevance values."},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by field: relevance, name, english_title, released_at, created_at, updated_at, type, original_file_name (default: relevance)","default":"relevance","title":"Sort By"},"description":"Sort by field: relevance, name, english_title, released_at, created_at, updated_at, type, original_file_name (default: relevance)"},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort order (asc or desc). For relevance: asc = None→Critical, desc = Critical→None (default: desc)","default":"desc","title":"Sort Order"},"description":"Sort order (asc or desc). For relevance: asc = None→Critical, desc = Critical→None (default: desc)"},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC.","title":"Published From"},"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC."},{"name":"published_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC.","title":"Published To"},"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC."},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content created_at from (inclusive). ISO 8601, naive UTC in DB.","title":"Created From"},"description":"Filter by content created_at from (inclusive). ISO 8601, naive UTC in DB."},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content created_at to (inclusive). ISO 8601, naive UTC in DB.","title":"Created To"},"description":"Filter by content created_at to (inclusive). ISO 8601, naive UTC in DB."},{"name":"updated_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content updated_at from (inclusive). ISO 8601, naive UTC in DB.","title":"Updated From"},"description":"Filter by content updated_at from (inclusive). ISO 8601, naive UTC in DB."},{"name":"updated_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by content updated_at to (inclusive). ISO 8601, naive UTC in DB.","title":"Updated To"},"description":"Filter by content updated_at to (inclusive). ISO 8601, naive UTC in DB."},{"name":"list_with_tags","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, includes chunk tags in the response","default":false,"title":"List With Tags"},"description":"If true, includes chunk tags in the response"},{"name":"list_with_types","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"If true, includes content type information in the response","default":true,"title":"List With Types"},"description":"If true, includes content type information in the response"},{"name":"list_with_sectors","in":"query","required":false,"schema":{"type":"boolean","description":"If true, includes sectors in the response (default: omit for lighter payloads)","default":false,"title":"List With Sectors"},"description":"If true, includes sectors in the response (default: omit for lighter payloads)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContentWithCompanyRelevanceResponse_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/company-contents/{uuid}":{"get":{"tags":["contents"],"summary":"Get Company Content With Relevance","description":"Get a global content by UUID for a company, including company_content\nrelevance and reason. 404 if no company_content row exists.","operationId":"get_company_content_with_relevance_api_companies__company_uuid__company_contents__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentWithCompanyRelevanceResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents/content-consolidator":{"post":{"tags":["contents","contents"],"summary":"Launch Content Consolidator Task","description":"Launch content-consolidator ECS (mode=structure or mode=history). Isolated; no chain.","operationId":"launch_content_consolidator_task_api_contents_content_consolidator_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentConsolidatorLaunchRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentConsolidatorLaunchResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contents/content-embeddings":{"post":{"tags":["contents","contents"],"summary":"Launch Content Embeddings Task","description":"Launch content-embeddings ECS (TXT + consolidator for BCB allowlist / recursive embed otherwise).","operationId":"launch_content_embeddings_task_api_contents_content_embeddings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEmbeddingsLaunchRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEmbeddingsLaunchResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contents/promote-due-future":{"post":{"tags":["contents","contents"],"summary":"Launch Promote Due Future Task","description":"Launch promote-due-future ECS (optional content filter / as_of).","operationId":"launch_promote_due_future_task_api_contents_promote_due_future_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteDueFutureLaunchRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteDueFutureLaunchResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contents/global-vault-updater":{"post":{"tags":["contents","contents"],"summary":"Launch Global Vault Updater Task","description":"Launch global-vault-updater ECS for one library content_uuid.","operationId":"launch_global_vault_updater_task_api_contents_global_vault_updater_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalVaultUpdaterLaunchRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalVaultUpdaterLaunchResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contents/{uuid}/global-vault-updater":{"get":{"tags":["contents","contents"],"summary":"Get Global Vault Updater Output","description":"Return GVU pointer from contents.info plus status.json / run.json from S3.","operationId":"get_global_vault_updater_output_api_contents__uuid__global_vault_updater_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalVaultUpdaterArtifactsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{uuid}/groups":{"get":{"tags":["contents"],"summary":"List Content Groups","operationId":"list_content_groups_api_companies__company_uuid__contents__uuid__groups_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["contents"],"summary":"Set Content Groups","operationId":"set_content_groups_api_companies__company_uuid__contents__uuid__groups_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentGroupsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{uuid}/visibility":{"patch":{"tags":["contents"],"summary":"Set Content Visibility","operationId":"set_content_visibility_api_companies__company_uuid__contents__uuid__visibility_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVisibilityData"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{uuid}/conversations":{"get":{"tags":["contents"],"summary":"List Company Content Conversations","operationId":"list_company_content_conversations_api_companies__company_uuid__contents__uuid__conversations_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContentConversation"},"title":"Response List Company Content Conversations Api Companies  Company Uuid  Contents  Uuid  Conversations Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["contents"],"summary":"Link Company Content Conversation","operationId":"link_company_content_conversation_api_companies__company_uuid__contents__uuid__conversations_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentConversationLink"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentConversation"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents/bulk-metadata":{"post":{"tags":["contents"],"summary":"Bulk Update Global Content Metadata","description":"Apply the same metadata patch to many global contents.","operationId":"bulk_update_global_content_metadata_api_contents_bulk_metadata_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalContentBulkMetadataRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalContentBulkMetadataResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/contents/{uuid}/download":{"get":{"tags":["contents"],"summary":"Get Global Content Download","description":"Generate download link for a global content by UUID (admin).","operationId":"get_global_content_download_api_contents__uuid__download_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"inline","in":"query","required":false,"schema":{"type":"boolean","description":"If true, the signed URL uses Content-Disposition: inline for in-browser preview.","default":false,"title":"Inline"},"description":"If true, the signed URL uses Content-Disposition: inline for in-browser preview."},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{uuid}/download":{"get":{"tags":["contents"],"summary":"Get Content Download","description":"Generate download link for a content by UUID (global or company).","operationId":"get_content_download_api_companies__company_uuid__contents__uuid__download_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"inline","in":"query","required":false,"schema":{"type":"boolean","description":"If true, the signed URL uses Content-Disposition: inline for in-browser preview.","default":false,"title":"Inline"},"description":"If true, the signed URL uses Content-Disposition: inline for in-browser preview."},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDownloadResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contents/{uuid}/text":{"get":{"tags":["contents"],"summary":"Get Content Text","description":"Retrieve the extracted text from a content's .txt file in S3.\nExpected path: library/{uuid}.txt","operationId":"get_content_text_api_contents__uuid__text_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentTextResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{content_uuid}/evaluation":{"get":{"tags":["content-evaluation"],"summary":"Get Content Evaluation Status","description":"Derived (never persisted) status for the \"Avaliar\" CTA: whether the\ncaller has `tasks.evaluate` on their teamspace profile, and whether at\nleast one Task already exists for this (content, company) pair.","operationId":"get_content_evaluation_status_api_companies__company_uuid__contents__content_uuid__evaluation_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEvaluationStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["content-evaluation"],"summary":"Submit Content Evaluation","description":"Persists the evaluator's decision: a single 'não aplicável' Task\n(group_uuid == owner_group_uuid == the caller's teamspace), or one Task per\nexternally-impacted Group chosen for the 'aplicável' path.","operationId":"submit_content_evaluation_api_companies__company_uuid__contents__content_uuid__evaluation_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEvaluationSubmitRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentEvaluationSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{content_uuid}/evaluation/task-creation-context":{"get":{"tags":["content-evaluation"],"summary":"Get Task Creation Context","description":"AgentSDK preview for creating a Task via content evaluation.\n\nReturns evaluator-gate and group create/join flags without raising on\ndenied write scopes. Requires company membership only.","operationId":"get_task_creation_context_api_companies__company_uuid__contents__content_uuid__evaluation_task_creation_context_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreationContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{content_uuid}/evaluation/suggestion":{"post":{"tags":["content-evaluation"],"summary":"Trigger Evaluation Suggestion","description":"\"Avaliar com IA\" — fire-and-forget dispatch of `content-evaluation-suggester`.\nSame authorization as `submit_evaluation` (`tasks.evaluate`).\nReturns immediately with `status=processing`; the drawer polls GET for the\nresult.","operationId":"trigger_evaluation_suggestion_api_companies__company_uuid__contents__content_uuid__evaluation_suggestion_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationSuggestionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["content-evaluation"],"summary":"Get Evaluation Suggestion","description":"Polled by the drawer after \"Avaliar com IA\" is clicked.","operationId":"get_evaluation_suggestion_api_companies__company_uuid__contents__content_uuid__evaluation_suggestion_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationSuggestionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{content_uuid}/suggested-questions":{"get":{"tags":["suggested-questions"],"summary":"Get Suggested Questions","description":"Retrieve cached suggested questions for a content.\nReturns 404 if no questions have been generated yet.","operationId":"get_suggested_questions_api_companies__company_uuid__contents__content_uuid__suggested_questions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestedQuestionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["suggested-questions"],"summary":"Save Suggested Questions","description":"Save (upsert) suggested questions for a content.","operationId":"save_suggested_questions_api_companies__company_uuid__contents__content_uuid__suggested_questions_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestedQuestionsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestedQuestionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/retrieve":{"get":{"tags":["knowledge"],"summary":"Retrieve Documents","description":"Retrieve documents from the knowledge base using semantic or hybrid search","operationId":"retrieve_documents_api_companies__company_uuid__retrieve_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Max number of document chunks to retrieve","default":5,"title":"Limit"},"description":"Max number of document chunks to retrieve"},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by jurisdiction ID(s). Accepts a single ID or a list of IDs. To pass multiple IDs, repeat the parameter: ?jurisdiction_id=1&jurisdiction_id=2&jurisdiction_id=3","title":"Jurisdiction Id"},"description":"Filter by jurisdiction ID(s). Accepts a single ID or a list of IDs. To pass multiple IDs, repeat the parameter: ?jurisdiction_id=1&jurisdiction_id=2&jurisdiction_id=3"},{"name":"semantic_search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Activate semantic search","default":true,"title":"Semantic Search"},"description":"Activate semantic search"},{"name":"full_text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Activate full text search","default":true,"title":"Full Text Search"},"description":"Activate full text search"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by document type(s). Accepts a single type or a list of types. To pass multiple values, repeat the parameter: ?document_type=type1&document_type=type2&document_type=type3","title":"Document Type"},"description":"Filter by document type(s). Accepts a single type or a list of types. To pass multiple values, repeat the parameter: ?document_type=type1&document_type=type2&document_type=type3"},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-01-01T00:00:00Z, 2024-01-01T00:00:00+00:00, or 2024-01-01T00:00:00","title":"Published From"},"description":"Filter by publication date from (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-01-01T00:00:00Z, 2024-01-01T00:00:00+00:00, or 2024-01-01T00:00:00"},{"name":"published_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-06-30T23:59:59Z, 2024-06-30T23:59:59+00:00, or 2024-06-30T23:59:59","title":"Published To"},"description":"Filter by publication date to (inclusive). Accepts ISO 8601 format, treated as UTC. Examples: 2024-06-30T23:59:59Z, 2024-06-30T23:59:59+00:00, or 2024-06-30T23:59:59"},{"name":"contents_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by content UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?contents_uuid=uuid1&contents_uuid=uuid2&contents_uuid=uuid3","title":"Contents Uuid"},"description":"Filter by content UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?contents_uuid=uuid1&contents_uuid=uuid2&contents_uuid=uuid3"},{"name":"exclude_content_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Exclude content UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?exclude_content_uuids=uuid1&exclude_content_uuids=uuid2","title":"Exclude Content Uuids"},"description":"Exclude content UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?exclude_content_uuids=uuid1&exclude_content_uuids=uuid2"},{"name":"exclude_chunk_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Exclude chunk UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?exclude_chunk_uuids=uuid1&exclude_chunk_uuids=uuid2","title":"Exclude Chunk Uuids"},"description":"Exclude chunk UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?exclude_chunk_uuids=uuid1&exclude_chunk_uuids=uuid2"},{"name":"subjects_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by subject UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?subjects_uuid=uuid1&subjects_uuid=uuid2&subjects_uuid=uuid3","title":"Subjects Uuid"},"description":"Filter by subject UUID(s). Accepts a single UUID or a list of UUIDs. To pass multiple UUIDs, repeat the parameter: ?subjects_uuid=uuid1&subjects_uuid=uuid2&subjects_uuid=uuid3"},{"name":"consultation_role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by consultation_role in the content info field","title":"Consultation Role"},"description":"Filter by consultation_role in the content info field"},{"name":"organization_list","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUID(s). Accepts a single UUID or a list. To pass multiple UUIDs, repeat the parameter: ?organization_list=uuid1&organization_list=uuid2","title":"Organization List"},"description":"Filter by organization UUID(s). Accepts a single UUID or a list. To pass multiple UUIDs, repeat the parameter: ?organization_list=uuid1&organization_list=uuid2"},{"name":"sector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by sector UUID(s). Accepts a single UUID or a list. To pass multiple UUIDs, repeat the parameter.","title":"Sector Uuid List"},"description":"Filter by sector UUID(s). Accepts a single UUID or a list. To pass multiple UUIDs, repeat the parameter."},{"name":"subsector_uuid_list","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by subsector UUID(s). Accepts a single UUID or a list. To pass multiple UUIDs, repeat the parameter.","title":"Subsector Uuid List"},"description":"Filter by subsector UUID(s). Accepts a single UUID or a list. To pass multiple UUIDs, repeat the parameter."},{"name":"language","in":"query","required":false,"schema":{"type":"string","description":"Language of the search query and documents","default":"english","title":"Language"},"description":"Language of the search query and documents"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/knowledge/subjects/search":{"get":{"tags":["knowledge"],"summary":"Search Subjects Semantic","description":"Retrieve subjects ranked by semantic similarity to the query.","operationId":"search_subjects_semantic_api_knowledge_subjects_search_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","description":"Natural language description used to search subjects.","title":"Query"},"description":"Natural language description used to search subjects."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Max number of subjects to return","default":5,"title":"Limit"},"description":"Max number of subjects to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sectors/":{"get":{"tags":["sectors"],"summary":"List Sectors","description":"List sectors with optional filters.\n\nArgs:\n    father_sector_uuid: Optional filter to list only subsectors of a specific sector.\n                       If not provided, lists all sectors (root sectors and subsectors).\n    include_deleted: Whether to include soft-deleted sectors in the results.\n    only_names: Whether to return uuid, name, and father_sector_uuid (without relationships).\n\nReturns:\n    Paginated list of Sector instances","operationId":"list_sectors_api_sectors__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"father_sector_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by father sector UUID (list subsectors of a specific sector)","title":"Father Sector Uuid"},"description":"Filter by father sector UUID (list subsectors of a specific sector)"},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include soft-deleted sectors in the results","default":false,"title":"Include Deleted"},"description":"Include soft-deleted sectors in the results"},{"name":"only_names","in":"query","required":false,"schema":{"type":"boolean","description":"When true, returns uuid, name, and father_sector_uuid for each sector (without relationships)","default":false,"title":"Only Names"},"description":"When true, returns uuid, name, and father_sector_uuid for each sector (without relationships)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Union_Sector__SectorRef__"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["sectors"],"summary":"Create Sector","description":"Create a new sector or subsector.\n\n- To create a root sector: provide only `name` (and optionally `info`)\n- To create a subsector: provide `name` and `father_sector_uuid` (and optionally `info`)\n\nArgs:\n    payload: SectorCreate payload with name, optional father_sector_uuid, and info\n\nReturns:\n    Created Sector instance","operationId":"create_sector_api_sectors__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectorCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sector"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sectors/{sector_uuid}":{"get":{"tags":["sectors"],"summary":"Get Sector","description":"Get a specific sector by UUID.\n\nArgs:\n    sector_uuid: UUID of the sector to retrieve\n    include_deleted: Whether to include soft-deleted sectors\n\nReturns:\n    Sector instance","operationId":"get_sector_api_sectors__sector_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"sector_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sector Uuid"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include soft-deleted sectors in the results","default":false,"title":"Include Deleted"},"description":"Include soft-deleted sectors in the results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sector"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["sectors"],"summary":"Update Sector","description":"Update an existing sector or subsector.\n\nYou can:\n- Update the name\n- Update the info\n- Change the father sector (set a new father_sector_uuid)\n- Remove the father relationship (set father_sector_uuid to null)\n- Convert a subsector to a root sector (set father_sector_uuid to null)\n\nArgs:\n    sector_uuid: UUID of the sector to update\n    payload: SectorUpdate payload with optional fields to update\n\nReturns:\n    Updated Sector instance","operationId":"update_sector_api_sectors__sector_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"sector_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sector Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sector"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sectors"],"summary":"Delete Sector","description":"Soft delete a sector by UUID.\n\nWhen a sector is deleted, all its subsectors will have their father_sector_uuid\nset to NULL (due to ON DELETE SET NULL foreign key constraint).\n\nArgs:\n    sector_uuid: UUID of the sector to delete","operationId":"delete_sector_api_sectors__sector_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"sector_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sector Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sectors/{sector_uuid}/add-contents":{"post":{"tags":["sectors"],"summary":"Add Content To Sector","description":"Add content relationships to an existing sector.\n\nThis endpoint adds new content-sector relationships without removing existing ones.\nIf a content is already associated with the sector, an error will be returned.\n\nArgs:\n    sector_uuid: UUID of the sector to add contents to\n    payload: List of SectorContentAssociation objects with content_uuid, impact_level, and optional info\n\nReturns:\n    Updated Sector instance with all relationships loaded","operationId":"add_content_to_sector_api_sectors__sector_uuid__add_contents_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"sector_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sector Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SectorContentAssociation"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sector"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sectors/{sector_uuid}/add-organizations":{"post":{"tags":["sectors"],"summary":"Add Organization To Sector","description":"Add organization relationships to an existing sector.\n\nThis endpoint adds new organization-sector relationships without removing existing ones.\nIf an organization is already associated with the sector, an error will be returned.\n\nArgs:\n    sector_uuid: UUID of the sector to add organizations to\n    payload: List of OrganizationSectorAssociation objects with organization_uuid, type, and optional info\n\nReturns:\n    Updated Sector instance with all relationships loaded","operationId":"add_organization_to_sector_api_sectors__sector_uuid__add_organizations_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"sector_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sector Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationSectorAssociation"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sector"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subjects/":{"get":{"tags":["subjects"],"summary":"List Subjects","operationId":"list_subjects_api_subjects__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Fuzzy search over subject titles","title":"Search"},"description":"Fuzzy search over subject titles"},{"name":"similarity_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Similarity threshold for search","default":0.3,"title":"Similarity Threshold"},"description":"Similarity threshold for search"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Subject_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["subjects"],"summary":"Create Subject","operationId":"create_subject_api_subjects__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subjects/{subject_uuid}":{"get":{"tags":["subjects"],"summary":"Get Subject","operationId":"get_subject_api_subjects__subject_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"subject_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subject Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["subjects"],"summary":"Update Subject","operationId":"update_subject_api_subjects__subject_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"subject_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subject Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["subjects"],"summary":"Delete Subject","operationId":"delete_subject_api_subjects__subject_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"subject_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subject Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subjects/{subject_uuid}/add-tag":{"post":{"tags":["subjects"],"summary":"Add Tags To Subject","operationId":"add_tags_to_subject_api_subjects__subject_uuid__add_tag_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"subject_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subject Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectAddTags"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags/":{"get":{"tags":["tags"],"summary":"List Tags","operationId":"list_tags_api_tags__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Fuzzy search over tag names","title":"Search"},"description":"Fuzzy search over tag names"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filtro exato pelo nome da tag","title":"Name"},"description":"Filtro exato pelo nome da tag"},{"name":"similarity_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Similarity threshold for search","default":0.3,"title":"Similarity Threshold"},"description":"Similarity threshold for search"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Tag_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tags"],"summary":"Create Tag","operationId":"create_tag_api_tags__post","security":[{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags/search":{"get":{"tags":["tags"],"summary":"Fuzzy Search Tags","operationId":"fuzzy_search_tags_api_tags_search_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"search","in":"query","required":true,"schema":{"type":"string","description":"Tag name to fuzzy search","title":"Search"},"description":"Tag name to fuzzy search"},{"name":"similarity_threshold","in":"query","required":false,"schema":{"type":"number","default":0.85,"title":"Similarity Threshold"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags/{tag_uuid}":{"get":{"tags":["tags"],"summary":"Get Tag","operationId":"get_tag_api_tags__tag_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"tag_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["tags"],"summary":"Update Tag","operationId":"update_tag_api_tags__tag_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"tag_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tags"],"summary":"Delete Tag","operationId":"delete_tag_api_tags__tag_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"tag_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags/{tag_uuid}/add-subject":{"post":{"tags":["tags"],"summary":"Add Subjects To Tag","operationId":"add_subjects_to_tag_api_tags__tag_uuid__add_subject_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"tag_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagAddSubjects"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tags/{tag_uuid}/add-chunk":{"post":{"tags":["tags"],"summary":"Add Chunks To Tag","operationId":"add_chunks_to_tag_api_tags__tag_uuid__add_chunk_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"tag_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagAddChunks"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tasks/{task_uuid}/fields-suggestion-context":{"get":{"tags":["agent-task-fields-suggestion"],"summary":"Get Fields Suggestion Context","description":"What the agent needs beyond the norm text/company profile it fetches\nitself from S3: which área this Task is for, and the norm's effective date.","operationId":"get_fields_suggestion_context_api_tasks__task_uuid__fields_suggestion_context_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskFieldsSuggestionContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tasks/{task_uuid}/fields-suggestion-result":{"post":{"tags":["agent-task-fields-suggestion"],"summary":"Save Fields Suggestion Result","description":"Callback: persists one agent run's suggested fields (or its failure).","operationId":"save_fields_suggestion_result_api_tasks__task_uuid__fields_suggestion_result_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskFieldsSuggestionResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskFieldsSuggestionResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks":{"get":{"tags":["tasks"],"summary":"List Tasks","description":"Lists the Tasks the caller can see — membership in a Task's área or\nowner Group, same visibility rule as GET one Task.","operationId":"list_tasks_api_companies__company_uuid__tasks_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskStatusEnum"},"description":"Filter by status. Can specify multiple times.","default":[],"title":"Status"},"description":"Filter by status. Can specify multiple times."},{"name":"group_uuid","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Filter by área Group UUID. Can specify multiple times.","default":[],"title":"Group Uuid"},"description":"Filter by área Group UUID. Can specify multiple times."},{"name":"atraso","in":"query","required":false,"schema":{"anyOf":[{"enum":["no_prazo","atencao","atrasado"],"type":"string"},{"type":"null"}],"description":"Filter by the worst of each Task's 4 compute_atraso axes — the Tasks list's stage-counter sub-filter.","title":"Atraso"},"description":"Filter by the worst of each Task's 4 compute_atraso axes — the Tasks list's stage-counter sub-filter."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive match on the linked content name.","title":"Search"},"description":"Case-insensitive match on the linked content name."},{"name":"collection_list","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Filter by collection name(s). Can specify multiple times.","default":[],"title":"Collection List"},"description":"Filter by collection name(s). Can specify multiple times."},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TaskListItemResponse_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/stats":{"get":{"tags":["tasks"],"summary":"Get Task Stats","description":"Counts for the Tasks list's stage counters — same visibility rule as\n`list_tasks`, ignoring any currently active list filter (a fixed\ncompany-wide summary the counters filter *into*, not a live reflection\nof the current filter).","operationId":"get_task_stats_api_companies__company_uuid__tasks_stats_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/collections":{"get":{"tags":["tasks"],"summary":"Get Task Collections","description":"Distinct collection names on tasks the caller can see.","operationId":"get_task_collections_api_companies__company_uuid__tasks_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCollectionsNamesResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Delete Task Collection","description":"Unlink a collection label from tasks the caller can see.","operationId":"delete_task_collection_api_companies__company_uuid__tasks_collections_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCollectionResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/collections/summary":{"get":{"tags":["tasks"],"summary":"Get Task Collections Summary","description":"Grouped collections for tasks the caller can see.","operationId":"get_task_collections_summary_api_companies__company_uuid__tasks_collections_summary_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"recently_updated | name_az | most_tasks","default":"recently_updated","title":"Sort"},"description":"recently_updated | name_az | most_tasks"},{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":3,"title":"Preview Limit"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCollectionsSummaryResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}":{"get":{"tags":["tasks"],"summary":"Get Task","description":"Get a single Task, with its content/attachments/prazo history and the\ncaller's membership in the Task's área (`group_uuid`) and owner Group\n(`owner_group_uuid`) — either membership is enough to view.","operationId":"get_task_api_companies__company_uuid__tasks__task_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/juridico-fields":{"patch":{"tags":["tasks"],"summary":"Update Task Juridico Fields","description":"Evaluator Group fills in or corrects Deadline/Main subject/Criticality/\nAnalysis. Assunto/criticidade/análise may be edited in any status;\n`prazo_atual` only while the Task is still 'aprovado_para_envio';\n`prazo_conclusao`/`etapa_*` only before the execution phase.\nowner-Group-only.","operationId":"update_task_juridico_fields_api_companies__company_uuid__tasks__task_uuid__juridico_fields_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskJuridicoFieldsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/owner":{"patch":{"tags":["tasks"],"summary":"Update Task Owner","description":"Assigns or clears (`owner_uuid: null`) the single user responsible for\nthis Task. owner-Group-only, any status.","operationId":"update_task_owner_api_companies__company_uuid__tasks__task_uuid__owner_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskOwnerUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/send-to-area":{"post":{"tags":["tasks"],"summary":"Send Task To Area","description":"Jurídico sends an 'aprovado_para_envio' Task on to the área, once\n`prazo_atual` is set. owner-Group-only.","operationId":"send_task_to_area_api_companies__company_uuid__tasks__task_uuid__send_to_area_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/fields-suggestion":{"post":{"tags":["tasks"],"summary":"Retry Fields Suggestion","description":"\"Fill with AI\" — (re)triggers `task-fields-suggester` for an\n'aprovado_para_envio' Task. Fire-and-forget: the response reflects\n`ai_fill_status='processing'` immediately, the actual fields land via the\nagent's M2M callback a few seconds later. owner-Group-only.","operationId":"retry_fields_suggestion_api_companies__company_uuid__tasks__task_uuid__fields_suggestion_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/start-analysis":{"post":{"tags":["tasks"],"summary":"Start Task Area Analysis","description":"Marks the área as having started working the Task. área-Group-only.","operationId":"start_task_area_analysis_api_companies__company_uuid__tasks__task_uuid__start_analysis_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/action-plan":{"post":{"tags":["tasks"],"summary":"Submit Task Action Plan","description":"área submits its plano de ação, with attachments already staged via\nPOST /api/files/upload. Requires >=1 anexo (existing or newly attached).\nárea-Group-only.","operationId":"submit_task_action_plan_api_companies__company_uuid__tasks__task_uuid__action_plan_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskActionPlanSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/conclusion":{"post":{"tags":["tasks"],"summary":"Submit Task Conclusion","description":"área attaches the completion evidence of an 'em_execucao' Task and sends\nit for the evaluator's approval. Requires >=1 new anexo. área-Group-only.","operationId":"submit_task_conclusion_api_companies__company_uuid__tasks__task_uuid__conclusion_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskConclusionSubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/juridico/conforme":{"post":{"tags":["tasks"],"summary":"Juridico Approve Task Conforme","description":"The evaluator approves the Task's pending step, off the área's existing\nanexos (no new upload here): the plano de ação ('aguardando_aprovacao_juridico')\nor the conclusion ('aguardando_aprovacao_conclusao'). owner-Group-only.","operationId":"juridico_approve_task_conforme_api_companies__company_uuid__tasks__task_uuid__juridico_conforme_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/juridico/nao-conforme":{"post":{"tags":["tasks"],"summary":"Juridico Reject Task Nao Conforme","description":"The evaluator rejects the pending step (plano de ação or conclusion) — sends\nthe Task back to the área for rework, same as devolver. owner-Group-only.","operationId":"juridico_reject_task_nao_conforme_api_companies__company_uuid__tasks__task_uuid__juridico_nao_conforme_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskNaoConformeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/juridico/devolver":{"post":{"tags":["tasks"],"summary":"Juridico Devolver Task","description":"The evaluator sends the pending step (plano de ação or conclusion) back to\nthe área for rework. owner-Group-only.","operationId":"juridico_devolver_task_api_companies__company_uuid__tasks__task_uuid__juridico_devolver_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskJuridicoDevolverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/evaluator/mark-ciencia":{"post":{"tags":["tasks"],"summary":"Evaluator Mark Task Ciencia Only","description":"The evaluator Group settles the Task as ciência only (no plan or file\nrequired from the área). Evaluator-Group-only; notifies the área.","operationId":"evaluator_mark_task_ciencia_only_api_companies__company_uuid__tasks__task_uuid__evaluator_mark_ciencia_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/evaluator/reopen":{"post":{"tags":["tasks"],"summary":"Evaluator Reopen Task","description":"The evaluator Group sends the Task back to the área to respond (Ctrl+Z).\nEvaluator-Group-only; notifies the área.","operationId":"evaluator_reopen_task_api_companies__company_uuid__tasks__task_uuid__evaluator_reopen_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/prazo-revisoes":{"post":{"tags":["tasks"],"summary":"Propose Task Prazo Revisao","description":"Either the área or the owner Group can propose a new prazo — `proposto_por`\nis derived server-side from the caller's own Group membership, never accepted\nfrom the client.","operationId":"propose_task_prazo_revisao_api_companies__company_uuid__tasks__task_uuid__prazo_revisoes_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPrazoRevisaoProposeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrazoRevisaoResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/prazo-revisoes/{revisao_uuid}/resolve":{"post":{"tags":["tasks"],"summary":"Resolve Task Prazo Revisao","description":"Jurídico approves or rejects a pending prazo revisão, regardless of who\nproposed it. owner-Group-only.","operationId":"resolve_task_prazo_revisao_api_companies__company_uuid__tasks__task_uuid__prazo_revisoes__revisao_uuid__resolve_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"revisao_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revisao Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPrazoRevisaoResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/tasks/{task_uuid}/collections":{"patch":{"tags":["tasks"],"summary":"Update Task Collections","description":"Replace all collections for a given task.","operationId":"update_task_collections_api_companies__company_uuid__tasks__task_uuid__collections_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"task_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Task Uuid"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCollectionsUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCollectionsUpdateResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-templates":{"get":{"tags":["workflows"],"summary":"List Workflow Templates","description":"List all workflow templates associated with the company.","operationId":"list_workflow_templates_api_companies__company_uuid__workflow_templates_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search term to filter by name and/or description","title":"Search"},"description":"Search term to filter by name and/or description"},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include soft-deleted templates in results","default":false,"title":"Include Deleted"},"description":"Include soft-deleted templates in results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkflowTemplate_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workflows"],"summary":"Create Workflow Template","description":"Create a new workflow template for the company.","operationId":"create_workflow_template_api_companies__company_uuid__workflow_templates_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplate"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-templates/{template_uuid}":{"get":{"tags":["workflows"],"summary":"Get Workflow Template","description":"Get a specific workflow template by UUID.","operationId":"get_workflow_template_api_companies__company_uuid__workflow_templates__template_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"template_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplate"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workflows"],"summary":"Update Workflow Template","description":"Update an existing workflow template.","operationId":"update_workflow_template_api_companies__company_uuid__workflow_templates__template_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"template_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplate"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflows"],"summary":"Delete Workflow Template","description":"Soft delete a workflow template.","operationId":"delete_workflow_template_api_companies__company_uuid__workflow_templates__template_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"template_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-instances":{"get":{"tags":["workflows"],"summary":"List Workflow Instances","description":"List all workflow instances associated with the company.","operationId":"list_workflow_instances_api_companies__company_uuid__workflow_instances_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search term to filter by name","title":"Search"},"description":"Search term to filter by name"},{"name":"template_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter instances by template UUID","title":"Template Uuid"},"description":"Filter instances by template UUID"},{"name":"schedule_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter instances by schedule active status","title":"Schedule Active"},"description":"Filter instances by schedule active status"},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include soft-deleted instances in results","default":false,"title":"Include Deleted"},"description":"Include soft-deleted instances in results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkflowInstanceList_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workflows"],"summary":"Create Workflow Instance","description":"Create a new workflow instance from a template.","operationId":"create_workflow_instance_api_companies__company_uuid__workflow_instances_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInstanceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInstance"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-instances/{instance_uuid}":{"get":{"tags":["workflows"],"summary":"Get Workflow Instance","description":"Get a specific workflow instance by UUID.","operationId":"get_workflow_instance_api_companies__company_uuid__workflow_instances__instance_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"instance_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInstance"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workflows"],"summary":"Update Workflow Instance","description":"Update an existing workflow instance.","operationId":"update_workflow_instance_api_companies__company_uuid__workflow_instances__instance_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"instance_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInstanceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInstance"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflows"],"summary":"Delete Workflow Instance","description":"Soft delete a workflow instance.","operationId":"delete_workflow_instance_api_companies__company_uuid__workflow_instances__instance_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"instance_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Instance Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-runs":{"get":{"tags":["workflows"],"summary":"List Workflow Runs","description":"List all workflow runs. Can be filtered by instance.","operationId":"list_workflow_runs_api_companies__company_uuid__workflow_runs_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"instance_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter runs by workflow instance UUID","title":"Instance Uuid"},"description":"Filter runs by workflow instance UUID"},{"name":"run_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RunStatusEnum"},{"type":"null"}],"description":"Filter runs by status","title":"Run Status"},"description":"Filter runs by status"},{"name":"start_date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter runs that started after this date (ISO 8601 format)","title":"Start Date From"},"description":"Filter runs that started after this date (ISO 8601 format)"},{"name":"start_date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter runs that started before this date (ISO 8601 format)","title":"Start Date To"},"description":"Filter runs that started before this date (ISO 8601 format)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of runs to return","default":50,"title":"Limit"},"description":"Maximum number of runs to return"},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include soft-deleted runs in results","default":false,"title":"Include Deleted"},"description":"Include soft-deleted runs in results"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkflowRun_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workflows"],"summary":"Create Workflow Run","description":"Create a new workflow run. Accepts a base64-encoded file upload that will be stored in S3.","operationId":"create_workflow_run_api_companies__company_uuid__workflow_runs_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-runs/{run_uuid}":{"get":{"tags":["workflows"],"summary":"Get Workflow Run","description":"Get a specific workflow run by UUID.","operationId":"get_workflow_run_api_companies__company_uuid__workflow_runs__run_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"run_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workflows"],"summary":"Update Workflow Run","description":"Update an existing workflow run. Can upload a new artifact file via base64 encoding.","operationId":"update_workflow_run_api_companies__company_uuid__workflow_runs__run_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"run_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRun"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflows"],"summary":"Delete Workflow Run","description":"Soft delete a workflow run. The associated artifact file in S3 will be deleted as well.","operationId":"delete_workflow_run_api_companies__company_uuid__workflow_runs__run_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"run_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/workflow-runs/{run_uuid}/download":{"get":{"tags":["workflows"],"summary":"Download Workflow Run Artifact","description":"Generate a presigned URL to download the artifact file\nfor a specific workflow run.","operationId":"download_workflow_run_artifact_api_companies__company_uuid__workflow_runs__run_uuid__download_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"run_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Uuid"}},{"name":"bucket_name","in":"query","required":false,"schema":{"type":"string","default":"prod-regdoor-app-media","title":"Bucket Name"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/feed":{"get":{"tags":["posts"],"summary":"Get Posts Feed","operationId":"get_posts_feed_api_companies__company_uuid__posts_feed_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by post types (repeat param). Values: regulatory, communication, workflow_run, public_consultation, consultation_reminder, legislative_update.","title":"Post Types"},"description":"Filter by post types (repeat param). Values: regulatory, communication, workflow_run, public_consultation, consultation_reminder, legislative_update."},{"name":"relevances","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by post relevance (repeat param). Values: None, Low, Moderate, High, Critical.","title":"Relevances"},"description":"Filter by post relevance (repeat param). Values: None, Low, Moderate, High, Critical."},{"name":"content_type_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by content type UUIDs stored in posts.filters ``content_type_uuids`` (repeat param).","title":"Content Type Uuids"},"description":"Filter by content type UUIDs stored in posts.filters ``content_type_uuids`` (repeat param)."},{"name":"jurisdiction_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by jurisdiction IDs stored in posts.filters ``jurisdiction_ids`` (repeat param).","title":"Jurisdiction Ids"},"description":"Filter by jurisdiction IDs stored in posts.filters ``jurisdiction_ids`` (repeat param)."},{"name":"organization_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by organization UUIDs stored in posts.filters ``organization_uuids`` (repeat param).","title":"Organization Uuids"},"description":"Filter by organization UUIDs stored in posts.filters ``organization_uuids`` (repeat param)."},{"name":"sector_uuids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by sector UUIDs stored in posts.filters ``sector_uuids`` (repeat param).","title":"Sector Uuids"},"description":"Filter by sector UUIDs stored in posts.filters ``sector_uuids`` (repeat param)."},{"name":"bookmarked_only","in":"query","required":false,"schema":{"type":"boolean","description":"If true, only posts bookmarked by the authenticated user (requires a database user UUID).","default":false,"title":"Bookmarked Only"},"description":"If true, only posts bookmarked by the authenticated user (requires a database user UUID)."},{"name":"created_at_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Lower bound on Created_at (inclusive).","title":"Created At Start"},"description":"Lower bound on Created_at (inclusive)."},{"name":"created_at_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Upper bound on Created_at (inclusive).","title":"Created At End"},"description":"Upper bound on Created_at (inclusive)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Annotated_Union_RegulatoryFeedPost__CommunicationFeedPost__WorkflowRunFeedPost__PublicConsultationFeedPost__ConsultationReminderFeedPost__LegislativeUpdateFeedPost___FieldInfo_annotation_NoneType__required_True__discriminator__post_type____"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/feed/jurisdictions":{"get":{"tags":["posts"],"summary":"Get Feed Jurisdictions","description":"Distinct jurisdictions from ``posts.filters`` on the company's post feed.","operationId":"get_feed_jurisdictions_api_companies__company_uuid__posts_feed_jurisdictions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JurisdictionInContent"},"title":"Response Get Feed Jurisdictions Api Companies  Company Uuid  Posts Feed Jurisdictions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/actions":{"post":{"tags":["posts"],"summary":"Register Post Action","description":"Register thumbs up/down or bookmark; post and user must belong to this company.","operationId":"register_post_action_api_companies__company_uuid__posts_actions_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionRegister"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionRegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Post Action","description":"Remove one ``post_actions`` row (unique on post_uuid + user_uuid + action_type).","operationId":"delete_post_action_api_companies__company_uuid__posts_actions_delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Post UUID","title":"Post Uuid"},"description":"Post UUID"},{"name":"user_uuid","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"User UUID (unique key with post + action_type)","title":"User Uuid"},"description":"User UUID (unique key with post + action_type)"},{"name":"action_type","in":"query","required":true,"schema":{"enum":["thumbs_up","thumbs_down","bookmark"],"type":"string","description":"Which action to remove","title":"Action Type"},"description":"Which action to remove"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/regulatory":{"get":{"tags":["posts"],"summary":"List Regulatory Posts","description":"Paginated list of regulatory posts for the company.","operationId":"list_regulatory_posts_api_companies__company_uuid__posts_regulatory_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter: None, Low, Moderate, High, or Critical","title":"Relevance"},"description":"Optional filter: None, Low, Moderate, High, or Critical"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_RegulatoryPostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["posts"],"summary":"Create Regulatory Post","description":"Create a regulatory post for the company.","operationId":"create_regulatory_post_api_companies__company_uuid__posts_regulatory_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryPostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/regulatory/{post_uuid}":{"get":{"tags":["posts"],"summary":"Get Regulatory Post","description":"Get one regulatory post by ``posts.uuid`` within the company.","operationId":"get_regulatory_post_api_companies__company_uuid__posts_regulatory__post_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Regulatory Post","description":"Update a regulatory post (parent + subtype fields).","operationId":"update_regulatory_post_api_companies__company_uuid__posts_regulatory__post_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryPostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegulatoryPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Regulatory Post","description":"Delete a regulatory post (removes ``posts`` row; cascades to subtype).","operationId":"delete_regulatory_post_api_companies__company_uuid__posts_regulatory__post_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/communication":{"get":{"tags":["posts"],"summary":"List Communication Posts","description":"Paginated list of communication posts for the company.","operationId":"list_communication_posts_api_companies__company_uuid__posts_communication_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter: None, Low, Moderate, High, or Critical","title":"Relevance"},"description":"Optional filter: None, Low, Moderate, High, or Critical"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CommunicationPostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["posts"],"summary":"Create Communication Post","description":"Create a communication post for the company.","operationId":"create_communication_post_api_companies__company_uuid__posts_communication_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/communication/{post_uuid}":{"get":{"tags":["posts"],"summary":"Get Communication Post","description":"Get one communication post by ``posts.uuid`` within the company.","operationId":"get_communication_post_api_companies__company_uuid__posts_communication__post_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Communication Post","description":"Update a communication post (parent + subtype fields).","operationId":"update_communication_post_api_companies__company_uuid__posts_communication__post_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Communication Post","description":"Delete a communication post (removes ``posts`` row; cascades to subtype).","operationId":"delete_communication_post_api_companies__company_uuid__posts_communication__post_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/workflow_run":{"get":{"tags":["posts"],"summary":"List Workflow Run Posts","description":"Paginated list of workflow-run posts for the company.","operationId":"list_workflow_run_posts_api_companies__company_uuid__posts_workflow_run_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter: None, Low, Moderate, High, or Critical","title":"Relevance"},"description":"Optional filter: None, Low, Moderate, High, or Critical"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkflowRunPostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["posts"],"summary":"Create Workflow Run Post","description":"Create a workflow-run post for the company.","operationId":"create_workflow_run_post_api_companies__company_uuid__posts_workflow_run_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunPostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/workflow_run/{post_uuid}":{"get":{"tags":["posts"],"summary":"Get Workflow Run Post","description":"Get one workflow-run post by ``posts.uuid`` within the company.","operationId":"get_workflow_run_post_api_companies__company_uuid__posts_workflow_run__post_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Workflow Run Post","description":"Update a workflow-run post (parent + subtype fields).","operationId":"update_workflow_run_post_api_companies__company_uuid__posts_workflow_run__post_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunPostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Workflow Run Post","description":"Delete a workflow-run post (removes ``posts`` row; cascades to subtype).","operationId":"delete_workflow_run_post_api_companies__company_uuid__posts_workflow_run__post_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/public_consultation":{"get":{"tags":["posts"],"summary":"List Public Consultation Posts","description":"Paginated list of public-consultation posts for the company.","operationId":"list_public_consultation_posts_api_companies__company_uuid__posts_public_consultation_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter: None, Low, Moderate, High, or Critical","title":"Relevance"},"description":"Optional filter: None, Low, Moderate, High, or Critical"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PublicConsultationPostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["posts"],"summary":"Create Public Consultation Post","description":"Create a public-consultation post for the company.","operationId":"create_public_consultation_post_api_companies__company_uuid__posts_public_consultation_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConsultationPostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConsultationPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/public_consultation/{post_uuid}":{"get":{"tags":["posts"],"summary":"Get Public Consultation Post","description":"Get one public-consultation post by ``posts.uuid`` within the company.","operationId":"get_public_consultation_post_api_companies__company_uuid__posts_public_consultation__post_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConsultationPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Public Consultation Post","description":"Update a public-consultation post (parent + subtype fields).","operationId":"update_public_consultation_post_api_companies__company_uuid__posts_public_consultation__post_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConsultationPostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConsultationPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Public Consultation Post","description":"Delete a public-consultation post (removes ``posts`` row; cascades to subtype).","operationId":"delete_public_consultation_post_api_companies__company_uuid__posts_public_consultation__post_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/consultation_reminder":{"get":{"tags":["posts"],"summary":"List Consultation Reminder Posts","description":"Paginated list of consultation-reminder posts for the company.","operationId":"list_consultation_reminder_posts_api_companies__company_uuid__posts_consultation_reminder_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter: None, Low, Moderate, High, or Critical","title":"Relevance"},"description":"Optional filter: None, Low, Moderate, High, or Critical"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ConsultationReminderPostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["posts"],"summary":"Create Consultation Reminder Post","description":"Create a consultation-reminder post for the company.","operationId":"create_consultation_reminder_post_api_companies__company_uuid__posts_consultation_reminder_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationReminderPostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationReminderPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/consultation_reminder/{post_uuid}":{"get":{"tags":["posts"],"summary":"Get Consultation Reminder Post","description":"Get one consultation-reminder post by ``posts.uuid`` within the company.","operationId":"get_consultation_reminder_post_api_companies__company_uuid__posts_consultation_reminder__post_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationReminderPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Consultation Reminder Post","description":"Update a consultation-reminder post (parent + subtype fields).","operationId":"update_consultation_reminder_post_api_companies__company_uuid__posts_consultation_reminder__post_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationReminderPostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsultationReminderPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Consultation Reminder Post","description":"Delete a consultation-reminder post (removes ``posts`` row; cascades to subtype).","operationId":"delete_consultation_reminder_post_api_companies__company_uuid__posts_consultation_reminder__post_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/legislative_update":{"get":{"tags":["posts"],"summary":"List Legislative Update Posts","operationId":"list_legislative_update_posts_api_companies__company_uuid__posts_legislative_update_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"relevance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LegislativeUpdatePostResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["posts"],"summary":"Create Legislative Update Post","operationId":"create_legislative_update_post_api_companies__company_uuid__posts_legislative_update_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegislativeUpdatePostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegislativeUpdatePostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/posts/legislative_update/{post_uuid}":{"get":{"tags":["posts"],"summary":"Get Legislative Update Post","operationId":"get_legislative_update_post_api_companies__company_uuid__posts_legislative_update__post_uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegislativeUpdatePostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Legislative Update Post","operationId":"update_legislative_update_post_api_companies__company_uuid__posts_legislative_update__post_uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegislativeUpdatePostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegislativeUpdatePostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Legislative Update Post","operationId":"delete_legislative_update_post_api_companies__company_uuid__posts_legislative_update__post_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"post_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Post Uuid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_uuid}/context":{"get":{"tags":["agent-project-context"],"summary":"Get Agent Project Context","description":"Aggregated project state (membership, provenance, notes) for agent consumers.","operationId":"get_agent_project_context_api_projects__project_uuid__context_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"project_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectAgentContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_uuid}/context/markdown":{"post":{"tags":["agent-project-context"],"summary":"Save Agent Project Markdown","description":"Save a new agent context markdown version (M2M / agent writers).\n\nStored as ``source='agent'`` on ``project_markdown_versions``. Never writes\n``projects.description`` and never uses ``source='human'`` (that stream is\nthe Project Description panel).","operationId":"save_agent_project_markdown_api_projects__project_uuid__context_markdown_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"project_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMarkdownSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/recent":{"get":{"tags":["projects"],"summary":"Get Recent Projects","operationId":"get_recent_projects_api_companies__company_uuid__projects_recent_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecentProject"},"title":"Response Get Recent Projects Api Companies  Company Uuid  Projects Recent Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/collections":{"get":{"tags":["projects"],"summary":"List Company Collections","operationId":"list_company_collections_api_companies__company_uuid__projects_collections_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectCollectionRef"},"title":"Response List Company Collections Api Companies  Company Uuid  Projects Collections Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/":{"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_api_companies__company_uuid__projects__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["active","on_hold","completed","archived"],"type":"string"},{"type":"null"}],"description":"Filter by a single status. Omit to return only active and on_hold projects. Pass completed or archived to list that status.","title":"Status"},"description":"Filter by a single status. Omit to return only active and on_hold projects. Pass completed or archived to list that status."},{"name":"legal_entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by legal entity UUID(s). Can specify multiple times. Returns projects linked to any of the given legal entities.","default":[],"title":"Legal Entity Id"},"description":"Filter by legal entity UUID(s). Can specify multiple times. Returns projects linked to any of the given legal entities."},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by jurisdiction (country) ID(s). Can specify multiple times. Returns projects linked to any of the given jurisdictions.","default":[],"title":"Jurisdiction Id"},"description":"Filter by jurisdiction (country) ID(s). Can specify multiple times. Returns projects linked to any of the given jurisdictions."},{"name":"my","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When true, only return projects owned by the current user.","title":"My"},"description":"When true, only return projects owned by the current user."},{"name":"group_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Filter by responsible area (group) UUID(s). Can specify multiple times. Returns projects linked to any of the given areas.","default":[],"title":"Group Uuid"},"description":"Filter by responsible area (group) UUID(s). Can specify multiple times. Returns projects linked to any of the given areas."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive match on the project title or description; every word must match.","title":"Search"},"description":"Case-insensitive match on the project title or description; every word must match."},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectListItem"},"title":"Response List Projects Api Companies  Company Uuid  Projects  Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_api_companies__company_uuid__projects__post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/records":{"get":{"tags":["projects"],"summary":"List Project Records","operationId":"list_project_records_api_companies__company_uuid__projects__uuid__records_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"group","in":"query","required":true,"schema":{"enum":["contacts","organizations","interactions","private_docs","public_docs","events","tasks"],"type":"string","title":"Group"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EntityRecord_"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_api_companies__company_uuid__projects__uuid__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_api_companies__company_uuid__projects__uuid__patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetail"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_api_companies__company_uuid__projects__uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/visibility":{"patch":{"tags":["projects"],"summary":"Set Project Visibility","operationId":"set_project_visibility_api_companies__company_uuid__projects__uuid__visibility_patch","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectVisibilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectVisibilityData"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/groups":{"get":{"tags":["projects"],"summary":"List Project Groups","operationId":"list_project_groups_api_companies__company_uuid__projects__uuid__groups_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectGroupsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["projects"],"summary":"Set Project Groups","operationId":"set_project_groups_api_companies__company_uuid__projects__uuid__groups_put","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectGroupsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectGroupsResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/markdown":{"post":{"tags":["projects"],"summary":"Save Project Markdown","operationId":"save_project_markdown_api_companies__company_uuid__projects__uuid__markdown_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownVersionRef"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/versions":{"get":{"tags":["projects"],"summary":"List Project Versions","operationId":"list_project_versions_api_companies__company_uuid__projects__uuid__versions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MarkdownVersionRef"},"title":"Response List Project Versions Api Companies  Company Uuid  Projects  Uuid  Versions Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/versions/{version_id}/diff":{"get":{"tags":["projects"],"summary":"Get Project Version Diff","operationId":"get_project_version_diff_api_companies__company_uuid__projects__uuid__versions__version_id__diff_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownDiff"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/versions/{version_id}":{"get":{"tags":["projects"],"summary":"Get Project Version Content","operationId":"get_project_version_content_api_companies__company_uuid__projects__uuid__versions__version_id__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownVersionContent"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/agent-context/versions":{"get":{"tags":["projects"],"summary":"List Project Agent Context Versions","operationId":"list_project_agent_context_versions_api_companies__company_uuid__projects__uuid__agent_context_versions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MarkdownVersionRef"},"title":"Response List Project Agent Context Versions Api Companies  Company Uuid  Projects  Uuid  Agent Context Versions Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/agent-context/versions/{version_id}":{"get":{"tags":["projects"],"summary":"Get Project Agent Context Version Content","operationId":"get_project_agent_context_version_content_api_companies__company_uuid__projects__uuid__agent_context_versions__version_id__get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownVersionContent"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/visit":{"post":{"tags":["projects"],"summary":"Visit Project","operationId":"visit_project_api_companies__company_uuid__projects__uuid__visit_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/items":{"post":{"tags":["projects"],"summary":"Add Project Items","operationId":"add_project_items_api_companies__company_uuid__projects__uuid__items_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemsAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemsMutationResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/items/import-collection":{"post":{"tags":["projects"],"summary":"Import Project Items From Collection","operationId":"import_project_items_from_collection_api_companies__company_uuid__projects__uuid__items_import_collection_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemsImportCollection"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemsMutationResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/items/{item_id}":{"delete":{"tags":["projects"],"summary":"Delete Project Item","operationId":"delete_project_item_api_companies__company_uuid__projects__uuid__items__item_id__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/conversations":{"get":{"tags":["projects"],"summary":"List Project Conversations","operationId":"list_project_conversations_api_companies__company_uuid__projects__uuid__conversations_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectConversation"},"title":"Response List Project Conversations Api Companies  Company Uuid  Projects  Uuid  Conversations Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Link Project Conversation","operationId":"link_project_conversation_api_companies__company_uuid__projects__uuid__conversations_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConversationLink"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectConversation"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/conversations/{conversation_uuid}":{"delete":{"tags":["projects"],"summary":"Unlink Project Conversation","operationId":"unlink_project_conversation_api_companies__company_uuid__projects__uuid__conversations__conversation_uuid__delete","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"conversation_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/item-suggestions/scan":{"post":{"tags":["projects"],"summary":"Scan Project Item Suggestions","operationId":"scan_project_item_suggestions_api_companies__company_uuid__projects__uuid__item_suggestions_scan_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemSuggestionScanResult"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/item-suggestions":{"get":{"tags":["projects"],"summary":"List Project Item Suggestions","operationId":"list_project_item_suggestions_api_companies__company_uuid__projects__uuid__item_suggestions_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","approved","rejected"],"type":"string"},{"type":"null"}],"default":"pending","title":"Status"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectItemSuggestion"},"title":"Response List Project Item Suggestions Api Companies  Company Uuid  Projects  Uuid  Item Suggestions Get"}}}},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/item-suggestions/{suggestion_id}/approve":{"post":{"tags":["projects"],"summary":"Approve Project Item Suggestion","operationId":"approve_project_item_suggestion_api_companies__company_uuid__projects__uuid__item_suggestions__suggestion_id__approve_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/projects/{uuid}/item-suggestions/{suggestion_id}/reject":{"post":{"tags":["projects"],"summary":"Reject Project Item Suggestion","operationId":"reject_project_item_suggestion_api_companies__company_uuid__projects__uuid__item_suggestions__suggestion_id__reject_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Uuid"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}},{"name":"X-User-Email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Email"}},{"name":"X-User-Name","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Name"}},{"name":"X-Teamspace-Uuid","in":"header","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"X-Teamspace-Uuid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_uuid}/item-suggestions/callback":{"post":{"tags":["agent-project-item-suggestions"],"summary":"Record Project Item Suggestions","description":"Persist the agent's relevant candidates as pending suggestions.","operationId":"record_project_item_suggestions_api_projects__project_uuid__item_suggestions_callback_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"project_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemSuggestionCallback"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectItemSuggestionCallbackResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{content_uuid}/evaluation-suggestion-context":{"get":{"tags":["agent-evaluation-suggestion"],"summary":"Get Evaluation Suggestion Context","description":"The company's Groups/legal entities — the only piece the agent can't get\nfrom S3 itself (norm text, company profile: same bucket/key convention as\n`set_relevance`).","operationId":"get_evaluation_suggestion_context_api_companies__company_uuid__contents__content_uuid__evaluation_suggestion_context_get","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationSuggestionContext"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companies/{company_uuid}/contents/{content_uuid}/evaluation-suggestion-result":{"post":{"tags":["agent-evaluation-suggestion"],"summary":"Save Evaluation Suggestion Result","description":"Callback: persists one agent run's suggested evaluation (or its failure).","operationId":"save_evaluation_suggestion_result_api_companies__company_uuid__contents__content_uuid__evaluation_suggestion_result_post","security":[{"BearerAuth":[]}],"parameters":[{"name":"company_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Company Uuid"}},{"name":"content_uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Content Uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationSuggestionResultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationSuggestionResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/platform-totals":{"get":{"tags":["public"],"summary":"Get Platform Totals","description":"Totals of the global catalogue (jurisdictions, government bodies,\nassociations, service providers, contacts) for the public website.\nNo authentication: counts only global rows, never company data.\nA warm cache does not open a database session.","operationId":"get_platform_totals_api_public_platform_totals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformTotalsResponse"}}}}},"security":[]}}},"components":{"schemas":{"AccessLevel":{"type":"string","enum":["full_access","can_edit","can_comment","can_view"],"title":"AccessLevel"},"AgentCheckFinding":{"properties":{"code":{"type":"string","title":"Code"},"severity":{"type":"string","title":"Severity"},"title":{"type":"string","title":"Title"},"detail":{"type":"string","title":"Detail"},"proposed_change":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposed Change"}},"type":"object","required":["code","severity","title","detail"],"title":"AgentCheckFinding"},"AgentEntityRecord":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"item_id":{"type":"string","format":"uuid4","title":"Item Id"},"object_type":{"type":"string","title":"Object Type"},"title":{"type":"string","title":"Title"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"added_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By Name"},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium"},"bill_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bill Number"},"current_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Phase"},"source_type":{"anyOf":[{"type":"string","enum":["manual","collection_import","migration_backfill","agent_suggestion"]},{"type":"null"}],"title":"Source Type"}},"type":"object","required":["id","item_id","object_type","title"],"title":"AgentEntityRecord","description":"Membership row for the agent context payload (not the human records API)."},"AgentInternalNote":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"author_name":{"type":"string","title":"Author Name"},"text":{"type":"string","title":"Text"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","author_name","text","created_at"],"title":"AgentInternalNote"},"AgentMarkdownSaveResponse":{"properties":{"saved":{"type":"boolean","title":"Saved","default":true},"version_uuid":{"type":"string","format":"uuid4","title":"Version Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["version_uuid","created_at"],"title":"AgentMarkdownSaveResponse"},"AiFillStatusEnum":{"type":"string","enum":["processing","done","failed"],"title":"AiFillStatusEnum","description":"State of the `task-fields-suggester` Managed Agent run for one Task's\nJurídico fields (`assunto_principal`/`criticidade`/`analise_juridico_regulatorio`/\n`prazo_atual`). `None` means it was never triggered (Task is `informativo=True`,\nor predates this feature). `processing` is set right when the Task is created\n(or a retry is requested); the agent's callback flips it to `done`/`failed`.\nOn `failed`, the Jurídico form falls back to manual entry with a \"Fill with\nAI\" retry button."},"AreaLite":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"AreaLite","description":"Área (group) responsável pelo documento, via organizações da company."},"AreaSubstatusEnum":{"type":"string","enum":["nao_iniciado","em_analise"],"title":"AreaSubstatusEnum"},"AuthorTypeEnum":{"type":"string","enum":["Human","System"],"title":"AuthorTypeEnum","description":"Who wrote the note. `SYSTEM` notes are automatic audit entries (e.g. a Task\nstatus-transition log) — they have no `created_by_uuid` and are, by\nconstruction, never editable/deletable via `update()`/`soft_delete()` since\nthose check `created_by_uuid == current_user`."},"Body_create_internal_note_api_companies__company_uuid__internal_notes__post":{"properties":{"text":{"type":"string","title":"Text"},"parent_pk":{"type":"string","title":"Parent Pk"},"parent_type":{"$ref":"#/components/schemas/ParentTypeEnum"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/InternalNoteAttachmentInput"},"type":"array"},{"type":"null"}],"title":"Attachments"}},"type":"object","required":["text","parent_pk","parent_type"],"title":"Body_create_internal_note_api_companies__company_uuid__internal_notes__post"},"Body_update_company_content_api_companies__company_uuid__contents__uuid__patch":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Type of the content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the content"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid","description":"UUID of the main content type from content_types table"},"subtype_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subtype Uuid","description":"UUID of the content subtype; must have parent_type_uuid == type_uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At","description":"Release date of the content"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","description":"Additional metadata for the content (JSON string)"},"organizations_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Organizations List","description":"Replace organizations by UUID"},"jurisdictions_list":{"anyOf":[{"items":{"type":"integer"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Jurisdictions List","description":"Replace jurisdictions by ID"},"sectors_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContentSectorAssociation"},"type":"array"},{"type":"null"}],"title":"Sectors List","description":"List of sector associations. Each item should have: sector_uuid (UUID), impact_level (High|Medium|Low), info (optional dict). None means no change, empty list removes all."},"collections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections","description":"Collections tags for private documents"},"contacts_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Contacts List","description":"Replace related contacts for global documents (company-scoped)"},"embed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Embed","description":"If true, launches ECS task for embedding","default":true}},"type":"object","title":"Body_update_company_content_api_companies__company_uuid__contents__uuid__patch"},"Body_update_global_content_api_contents__uuid__patch":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Type of the content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the content"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid","description":"UUID of the main content type from content_types table"},"subtype_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subtype Uuid","description":"UUID of the content subtype; must have parent_type_uuid == type_uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At","description":"Release date of the content"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","description":"Additional metadata for the content (JSON string)"},"organizations_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Organizations List","description":"Replace organizations by UUID"},"jurisdictions_list":{"anyOf":[{"items":{"type":"integer"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Jurisdictions List","description":"Replace jurisdictions by ID"},"sectors_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContentSectorAssociation"},"type":"array"},{"type":"null"}],"title":"Sectors List","description":"List of sector associations. Each item should have: sector_uuid (UUID), impact_level (High|Medium|Low), info (optional dict). None means no change, empty list removes all."},"embed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Embed","description":"If true, launches ECS task for embedding","default":false}},"type":"object","title":"Body_update_global_content_api_contents__uuid__patch"},"Body_update_internal_note_api_companies__company_uuid__internal_notes__uuid__patch":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"Body_update_internal_note_api_companies__company_uuid__internal_notes__uuid__patch"},"Body_upload_avatar_api_users_avatar_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_avatar_api_users_avatar_post"},"Body_upload_company_file_api_companies__company_uuid__contents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Type of the content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the content"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid","description":"UUID of the main content type from content_types table"},"subtype_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subtype Uuid","description":"UUID of the content subtype; must have parent_type_uuid == type_uuid"},"info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Info","description":"Additional metadata for the content (JSON string)","default":"{}"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At","description":"Release date of the content"},"organizations_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Organizations List","description":"List of related organization UUIDs","default":[]},"jurisdictions_list":{"anyOf":[{"items":{"type":"integer"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Jurisdictions List","description":"List of related jurisdiction IDs","default":[]},"sectors_list":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sectors List","description":"List of sector associations as JSON string. Each item should have: sector_uuid (UUID), impact_level (High|Medium|Low), info (optional dict)"},"collections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections","description":"List of collection names to assign to this content"},"embed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Embed","description":"If true, launches ECS task for embedding","default":true},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility","description":"'personal' (default, only me) or 'company' (everyone with permission)","default":"personal"}},"type":"object","required":["file"],"title":"Body_upload_company_file_api_companies__company_uuid__contents_post"},"Body_upload_file_api_files_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_files_upload_post"},"Body_upload_global_file_api_contents_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Type of the content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the content"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid","description":"UUID of the main content type from content_types table"},"subtype_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subtype Uuid","description":"UUID of the content subtype; must have parent_type_uuid == type_uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At","description":"Release date of the content"},"info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Info","description":"Additional metadata for the content (JSON string)","default":"{}"},"organizations_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Organizations List","description":"List of related organization UUIDs","default":[]},"jurisdictions_list":{"anyOf":[{"items":{"type":"integer"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Jurisdictions List","description":"List of related jurisdiction IDs","default":[]},"sectors_list":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sectors List","description":"List of sector associations as JSON string. Each item should have: sector_uuid (UUID), impact_level (High|Medium|Low), info (optional dict)"},"embed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Embed","description":"If true, launches ECS task for embedding","default":false}},"type":"object","required":["file"],"title":"Body_upload_global_file_api_contents_upload_post"},"Body_upload_report_api_countries__country_id__report_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_report_api_countries__country_id__report_post"},"BulkPermissionProfileAssign":{"properties":{"user_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"User Uuids"},"permission_profile_id":{"type":"string","format":"uuid4","title":"Permission Profile Id"}},"additionalProperties":false,"type":"object","required":["user_uuids","permission_profile_id"],"title":"BulkPermissionProfileAssign"},"ChunkEditStamp":{"properties":{"edited_at":{"type":"string","format":"date-time","title":"Edited At"},"source":{"type":"string","title":"Source"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields"},"text_changed":{"type":"boolean","title":"Text Changed","default":false},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"}},"type":"object","required":["edited_at","source"],"title":"ChunkEditStamp"},"ChunkRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"weight_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Rationale"}},"type":"object","required":["uuid","content_uuid"],"title":"ChunkRef"},"ChunkTagAssociation":{"properties":{"tag_uuid":{"type":"string","format":"uuid4","title":"Tag Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"weight_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Rationale"}},"type":"object","required":["tag_uuid"],"title":"ChunkTagAssociation"},"ChunkTagItem":{"properties":{"chunk_uuid":{"type":"string","format":"uuid4","title":"Chunk Uuid"},"tags":{"items":{"$ref":"#/components/schemas/TagInfo"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["chunk_uuid"],"title":"ChunkTagItem","description":"Chunk with its associated tags"},"CollectionRelationCounts":{"properties":{"contacts":{"type":"integer","title":"Contacts","default":0},"organizations":{"type":"integer","title":"Organizations","default":0},"interactions":{"type":"integer","title":"Interactions","default":0},"private_docs":{"type":"integer","title":"Private Docs","default":0},"public_docs":{"type":"integer","title":"Public Docs","default":0},"events":{"type":"integer","title":"Events","default":0},"tasks":{"type":"integer","title":"Tasks","default":0}},"type":"object","title":"CollectionRelationCounts","description":"Cross-entity membership counts for a company collection."},"CollectionSummaryGroup":{"properties":{"name":{"type":"string","title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"},"group_name":{"type":"string","title":"Group Name","default":""},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/CollectionSummaryItem"},"type":"array","title":"Preview Items"},"relation_counts":{"$ref":"#/components/schemas/CollectionRelationCounts"}},"type":"object","required":["name","total_count","preview_items"],"title":"CollectionSummaryGroup"},"CollectionSummaryItem":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"original_file_name":{"type":"string","title":"Original File Name"},"content_type":{"type":"string","title":"Content Type"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Uuid"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Uuid"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"collections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections"}},"type":"object","required":["uuid","name","original_file_name","content_type","created_at","updated_at"],"title":"CollectionSummaryItem","description":"Lightweight document row for collections tab cards."},"CollectionUnassignedSummary":{"properties":{"total_count":{"type":"integer","title":"Total Count"},"preview_items":{"items":{"$ref":"#/components/schemas/CollectionSummaryItem"},"type":"array","title":"Preview Items"}},"type":"object","required":["total_count","preview_items"],"title":"CollectionUnassignedSummary"},"CollectionsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/CollectionSummaryGroup"},"type":"array","title":"Groups"},"unassigned":{"anyOf":[{"$ref":"#/components/schemas/CollectionUnassignedSummary"},{"type":"null"}]}},"type":"object","required":["groups"],"title":"CollectionsSummaryResponse"},"CommunicationFeedExtra":{"properties":{"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"content":{"$ref":"#/components/schemas/ContentFeedEmbed"},"communication_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Communication Info"}},"type":"object","required":["why_it_matters_text","content"],"title":"CommunicationFeedExtra"},"CommunicationFeedPost":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"communication","title":"Post Type"},"post_infos":{"$ref":"#/components/schemas/CommunicationFeedExtra"}},"type":"object","required":["uuid","company_uuid","relevance","title_generic","description_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","published_at","filters","post_type","post_infos"],"title":"CommunicationFeedPost"},"CommunicationPostCreate":{"properties":{"title_generic":{"type":"string","minLength":1,"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["title_generic","content_uuid"],"title":"CommunicationPostCreate","description":"Create ``posts`` + ``communication_posts`` (company comes from URL)."},"CommunicationPostResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"communication","title":"Post Type","default":"communication"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["uuid","company_uuid","title_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","content_uuid"],"title":"CommunicationPostResponse","description":"Communication post: base + ``communication_posts`` (FK only; no embedded ``contents`` row)."},"CommunicationPostUpdate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Content Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"CommunicationPostUpdate","description":"Partial update: parent row + ``communication_posts``."},"Company":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Country Id"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields","default":{}},"custom_prompts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Prompts","default":{}},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","default":{}},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile","default":{}}},"type":"object","required":["uuid","name"],"title":"Company"},"CompanyContactBulkAction":{"type":"string","enum":["delete","select","deselect","add_owner","add_collections","remove_collections","remove_owner","restore"],"title":"CompanyContactBulkAction","description":"Supported bulk actions for contacts."},"CompanyContactBulkBlockedExample":{"properties":{"contact_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Contact Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CompanyContactBulkBlockedExample","description":"Example of a contact blocked from a bulk operation."},"CompanyContactBulkRequest":{"properties":{"action":{"$ref":"#/components/schemas/CompanyContactBulkAction"},"selected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected","description":"Current list filter by selection status"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Current list search term"},"search_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Name","description":"Current list name-only search term"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Uuid","description":"Current list owner filter"},"organization_uuid":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Organization Uuid","description":"Current list organization UUID filters"},"organization_type":{"anyOf":[{"items":{"$ref":"#/components/schemas/TypeEnum"},"type":"array"},{"type":"null"}],"title":"Organization Type","description":"Current list organization type filters"},"country_id":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Country Id","description":"Current list country ID filters"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position","description":"Current list position filter"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Current list department filter"},"regdoor_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Regdoor Verified","description":"Current list RegDoor verified filter"},"collection_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collection List","description":"Current list collection name filters"},"sort_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By","description":"Current list sort field"},"sort_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort Order","description":"Current list sort order","default":"asc"},"include_contact_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Include Contact Uuids","description":"Manual contact UUID selection. When present, filters are ignored."},"exclude_contact_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Exclude Contact Uuids","description":"Contact UUIDs excluded from a filtered bulk selection"},"assign_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Assign Owner User Uuid","description":"User UUID to assign as owner for add_owner bulk action"},"collections_to_add":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Add","description":"Collection names to merge for add_collections bulk action"},"collections_to_remove":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Remove","description":"Collection names to remove for remove_collections bulk action"}},"type":"object","required":["action"],"title":"CompanyContactBulkRequest","description":"Request schema for bulk contact operations."},"CompanyContactBulkResponse":{"properties":{"action":{"$ref":"#/components/schemas/CompanyContactBulkAction"},"eligible_count":{"type":"integer","title":"Eligible Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"processed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed Count"},"processed_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Processed Uuids","description":"UUIDs of contacts effectively processed by execute"},"blocked_examples":{"items":{"$ref":"#/components/schemas/CompanyContactBulkBlockedExample"},"type":"array","title":"Blocked Examples"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked Reasons"}},"type":"object","required":["action","eligible_count","blocked_count"],"title":"CompanyContactBulkResponse","description":"Response schema for bulk contact preview and execution."},"CompanyContactCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email","default":""},"info":{"additionalProperties":true,"type":"object","title":"Info"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Uuid","description":"Company UUID for internal use only"},"organization_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Organization Uuid","description":"UUID of the organization this contact belongs to"},"experiences":{"items":{"$ref":"#/components/schemas/ContactExperienceInput"},"type":"array","title":"Experiences"},"temporary_avatar_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Avatar Filename"},"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"personal"}},"type":"object","required":["name","info"],"title":"CompanyContactCreate","description":"Schema for creating a private contact within a company context"},"CompanyContactResponse":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email","default":""},"info":{"additionalProperties":true,"type":"object","title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"avatar_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar File Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"company_data":{"items":{"$ref":"#/components/schemas/ContactCompanyData"},"type":"array","title":"Company Data"},"organizations":{"items":{"$ref":"#/components/schemas/ContactOrganization"},"type":"array","title":"Organizations"},"experiences":{"items":{"$ref":"#/components/schemas/ContactExperience"},"type":"array","title":"Experiences"},"owners":{"items":{"$ref":"#/components/schemas/UserBase"},"type":"array","title":"Owners"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]},"groups":{"items":{"$ref":"#/components/schemas/ContactGroupSummary"},"type":"array","title":"Groups"},"contents":{"items":{"$ref":"#/components/schemas/ContentLite"},"type":"array","title":"Contents","default":[]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","readOnly":true},"is_private":{"type":"boolean","title":"Is Private","description":"Whether this contact is private (belongs to a specific company)","readOnly":true},"is_selected":{"type":"boolean","title":"Is Selected","description":"Whether this contact is selected for the company","readOnly":true}},"type":"object","required":["name","info","uuid","created_at","updated_at","company_data","organizations","owners","avatar_url","is_private","is_selected"],"title":"CompanyContactResponse","description":"Response schema for company contact operations"},"CompanyContactSelectionResponse":{"properties":{"contact_uuid":{"type":"string","format":"uuid4","title":"Contact Uuid"},"is_selected":{"type":"boolean","title":"Is Selected"},"message":{"type":"string","title":"Message","description":"Status message for the operation"}},"type":"object","required":["contact_uuid","is_selected","message"],"title":"CompanyContactSelectionResponse","description":"Response schema for contact selection operations"},"CompanyContactUpdate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email","default":""},"info":{"additionalProperties":true,"type":"object","title":"Info"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Uuid","description":"Company UUID for internal use only"},"experiences":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactExperienceInput"},"type":"array"},{"type":"null"}],"title":"Experiences"},"temporary_avatar_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Avatar Filename"},"remove_avatar":{"type":"boolean","title":"Remove Avatar","default":false}},"type":"object","required":["name","info"],"title":"CompanyContactUpdate","description":"Schema for updating a contact within a company context"},"CompanyContentBulkAction":{"type":"string","enum":["delete","add_collections","remove_collections"],"title":"CompanyContentBulkAction","description":"Supported bulk actions for library contents."},"CompanyContentBulkBlockedExample":{"properties":{"content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Content Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CompanyContentBulkBlockedExample","description":"Example of a content item blocked from a bulk operation."},"CompanyContentBulkFailedItem":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"error":{"type":"string","title":"Error"}},"type":"object","required":["company_uuid","content_uuid","error"],"title":"CompanyContentBulkFailedItem"},"CompanyContentBulkRequest":{"properties":{"action":{"$ref":"#/components/schemas/CompanyContentBulkAction"},"collections_to_add":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Add","description":"Collection names to merge for add_collections bulk action"},"collections_to_remove":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Remove","description":"Collection names to remove for remove_collections bulk action"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Current list search term"},"only_company":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Only Company","description":"Only company private documents"},"list_selected_contents":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"List Selected Contents","description":"Only contents selected for the company"},"collection_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collection List","description":"Current list collection name filters"},"collections_unassigned_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Collections Unassigned Only","description":"Only documents with no collections"},"user_uuid_list":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"User Uuid List","description":"Filter by content authors"},"created_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From","description":"Filter by created_at from"},"created_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To","description":"Filter by created_at to"},"updated_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated From","description":"Filter by updated_at from"},"updated_to":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated To","description":"Filter by updated_at to"},"type_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Type List","description":"Filter by content type names"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Filter by a single content type name"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid","description":"Filter by content type UUID"},"organization_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Organization List","description":"Filter by organization UUIDs (OR)"},"jurisdiction_list":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Jurisdiction List","description":"Filter by jurisdiction IDs (OR)"},"sector_uuid_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Sector Uuid List","description":"Filter by sector UUIDs (OR)"},"subsector_uuid_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Subsector Uuid List","description":"Filter by subsector UUIDs (OR)"},"group_uuid_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Group Uuid List","description":"Filter by responsible area (group) UUIDs (OR), via the documents' organizations"},"mine_groups":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mine Groups","description":"When true, adds the authenticated user's areas (leader or member) to group_uuid_list. Ignored when the user has no area."},"unassigned_group":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unassigned Group","description":"Only documents whose organizations have no area in this company"},"only_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Only Public","description":"Only public (global) contents"},"evaluation_status":{"anyOf":[{"type":"string","enum":["pending","in_treatment","treated","not_applicable"]},{"type":"null"}],"title":"Evaluation Status","description":"Company evaluation status of the document (Inbox slices)"},"relevances":{"anyOf":[{"items":{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},"type":"array"},{"type":"null"}],"title":"Relevances","description":"Company relevance filter (OR)"},"sort_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By","description":"Current list sort field"},"sort_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort Order","description":"Current list sort order","default":"desc"},"include_content_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Include Content Uuids","description":"Manual content UUID selection. When present, filters are ignored."},"exclude_content_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Exclude Content Uuids","description":"Content UUIDs excluded from a filtered bulk selection"}},"type":"object","required":["action"],"title":"CompanyContentBulkRequest","description":"Request schema for bulk content operations."},"CompanyContentBulkResponse":{"properties":{"action":{"$ref":"#/components/schemas/CompanyContentBulkAction"},"eligible_count":{"type":"integer","title":"Eligible Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"processed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed Count"},"processed_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Processed Uuids","description":"UUIDs of contents effectively processed by execute"},"blocked_examples":{"items":{"$ref":"#/components/schemas/CompanyContentBulkBlockedExample"},"type":"array","title":"Blocked Examples"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked Reasons"}},"type":"object","required":["action","eligible_count","blocked_count"],"title":"CompanyContentBulkResponse","description":"Response schema for bulk content preview and execution."},"CompanyContentBulkUpdateRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CompanyContentPair"},"type":"array","maxItems":500,"minItems":1,"title":"Items"},"relevance":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}]},"curated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Curated"}},"type":"object","required":["items"],"title":"CompanyContentBulkUpdateRequest"},"CompanyContentBulkUpdateResponse":{"properties":{"requested":{"type":"integer","title":"Requested"},"updated":{"type":"integer","title":"Updated"},"failed":{"items":{"$ref":"#/components/schemas/CompanyContentBulkFailedItem"},"type":"array","title":"Failed"}},"type":"object","required":["requested","updated"],"title":"CompanyContentBulkUpdateResponse"},"CompanyContentCostByCompany":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"company_name":{"type":"string","title":"Company Name"},"sessions":{"type":"integer","title":"Sessions"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"},"jev_cost_usd":{"type":"number","title":"Jev Cost Usd","default":0.0}},"type":"object","required":["company_uuid","company_name","sessions","input_tokens","output_tokens","cost_usd"],"title":"CompanyContentCostByCompany"},"CompanyContentCostTotals":{"properties":{"sessions":{"type":"integer","title":"Sessions","default":0},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0},"jev_cost_usd":{"type":"number","title":"Jev Cost Usd","default":0.0}},"type":"object","title":"CompanyContentCostTotals"},"CompanyContentCostsResponse":{"properties":{"totals":{"$ref":"#/components/schemas/CompanyContentCostTotals"},"companies":{"items":{"$ref":"#/components/schemas/CompanyContentCostByCompany"},"type":"array","title":"Companies"}},"type":"object","required":["totals"],"title":"CompanyContentCostsResponse"},"CompanyContentListItem":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"company_name":{"type":"string","title":"Company Name"},"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"content_name":{"type":"string","title":"Content Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"type_info":{"anyOf":[{"$ref":"#/components/schemas/ContentTypeLite"},{"type":"null"}]},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationLite"},"type":"array","title":"Organizations"},"countries":{"items":{"$ref":"#/components/schemas/CountryLite"},"type":"array","title":"Countries"},"relevance":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}]},"relevance_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance Reason"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["company_uuid","company_name","content_uuid","content_name","created_at","updated_at"],"title":"CompanyContentListItem"},"CompanyContentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CompanyContentListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"},"pages":{"type":"integer","title":"Pages"},"summary":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceSummary"},{"type":"null"}]}},"type":"object","required":["items","total","page","size","pages"],"title":"CompanyContentListResponse"},"CompanyContentPair":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"}},"type":"object","required":["company_uuid","content_uuid"],"title":"CompanyContentPair"},"CompanyContentRelevanceEnum":{"type":"string","enum":["None","Low","Moderate","High","Critical"],"title":"CompanyContentRelevanceEnum"},"CompanyContentRelevanceSummary":{"properties":{"all":{"type":"integer","title":"All"},"none":{"type":"integer","title":"None"},"low":{"type":"integer","title":"Low"},"moderate":{"type":"integer","title":"Moderate"},"high":{"type":"integer","title":"High"},"critical":{"type":"integer","title":"Critical"}},"type":"object","required":["all","none","low","moderate","high","critical"],"title":"CompanyContentRelevanceSummary"},"CompanyContentSetRelevanceFailedBatch":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"content_uuids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Content Uuids"},"error":{"type":"string","title":"Error"}},"type":"object","required":["company_uuid","content_uuids","error"],"title":"CompanyContentSetRelevanceFailedBatch"},"CompanyContentSetRelevanceRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CompanyContentPair"},"type":"array","maxItems":500,"minItems":1,"title":"Items"},"run_main_topics":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run Main Topics"},"run_relevance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run Relevance"},"jev_classification":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Jev Classification"},"follow_up":{"anyOf":[{"type":"string","enum":["none","classify","feed"]},{"type":"null"}],"title":"Follow Up"}},"type":"object","required":["items"],"title":"CompanyContentSetRelevanceRequest"},"CompanyContentSetRelevanceResponse":{"properties":{"requested":{"type":"integer","title":"Requested"},"batches":{"type":"integer","title":"Batches"},"started":{"type":"integer","title":"Started"},"failed":{"items":{"$ref":"#/components/schemas/CompanyContentSetRelevanceFailedBatch"},"type":"array","title":"Failed"}},"type":"object","required":["requested","batches","started"],"title":"CompanyContentSetRelevanceResponse"},"CompanyContentUpdate":{"properties":{"relevance":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}]},"relevance_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance Reason"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"curated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Curated"}},"type":"object","title":"CompanyContentUpdate"},"CompanyCreate":{"properties":{"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"type":"integer","title":"Country Id"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields","default":{}},"custom_prompts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Prompts","default":{}},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile","default":{}},"first_user":{"anyOf":[{"$ref":"#/components/schemas/FirstUserCreate"},{"type":"null"}]}},"type":"object","required":["name","country_id"],"title":"CompanyCreate"},"CompanyDashboard":{"properties":{"total_interactions":{"type":"integer","title":"Total Interactions"},"total_unique_contacts":{"type":"integer","title":"Total Unique Contacts"},"total_unique_organizations":{"type":"integer","title":"Total Unique Organizations"},"interactions_by_day":{"items":{"$ref":"#/components/schemas/InteractionByDay"},"type":"array","title":"Interactions By Day"},"interactions_by_contact":{"items":{"$ref":"#/components/schemas/InteractionByContact"},"type":"array","title":"Interactions By Contact"},"interactions_by_user":{"items":{"$ref":"#/components/schemas/InteractionByUser"},"type":"array","title":"Interactions By User"},"interactions_by_country":{"items":{"$ref":"#/components/schemas/InteractionByCountry"},"type":"array","title":"Interactions By Country"}},"type":"object","required":["total_interactions","total_unique_contacts","total_unique_organizations","interactions_by_day","interactions_by_contact","interactions_by_user","interactions_by_country"],"title":"CompanyDashboard"},"CompanyDescriptionPatch":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"documents":{"anyOf":[{"items":{"$ref":"#/components/schemas/RegulatoryProfileAttachmentInput"},"type":"array"},{"type":"null"}],"title":"Documents"}},"additionalProperties":false,"type":"object","title":"CompanyDescriptionPatch","description":"Partial update for `profile.company` (description and/or overview documents)."},"CompanyInteraction":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"interacted_at":{"type":"string","format":"date-time","title":"Interacted At"},"medium":{"type":"string","title":"Medium"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"sentiment_numeric":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Numeric","default":0},"status":{"type":"string","enum":["draft","published"],"title":"Status","default":"published"},"other_participants":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Other Participants"},"email_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Body"},"source":{"type":"string","enum":["app","email"],"title":"Source","default":"app"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"users":{"items":{"$ref":"#/components/schemas/UserBase"},"type":"array","title":"Users"},"organizations":{"items":{"$ref":"#/components/schemas/app__views__schemas__company_interaction_schema__OrganizationMTM"},"type":"array","title":"Organizations"},"attachments":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Attachments"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","default":{}},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]},"groups":{"items":{"$ref":"#/components/schemas/InteractionGroupSummary"},"type":"array","title":"Groups"},"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"},"access_denied":{"type":"boolean","title":"Access Denied","default":false},"my_access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Access Level"},"attachments_with_urls":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Attachments With Urls","readOnly":true}},"type":"object","required":["title","interacted_at","medium","uuid","company_uuid","created_at","updated_at","users","organizations","attachments","attachments_with_urls"],"title":"CompanyInteraction","description":"Schema for complete company interaction response"},"CompanyInteractionBulkAction":{"type":"string","enum":["delete","update_sentiment","add_collections","remove_collections"],"title":"CompanyInteractionBulkAction","description":"Supported bulk actions for company interactions."},"CompanyInteractionBulkBlockedExample":{"properties":{"company_interaction_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Interaction Uuid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CompanyInteractionBulkBlockedExample","description":"Example of an interaction blocked from a bulk operation."},"CompanyInteractionBulkRequest":{"properties":{"action":{"$ref":"#/components/schemas/CompanyInteractionBulkAction"},"sentiment":{"anyOf":[{"type":"string","enum":["negative","neutral","positive"]},{"type":"null"}],"title":"Sentiment","description":"Target sentiment for update_sentiment bulk action"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Current list search term"},"country_id":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Country Id","description":"Current list country ID filters"},"organization_uuid":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Organization Uuid","description":"Current list organization UUID filters"},"contact_uuid":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Contact Uuid","description":"Current list contact UUID filters"},"user_uuid":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"User Uuid","description":"Current list user UUID filters"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date","description":"Current list start date filter"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date","description":"Current list end date filter"},"status":{"anyOf":[{"items":{"type":"string","enum":["published","draft"]},"type":"array"},{"type":"null"}],"title":"Status","description":"Current list status filters"},"sort_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By","description":"Current list sort field"},"sort_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort Order","description":"Current list sort order","default":"asc"},"include_company_interaction_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Include Company Interaction Uuids","description":"Manual interaction UUID selection. When present, filters are ignored."},"exclude_company_interaction_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Exclude Company Interaction Uuids","description":"Interaction UUIDs excluded from a filtered bulk selection"},"collection_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collection List","description":"Current list collection name filters"},"collections_to_add":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Add","description":"Collection names to merge for add_collections bulk action"},"collections_to_remove":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Remove","description":"Collection names to remove for remove_collections bulk action"}},"type":"object","required":["action"],"title":"CompanyInteractionBulkRequest","description":"Request schema for bulk interaction operations."},"CompanyInteractionBulkResponse":{"properties":{"action":{"$ref":"#/components/schemas/CompanyInteractionBulkAction"},"eligible_count":{"type":"integer","title":"Eligible Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"processed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed Count"},"processed_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Processed Uuids","description":"UUIDs of interactions effectively processed by execute"},"blocked_examples":{"items":{"$ref":"#/components/schemas/CompanyInteractionBulkBlockedExample"},"type":"array","title":"Blocked Examples"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked Reasons"}},"type":"object","required":["action","eligible_count","blocked_count"],"title":"CompanyInteractionBulkResponse","description":"Response schema for bulk interaction preview and execution."},"CompanyInteractionCreate":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"interacted_at":{"type":"string","format":"date-time","title":"Interacted At"},"medium":{"type":"string","title":"Medium"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"sentiment_numeric":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Numeric","default":0},"status":{"type":"string","enum":["draft","published"],"title":"Status","default":"published"},"other_participants":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Other Participants"},"email_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Body"},"source":{"type":"string","enum":["app","email"],"title":"Source","default":"app"},"user_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"User Uuids","default":[]},"organizations":{"items":{"$ref":"#/components/schemas/CompanyInteractionOrganizationContact"},"type":"array","title":"Organizations","default":[]},"attachments":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Attachments"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","default":{}},"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"personal"}},"type":"object","required":["title","interacted_at","medium"],"title":"CompanyInteractionCreate","description":"Schema for creating a company interaction.\n\nParticipants are optional. They can be registered (organizations with\ncontacts), unregistered (other_participants), or omitted entirely."},"CompanyInteractionOrganizationContact":{"properties":{"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"experiences":{"items":{"$ref":"#/components/schemas/InteractionExperienceRef"},"type":"array","title":"Experiences"}},"type":"object","required":["organization_uuid","experiences"],"title":"CompanyInteractionOrganizationContact","description":"Schema for organization and its experiences in an interaction"},"CompanyInteractionUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"interacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Interacted At"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"sentiment_numeric":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Numeric"},"status":{"anyOf":[{"type":"string","enum":["draft","published"]},{"type":"null"}],"title":"Status"},"attachments":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Attachments"},"user_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"User Uuids"},"organizations":{"anyOf":[{"items":{"$ref":"#/components/schemas/CompanyInteractionOrganizationContact"},"type":"array"},{"type":"null"}],"title":"Organizations"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","default":{}},"other_participants":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Other Participants"},"email_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Body"},"source":{"anyOf":[{"type":"string","enum":["app","email"]},{"type":"null"}],"title":"Source"}},"type":"object","title":"CompanyInteractionUpdate","description":"Schema for updating a company interaction"},"CompanyMTM":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"custom_prompts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Prompts"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["uuid","name"],"title":"CompanyMTM","description":"The Suffix MTM refers to Many-to-Many\nThis class should be used as the type for fields with M2M relationships with company\nto prevent cyclic errors because of those relationships"},"CompanyOrganizationBulkAction":{"type":"string","enum":["delete","select","deselect","add_collections","remove_collections","restore","add_groups","remove_groups","replace_groups"],"title":"CompanyOrganizationBulkAction","description":"Supported bulk actions for organizations."},"CompanyOrganizationBulkBlockedExample":{"properties":{"organization_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Organization Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CompanyOrganizationBulkBlockedExample","description":"Example of an organization blocked from a bulk operation."},"CompanyOrganizationBulkRequest":{"properties":{"action":{"$ref":"#/components/schemas/CompanyOrganizationBulkAction"},"selected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected","description":"Current list filter by selection status"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Current list search term"},"country_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Country Id","description":"Current list country filter"},"organization_type":{"anyOf":[{"items":{"$ref":"#/components/schemas/TypeEnum"},"type":"array"},{"type":"null"}],"title":"Organization Type","description":"Current list organization type filters"},"government_body_type":{"anyOf":[{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array"},{"type":"null"}],"title":"Government Body Type","description":"Current list government body role filters"},"service_provider_type":{"anyOf":[{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array"},{"type":"null"}],"title":"Service Provider Type","description":"Current list service provider subtype filters"},"regulatory_scope":{"anyOf":[{"items":{"$ref":"#/components/schemas/RegulatoryScopeEnum"},"type":"array"},{"type":"null"}],"title":"Regulatory Scope","description":"Current list regulatory scope filters"},"regulatory_power":{"anyOf":[{"items":{"$ref":"#/components/schemas/RegulatoryPowerEnum"},"type":"array"},{"type":"null"}],"title":"Regulatory Power","description":"Current list regulatory power filters"},"institutional_form":{"anyOf":[{"items":{"$ref":"#/components/schemas/InstitutionalFormEnum"},"type":"array"},{"type":"null"}],"title":"Institutional Form","description":"Current list institutional form filters"},"collection_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collection List","description":"Current list collection name filters"},"sort_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By","description":"Current list sort field"},"sort_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort Order","description":"Current list sort order","default":"asc"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Uuid","description":"Current list owner filter"},"include_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Include Organization Uuids","description":"Manual organization UUID selection. When present, filters are ignored."},"exclude_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Exclude Organization Uuids","description":"Organization UUIDs excluded from a filtered bulk selection"},"group_uuid_list":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Group Uuid List","description":"Current list area (group) filter"},"unassigned_group":{"type":"boolean","title":"Unassigned Group","description":"Current list filter: organizations without area","default":false},"group_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Group Uuids","description":"Areas (groups) applied by add_groups/remove_groups/replace_groups"},"collections_to_add":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Add","description":"Collection names to merge for add_collections bulk action"},"collections_to_remove":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Remove","description":"Collection names to remove for remove_collections bulk action"}},"type":"object","required":["action"],"title":"CompanyOrganizationBulkRequest","description":"Request schema for bulk organization operations."},"CompanyOrganizationBulkResponse":{"properties":{"action":{"$ref":"#/components/schemas/CompanyOrganizationBulkAction"},"eligible_count":{"type":"integer","title":"Eligible Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"processed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed Count"},"processed_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Processed Uuids","description":"UUIDs of organizations effectively processed by execute"},"blocked_examples":{"items":{"$ref":"#/components/schemas/CompanyOrganizationBulkBlockedExample"},"type":"array","title":"Blocked Examples"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked Reasons"},"eligible_examples":{"items":{"$ref":"#/components/schemas/CompanyOrganizationBulkSample"},"type":"array","title":"Eligible Examples","description":"Amostra (até 20) das organizações afetadas; usada no dry run"}},"type":"object","required":["action","eligible_count","blocked_count"],"title":"CompanyOrganizationBulkResponse","description":"Response schema for bulk organization preview and execution."},"CompanyOrganizationBulkSample":{"properties":{"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["organization_uuid"],"title":"CompanyOrganizationBulkSample","description":"Organization included in a bulk operation sample."},"CompanyOrganizationCreate":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment","default":"neutral"},"parent_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Parent Organization Uuids"},"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"contacts_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Total"},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types"},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types"},"country_id":{"type":"integer","title":"Country Id"},"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"personal"}},"type":"object","required":["name","type","country_id"],"title":"CompanyOrganizationCreate","description":"Schema for creating a private organization within a company context"},"CompanyOrganizationResponse":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment","default":"neutral"},"parent_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Parent Organization Uuids"},"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"contacts_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Total"},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types"},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_data":{"items":{"$ref":"#/components/schemas/OrganizationCompanyData"},"type":"array","title":"Company Data"},"is_private":{"type":"boolean","title":"Is Private"},"is_selected":{"type":"boolean","title":"Is Selected","description":"Whether this organization is selected for the company","default":false},"country":{"$ref":"#/components/schemas/OrganizationCountry"},"owners":{"items":{"$ref":"#/components/schemas/UserBase"},"type":"array","title":"Owners","description":"List of owners from the requesting company"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]},"groups":{"items":{"$ref":"#/components/schemas/OrganizationGroupSummary"},"type":"array","title":"Groups","description":"Áreas responsáveis pela organização na company"},"parents":{"items":{"$ref":"#/components/schemas/OrganizationParentSummary"},"type":"array","title":"Parents"}},"type":"object","required":["name","type","uuid","company_data","is_private","country"],"title":"CompanyOrganizationResponse","description":"Response schema for company organization operations"},"CompanyOrganizationSelectionResponse":{"properties":{"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"is_selected":{"type":"boolean","title":"Is Selected"}},"type":"object","required":["organization_uuid","is_selected"],"title":"CompanyOrganizationSelectionResponse","description":"Response schema for organization selection operations"},"CompanyOrganizationUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"$ref":"#/components/schemas/TypeEnum"},{"type":"null"}]},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment","default":"neutral"},"country_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Country Id"},"parent_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Parent Organization Uuids"},"government_body_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array"},{"type":"null"}],"title":"Government Body Types"},"service_provider_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array"},{"type":"null"}],"title":"Service Provider Types"}},"type":"object","title":"CompanyOrganizationUpdate","description":"Schema for updating company organization properties"},"CompanyRelevancePrompt":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"company_name":{"type":"string","title":"Company Name"},"s3_key":{"type":"string","title":"S3 Key"},"content":{"type":"string","title":"Content"}},"type":"object","required":["company_uuid","company_name","s3_key","content"],"title":"CompanyRelevancePrompt"},"CompanySetupProfileResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["uuid"],"title":"CompanySetupProfileResponse","description":"Company profile returned by GET /setup for the setup app to load and edit."},"CompanySetupRequest":{"properties":{"token":{"type":"string","title":"Token"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"country_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Country Id"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"custom_prompts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Prompts"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["token"],"title":"CompanySetupRequest"},"CompanySetupResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"},"message":{"type":"string","title":"Message"}},"type":"object","required":["uuid","message"],"title":"CompanySetupResponse"},"CompanyTaskSettingsResponse":{"properties":{"sla_dias_juridico_triagem":{"type":"integer","title":"Sla Dias Juridico Triagem"},"sla_dias_juridico_aprovacao":{"type":"integer","title":"Sla Dias Juridico Aprovacao"}},"type":"object","required":["sla_dias_juridico_triagem","sla_dias_juridico_aprovacao"],"title":"CompanyTaskSettingsResponse"},"CompanyTaskSettingsUpdateRequest":{"properties":{"sla_dias_juridico_triagem":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sla Dias Juridico Triagem"},"sla_dias_juridico_aprovacao":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sla Dias Juridico Aprovacao"}},"additionalProperties":false,"type":"object","title":"CompanyTaskSettingsUpdateRequest"},"CompanyUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields","default":{}},"custom_prompts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Prompts","default":{}},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile","default":{}},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","title":"CompanyUpdate"},"CompanyUserAccessUpdate":{"properties":{"permission_profile_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Permission Profile Id"},"is_super_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Super Admin"}},"additionalProperties":false,"type":"object","title":"CompanyUserAccessUpdate","description":"Change the company permission profile and/or the platform super-admin flag."},"CompanyUserMe":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"custom_prompts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Prompts"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"profile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile"},"login_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Domain"},"needs_setup":{"type":"boolean","title":"Needs Setup","default":false},"setup_prefilled":{"type":"boolean","title":"Setup Prefilled","default":false},"can_manage_permission_profiles":{"type":"boolean","title":"Can Manage Permission Profiles","default":false}},"type":"object","required":["uuid","name"],"title":"CompanyUserMe","description":"Company shape embedded in GET /api/users/me (includes regulatory/setup profile JSON)."},"CompanyVaultFileContent":{"properties":{"filename":{"type":"string","title":"Filename"},"label":{"type":"string","title":"Label"},"content":{"type":"string","title":"Content"}},"type":"object","required":["filename","label","content"],"title":"CompanyVaultFileContent"},"CompanyVaultFileList":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"files":{"items":{"$ref":"#/components/schemas/CompanyVaultFileRef"},"type":"array","title":"Files"}},"type":"object","required":["company_uuid","files"],"title":"CompanyVaultFileList"},"CompanyVaultFileRef":{"properties":{"filename":{"type":"string","title":"Filename"},"label":{"type":"string","title":"Label"},"content":{"type":"string","title":"Content"}},"type":"object","required":["filename","label","content"],"title":"CompanyVaultFileRef"},"CompanyVaultFileSaveRequest":{"properties":{"content":{"type":"string","title":"Content"}},"additionalProperties":false,"type":"object","required":["content"],"title":"CompanyVaultFileSaveRequest"},"CompanyVaultFileSaveResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"saved":{"type":"boolean","title":"Saved"}},"type":"object","required":["filename","saved"],"title":"CompanyVaultFileSaveResponse"},"ConsolidatorPromptContent":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"group":{"type":"string","enum":["structure","history"],"title":"Group","default":"structure"},"source":{"type":"string","enum":["s3","missing"],"title":"Source"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","title","description","s3_key","source","content"],"title":"ConsolidatorPromptContent"},"ConsolidatorPromptList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConsolidatorPromptRef"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ConsolidatorPromptList"},"ConsolidatorPromptRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"group":{"type":"string","enum":["structure","history"],"title":"Group","default":"structure"}},"type":"object","required":["id","title","description","s3_key"],"title":"ConsolidatorPromptRef"},"ConsolidatorPromptSaveRequest":{"properties":{"content":{"type":"string","title":"Content"}},"additionalProperties":false,"type":"object","required":["content"],"title":"ConsolidatorPromptSaveRequest"},"ConsultationReminderFeedExtra":{"properties":{"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"event":{"$ref":"#/components/schemas/EventFeedEmbed"},"consultation_reminder_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Consultation Reminder Info"}},"type":"object","required":["event_uuid","days_remaining","event"],"title":"ConsultationReminderFeedExtra"},"ConsultationReminderFeedPost":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"consultation_reminder","title":"Post Type"},"post_infos":{"$ref":"#/components/schemas/ConsultationReminderFeedExtra"}},"type":"object","required":["uuid","company_uuid","relevance","title_generic","description_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","published_at","filters","post_type","post_infos"],"title":"ConsultationReminderFeedPost"},"ConsultationReminderPostCreate":{"properties":{"title_generic":{"type":"string","minLength":1,"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["title_generic","event_uuid"],"title":"ConsultationReminderPostCreate","description":"Create ``posts`` + ``consultation_reminder_posts`` (company comes from URL)."},"ConsultationReminderPostResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"consultation_reminder","title":"Post Type","default":"consultation_reminder"},"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["uuid","company_uuid","title_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","event_uuid"],"title":"ConsultationReminderPostResponse","description":"Consultation reminder post: base + ``consultation_reminder_posts``."},"ConsultationReminderPostUpdate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"event_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Event Uuid"},"days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Remaining"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"ConsultationReminderPostUpdate","description":"Partial update: parent row + ``consultation_reminder_posts``."},"Contact":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"info":{"additionalProperties":true,"type":"object","title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"avatar_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar File Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_private":{"type":"boolean","title":"Is Private"},"is_visible":{"type":"boolean","title":"Is Visible","default":true},"organizations":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Organizations"},"experiences":{"items":{"$ref":"#/components/schemas/ContactExperience"},"type":"array","title":"Experiences"},"owners":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserMTM"},"type":"array"},{"type":"null"}],"title":"Owners","default":[]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","readOnly":true}},"type":"object","required":["name","email","info","uuid","created_at","updated_at","is_private","organizations","avatar_url"],"title":"Contact"},"ContactCollectionsSummaryGroup":{"properties":{"name":{"type":"string","title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"},"group_name":{"type":"string","title":"Group Name","default":""},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/ContactCollectionsSummaryItem"},"type":"array","title":"Preview Items"},"relation_counts":{"$ref":"#/components/schemas/CollectionRelationCounts"}},"type":"object","required":["name","total_count","preview_items"],"title":"ContactCollectionsSummaryGroup","description":"A single named collection with its preview contacts."},"ContactCollectionsSummaryItem":{"properties":{"uuid":{"type":"string","title":"Uuid"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]}},"type":"object","required":["uuid","name"],"title":"ContactCollectionsSummaryItem","description":"Preview item rendered inside a collection card."},"ContactCollectionsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ContactCollectionsSummaryGroup"},"type":"array","title":"Groups"},"unassigned":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Unassigned"}},"type":"object","required":["groups"],"title":"ContactCollectionsSummaryResponse","description":"Grouped collections summary for the contacts Collections tab."},"ContactCollectionsUpdateBody":{"properties":{"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"additionalProperties":false,"type":"object","required":["collections"],"title":"ContactCollectionsUpdateBody","description":"Request body to replace all collections for a contact."},"ContactCompanyData":{"properties":{"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","title":"ContactCompanyData"},"ContactContentsUpdateBody":{"properties":{"contents_list":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Contents List"}},"additionalProperties":false,"type":"object","required":["contents_list"],"title":"ContactContentsUpdateBody","description":"Request body to replace all linked global documents for a contact."},"ContactCountry":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"}},"type":"object","required":["id","name","code"],"title":"ContactCountry"},"ContactCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"info":{"additionalProperties":true,"type":"object","title":"Info"},"organization_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Organization Uuid"},"experiences":{"items":{"$ref":"#/components/schemas/ContactExperienceInput"},"type":"array","title":"Experiences"},"temporary_avatar_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Avatar Filename"},"is_visible":{"type":"boolean","title":"Is Visible","default":true}},"type":"object","required":["name","email","info"],"title":"ContactCreate"},"ContactExperience":{"properties":{"uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Uuid"},"organization":{"$ref":"#/components/schemas/ContactOrganization"},"role":{"type":"string","title":"Role","default":""},"info":{"additionalProperties":true,"type":"object","title":"Info"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},"type":"object","required":["organization"],"title":"ContactExperience","description":"One experience returned with a contact."},"ContactExperienceInput":{"properties":{"uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Uuid"},"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"role":{"type":"string","title":"Role","default":""},"info":{"additionalProperties":true,"type":"object","title":"Info"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},"type":"object","required":["organization_uuid"],"title":"ContactExperienceInput","description":"One experience row written with a contact."},"ContactGroupSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ContactGroupSummary","description":"Área (group) atribuída a um contact."},"ContactGroupsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ContactGroupSummary"},"type":"array","title":"Groups"}},"type":"object","title":"ContactGroupsResponse"},"ContactGroupsUpdate":{"properties":{"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"}},"additionalProperties":false,"type":"object","title":"ContactGroupsUpdate"},"ContactLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["uuid","name","email"],"title":"ContactLite","description":"Lightweight contact row for content detail embeds."},"ContactOrganization":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country":{"$ref":"#/components/schemas/ContactCountry"},"type":{"type":"string","title":"Type"}},"type":"object","required":["uuid","name","country","type"],"title":"ContactOrganization"},"ContactUpdate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"info":{"additionalProperties":true,"type":"object","title":"Info"},"experiences":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactExperienceInput"},"type":"array"},{"type":"null"}],"title":"Experiences"},"temporary_avatar_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Avatar Filename"},"remove_avatar":{"type":"boolean","title":"Remove Avatar","default":false},"is_visible":{"type":"boolean","title":"Is Visible","default":true}},"type":"object","required":["name","email","info"],"title":"ContactUpdate"},"ContentAgentCheckResponse":{"properties":{"content_uuid":{"type":"string","title":"Content Uuid"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary"},"findings":{"items":{"$ref":"#/components/schemas/AgentCheckFinding"},"type":"array","title":"Findings"},"proposed_changes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Proposed Changes"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"},"generated_at":{"type":"string","title":"Generated At"}},"type":"object","required":["content_uuid","status","summary","findings","proposed_changes","evidence","generated_at"],"title":"ContentAgentCheckResponse"},"ContentChunk":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"text":{"type":"string","title":"Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"future_updates":{"items":{"type":"string","format":"date"},"type":"array","title":"Future Updates"},"last_edit":{"anyOf":[{"$ref":"#/components/schemas/ChunkEditStamp"},{"type":"null"}]},"content":{"anyOf":[{"$ref":"#/components/schemas/app__views__schemas__content_chunk_schema__ContentRef"},{"type":"null"}]},"tags":{"items":{"$ref":"#/components/schemas/ChunkTagAssociation"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["uuid","text"],"title":"ContentChunk"},"ContentChunkConflict":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"chunk_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Chunk Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"field":{"type":"string","title":"Field"},"kept":{"title":"Kept"},"incoming":{"title":"Incoming"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["uuid","content_uuid","field","source","status","created_at"],"title":"ContentChunkConflict"},"ContentChunkConflictList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentChunkConflict"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ContentChunkConflictList"},"ContentChunkConflictResolve":{"properties":{"action":{"type":"string","enum":["keep","accept"],"title":"Action"}},"type":"object","required":["action"],"title":"ContentChunkConflictResolve"},"ContentChunkCreate":{"properties":{"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"text":{"type":"string","title":"Text"},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Embedding"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChunkTagAssociation"},"type":"array"},{"type":"null"}],"title":"Tags"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"future_updates":{"anyOf":[{"items":{"type":"string","format":"date"},"type":"array"},{"type":"null"}],"title":"Future Updates"}},"type":"object","required":["content_uuid","text"],"title":"ContentChunkCreate"},"ContentChunkEdit":{"properties":{"edited_at":{"type":"string","format":"date-time","title":"Edited At"},"source":{"type":"string","title":"Source"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields"},"text_changed":{"type":"boolean","title":"Text Changed","default":false},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"chunk_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Chunk Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"}},"type":"object","required":["edited_at","source","uuid","content_uuid"],"title":"ContentChunkEdit"},"ContentChunkSplitPiece":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"parent_chunk_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Chunk Uuid"},"as_child":{"type":"boolean","title":"As Child","default":false}},"type":"object","required":["text"],"title":"ContentChunkSplitPiece"},"ContentChunkSplitRequest":{"properties":{"kept_text":{"type":"string","minLength":1,"title":"Kept Text"},"new_chunks":{"items":{"$ref":"#/components/schemas/ContentChunkSplitPiece"},"type":"array","minItems":1,"title":"New Chunks"}},"type":"object","required":["kept_text","new_chunks"],"title":"ContentChunkSplitRequest"},"ContentChunkSplitResult":{"properties":{"source":{"$ref":"#/components/schemas/ContentChunk"},"created":{"items":{"$ref":"#/components/schemas/ContentChunk"},"type":"array","title":"Created"}},"type":"object","required":["source","created"],"title":"ContentChunkSplitResult"},"ContentChunkUpdate":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Embedding"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChunkTagAssociation"},"type":"array"},{"type":"null"}],"title":"Tags"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"future_updates":{"anyOf":[{"items":{"type":"string","format":"date"},"type":"array"},{"type":"null"}],"title":"Future Updates"}},"type":"object","title":"ContentChunkUpdate"},"ContentConsolidatorLaunchRequest":{"properties":{"company_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Company Uuid"},"content_uuids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"minItems":1,"title":"Content Uuids"},"mode":{"type":"string","enum":["structure","history"],"title":"Mode"},"run_type":{"anyOf":[{"type":"string","enum":["baseline","increment","consolidation"]},{"type":"null"}],"title":"Run Type"},"base_content_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Content Uuid"}},"type":"object","required":["content_uuids","mode"],"title":"ContentConsolidatorLaunchRequest"},"ContentConsolidatorLaunchResponse":{"properties":{"message":{"type":"string","title":"Message"},"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"content_uuids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Content Uuids"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["message","company_uuid","content_uuids"],"title":"ContentConsolidatorLaunchResponse"},"ContentConversation":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"session_id":{"type":"string","title":"Session Id"},"title":{"type":"string","title":"Title"},"author_name":{"type":"string","title":"Author Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","session_id","title","author_name","created_at"],"title":"ContentConversation"},"ContentConversationLink":{"properties":{"conversation_uuid":{"type":"string","format":"uuid4","title":"Conversation Uuid"}},"additionalProperties":false,"type":"object","required":["conversation_uuid"],"title":"ContentConversationLink"},"ContentCurationResponse":{"properties":{"summary":{"anyOf":[{"$ref":"#/components/schemas/ContentCurationSummary"},{"type":"null"}]},"items":{"items":{"$ref":"#/components/schemas/ContentWithRelationsResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"ContentCurationResponse"},"ContentCurationSummary":{"properties":{"all":{"type":"integer","title":"All"},"missing_type":{"type":"integer","title":"Missing Type"},"missing_sectors":{"type":"integer","title":"Missing Sectors"},"missing_chunks":{"type":"integer","title":"Missing Chunks"},"missing_published_at":{"type":"integer","title":"Missing Published At"},"consolidator_failed":{"type":"integer","title":"Consolidator Failed"},"chunk_errors":{"type":"integer","title":"Chunk Errors"}},"type":"object","required":["all","missing_type","missing_sectors","missing_chunks","missing_published_at","consolidator_failed","chunk_errors"],"title":"ContentCurationSummary"},"ContentCurationView":{"type":"string","enum":["all","missing_type","missing_sectors","missing_chunks","missing_published_at","consolidator_failed","chunk_errors"],"title":"ContentCurationView"},"ContentEmbeddingsLaunchRequest":{"properties":{"content_uuids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"minItems":1,"title":"Content Uuids"},"operation":{"type":"string","enum":["CREATE","UPDATE"],"title":"Operation","default":"UPDATE"}},"type":"object","required":["content_uuids"],"title":"ContentEmbeddingsLaunchRequest"},"ContentEmbeddingsLaunchResponse":{"properties":{"message":{"type":"string","title":"Message"},"content_uuids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Content Uuids"},"operation":{"type":"string","enum":["CREATE","UPDATE"],"title":"Operation"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["message","content_uuids","operation"],"title":"ContentEmbeddingsLaunchResponse"},"ContentEvaluationLite":{"properties":{"status":{"type":"string","enum":["pendente","verificado"],"title":"Status"},"not_applicable":{"type":"boolean","title":"Not Applicable","default":false},"areas":{"items":{"$ref":"#/components/schemas/AreaLite"},"type":"array","title":"Areas","default":[]},"evaluated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Evaluated At"},"evaluated_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluated By Name"}},"type":"object","required":["status"],"title":"ContentEvaluationLite","description":"Avaliação do documento na company: ``pendente`` até existir alguma task."},"ContentEvaluationStatusResponse":{"properties":{"status":{"type":"string","enum":["pendente","verificado"],"title":"Status"},"can_evaluate":{"type":"boolean","title":"Can Evaluate"},"evaluated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Evaluated At"},"evaluated_by":{"anyOf":[{"$ref":"#/components/schemas/UserBase"},{"type":"null"}]},"aplicavel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Aplicavel"},"justificativa_nao_aplicavel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justificativa Nao Aplicavel"},"tasks":{"items":{"$ref":"#/components/schemas/EvaluationStatusTaskItem"},"type":"array","title":"Tasks","default":[]}},"type":"object","required":["status","can_evaluate"],"title":"ContentEvaluationStatusResponse"},"ContentEvaluationSubmitRequest":{"properties":{"aplicavel":{"type":"boolean","title":"Aplicavel"},"justificativa_nao_aplicavel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justificativa Nao Aplicavel"},"tasks":{"anyOf":[{"items":{"$ref":"#/components/schemas/EvaluationTaskItem"},"type":"array"},{"type":"null"}],"title":"Tasks"},"prazo_vigencia_norma":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Vigencia Norma"}},"type":"object","required":["aplicavel"],"title":"ContentEvaluationSubmitRequest"},"ContentEvaluationSubmitResponse":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/ContentEvaluationTaskResponse"},"type":"array","title":"Tasks"}},"type":"object","required":["tasks"],"title":"ContentEvaluationSubmitResponse"},"ContentEvaluationTaskResponse":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"group_uuid":{"type":"string","format":"uuid","title":"Group Uuid"},"owner_group_uuid":{"type":"string","format":"uuid","title":"Owner Group Uuid"},"status":{"$ref":"#/components/schemas/TaskStatusEnum"},"aplicavel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Aplicavel"}},"type":"object","required":["uuid","group_uuid","owner_group_uuid","status"],"title":"ContentEvaluationTaskResponse"},"ContentFeedEmbed":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"original_file_name":{"type":"string","title":"Original File Name"},"content_type":{"type":"string","title":"Content Type"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Type Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"sectors":{"items":{"$ref":"#/components/schemas/SectorInContent"},"type":"array","title":"Sectors"}},"type":"object","required":["uuid","name","original_file_name","content_type","type"],"title":"ContentFeedEmbed"},"ContentGroupSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ContentGroupSummary","description":"Área (group) atribuída directamente a um document."},"ContentGroupsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ContentGroupSummary"},"type":"array","title":"Groups"}},"type":"object","title":"ContentGroupsResponse"},"ContentGroupsUpdate":{"properties":{"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"}},"additionalProperties":false,"type":"object","title":"ContentGroupsUpdate"},"ContentLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"is_global_link":{"type":"boolean","title":"Is Global Link","default":false}},"type":"object","required":["uuid","name"],"title":"ContentLite","description":"Lightweight content row for contact detail embeds."},"ContentProcessingCostByContent":{"properties":{"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"content_name":{"type":"string","title":"Content Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"type_info":{"anyOf":[{"$ref":"#/components/schemas/ContentTypeLite"},{"type":"null"}]},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationLite"},"type":"array","title":"Organizations"},"countries":{"items":{"$ref":"#/components/schemas/CountryLite"},"type":"array","title":"Countries"},"embeddings_cost_usd":{"type":"number","title":"Embeddings Cost Usd","default":0.0},"main_topics_cost_usd":{"type":"number","title":"Main Topics Cost Usd","default":0.0},"main_topics_simple_cost_usd":{"type":"number","title":"Main Topics Simple Cost Usd","default":0.0},"consolidator_cost_usd":{"type":"number","title":"Consolidator Cost Usd","default":0.0},"public_communications_cost_usd":{"type":"number","title":"Public Communications Cost Usd","default":0.0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0}},"type":"object","required":["content_uuid","content_name"],"title":"ContentProcessingCostByContent"},"ContentProcessingCostTotals":{"properties":{"cost_usd":{"type":"number","title":"Cost Usd","default":0.0},"embeddings_cost_usd":{"type":"number","title":"Embeddings Cost Usd","default":0.0},"main_topics_cost_usd":{"type":"number","title":"Main Topics Cost Usd","default":0.0},"main_topics_simple_cost_usd":{"type":"number","title":"Main Topics Simple Cost Usd","default":0.0},"consolidator_cost_usd":{"type":"number","title":"Consolidator Cost Usd","default":0.0},"public_communications_cost_usd":{"type":"number","title":"Public Communications Cost Usd","default":0.0},"contents":{"type":"integer","title":"Contents","default":0}},"type":"object","title":"ContentProcessingCostTotals","description":"Header totals for the Contents costs dashboard."},"ContentProcessingCostsResponse":{"properties":{"totals":{"$ref":"#/components/schemas/ContentProcessingCostTotals"},"contents":{"items":{"$ref":"#/components/schemas/ContentProcessingCostByContent"},"type":"array","title":"Contents"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"size":{"type":"integer","title":"Size","default":20},"pages":{"type":"integer","title":"Pages","default":0}},"type":"object","required":["totals"],"title":"ContentProcessingCostsResponse"},"ContentResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"original_file_name":{"type":"string","title":"Original File Name"},"content_type":{"type":"string","title":"Content Type"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Uuid"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"collections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections"},"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"},"relevance":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}]},"relevance_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance Reason"},"access_denied":{"type":"boolean","title":"Access Denied","default":false},"my_access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Access Level"}},"type":"object","required":["uuid","name","original_file_name","content_type","type","created_at","updated_at","released_at"],"title":"ContentResponse","description":"Response model for content endpoint"},"ContentSectorAssociation":{"properties":{"sector_uuid":{"type":"string","format":"uuid4","title":"Sector Uuid"},"impact_level":{"$ref":"#/components/schemas/ImpactLevelEnum"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["sector_uuid","impact_level"],"title":"ContentSectorAssociation","description":"Schema for associating a content with a sector (used in SectorCreate/Update)"},"ContentSyncFieldDiff":{"properties":{"field":{"type":"string","title":"Field"},"eu":{"anyOf":[{},{"type":"null"}],"title":"Eu"},"us":{"anyOf":[{},{"type":"null"}],"title":"Us"}},"type":"object","required":["field"],"title":"ContentSyncFieldDiff"},"ContentSyncRegionSnapshot":{"properties":{"region":{"type":"string","title":"Region"},"available":{"type":"boolean","title":"Available"},"content_exists":{"type":"boolean","title":"Content Exists"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"type_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Uuid"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"organization_uuids":{"items":{"type":"string"},"type":"array","title":"Organization Uuids"},"jurisdiction_ids":{"items":{"type":"integer"},"type":"array","title":"Jurisdiction Ids"},"sector_uuids":{"items":{"type":"string"},"type":"array","title":"Sector Uuids"},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"event_count":{"type":"integer","title":"Event Count","default":0},"original_file_exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Original File Exists"},"text_file_exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Text File Exists"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["region","available","content_exists"],"title":"ContentSyncRegionSnapshot"},"ContentSyncStatusResponse":{"properties":{"content_uuid":{"type":"string","title":"Content Uuid"},"source_of_truth":{"type":"string","title":"Source Of Truth"},"eu":{"$ref":"#/components/schemas/ContentSyncRegionSnapshot"},"us":{"$ref":"#/components/schemas/ContentSyncRegionSnapshot"},"in_sync":{"type":"boolean","title":"In Sync"},"diffs":{"items":{"$ref":"#/components/schemas/ContentSyncFieldDiff"},"type":"array","title":"Diffs"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["content_uuid","source_of_truth","eu","us","in_sync","diffs","notes"],"title":"ContentSyncStatusResponse"},"ContentTextResponse":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"ContentTextResponse","description":"Response model for content text endpoint"},"ContentType":{"properties":{"name":{"type":"string","title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","default":{}},"parent_type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Type Uuid"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"subtypes":{"items":{"$ref":"#/components/schemas/ContentTypeRef"},"type":"array","title":"Subtypes"}},"type":"object","required":["name","uuid","created_at","updated_at"],"title":"ContentType"},"ContentTypeCreate":{"properties":{"name":{"type":"string","title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","default":{}},"parent_type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Type Uuid"}},"type":"object","required":["name"],"title":"ContentTypeCreate"},"ContentTypeLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"parent_type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Type Uuid"}},"type":"object","required":["uuid","name"],"title":"ContentTypeLite"},"ContentTypeRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"parent_type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Type Uuid"}},"type":"object","required":["uuid","name"],"title":"ContentTypeRef","description":"Lightweight content type reference (used for nested subtypes)."},"ContentTypeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"parent_type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Type Uuid"}},"type":"object","title":"ContentTypeUpdate"},"ContentVisibilityData":{"properties":{"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","title":"ContentVisibilityData"},"ContentVisibilityUpdate":{"properties":{"visibility":{"type":"string","title":"Visibility","description":"'company' or 'personal'"}},"additionalProperties":false,"type":"object","required":["visibility"],"title":"ContentVisibilityUpdate"},"ContentWithCompanyRelevanceResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"original_file_name":{"type":"string","title":"Original File Name"},"content_type":{"type":"string","title":"Content Type"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Uuid"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"collections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections"},"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"},"relevance":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}]},"relevance_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance Reason"},"access_denied":{"type":"boolean","title":"Access Denied","default":false},"my_access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Access Level"},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationLite"},"type":"array","title":"Organizations","default":[]},"groups":{"items":{"$ref":"#/components/schemas/AreaLite"},"type":"array","title":"Groups","default":[]},"evaluation":{"anyOf":[{"$ref":"#/components/schemas/ContentEvaluationLite"},{"type":"null"}]},"event_refs":{"items":{"$ref":"#/components/schemas/EventLite"},"type":"array","title":"Event Refs","default":[]},"countries":{"items":{"$ref":"#/components/schemas/CountryLite"},"type":"array","title":"Countries","default":[]},"contacts":{"items":{"$ref":"#/components/schemas/ContactLite"},"type":"array","title":"Contacts","default":[]},"chunk_tag_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChunkTagItem"},"type":"array"},{"type":"null"}],"title":"Chunk Tag List"},"subjects_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubjectLite"},"type":"array"},{"type":"null"}],"title":"Subjects List"},"type_info":{"anyOf":[{"$ref":"#/components/schemas/ContentTypeLite"},{"type":"null"}]},"subtype_info":{"anyOf":[{"$ref":"#/components/schemas/ContentTypeLite"},{"type":"null"}]},"sectors":{"anyOf":[{"items":{"$ref":"#/components/schemas/SectorLite"},"type":"array"},{"type":"null"}],"title":"Sectors"},"events":{"items":{"$ref":"#/components/schemas/EventEmbed"},"type":"array","title":"Events","default":[]}},"type":"object","required":["uuid","name","original_file_name","content_type","type","created_at","updated_at","released_at"],"title":"ContentWithCompanyRelevanceResponse","description":"Global content with company_content relevance (fields inherited from ContentResponse)."},"ContentWithRelationsResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"original_file_name":{"type":"string","title":"Original File Name"},"content_type":{"type":"string","title":"Content Type"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Company Uuid"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"collections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections"},"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"},"relevance":{"anyOf":[{"$ref":"#/components/schemas/CompanyContentRelevanceEnum"},{"type":"null"}]},"relevance_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance Reason"},"access_denied":{"type":"boolean","title":"Access Denied","default":false},"my_access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Access Level"},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationLite"},"type":"array","title":"Organizations","default":[]},"groups":{"items":{"$ref":"#/components/schemas/AreaLite"},"type":"array","title":"Groups","default":[]},"evaluation":{"anyOf":[{"$ref":"#/components/schemas/ContentEvaluationLite"},{"type":"null"}]},"event_refs":{"items":{"$ref":"#/components/schemas/EventLite"},"type":"array","title":"Event Refs","default":[]},"countries":{"items":{"$ref":"#/components/schemas/CountryLite"},"type":"array","title":"Countries","default":[]},"contacts":{"items":{"$ref":"#/components/schemas/ContactLite"},"type":"array","title":"Contacts","default":[]},"chunk_tag_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChunkTagItem"},"type":"array"},{"type":"null"}],"title":"Chunk Tag List"},"subjects_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubjectLite"},"type":"array"},{"type":"null"}],"title":"Subjects List"},"type_info":{"anyOf":[{"$ref":"#/components/schemas/ContentTypeLite"},{"type":"null"}]},"subtype_info":{"anyOf":[{"$ref":"#/components/schemas/ContentTypeLite"},{"type":"null"}]},"sectors":{"anyOf":[{"items":{"$ref":"#/components/schemas/SectorLite"},"type":"array"},{"type":"null"}],"title":"Sectors"},"events":{"items":{"$ref":"#/components/schemas/EventEmbed"},"type":"array","title":"Events","default":[]}},"type":"object","required":["uuid","name","original_file_name","content_type","type","created_at","updated_at","released_at"],"title":"ContentWithRelationsResponse"},"ConversationActivity":{"properties":{"unread_for_actor":{"type":"boolean","title":"Unread For Actor","default":false}},"type":"object","title":"ConversationActivity"},"ConversationAttachmentCreate":{"properties":{"attachment_id":{"type":"string","format":"uuid","title":"Attachment Id"},"filename":{"type":"string","maxLength":512,"minLength":1,"title":"Filename"},"mime_type":{"type":"string","maxLength":128,"minLength":1,"title":"Mime Type"},"size_bytes":{"type":"integer","minimum":1.0,"title":"Size Bytes"},"file_key":{"type":"string","minLength":1,"title":"File Key"},"metadata_key":{"type":"string","minLength":1,"title":"Metadata Key"},"session_id":{"type":"string","minLength":1,"title":"Session Id"}},"additionalProperties":false,"type":"object","required":["attachment_id","filename","mime_type","size_bytes","file_key","metadata_key","session_id"],"title":"ConversationAttachmentCreate"},"ConversationAttachmentDownloadOut":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"}},"type":"object","required":["url","filename","content_type","expires_in_seconds"],"title":"ConversationAttachmentDownloadOut"},"ConversationAttachmentOut":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"conversation_uuid":{"type":"string","format":"uuid","title":"Conversation Uuid"},"attachment_id":{"type":"string","format":"uuid","title":"Attachment Id"},"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"user_uuid":{"type":"string","format":"uuid","title":"User Uuid"},"session_id":{"type":"string","title":"Session Id"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"file_key":{"type":"string","title":"File Key"},"metadata_key":{"type":"string","title":"Metadata Key"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","conversation_uuid","attachment_id","company_uuid","user_uuid","session_id","filename","mime_type","size_bytes","file_key","metadata_key","status","created_at"],"title":"ConversationAttachmentOut"},"ConversationCostByCompany":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"company_name":{"type":"string","title":"Company Name"},"conversations":{"type":"integer","title":"Conversations","default":0},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0.0}},"type":"object","required":["company_uuid","company_name"],"title":"ConversationCostByCompany"},"ConversationCostItem":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"title":{"type":"string","title":"Title"},"session_id":{"type":"string","title":"Session Id"},"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"company_name":{"type":"string","title":"Company Name"},"user_uuid":{"type":"string","format":"uuid","title":"User Uuid"},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0.0},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"cache_creation_input_tokens":{"type":"integer","title":"Cache Creation Input Tokens","default":0},"cache_read_input_tokens":{"type":"integer","title":"Cache Read Input Tokens","default":0},"model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Used"},"agent_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"langsmith_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Langsmith Url"}},"type":"object","required":["uuid","title","session_id","company_uuid","company_name","user_uuid","created_at"],"title":"ConversationCostItem"},"ConversationCostTotals":{"properties":{"conversations":{"type":"integer","title":"Conversations","default":0},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0.0},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"cache_creation_input_tokens":{"type":"integer","title":"Cache Creation Input Tokens","default":0},"cache_read_input_tokens":{"type":"integer","title":"Cache Read Input Tokens","default":0}},"type":"object","title":"ConversationCostTotals"},"ConversationCostsResponse":{"properties":{"totals":{"$ref":"#/components/schemas/ConversationCostTotals"},"companies":{"items":{"$ref":"#/components/schemas/ConversationCostByCompany"},"type":"array","title":"Companies"},"items":{"items":{"$ref":"#/components/schemas/ConversationCostItem"},"type":"array","title":"Items"}},"type":"object","title":"ConversationCostsResponse"},"ConversationCreate":{"properties":{"session_id":{"type":"string","title":"Session Id"},"title":{"type":"string","title":"Title","default":""}},"type":"object","required":["session_id"],"title":"ConversationCreate"},"ConversationOut":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"title":{"type":"string","title":"Title"},"session_id":{"type":"string","title":"Session Id"},"user_uuid":{"type":"string","format":"uuid","title":"User Uuid"},"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"usage":{"additionalProperties":true,"type":"object","title":"Usage"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"project":{"anyOf":[{"$ref":"#/components/schemas/ConversationProject"},{"type":"null"}]},"is_unread":{"type":"boolean","title":"Is Unread","default":false},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","readOnly":true},"input_tokens":{"type":"integer","title":"Input Tokens","readOnly":true},"output_tokens":{"type":"integer","title":"Output Tokens","readOnly":true}},"type":"object","required":["uuid","title","session_id","user_uuid","company_uuid","created_at","estimated_cost_usd","input_tokens","output_tokens"],"title":"ConversationOut"},"ConversationProject":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"title":{"type":"string","title":"Title"}},"type":"object","required":["uuid","title"],"title":"ConversationProject"},"ConversationReadStateUpdate":{"properties":{"is_unread":{"type":"boolean","title":"Is Unread"}},"type":"object","required":["is_unread"],"title":"ConversationReadStateUpdate"},"ConversationUpdate":{"properties":{"session_id":{"type":"string","title":"Session Id"},"title":{"type":"string","maxLength":255,"title":"Title"}},"type":"object","required":["session_id","title"],"title":"ConversationUpdate"},"ConversationUsageAccumulate":{"properties":{"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0.0},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"cache_creation_input_tokens":{"type":"integer","title":"Cache Creation Input Tokens","default":0},"cache_read_input_tokens":{"type":"integer","title":"Cache Read Input Tokens","default":0},"model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Used"},"agent_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Type"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},"type":"object","title":"ConversationUsageAccumulate"},"CountryBase":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","maxLength":20,"title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"report_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report File Name"},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url","description":"Get the report URL based on the filename if one exists","readOnly":true}},"type":"object","required":["id","code","name","report_url"],"title":"CountryBase"},"CountryBulkAction":{"type":"string","enum":["select","deselect"],"title":"CountryBulkAction","description":"Supported bulk actions for company countries / jurisdictions."},"CountryBulkBlockedExample":{"properties":{"country_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Country Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CountryBulkBlockedExample","description":"Example of a country blocked from a bulk operation."},"CountryBulkRequest":{"properties":{"action":{"$ref":"#/components/schemas/CountryBulkAction"},"selected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected","description":"Current list filter by selection status"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Current list search term"},"user_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Uuid","description":"Current list owner filter"},"include_country_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Include Country Ids","description":"Manual country ID selection. When present, filters are ignored."},"exclude_country_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Exclude Country Ids","description":"Country IDs excluded from a filtered bulk selection"}},"type":"object","required":["action"],"title":"CountryBulkRequest","description":"Request schema for bulk country select/deselect operations."},"CountryBulkResponse":{"properties":{"action":{"$ref":"#/components/schemas/CountryBulkAction"},"eligible_count":{"type":"integer","title":"Eligible Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"processed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed Count"},"processed_ids":{"items":{"type":"integer"},"type":"array","title":"Processed Ids","description":"Country IDs effectively processed by execute"},"blocked_examples":{"items":{"$ref":"#/components/schemas/CountryBulkBlockedExample"},"type":"array","title":"Blocked Examples"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked Reasons"}},"type":"object","required":["action","eligible_count","blocked_count"],"title":"CountryBulkResponse","description":"Response schema for bulk country preview and execution."},"CountryCompany":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"CountryCompany"},"CountryCompanyData":{"properties":{"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"contacts_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Total"},"service_providers_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Providers Total"},"associations_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Associations Total"},"government_bodies_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Government Bodies Total"}},"type":"object","title":"CountryCompanyData"},"CountryCreate":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages","default":[]}},"type":"object","required":["code","name"],"title":"CountryCreate"},"CountryDetail":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"integer","title":"Id"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Company Uuid"},"company_data":{"items":{"$ref":"#/components/schemas/CountryCompanyData"},"type":"array","title":"Company Data","default":[]},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages","default":[]},"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"contacts_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Total"},"service_providers_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Providers Total"},"associations_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Associations Total"},"government_bodies_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Government Bodies Total"},"owners":{"items":{"$ref":"#/components/schemas/CountryUser"},"type":"array","title":"Owners"},"groups":{"items":{"$ref":"#/components/schemas/CountryGroup"},"type":"array","title":"Groups","default":[]},"associations":{"items":{"$ref":"#/components/schemas/CountryOrganization"},"type":"array","title":"Associations","default":[]},"government_bodies":{"items":{"$ref":"#/components/schemas/CountryOrganization"},"type":"array","title":"Government Bodies","default":[]},"service_providers":{"items":{"$ref":"#/components/schemas/CountryOrganization"},"type":"array","title":"Service Providers","default":[]},"deleted":{"type":"boolean","title":"Deleted","default":false},"is_entitled":{"type":"boolean","title":"Is Entitled","default":false},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info","default":{}},"report_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report File Name"},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url","description":"Get the report URL based on the filename if one exists","readOnly":true}},"type":"object","required":["code","name","id","owners","report_url"],"title":"CountryDetail"},"CountryGroup":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"CountryGroup","description":"Área (group) responsável pela jurisdição na company."},"CountryGroupsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/CountryGroup"},"type":"array","title":"Groups"}},"type":"object","title":"CountryGroupsResponse"},"CountryGroupsUpdate":{"properties":{"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"}},"additionalProperties":false,"type":"object","title":"CountryGroupsUpdate","description":"Substitui o conjunto de áreas da jurisdição. Lista vazia = sem área."},"CountryLite":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"}},"type":"object","required":["id","name","code"],"title":"CountryLite"},"CountryOrganization":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"type":{"type":"string","title":"Type"},"country_id":{"type":"integer","title":"Country Id"},"companies":{"items":{"$ref":"#/components/schemas/CountryCompany"},"type":"array","title":"Companies","default":[]},"contacts":{"items":{"$ref":"#/components/schemas/OrganizationContact"},"type":"array","title":"Contacts","default":[]},"is_private":{"type":"boolean","title":"Is Private"},"government_body_types":{"items":{"type":"string"},"type":"array","title":"Government Body Types","default":[]},"service_provider_types":{"items":{"type":"string"},"type":"array","title":"Service Provider Types","default":[]},"first_interaction_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction Date"},"last_interaction_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction Date"},"total_interactions":{"type":"integer","title":"Total Interactions","default":0}},"type":"object","required":["uuid","name","type","country_id","is_private"],"title":"CountryOrganization","description":"The Suffix MTM refers to Many-to-Many\nThis class should be used as the type for fields with M2M relationships with company\nto prevent cyclic errors because of those relationships"},"CountryUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages"}},"type":"object","title":"CountryUpdate"},"CountryUser":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"CountryUser"},"CriticidadeEnum":{"type":"string","enum":["alta","media","baixa"],"title":"CriticidadeEnum"},"DailyCostPoint":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"nicky":{"type":"number","title":"Nicky","default":0.0},"main_topics":{"type":"number","title":"Main Topics","default":0.0},"main_topics_simple":{"type":"number","title":"Main Topics Simple","default":0.0},"relevance":{"type":"number","title":"Relevance","default":0.0},"jev":{"type":"number","title":"Jev","default":0.0}},"type":"object","required":["date"],"title":"DailyCostPoint"},"DailyCostsResponse":{"properties":{"days":{"items":{"$ref":"#/components/schemas/DailyCostPoint"},"type":"array","title":"Days"}},"type":"object","title":"DailyCostsResponse"},"DeleteCollectionResult":{"properties":{"removed":{"type":"integer","title":"Removed"},"deleted_collection":{"type":"boolean","title":"Deleted Collection"}},"type":"object","required":["removed","deleted_collection"],"title":"DeleteCollectionResult"},"DuplicateCollectionBody":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"}},"additionalProperties":false,"type":"object","required":["name"],"title":"DuplicateCollectionBody"},"DuplicateCollectionResult":{"properties":{"name":{"type":"string","title":"Name"},"copied_items":{"type":"integer","title":"Copied Items"}},"type":"object","required":["name","copied_items"],"title":"DuplicateCollectionResult"},"EntityCounts":{"properties":{"contacts":{"type":"integer","title":"Contacts","default":0},"organizations":{"type":"integer","title":"Organizations","default":0},"interactions":{"type":"integer","title":"Interactions","default":0},"private_docs":{"type":"integer","title":"Private Docs","default":0},"public_docs":{"type":"integer","title":"Public Docs","default":0},"events":{"type":"integer","title":"Events","default":0},"tasks":{"type":"integer","title":"Tasks","default":0}},"type":"object","title":"EntityCounts"},"EntityRecord":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"item_id":{"type":"string","format":"uuid4","title":"Item Id"},"object_type":{"type":"string","title":"Object Type"},"title":{"type":"string","title":"Title"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"added_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By Name"},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium"},"bill_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bill Number"},"current_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Phase"}},"type":"object","required":["id","item_id","object_type","title"],"title":"EntityRecord","description":"A single membership row exposed through ``project_items``.\n\nExtra fields are populated per ``RecordGroup``; unused ones stay ``None``."},"EvaluationStatusTaskItem":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"group_uuid":{"type":"string","format":"uuid","title":"Group Uuid"},"status":{"$ref":"#/components/schemas/TaskStatusEnum"},"criticidade":{"anyOf":[{"$ref":"#/components/schemas/CriticidadeEnum"},{"type":"null"}]},"assunto_principal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assunto Principal"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","group_uuid","status","created_at"],"title":"EvaluationStatusTaskItem","description":"One Task already created for this (content, company) pair — enough for\nthe \"already evaluated\" drawer to link out to it and show its state."},"EvaluationSuggestionAreaItem":{"properties":{"group_uuid":{"type":"string","format":"uuid","title":"Group Uuid"},"informativo":{"type":"boolean","title":"Informativo"},"legal_entity_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Legal Entity Uuids"},"d_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"D Reason"}},"type":"object","required":["group_uuid","informativo"],"title":"EvaluationSuggestionAreaItem","description":"One entry of the agent's suggested `areas` — same shape as\n`EvaluationTaskItem` plus the agent's own rationale, kept separate so a\nmalformed/missing `d_reason` never blocks parsing the fields the evaluator\nactually needs to review."},"EvaluationSuggestionContext":{"properties":{"company_uuid":{"type":"string","format":"uuid","title":"Company Uuid"},"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"groups":{"items":{"$ref":"#/components/schemas/EvaluationSuggestionGroup"},"type":"array","title":"Groups"}},"type":"object","required":["company_uuid","content_uuid"],"title":"EvaluationSuggestionContext","description":"Everything the `content-evaluation-suggester` agent needs beyond the\ncontent text and company profile it fetches itself from S3 (same\n`company_uuid`/`content_uuid` bucket/key convention as `set_relevance`):\nthe company's Groups, so it can copy `group_uuid`/legal entity uuids\nverbatim rather than inventing identifiers."},"EvaluationSuggestionGroup":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"name":{"type":"string","title":"Name"},"legal_entities":{"items":{"$ref":"#/components/schemas/EvaluationSuggestionGroupLegalEntity"},"type":"array","title":"Legal Entities"}},"type":"object","required":["uuid","name"],"title":"EvaluationSuggestionGroup"},"EvaluationSuggestionGroupLegalEntity":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"EvaluationSuggestionGroupLegalEntity"},"EvaluationSuggestionPayload":{"properties":{"aplicavel":{"type":"boolean","title":"Aplicavel"},"justificativa_nao_aplicavel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justificativa Nao Aplicavel"},"prazo_vigencia_norma":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Vigencia Norma"},"areas":{"items":{"$ref":"#/components/schemas/EvaluationSuggestionAreaItem"},"type":"array","title":"Areas"},"d_assumptions":{"items":{"type":"string"},"type":"array","title":"D Assumptions"}},"type":"object","required":["aplicavel"],"title":"EvaluationSuggestionPayload"},"EvaluationSuggestionResultRequest":{"properties":{"ok":{"type":"boolean","title":"Ok"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"payload":{"anyOf":[{"$ref":"#/components/schemas/EvaluationSuggestionPayload"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["ok"],"title":"EvaluationSuggestionResultRequest","description":"Callback body for one agent run. `ok=False` records `error_message` and\nflips status to `failed` — the drawer then falls back to a blank manual\nform. `ok=True` requires `payload`."},"EvaluationSuggestionResultResponse":{"properties":{"saved":{"type":"boolean","title":"Saved","default":true},"status":{"$ref":"#/components/schemas/AiFillStatusEnum"}},"type":"object","required":["status"],"title":"EvaluationSuggestionResultResponse"},"EvaluationSuggestionStatusResponse":{"properties":{"status":{"$ref":"#/components/schemas/AiFillStatusEnum"},"payload":{"anyOf":[{"$ref":"#/components/schemas/EvaluationSuggestionPayload"},{"type":"null"}]},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["status"],"title":"EvaluationSuggestionStatusResponse","description":"Polled by the drawer after \"Avaliar com IA\" is clicked. `payload` is only\npopulated once `status == done`."},"EvaluationTaskItem":{"properties":{"group_uuid":{"type":"string","format":"uuid","title":"Group Uuid"},"informativo":{"type":"boolean","title":"Informativo"},"legal_entity_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Legal Entity Uuids"}},"type":"object","required":["group_uuid","informativo"],"title":"EvaluationTaskItem","description":"One externally-impacted Group chosen for the 'aplicável' path — one Task\nis created per item. `informativo=True` sends the Task to 'enviado_a_area',\nwhere an área member's first view registers ciência automatically;\n`informativo=False` sends it to 'aprovado_para_envio', pending Jurídico's\n`prazo_atual`/etc (see `task_view.update_task_juridico_fields`/\n`send_task_to_area`) — those fields are no longer collected here."},"Event":{"properties":{"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"opener_content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Opener Content Uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]},"is_selected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Selected"},"organization_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Type"},"contents":{"items":{"$ref":"#/components/schemas/EventContentEmbed"},"type":"array","title":"Contents"}},"type":"object","required":["type","name","organization_uuid","uuid","created_at","updated_at"],"title":"Event"},"EventBulkAction":{"type":"string","enum":["select","deselect","add_collections","remove_collections"],"title":"EventBulkAction","description":"Supported bulk actions for events."},"EventBulkBlockedExample":{"properties":{"event_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Event Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"EventBulkBlockedExample","description":"Example of an event blocked from a bulk operation."},"EventBulkRequest":{"properties":{"action":{"$ref":"#/components/schemas/EventBulkAction"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Current list event type filter"},"selected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected","description":"Current list filter by selection status"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Current list search term"},"organization_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Organization Uuid","description":"Current list organization UUID filter"},"collection_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collection List","description":"Current list collection name filters"},"country_id":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Country Id","description":"Current list filter by organization jurisdiction (country_id)"},"contact_list":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Contact List","description":"Current list filter by people (contact UUIDs) in the bill snapshot"},"include_event_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Include Event Uuids","description":"Manual event UUID selection. When present, filters are ignored."},"exclude_event_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Exclude Event Uuids","description":"Event UUIDs excluded from a filtered bulk selection"},"collections_to_add":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Add","description":"Collection names to merge for add_collections bulk action"},"collections_to_remove":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Collections To Remove","description":"Collection names to remove for remove_collections bulk action"}},"type":"object","required":["action"],"title":"EventBulkRequest","description":"Request schema for bulk event operations."},"EventBulkResponse":{"properties":{"action":{"$ref":"#/components/schemas/EventBulkAction"},"eligible_count":{"type":"integer","title":"Eligible Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"processed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processed Count"},"processed_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Processed Uuids","description":"UUIDs of events effectively processed by execute"},"blocked_examples":{"items":{"$ref":"#/components/schemas/EventBulkBlockedExample"},"type":"array","title":"Blocked Examples"},"blocked_reasons":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocked Reasons"}},"type":"object","required":["action","eligible_count","blocked_count"],"title":"EventBulkResponse","description":"Response schema for bulk event preview and execution."},"EventCollectionsSummaryGroup":{"properties":{"name":{"type":"string","title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"},"group_name":{"type":"string","title":"Group Name","default":""},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/EventCollectionsSummaryItem"},"type":"array","title":"Preview Items"},"relation_counts":{"$ref":"#/components/schemas/CollectionRelationCounts"}},"type":"object","required":["name","total_count","preview_items"],"title":"EventCollectionsSummaryGroup"},"EventCollectionsSummaryItem":{"properties":{"uuid":{"type":"string","title":"Uuid"},"name":{"type":"string","title":"Name"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"}},"type":"object","required":["uuid","name"],"title":"EventCollectionsSummaryItem"},"EventCollectionsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/EventCollectionsSummaryGroup"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"EventCollectionsSummaryResponse"},"EventCollectionsUpdateBody":{"properties":{"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"additionalProperties":false,"type":"object","required":["collections"],"title":"EventCollectionsUpdateBody"},"EventContent":{"properties":{"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["event_uuid","content_uuid","created_at"],"title":"EventContent","description":"Schema for event-content relationship response"},"EventContentAssociation":{"properties":{"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["content_uuid"],"title":"EventContentAssociation","description":"Schema for associating a content with an event"},"EventContentEmbed":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Type Uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"sectors":{"items":{"$ref":"#/components/schemas/EventContentSector"},"type":"array","title":"Sectors"}},"type":"object","required":["uuid","name"],"title":"EventContentEmbed","description":"Nested content on GET /api/events/{uuid} (from event_contents)."},"EventContentSector":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"EventContentSector"},"EventContentUpdate":{"properties":{"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"EventContentUpdate","description":"Schema for updating event-content relationship info"},"EventCreate":{"properties":{"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"opener_content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Opener Content Uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["type","name","organization_uuid"],"title":"EventCreate"},"EventEmbed":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"organization":{"$ref":"#/components/schemas/OrganizationLite"},"english_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"English Description"},"status":{"type":"string","enum":["active","finished"],"title":"Status"},"related_contents":{"items":{"$ref":"#/components/schemas/EventRelatedContentLite"},"type":"array","title":"Related Contents","default":[]},"opener_content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Opener Content Uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["uuid","type","name","organization_uuid","organization","status","created_at","updated_at"],"title":"EventEmbed","description":"Event embedded in single-content GET responses.\n\nPopulated when this content is the opener or linked via ``event_contents``.\nOrdered by ``created_at`` desc."},"EventFeedEmbed":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"opener_content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Opener Content Uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"contents":{"items":{"$ref":"#/components/schemas/ContentFeedEmbed"},"type":"array","title":"Contents"}},"type":"object","required":["uuid","type","name","organization_uuid","opener_content_uuid","released_at","info","created_at","updated_at"],"title":"EventFeedEmbed"},"EventLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"organization":{"$ref":"#/components/schemas/OrganizationLite"},"status":{"type":"string","enum":["active","finished"],"title":"Status"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"last_processing_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Processing At"}},"type":"object","required":["uuid","type","name","organization","status"],"title":"EventLite","description":"Event a document belongs to, as shown in list rows (the Inbox)."},"EventRelatedContentLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"sector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector"},"subsector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subsector"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}},"type":"object","required":["uuid","name"],"title":"EventRelatedContentLite","description":"A library document linked to an event.\n\nIncludes every document linked to the event (opener + ``event_contents``),\nregardless of which content the caller is currently viewing — the API\nnever filters by viewer. Clients that want to hide the document\ncurrently on screen from its own \"related documents\" table should filter\nit out on their side, while still allowing it through when it is the\nevent's opener (``EventEmbed.opener_content_uuid``)."},"EventSelectedCompaniesResponse":{"properties":{"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"company_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Company Uuids"}},"type":"object","required":["event_uuid"],"title":"EventSelectedCompaniesResponse","description":"Companies that selected an event via events_companies."},"EventSelectionResponse":{"properties":{"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"is_selected":{"type":"boolean","title":"Is Selected"},"message":{"type":"string","title":"Message"}},"type":"object","required":["event_uuid","is_selected","message"],"title":"EventSelectionResponse","description":"Response schema for event selection operations."},"EventUpdate":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Organization Uuid"},"opener_content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Opener Content Uuid"},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"EventUpdate"},"FileDownloadResponse":{"properties":{"file_url":{"type":"string","title":"File Url"}},"type":"object","required":["file_url"],"title":"FileDownloadResponse"},"FileUploadResponse":{"properties":{"storage_filename":{"type":"string","title":"Storage Filename"},"original_filename":{"type":"string","title":"Original Filename"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["storage_filename","original_filename","content_type"],"title":"FileUploadResponse","description":"Response model for file upload endpoint"},"FirstUserCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["name","email"],"title":"FirstUserCreate","description":"Payload to create the first user when creating a company.\n\nTemporary password is always generated server-side; the user sets a new\npassword on first sign-in (Cognito flow unchanged)."},"GlobalContentBulkMetadataFailure":{"properties":{"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"error":{"type":"string","title":"Error"}},"type":"object","required":["content_uuid","error"],"title":"GlobalContentBulkMetadataFailure"},"GlobalContentBulkMetadataRequest":{"properties":{"content_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":200,"minItems":1,"title":"Content Uuids"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"type_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Type Uuid"},"subtype_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subtype Uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organizations_list":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Organizations List"},"jurisdictions_list":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Jurisdictions List"},"sectors_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContentSectorAssociation"},"type":"array"},{"type":"null"}],"title":"Sectors List"}},"type":"object","required":["content_uuids"],"title":"GlobalContentBulkMetadataRequest","description":"Bulk metadata update for global contents (admin)."},"GlobalContentBulkMetadataResponse":{"properties":{"requested":{"type":"integer","title":"Requested"},"updated":{"type":"integer","title":"Updated"},"failed":{"items":{"$ref":"#/components/schemas/GlobalContentBulkMetadataFailure"},"type":"array","title":"Failed"}},"type":"object","required":["requested","updated"],"title":"GlobalContentBulkMetadataResponse"},"GlobalVaultUpdaterArtifactsResponse":{"properties":{"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"latest_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Run Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"status_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Status Json"},"run_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Run Json"}},"type":"object","required":["content_uuid"],"title":"GlobalVaultUpdaterArtifactsResponse"},"GlobalVaultUpdaterLaunchRequest":{"properties":{"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"}},"type":"object","required":["content_uuid"],"title":"GlobalVaultUpdaterLaunchRequest"},"GlobalVaultUpdaterLaunchResponse":{"properties":{"message":{"type":"string","title":"Message"},"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["message","content_uuid"],"title":"GlobalVaultUpdaterLaunchResponse"},"GovernmentBodyTypeEnum":{"type":"string","enum":["legislative_body","executive_policy_body","regulatory_body","central_bank","financial_intelligence_unit","tax_and_customs_authority","court_and_tribunal","criminal_investigation_agency","prosecution_authority","oversight_and_integrity_body","public_service_agency","advisory_and_coordination_body","research_and_standards_body","public_financial_institution","self_regulatory_organization"],"title":"GovernmentBodyTypeEnum"},"GranteeType":{"type":"string","enum":["user","group"],"title":"GranteeType"},"GroupCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner_user_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Owner User Uuids"},"member_user_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Member User Uuids"},"legal_entity_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Legal Entity Uuids"}},"type":"object","required":["name"],"title":"GroupCreate","description":"Schema for creating a group within a company.\n\nThe creator is always added as an owner, in addition to any\nowner_user_uuids listed here."},"GroupDeletionImpact":{"properties":{"organizations_without_group_count":{"type":"integer","title":"Organizations Without Group Count"}},"type":"object","required":["organizations_without_group_count"],"title":"GroupDeletionImpact","description":"Efeito de excluir a área: organizações que ficariam sem nenhuma área."},"GroupLegalEntityCreate":{"properties":{"legal_entity_uuid":{"type":"string","format":"uuid4","title":"Legal Entity Uuid"}},"type":"object","required":["legal_entity_uuid"],"title":"GroupLegalEntityCreate","description":"Used for the add-legal-entity-to-group endpoint"},"GroupLegalEntityResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"GroupLegalEntityResponse","description":"Generic success response for group/legal-entity link operations"},"GroupMemberCreate":{"properties":{"user_uuid":{"type":"string","format":"uuid4","title":"User Uuid"},"permission_profile_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Permission Profile Id"}},"type":"object","required":["user_uuid"],"title":"GroupMemberCreate","description":"Used for the add-member endpoint"},"GroupMemberResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"GroupMemberResponse","description":"Generic success response for member operations"},"GroupResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"is_default":{"type":"boolean","title":"Is Default","default":false},"owners":{"items":{"$ref":"#/components/schemas/UserBase"},"type":"array","title":"Owners"},"members":{"items":{"$ref":"#/components/schemas/UserBase"},"type":"array","title":"Members"},"legal_entities":{"items":{"$ref":"#/components/schemas/LegalEntitySummary"},"type":"array","title":"Legal Entities"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","uuid","company_uuid","created_at","updated_at"],"title":"GroupResponse","description":"Response schema for group operations"},"GroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner_user_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Owner User Uuids"},"member_user_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Member User Uuids"},"legal_entity_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Legal Entity Uuids"}},"type":"object","title":"GroupUpdate","description":"Schema for updating a group's name/description and optional relationship sets.\n\nWhen a UUID list is omitted it is left unchanged. When it is sent (including\nan empty list) it replaces the current owners, members or legal entities in\nthe same transaction as the scalar fields."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImpactLevelEnum":{"type":"string","enum":["High","Medium","Low"],"title":"ImpactLevelEnum"},"InboxStatsResponse":{"properties":{"new_since":{"type":"integer","title":"New Since"},"pending":{"type":"integer","title":"Pending"},"critical_pending":{"type":"integer","title":"Critical Pending"},"in_treatment":{"type":"integer","title":"In Treatment"},"treated":{"type":"integer","title":"Treated"},"not_applicable":{"type":"integer","title":"Not Applicable"}},"type":"object","required":["new_since","pending","critical_pending","in_treatment","treated","not_applicable"],"title":"InboxStatsResponse","description":"Inbox dashboard counters (public documents of the selected organizations).\n\n``new_since`` is orthogonal to the evaluation buckets: a document captured\ninside the window can also be ``pending``, ``in_treatment``, ``treated`` or\n``not_applicable``. Do not add ``new_since`` to those counters."},"InstitutionalFormEnum":{"type":"string","enum":["autonomous_authority","congress","senate","chamber","committee"],"title":"InstitutionalFormEnum"},"InteractionByContact":{"properties":{"contact_uuid":{"type":"string","format":"uuid4","title":"Contact Uuid"},"contact_name":{"type":"string","title":"Contact Name"},"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"organization_shortname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Shortname"},"organization_name":{"type":"string","title":"Organization Name"},"organization_type":{"type":"string","title":"Organization Type"},"country_id":{"type":"integer","title":"Country Id"},"country_code":{"type":"string","title":"Country Code"},"country_name":{"type":"string","title":"Country Name"},"interactions":{"type":"integer","title":"Interactions"}},"type":"object","required":["contact_uuid","contact_name","organization_uuid","organization_name","organization_type","country_id","country_code","country_name","interactions"],"title":"InteractionByContact"},"InteractionByCountry":{"properties":{"country":{"type":"string","title":"Country"},"interactions":{"type":"integer","title":"Interactions"}},"type":"object","required":["country","interactions"],"title":"InteractionByCountry"},"InteractionByDay":{"properties":{"date":{"type":"string","title":"Date"},"interactions":{"type":"integer","title":"Interactions"}},"type":"object","required":["date","interactions"],"title":"InteractionByDay"},"InteractionByUser":{"properties":{"user":{"type":"string","title":"User"},"interactions":{"type":"integer","title":"Interactions"}},"type":"object","required":["user","interactions"],"title":"InteractionByUser"},"InteractionCollectionsSummaryGroup":{"properties":{"name":{"type":"string","title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"},"group_name":{"type":"string","title":"Group Name","default":""},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/InteractionCollectionsSummaryItem"},"type":"array","title":"Preview Items"}},"type":"object","required":["name","total_count","preview_items"],"title":"InteractionCollectionsSummaryGroup"},"InteractionCollectionsSummaryItem":{"properties":{"uuid":{"type":"string","title":"Uuid"},"title":{"type":"string","title":"Title"},"interacted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Interacted At"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]}},"type":"object","required":["uuid","title"],"title":"InteractionCollectionsSummaryItem"},"InteractionCollectionsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/InteractionCollectionsSummaryGroup"},"type":"array","title":"Groups"},"unassigned":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Unassigned"}},"type":"object","required":["groups"],"title":"InteractionCollectionsSummaryResponse"},"InteractionCollectionsUpdateBody":{"properties":{"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"additionalProperties":false,"type":"object","required":["collections"],"title":"InteractionCollectionsUpdateBody"},"InteractionExperienceRef":{"properties":{"experience_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Experience Uuid"},"contact_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Contact Uuid"}},"type":"object","title":"InteractionExperienceRef","description":"A participant. ``experience_uuid`` when the experience exists, otherwise the contact."},"InteractionGroupSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"InteractionGroupSummary","description":"Área (group) atribuída a uma interaction."},"InteractionGroupsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/InteractionGroupSummary"},"type":"array","title":"Groups"}},"type":"object","title":"InteractionGroupsResponse"},"InteractionGroupsUpdate":{"properties":{"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"}},"additionalProperties":false,"type":"object","title":"InteractionGroupsUpdate"},"InteractionVisibilityData":{"properties":{"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","title":"InteractionVisibilityData"},"InteractionVisibilityUpdate":{"properties":{"visibility":{"type":"string","title":"Visibility","description":"'company' or 'personal'"}},"additionalProperties":false,"type":"object","required":["visibility"],"title":"InteractionVisibilityUpdate"},"InterestLevel":{"type":"string","enum":["none","low","medium","high"],"title":"InterestLevel"},"InternalNoteAttachmentInput":{"properties":{"storage_filename":{"type":"string","title":"Storage Filename"},"original_filename":{"type":"string","title":"Original Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["storage_filename","original_filename","content_type"],"title":"InternalNoteAttachmentInput","description":"Schema for files uploaded to the temporary S3 upload folder."},"InternalNoteAttachmentResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"internal_note_uuid":{"type":"string","format":"uuid4","title":"Internal Note Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"storage_filename":{"type":"string","title":"Storage Filename"},"original_filename":{"type":"string","title":"Original Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","internal_note_uuid","company_uuid","storage_filename","original_filename","content_type","created_at"],"title":"InternalNoteAttachmentResponse","description":"Schema for files attached to an internal note."},"InternalNoteResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"parent_type":{"$ref":"#/components/schemas/ParentTypeEnum"},"parent_pk":{"type":"string","title":"Parent Pk"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"text":{"type":"string","title":"Text"},"created_by":{"anyOf":[{"$ref":"#/components/schemas/UserBase"},{"type":"null"}]},"author_type":{"$ref":"#/components/schemas/AuthorTypeEnum"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"attachments":{"items":{"$ref":"#/components/schemas/InternalNoteAttachmentResponse"},"type":"array","title":"Attachments"}},"type":"object","required":["uuid","parent_type","parent_pk","company_uuid","text","created_by","author_type","created_at"],"title":"InternalNoteResponse","description":"Schema for internal notes."},"JurisdictionAgentInstructions":{"properties":{"content":{"type":"string","title":"Content","default":""}},"additionalProperties":false,"type":"object","title":"JurisdictionAgentInstructions","description":"Claude-style Nicky instructions for a jurisdiction workspace."},"JurisdictionConversation":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"session_id":{"type":"string","title":"Session Id"},"title":{"type":"string","title":"Title"},"author_name":{"type":"string","title":"Author Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","session_id","title","author_name","created_at"],"title":"JurisdictionConversation"},"JurisdictionConversationLink":{"properties":{"conversation_uuid":{"type":"string","format":"uuid4","title":"Conversation Uuid"}},"additionalProperties":false,"type":"object","required":["conversation_uuid"],"title":"JurisdictionConversationLink"},"JurisdictionGroupInput":{"properties":{"jurisdictions":{"items":{"$ref":"#/components/schemas/JurisdictionRef"},"type":"array","title":"Jurisdictions"},"allEntities":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allentities"},"legalEntityIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Legalentityids"}},"additionalProperties":false,"type":"object","title":"JurisdictionGroupInput","description":"Global footprint group: nested list under `profile.jurisdictions`."},"JurisdictionInContent":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"}},"type":"object","required":["id","name","code"],"title":"JurisdictionInContent","description":"Used by ``GET /posts/feed/jurisdictions`` (from ``posts.filters``, not content)."},"JurisdictionRef":{"properties":{"databaseId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Databaseid"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","title":"JurisdictionRef"},"LegalEntityCreate":{"properties":{"legal_name":{"type":"string","title":"Legal Name"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"jurisdiction_id":{"type":"integer","title":"Jurisdiction Id"}},"type":"object","required":["legal_name","jurisdiction_id"],"title":"LegalEntityCreate","description":"Schema for creating a legal entity within a company.\n\njurisdiction_id must be one of the company's selected jurisdictions\n(validated in the controller, not here)."},"LegalEntityInput":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"incorporationJurisdiction":{"$ref":"#/components/schemas/JurisdictionRef"}},"additionalProperties":false,"type":"object","required":["name","incorporationJurisdiction"],"title":"LegalEntityInput"},"LegalEntityResponse":{"properties":{"legal_name":{"type":"string","title":"Legal Name"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"jurisdiction_id":{"type":"integer","title":"Jurisdiction Id"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"jurisdiction":{"$ref":"#/components/schemas/CountryBase"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["legal_name","jurisdiction_id","uuid","company_uuid","jurisdiction","created_at","updated_at"],"title":"LegalEntityResponse","description":"Response schema for legal entity operations"},"LegalEntitySummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"legal_name":{"type":"string","title":"Legal Name"},"jurisdiction":{"$ref":"#/components/schemas/CountryBase"}},"type":"object","required":["uuid","legal_name","jurisdiction"],"title":"LegalEntitySummary","description":"Minimal legal entity payload for Group responses"},"LegalEntityUpdate":{"properties":{"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"jurisdiction_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Jurisdiction Id"}},"type":"object","title":"LegalEntityUpdate","description":"Schema for updating a legal entity"},"LegislativeUpdateFeedExtra":{"properties":{"legislative_update_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Legislative Update Info"},"event":{"$ref":"#/components/schemas/EventFeedEmbed"}},"type":"object","required":["event"],"title":"LegislativeUpdateFeedExtra"},"LegislativeUpdateFeedPost":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"legislative_update","title":"Post Type"},"post_infos":{"$ref":"#/components/schemas/LegislativeUpdateFeedExtra"}},"type":"object","required":["uuid","company_uuid","relevance","title_generic","description_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","published_at","filters","post_type","post_infos"],"title":"LegislativeUpdateFeedPost"},"LegislativeUpdatePostCreate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["event_uuid"],"title":"LegislativeUpdatePostCreate","description":"Create ``posts`` + ``legislative_update_posts`` (company from URL)."},"LegislativeUpdatePostResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"legislative_update","title":"Post Type","default":"legislative_update"},"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["uuid","company_uuid","title_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","event_uuid"],"title":"LegislativeUpdatePostResponse"},"LegislativeUpdatePostUpdate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"event_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Event Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"LegislativeUpdatePostUpdate"},"LoginMethodAdminResponse":{"properties":{"method":{"type":"string","enum":["password","google","okta"],"title":"Method"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"cognito_idp_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cognito Idp Name"},"login_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Domain"},"allow_unregistered_access":{"type":"boolean","title":"Allow Unregistered Access","default":false}},"type":"object","required":["method"],"title":"LoginMethodAdminResponse"},"LoginMethodAdminUpdateRequest":{"properties":{"method":{"type":"string","enum":["password","google","okta"],"title":"Method"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"cognito_idp_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cognito Idp Name"},"login_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Domain"},"allow_unregistered_access":{"type":"boolean","title":"Allow Unregistered Access","default":false}},"type":"object","required":["method"],"title":"LoginMethodAdminUpdateRequest"},"LoginMethodLookupRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"LoginMethodLookupRequest"},"LoginMethodPublicResponse":{"properties":{"method":{"type":"string","enum":["password","google","okta"],"title":"Method"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"identity_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Provider"},"passwordless":{"anyOf":[{"type":"string","const":"passkey"},{"type":"null"}],"title":"Passwordless"}},"type":"object","required":["method"],"title":"LoginMethodPublicResponse"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginResponse":{"properties":{"id_token":{"type":"string","title":"Id Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["id_token"],"title":"LoginResponse"},"MarkAllReadResponse":{"properties":{"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["updated"],"title":"MarkAllReadResponse"},"MarkdownCreate":{"properties":{"content":{"type":"string","title":"Content","default":""}},"additionalProperties":false,"type":"object","title":"MarkdownCreate"},"MarkdownDiff":{"properties":{"version_id":{"type":"string","format":"uuid4","title":"Version Id"},"previous_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Previous Version Id"},"lines":{"items":{"$ref":"#/components/schemas/MarkdownDiffLine"},"type":"array","title":"Lines"}},"type":"object","required":["version_id"],"title":"MarkdownDiff"},"MarkdownDiffLine":{"properties":{"type":{"type":"string","enum":["context","added","removed"],"title":"Type"},"content":{"type":"string","title":"Content"}},"type":"object","required":["type","content"],"title":"MarkdownDiffLine"},"MarkdownVersionContent":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","content","created_at"],"title":"MarkdownVersionContent"},"MarkdownVersionRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","created_at"],"title":"MarkdownVersionRef"},"McpScopeResponse":{"properties":{"mode":{"type":"string","enum":["read","full"],"title":"Mode"},"explicit":{"type":"boolean","title":"Explicit"}},"type":"object","required":["mode","explicit"],"title":"McpScopeResponse"},"McpScopeUpdateRequest":{"properties":{"mode":{"type":"string","enum":["read","full"],"title":"Mode"}},"type":"object","required":["mode"],"title":"McpScopeUpdateRequest"},"MyGroupLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"organizations_count":{"type":"integer","title":"Organizations Count"}},"type":"object","required":["uuid","name","organizations_count"],"title":"MyGroupLite","description":"Área do usuário logado, com quantas organizações selecionadas ela tem."},"MyPermissionsRead":{"properties":{"permissions":{"items":{"$ref":"#/components/schemas/PermissionEntry"},"type":"array","title":"Permissions"}},"type":"object","required":["permissions"],"title":"MyPermissionsRead","description":"Escopo do usuário logado em cada (category, action), na company da rota."},"NotificationPromptContent":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"source":{"type":"string","enum":["s3","missing"],"title":"Source"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","title","description","s3_key","source","content"],"title":"NotificationPromptContent"},"NotificationPromptList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationPromptRef"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"NotificationPromptList"},"NotificationPromptRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"}},"type":"object","required":["id","title","description","s3_key"],"title":"NotificationPromptRef"},"NotificationPromptSaveRequest":{"properties":{"content":{"type":"string","title":"Content"}},"additionalProperties":false,"type":"object","required":["content"],"title":"NotificationPromptSaveRequest"},"OTPGenerateRequest":{"properties":{"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"single_use":{"type":"boolean","title":"Single Use","default":true},"setup":{"type":"boolean","title":"Setup","default":true},"expires_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Days"}},"type":"object","required":["company_uuid"],"title":"OTPGenerateRequest"},"OTPGenerateResponse":{"properties":{"token":{"type":"string","title":"Token"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"single_use":{"type":"boolean","title":"Single Use","default":true},"setup":{"type":"boolean","title":"Setup","default":true}},"type":"object","required":["token","company_uuid","expires_at"],"title":"OTPGenerateResponse"},"OnboardingStatusResponse":{"properties":{"company_setup_complete":{"type":"boolean","title":"Company Setup Complete"},"tours":{"additionalProperties":{"type":"string","enum":["pending","completed","skipped"]},"type":"object","title":"Tours","description":"Status per tour id; missing ids are treated as pending by clients."}},"type":"object","required":["company_setup_complete","tours"],"title":"OnboardingStatusResponse"},"Organization":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"type":"integer","title":"Country Id"},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types","default":[]},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types","default":[]},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"info":{"additionalProperties":true,"type":"object","title":"Info"},"description":{"type":"string","title":"Description"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment","default":"neutral"},"is_private":{"type":"boolean","title":"Is Private"},"owners":{"items":{"$ref":"#/components/schemas/UserMTM"},"type":"array","title":"Owners","default":[]},"parent_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Parent Organization Uuids"},"parents":{"items":{"$ref":"#/components/schemas/OrganizationParentSummary"},"type":"array","title":"Parents"}},"type":"object","required":["name","type","country_id","uuid","created_at","updated_at","info","description","is_private"],"title":"Organization"},"OrganizationCollectionsSummaryGroup":{"properties":{"name":{"type":"string","title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"},"group_name":{"type":"string","title":"Group Name","default":""},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/OrganizationCollectionsSummaryItem"},"type":"array","title":"Preview Items"},"relation_counts":{"$ref":"#/components/schemas/CollectionRelationCounts"}},"type":"object","required":["name","total_count","preview_items"],"title":"OrganizationCollectionsSummaryGroup","description":"A single named collection with its preview organizations."},"OrganizationCollectionsSummaryItem":{"properties":{"uuid":{"type":"string","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"collections":{"items":{"type":"string"},"type":"array","title":"Collections","default":[]}},"type":"object","required":["uuid","name"],"title":"OrganizationCollectionsSummaryItem","description":"Preview item rendered inside a collection card."},"OrganizationCollectionsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/OrganizationCollectionsSummaryGroup"},"type":"array","title":"Groups"},"unassigned":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Unassigned"}},"type":"object","required":["groups"],"title":"OrganizationCollectionsSummaryResponse","description":"Grouped collections summary for an organization listing's Collections tab."},"OrganizationCollectionsUpdateBody":{"properties":{"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"additionalProperties":false,"type":"object","required":["collections"],"title":"OrganizationCollectionsUpdateBody","description":"Request body to replace all collections for an organization."},"OrganizationCompanyData":{"properties":{"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"contacts_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Total"},"visibility":{"type":"string","title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","title":"OrganizationCompanyData","description":"Schema for company organization data"},"OrganizationContact":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"OrganizationContact"},"OrganizationContactUpdate":{"properties":{"contact_uuid":{"type":"string","format":"uuid4","title":"Contact Uuid"}},"type":"object","required":["contact_uuid"],"title":"OrganizationContactUpdate"},"OrganizationCountry":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrganizationCountry","description":"Schema for countries that are associated with an organization"},"OrganizationCreate":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"type":"integer","title":"Country Id"},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types","default":[]},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types","default":[]},"info":{"additionalProperties":true,"type":"object","title":"Info"},"description":{"type":"string","title":"Description"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment","default":"neutral"},"parent_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Parent Organization Uuids"}},"type":"object","required":["name","type","country_id","info","description"],"title":"OrganizationCreate"},"OrganizationGroupSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"OrganizationGroupSummary","description":"Área (group) atribuída a uma organização."},"OrganizationGroupsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/OrganizationGroupSummary"},"type":"array","title":"Groups"}},"type":"object","title":"OrganizationGroupsResponse"},"OrganizationGroupsSummaryGroup":{"properties":{"uuid":{"type":"string","title":"Uuid"},"name":{"type":"string","title":"Name"},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/OrganizationGroupsSummaryItem"},"type":"array","title":"Preview Items"}},"type":"object","required":["uuid","name","total_count","preview_items"],"title":"OrganizationGroupsSummaryGroup","description":"A company group with organizations linked via organizations_companies_groups."},"OrganizationGroupsSummaryItem":{"properties":{"uuid":{"type":"string","title":"Uuid"},"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"}},"type":"object","required":["uuid","name"],"title":"OrganizationGroupsSummaryItem","description":"Preview organization inside a company-group card."},"OrganizationGroupsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/OrganizationGroupsSummaryGroup"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"OrganizationGroupsSummaryResponse","description":"Grouped company-groups summary for an organization listing's Groups tab."},"OrganizationGroupsUpdate":{"properties":{"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"}},"additionalProperties":false,"type":"object","title":"OrganizationGroupsUpdate","description":"Substitui o conjunto de áreas da organização. Lista vazia = sem área."},"OrganizationHierarchyNode":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"is_private":{"type":"boolean","title":"Is Private"},"parent_organization_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Parent Organization Uuids"},"children_count":{"type":"integer","title":"Children Count","default":0},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types"},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types"}},"type":"object","required":["uuid","name","type","is_private"],"title":"OrganizationHierarchyNode","description":"One node in an organization hierarchy tree."},"OrganizationHierarchyResponse":{"properties":{"focus_uuid":{"type":"string","format":"uuid4","title":"Focus Uuid"},"root_uuid":{"type":"string","format":"uuid4","title":"Root Uuid"},"nodes":{"items":{"$ref":"#/components/schemas/OrganizationHierarchyNode"},"type":"array","title":"Nodes"}},"type":"object","required":["focus_uuid","root_uuid","nodes"],"title":"OrganizationHierarchyResponse","description":"Visible family tree for the org-chart view."},"OrganizationList":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"type":"integer","title":"Country Id"},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types","default":[]},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types","default":[]},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"country":{"$ref":"#/components/schemas/CountryBase"},"owners":{"items":{"$ref":"#/components/schemas/UserMTM"},"type":"array","title":"Owners","default":[]},"contacts_count":{"type":"integer","title":"Contacts Count","default":0},"is_private":{"type":"boolean","title":"Is Private"}},"type":"object","required":["name","type","country_id","uuid","country","is_private"],"title":"OrganizationList"},"OrganizationLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"type":{"type":"string","title":"Type"}},"type":"object","required":["uuid","name","type"],"title":"OrganizationLite"},"OrganizationParentSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"is_private":{"type":"boolean","title":"Is Private"}},"type":"object","required":["uuid","name","type","is_private"],"title":"OrganizationParentSummary","description":"Minimal parent organization payload for forms and detail."},"OrganizationRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"OrganizationRef","description":"Reference to an organization (uuid and name only)"},"OrganizationSectorAssociation":{"properties":{"organization_uuid":{"type":"string","format":"uuid4","title":"Organization Uuid"},"type":{"$ref":"#/components/schemas/OrganizationSectorTypeEnum"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["organization_uuid","type"],"title":"OrganizationSectorAssociation","description":"Schema for associating an organization with a sector (used in SectorCreate/Update)"},"OrganizationSectorTypeEnum":{"type":"string","enum":["transversal","primary","secondary","indirect"],"title":"OrganizationSectorTypeEnum"},"OrganizationUpdate":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"type":"integer","title":"Country Id"},"government_body_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array"},{"type":"null"}],"title":"Government Body Types"},"service_provider_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array"},{"type":"null"}],"title":"Service Provider Types"},"info":{"additionalProperties":true,"type":"object","title":"Info"},"description":{"type":"string","title":"Description"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment","default":"neutral"},"parent_organization_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Parent Organization Uuids"}},"type":"object","required":["name","type","country_id","info","description"],"title":"OrganizationUpdate"},"OrganizationVisibilityUpdate":{"properties":{"visibility":{"type":"string","title":"Visibility","description":"'company' or 'personal'"}},"additionalProperties":false,"type":"object","required":["visibility"],"title":"OrganizationVisibilityUpdate"},"OwnerCreate":{"properties":{"user_uuid":{"type":"string","format":"uuid4","title":"User Uuid"}},"type":"object","required":["user_uuid"],"title":"OwnerCreate","description":"Used for all owner creation endpoints since they only need the user_uuid"},"OwnerResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"OwnerResponse","description":"Generic success response for owner operations"},"Page_Annotated_Union_RegulatoryFeedPost__CommunicationFeedPost__WorkflowRunFeedPost__PublicConsultationFeedPost__ConsultationReminderFeedPost__LegislativeUpdateFeedPost___FieldInfo_annotation_NoneType__required_True__discriminator__post_type____":{"properties":{"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/RegulatoryFeedPost"},{"$ref":"#/components/schemas/CommunicationFeedPost"},{"$ref":"#/components/schemas/WorkflowRunFeedPost"},{"$ref":"#/components/schemas/PublicConsultationFeedPost"},{"$ref":"#/components/schemas/ConsultationReminderFeedPost"},{"$ref":"#/components/schemas/LegislativeUpdateFeedPost"}],"discriminator":{"propertyName":"post_type","mapping":{"communication":"#/components/schemas/CommunicationFeedPost","consultation_reminder":"#/components/schemas/ConsultationReminderFeedPost","legislative_update":"#/components/schemas/LegislativeUpdateFeedPost","public_consultation":"#/components/schemas/PublicConsultationFeedPost","regulatory":"#/components/schemas/RegulatoryFeedPost","workflow_run":"#/components/schemas/WorkflowRunFeedPost"}}},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Annotated[Union[RegulatoryFeedPost, CommunicationFeedPost, WorkflowRunFeedPost, PublicConsultationFeedPost, ConsultationReminderFeedPost, LegislativeUpdateFeedPost], FieldInfo(annotation=NoneType, required=True, discriminator='post_type')]]"},"Page_CommunicationPostResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CommunicationPostResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[CommunicationPostResponse]"},"Page_CompanyContactResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CompanyContactResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[CompanyContactResponse]"},"Page_CompanyInteraction_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CompanyInteraction"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[CompanyInteraction]"},"Page_CompanyOrganizationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CompanyOrganizationResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[CompanyOrganizationResponse]"},"Page_Company_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Company"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Company]"},"Page_ConsultationReminderPostResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConsultationReminderPostResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[ConsultationReminderPostResponse]"},"Page_Contact_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Contact]"},"Page_ContentChunk_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentChunk"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[ContentChunk]"},"Page_ContentType_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentType"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[ContentType]"},"Page_ContentWithCompanyRelevanceResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentWithCompanyRelevanceResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[ContentWithCompanyRelevanceResponse]"},"Page_ContentWithRelationsResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentWithRelationsResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[ContentWithRelationsResponse]"},"Page_CountryBase_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CountryBase"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[CountryBase]"},"Page_Country_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/app__views__company__countries__schema__Country"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Country]"},"Page_EntityRecord_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EntityRecord"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[EntityRecord]"},"Page_Event_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Event"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Event]"},"Page_GroupResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GroupResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[GroupResponse]"},"Page_InternalNoteResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InternalNoteResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[InternalNoteResponse]"},"Page_LegalEntityResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LegalEntityResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[LegalEntityResponse]"},"Page_LegislativeUpdatePostResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LegislativeUpdatePostResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[LegislativeUpdatePostResponse]"},"Page_OrganizationList_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrganizationList"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[OrganizationList]"},"Page_Organization_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Organization"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Organization]"},"Page_PermissionProfileRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PermissionProfileRead"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[PermissionProfileRead]"},"Page_PublicConsultationPostResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicConsultationPostResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[PublicConsultationPostResponse]"},"Page_RegulatoryPostResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RegulatoryPostResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[RegulatoryPostResponse]"},"Page_Subject_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Subject"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Subject]"},"Page_Tag_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Tag]"},"Page_TaskListItemResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TaskListItemResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[TaskListItemResponse]"},"Page_Union_Sector__SectorRef__":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/Sector"},{"$ref":"#/components/schemas/SectorRef"}]},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[Union[Sector, SectorRef]]"},"Page_UserBase_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserBase"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[UserBase]"},"Page_UserMTM_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserMTM"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[UserMTM]"},"Page_UserSettings_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserSettings"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[UserSettings]"},"Page_WorkflowInstanceList_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkflowInstanceList"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[WorkflowInstanceList]"},"Page_WorkflowRunPostResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkflowRunPostResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[WorkflowRunPostResponse]"},"Page_WorkflowRun_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkflowRun"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[WorkflowRun]"},"Page_WorkflowTemplate_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkflowTemplate"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total"},"page":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Page"},"size":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Size"},"pages":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Pages"}},"type":"object","required":["items","total","page","size"],"title":"Page[WorkflowTemplate]"},"ParentTypeEnum":{"type":"string","enum":["Jurisdiction","Organization","Contact","Interaction","Project","Event","Task"],"title":"ParentTypeEnum"},"PermissionEntry":{"properties":{"category":{"type":"string","title":"Category"},"action":{"type":"string","title":"Action"},"scope":{"$ref":"#/components/schemas/PermissionScope"}},"additionalProperties":false,"type":"object","required":["category","action","scope"],"title":"PermissionEntry"},"PermissionMatrixActionRead":{"properties":{"category":{"type":"string","title":"Category"},"action":{"type":"string","title":"Action"}},"type":"object","required":["category","action"],"title":"PermissionMatrixActionRead"},"PermissionProfileCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionEntry"},"type":"array","title":"Permissions"}},"additionalProperties":false,"type":"object","required":["name","permissions"],"title":"PermissionProfileCreate"},"PermissionProfileRead":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionEntry"},"type":"array","title":"Permissions"},"can_manage_permission_profiles":{"type":"boolean","title":"Can Manage Permission Profiles"},"is_seed":{"type":"boolean","title":"Is Seed"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["uuid","company_uuid","name","permissions","can_manage_permission_profiles","is_seed","created_at","updated_at"],"title":"PermissionProfileRead"},"PermissionProfileUpdate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionEntry"},"type":"array","title":"Permissions"}},"additionalProperties":false,"type":"object","required":["name","permissions"],"title":"PermissionProfileUpdate"},"PermissionRoleAreaAccess":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"access":{"$ref":"#/components/schemas/RoleAreaAccess"}},"type":"object","required":["uuid","name","access"],"title":"PermissionRoleAreaAccess"},"PermissionScope":{"type":"string","enum":["all","own","group","none"],"title":"PermissionScope"},"PersonalOwnerTransfer":{"properties":{"user_uuid":{"type":"string","format":"uuid4","title":"User Uuid"}},"additionalProperties":false,"type":"object","required":["user_uuid"],"title":"PersonalOwnerTransfer"},"PlatformTotalsResponse":{"properties":{"jurisdictions":{"type":"integer","title":"Jurisdictions"},"government_bodies":{"type":"integer","title":"Government Bodies"},"associations":{"type":"integer","title":"Associations"},"service_providers":{"type":"integer","title":"Service Providers"},"contacts":{"type":"integer","title":"Contacts"}},"type":"object","required":["jurisdictions","government_bodies","associations","service_providers","contacts"],"title":"PlatformTotalsResponse","description":"Public totals of the global RegDoor catalogue. Never includes company data."},"PolicyConsentCheck":{"properties":{"all_accepted":{"type":"boolean","title":"All Accepted"},"pending_documents":{"items":{"$ref":"#/components/schemas/PolicyDocumentResponse"},"type":"array","title":"Pending Documents"},"consent_statuses":{"items":{"$ref":"#/components/schemas/PolicyConsentStatus"},"type":"array","title":"Consent Statuses"}},"type":"object","required":["all_accepted","pending_documents","consent_statuses"],"title":"PolicyConsentCheck","description":"Overall consent status for the user."},"PolicyConsentRequest":{"properties":{"policy_document_uuid":{"type":"string","format":"uuid4","title":"Policy Document Uuid"}},"type":"object","required":["policy_document_uuid"],"title":"PolicyConsentRequest","description":"Request to record user consent for a policy document."},"PolicyConsentResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"user_uuid":{"type":"string","format":"uuid4","title":"User Uuid"},"policy_document_uuid":{"type":"string","format":"uuid4","title":"Policy Document Uuid"},"accepted_version":{"type":"integer","title":"Accepted Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["uuid","user_uuid","policy_document_uuid","accepted_version","created_at","updated_at"],"title":"PolicyConsentResponse","description":"Response after recording consent."},"PolicyConsentStatus":{"properties":{"policy_document_uuid":{"type":"string","format":"uuid4","title":"Policy Document Uuid"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"current_version":{"type":"integer","title":"Current Version"},"accepted_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Accepted Version"},"is_accepted":{"type":"boolean","title":"Is Accepted"}},"type":"object","required":["policy_document_uuid","slug","title","current_version","is_accepted"],"title":"PolicyConsentStatus","description":"Represents whether a user has accepted the latest version of a policy document."},"PolicyDocumentCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"}},"type":"object","required":["slug","title","content"],"title":"PolicyDocumentCreate","description":"Request body for creating a policy document."},"PolicyDocumentPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"}},"type":"object","title":"PolicyDocumentPatch","description":"Request body for patching a policy document. All fields optional. Version is incremented on update."},"PolicyDocumentPublicResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["slug","title","content","version"],"title":"PolicyDocumentPublicResponse","description":"Public policy document for unauthenticated reading pages."},"PolicyDocumentPublicSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["uuid","slug","title","version"],"title":"PolicyDocumentPublicSummary","description":"Public metadata for login checkbox links (no auth required)."},"PolicyDocumentResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"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"}},"type":"object","required":["uuid","slug","title","content","version","created_at","updated_at"],"title":"PolicyDocumentResponse"},"PostActionRegister":{"properties":{"post_uuid":{"type":"string","format":"uuid4","title":"Post Uuid"},"user_uuid":{"type":"string","format":"uuid4","title":"User Uuid"},"action_type":{"type":"string","enum":["thumbs_up","thumbs_down","bookmark"],"title":"Action Type","description":"thumbs_up, thumbs_down, or bookmark"}},"type":"object","required":["post_uuid","user_uuid","action_type"],"title":"PostActionRegister","description":"Register a reaction on a post (company is taken from the URL)."},"PostActionRegisterResponse":{"properties":{"action":{"type":"string","enum":["created","removed","changed"],"title":"Action"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"}},"type":"object","required":["action","thumbs_up_count","thumbs_down_count"],"title":"PostActionRegisterResponse","description":"Result of registering a post action (aligns with feed client expectations)."},"PrazoCampoEnum":{"type":"string","enum":["plano","conclusao"],"title":"PrazoCampoEnum","description":"Which Task deadline a revision applies to (stored as a plain string)."},"PrazoPropostoPorEnum":{"type":"string","enum":["area","juridico"],"title":"PrazoPropostoPorEnum"},"PrazoRevisaoResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"campo":{"$ref":"#/components/schemas/PrazoCampoEnum","default":"plano"},"data_anterior":{"type":"string","format":"date","title":"Data Anterior"},"data_proposta":{"type":"string","format":"date","title":"Data Proposta"},"proposto_por":{"$ref":"#/components/schemas/PrazoPropostoPorEnum"},"status":{"$ref":"#/components/schemas/PrazoRevisaoStatusEnum"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","data_anterior","data_proposta","proposto_por","status","created_at"],"title":"PrazoRevisaoResponse"},"PrazoRevisaoStatusEnum":{"type":"string","enum":["pendente_aprovacao","aprovado","rejeitado"],"title":"PrazoRevisaoStatusEnum"},"ProjectAgentContext":{"properties":{"project":{"$ref":"#/components/schemas/ProjectAgentInfo"},"contacts":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Contacts"},"organizations":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Organizations"},"interactions":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Interactions"},"public_docs":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Public Docs"},"private_docs":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Private Docs"},"events":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Events"},"tasks":{"items":{"$ref":"#/components/schemas/AgentEntityRecord"},"type":"array","title":"Tasks"},"internal_notes":{"items":{"$ref":"#/components/schemas/AgentInternalNote"},"type":"array","title":"Internal Notes"}},"type":"object","required":["project"],"title":"ProjectAgentContext","description":"Aggregated project state for the ``project-markdown-builder`` agent."},"ProjectAgentInfo":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","enum":["active","on_hold","completed","archived"],"title":"Status"},"owner":{"$ref":"#/components/schemas/ProjectOwner"},"jurisdictions":{"items":{"$ref":"#/components/schemas/ProjectJurisdictionRef"},"type":"array","title":"Jurisdictions"},"legal_entities":{"items":{"$ref":"#/components/schemas/ProjectLegalEntityRef"},"type":"array","title":"Legal Entities"},"item_counts":{"$ref":"#/components/schemas/ProjectAgentItemCounts"}},"type":"object","required":["title","status","owner"],"title":"ProjectAgentInfo"},"ProjectAgentItemCounts":{"properties":{"contacts":{"type":"integer","title":"Contacts","default":0},"organizations":{"type":"integer","title":"Organizations","default":0},"interactions":{"type":"integer","title":"Interactions","default":0},"private_docs":{"type":"integer","title":"Private Docs","default":0},"public_docs":{"type":"integer","title":"Public Docs","default":0},"events":{"type":"integer","title":"Events","default":0},"tasks":{"type":"integer","title":"Tasks","default":0},"internal_notes":{"type":"integer","title":"Internal Notes","default":0}},"type":"object","title":"ProjectAgentItemCounts"},"ProjectCollectionRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ProjectCollectionRef"},"ProjectConversation":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"session_id":{"type":"string","title":"Session Id"},"title":{"type":"string","title":"Title"},"author_name":{"type":"string","title":"Author Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","session_id","title","author_name","created_at"],"title":"ProjectConversation"},"ProjectConversationLink":{"properties":{"conversation_uuid":{"type":"string","format":"uuid4","title":"Conversation Uuid"}},"additionalProperties":false,"type":"object","required":["conversation_uuid"],"title":"ProjectConversationLink"},"ProjectCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"owner_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Owner Id"},"status":{"type":"string","enum":["active","on_hold","completed","archived"],"title":"Status","default":"active"},"jurisdiction_ids":{"items":{"type":"integer"},"type":"array","title":"Jurisdiction Ids"},"legal_entity_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Legal Entity Ids"},"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"},"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"personal"}},"additionalProperties":false,"type":"object","required":["title"],"title":"ProjectCreate"},"ProjectDetail":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","enum":["active","on_hold","completed","archived"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"owner":{"$ref":"#/components/schemas/ProjectOwner"},"groups":{"items":{"$ref":"#/components/schemas/ProjectGroupSummary"},"type":"array","title":"Groups"},"provenance":{"items":{"$ref":"#/components/schemas/ProjectItemSourceSummary"},"type":"array","title":"Provenance"},"jurisdictions":{"items":{"$ref":"#/components/schemas/ProjectJurisdictionRef"},"type":"array","title":"Jurisdictions"},"legal_entities":{"items":{"$ref":"#/components/schemas/ProjectLegalEntityRef"},"type":"array","title":"Legal Entities"},"entity_counts":{"$ref":"#/components/schemas/EntityCounts"},"markdown":{"type":"string","title":"Markdown","default":""},"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","required":["uuid","title","status","created_at","updated_at","owner"],"title":"ProjectDetail"},"ProjectGroupSummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ProjectGroupSummary","description":"Área (group) responsável por um project."},"ProjectGroupsResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ProjectGroupSummary"},"type":"array","title":"Groups"}},"type":"object","title":"ProjectGroupsResponse"},"ProjectGroupsUpdate":{"properties":{"group_uuids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Group Uuids"}},"additionalProperties":false,"type":"object","title":"ProjectGroupsUpdate"},"ProjectItemSourceSummary":{"properties":{"source_type":{"type":"string","enum":["manual","collection_import","migration_backfill","agent_suggestion"],"title":"Source Type"},"source_collection_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Source Collection Id"},"collection_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Name"},"item_count":{"type":"integer","title":"Item Count"},"first_imported_at":{"type":"string","format":"date-time","title":"First Imported At"},"last_imported_at":{"type":"string","format":"date-time","title":"Last Imported At"}},"type":"object","required":["source_type","item_count","first_imported_at","last_imported_at"],"title":"ProjectItemSourceSummary"},"ProjectItemSuggestion":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"suggestion_id":{"type":"string","format":"uuid4","title":"Suggestion Id"},"object_type":{"type":"string","title":"Object Type"},"title":{"type":"string","title":"Title"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"status":{"type":"string","enum":["pending","approved","rejected"],"title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["id","suggestion_id","object_type","title","status","created_at"],"title":"ProjectItemSuggestion","description":"A pending (or resolved) candidate for ``project_items``, awaiting review.\n\nCarries the same display fields as :class:`EntityRecord` so the frontend\ncan render it with the existing record UI, plus the suggestion's own\nstatus/reason/audit fields."},"ProjectItemSuggestionCallback":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProjectItemSuggestionCallbackItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","title":"ProjectItemSuggestionCallback"},"ProjectItemSuggestionCallbackItem":{"properties":{"object_type":{"type":"string","title":"Object Type"},"object_id":{"type":"string","format":"uuid4","title":"Object Id"},"relevant":{"type":"boolean","title":"Relevant"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["object_type","object_id","relevant"],"title":"ProjectItemSuggestionCallbackItem"},"ProjectItemSuggestionCallbackResult":{"properties":{"created_count":{"type":"integer","title":"Created Count"}},"type":"object","required":["created_count"],"title":"ProjectItemSuggestionCallbackResult"},"ProjectItemSuggestionScanResult":{"properties":{"candidates_found":{"type":"integer","title":"Candidates Found"},"dispatched":{"type":"boolean","title":"Dispatched"}},"type":"object","required":["candidates_found","dispatched"],"title":"ProjectItemSuggestionScanResult"},"ProjectItemsAdd":{"properties":{"group":{"type":"string","enum":["contacts","organizations","interactions","private_docs","public_docs","events","tasks"],"title":"Group"},"object_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","minItems":1,"title":"Object Ids"}},"additionalProperties":false,"type":"object","required":["group","object_ids"],"title":"ProjectItemsAdd"},"ProjectItemsImportCollection":{"properties":{"group":{"type":"string","enum":["contacts","organizations","interactions","private_docs","public_docs","events","tasks"],"title":"Group"},"collection_id":{"type":"string","format":"uuid4","title":"Collection Id"}},"additionalProperties":false,"type":"object","required":["group","collection_id"],"title":"ProjectItemsImportCollection"},"ProjectItemsMutationResult":{"properties":{"added_count":{"type":"integer","title":"Added Count"},"skipped_count":{"type":"integer","title":"Skipped Count"}},"type":"object","required":["added_count","skipped_count"],"title":"ProjectItemsMutationResult"},"ProjectJurisdictionRef":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","required":["id","name"],"title":"ProjectJurisdictionRef"},"ProjectLegalEntityRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"legal_name":{"type":"string","title":"Legal Name"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"}},"type":"object","required":["uuid","legal_name"],"title":"ProjectLegalEntityRef"},"ProjectListItem":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","enum":["active","on_hold","completed","archived"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"owner":{"$ref":"#/components/schemas/ProjectOwner"},"groups":{"items":{"$ref":"#/components/schemas/ProjectGroupSummary"},"type":"array","title":"Groups"},"jurisdictions":{"items":{"$ref":"#/components/schemas/ProjectJurisdictionRef"},"type":"array","title":"Jurisdictions"},"legal_entities":{"items":{"$ref":"#/components/schemas/ProjectLegalEntityRef"},"type":"array","title":"Legal Entities"},"entity_counts":{"$ref":"#/components/schemas/EntityCounts"},"markdown":{"type":"string","title":"Markdown","default":""},"markdown_truncated":{"type":"boolean","title":"Markdown Truncated","default":false},"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","required":["uuid","title","status","created_at","updated_at","owner"],"title":"ProjectListItem"},"ProjectOwner":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ProjectOwner"},"ProjectUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"owner_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Owner Id"},"status":{"anyOf":[{"type":"string","enum":["active","on_hold","completed","archived"]},{"type":"null"}],"title":"Status"},"jurisdiction_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Jurisdiction Ids"},"legal_entity_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Legal Entity Ids"}},"additionalProperties":false,"type":"object","title":"ProjectUpdate"},"ProjectVisibilityData":{"properties":{"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility","default":"company"},"personal_owner_user_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Personal Owner User Uuid"}},"type":"object","title":"ProjectVisibilityData"},"ProjectVisibilityUpdate":{"properties":{"visibility":{"type":"string","enum":["company","personal"],"title":"Visibility"}},"additionalProperties":false,"type":"object","required":["visibility"],"title":"ProjectVisibilityUpdate"},"PromoteDueFutureLaunchRequest":{"properties":{"content_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20},{"type":"null"}],"title":"Content Uuids"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Of"}},"type":"object","title":"PromoteDueFutureLaunchRequest"},"PromoteDueFutureLaunchResponse":{"properties":{"message":{"type":"string","title":"Message"},"content_uuids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Content Uuids"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Of"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["message"],"title":"PromoteDueFutureLaunchResponse"},"PublicCommunicationsAuditItem":{"properties":{"content_uuid":{"type":"string","title":"Content Uuid"},"content_name":{"type":"string","title":"Content Name"},"overall_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Status"},"type_validation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Validation"},"type_review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Review Reason"},"suggested_types":{"items":{"type":"string"},"type":"array","title":"Suggested Types"},"url_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url Class"},"declared_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Type"},"scraping_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scraping Type"},"official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Url"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"function":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"},"event_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Summary"},"organization_names":{"items":{"type":"string"},"type":"array","title":"Organization Names"},"relationships":{"items":{"$ref":"#/components/schemas/PublicCommunicationsRelationshipItem"},"type":"array","title":"Relationships"}},"type":"object","required":["content_uuid","content_name"],"title":"PublicCommunicationsAuditItem"},"PublicCommunicationsAuditResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicCommunicationsAuditItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"size":{"type":"integer","title":"Size","default":20},"pages":{"type":"integer","title":"Pages","default":0},"summary":{"$ref":"#/components/schemas/PublicCommunicationsAuditSummary"}},"type":"object","title":"PublicCommunicationsAuditResponse"},"PublicCommunicationsAuditSummary":{"properties":{"total":{"type":"integer","title":"Total","default":0},"in_review":{"type":"integer","title":"In Review","default":0},"not_run":{"type":"integer","title":"Not Run","default":0},"completed":{"type":"integer","title":"Completed","default":0}},"type":"object","title":"PublicCommunicationsAuditSummary"},"PublicCommunicationsCaptureItem":{"properties":{"source_content_uuid":{"type":"string","title":"Source Content Uuid"},"source_content_name":{"type":"string","title":"Source Content Name"},"relationship_index":{"type":"integer","title":"Relationship Index"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"source_official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Official Url"},"organization_names":{"items":{"type":"string"},"type":"array","title":"Organization Names"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"capture_status":{"type":"string","enum":["open","captured","ignored"],"title":"Capture Status","default":"open"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"search_attempts":{"items":{"$ref":"#/components/schemas/PublicCommunicationsSearchAttempt"},"type":"array","title":"Search Attempts"},"capture_attempt":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Capture Attempt"}},"type":"object","required":["source_content_uuid","source_content_name","relationship_index"],"title":"PublicCommunicationsCaptureItem"},"PublicCommunicationsCaptureResolveItem":{"properties":{"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"relationship_index":{"type":"integer","minimum":0.0,"title":"Relationship Index"}},"type":"object","required":["content_uuid","relationship_index"],"title":"PublicCommunicationsCaptureResolveItem"},"PublicCommunicationsCaptureResolveRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicCommunicationsCaptureResolveItem"},"type":"array","maxItems":50,"title":"Items"},"all_open":{"type":"boolean","title":"All Open","default":false}},"type":"object","title":"PublicCommunicationsCaptureResolveRequest"},"PublicCommunicationsCaptureResolveResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"item_count":{"type":"integer","title":"Item Count"}},"type":"object","required":["run_id","item_count"],"title":"PublicCommunicationsCaptureResolveResponse"},"PublicCommunicationsCaptureResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicCommunicationsCaptureItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"size":{"type":"integer","title":"Size","default":20},"pages":{"type":"integer","title":"Pages","default":0}},"type":"object","title":"PublicCommunicationsCaptureResponse"},"PublicCommunicationsCaptureStatusPatch":{"properties":{"source_content_uuid":{"type":"string","format":"uuid","title":"Source Content Uuid"},"relationship_index":{"type":"integer","minimum":0.0,"title":"Relationship Index"},"capture_status":{"type":"string","enum":["open","captured","ignored"],"title":"Capture Status"}},"type":"object","required":["source_content_uuid","relationship_index","capture_status"],"title":"PublicCommunicationsCaptureStatusPatch"},"PublicCommunicationsCaptureWrite":{"properties":{"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint"},"relationship_index":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Relationship Index"},"status":{"type":"string","enum":["processing","discovered","linked_existing","suggested_match","not_found_web","org_unresolved","scraping_dispatched","scraped_ok","scraped_incomplete","scraping_failed","failed"],"title":"Status"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"found_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Found Url"},"is_pdf":{"type":"boolean","title":"Is Pdf","default":false},"organization_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Uuid"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"db_match_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Db Match Uuid"},"db_match_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Db Match Confidence"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"webhook_response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Webhook Response"},"scraped_content_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scraped Content Uuid"},"target_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Uuid"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"match_candidates":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Match Candidates"},"usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Usage"}},"type":"object","required":["status"],"title":"PublicCommunicationsCaptureWrite","description":"Outcome written onto one cited relationship. No new table."},"PublicCommunicationsContactLink":{"properties":{"contact_uuid":{"type":"string","title":"Contact Uuid"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["contact_uuid","name"],"title":"PublicCommunicationsContactLink"},"PublicCommunicationsEventLink":{"properties":{"event_uuid":{"type":"string","title":"Event Uuid"},"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"is_opener":{"type":"boolean","title":"Is Opener","default":false},"unlinkable":{"type":"boolean","title":"Unlinkable","default":true}},"type":"object","required":["event_uuid","name"],"title":"PublicCommunicationsEventLink"},"PublicCommunicationsMatchCandidate":{"properties":{"uuid":{"type":"string","title":"Uuid"},"label":{"type":"string","title":"Label","default":""}},"type":"object","required":["uuid"],"title":"PublicCommunicationsMatchCandidate"},"PublicCommunicationsPromptContent":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"group":{"type":"string","const":"pipeline","title":"Group","default":"pipeline"},"source":{"type":"string","enum":["s3","missing"],"title":"Source"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","title","description","s3_key","source","content"],"title":"PublicCommunicationsPromptContent"},"PublicCommunicationsPromptList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicCommunicationsPromptRef"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PublicCommunicationsPromptList"},"PublicCommunicationsPromptRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"group":{"type":"string","const":"pipeline","title":"Group","default":"pipeline"}},"type":"object","required":["id","title","description","s3_key"],"title":"PublicCommunicationsPromptRef"},"PublicCommunicationsPromptSaveRequest":{"properties":{"content":{"type":"string","title":"Content"}},"additionalProperties":false,"type":"object","required":["content"],"title":"PublicCommunicationsPromptSaveRequest"},"PublicCommunicationsRelatedDocumentLink":{"properties":{"content_uuid":{"type":"string","title":"Content Uuid"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin"}},"type":"object","required":["content_uuid"],"title":"PublicCommunicationsRelatedDocumentLink"},"PublicCommunicationsRelationshipItem":{"properties":{"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind"},"target_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Uuid"},"target_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Label"},"relationship_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Role"},"exists_in_app":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists In App"},"linked_to_doc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked To Doc"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"is_controlling_source":{"type":"boolean","title":"Is Controlling Source","default":false},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"capture_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Status"},"match_candidates":{"items":{"$ref":"#/components/schemas/PublicCommunicationsMatchCandidate"},"type":"array","title":"Match Candidates"},"search_attempts":{"items":{"$ref":"#/components/schemas/PublicCommunicationsSearchAttempt"},"type":"array","title":"Search Attempts"}},"type":"object","title":"PublicCommunicationsRelationshipItem"},"PublicCommunicationsRelationshipItemOut":{"properties":{"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind"},"target_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Uuid"},"target_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Label"},"relationship_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Role"},"exists_in_app":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exists In App"},"linked_to_doc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked To Doc"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"is_controlling_source":{"type":"boolean","title":"Is Controlling Source","default":false},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"capture_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capture Status"},"origins":{"items":{"type":"string"},"type":"array","title":"Origins"}},"type":"object","title":"PublicCommunicationsRelationshipItemOut"},"PublicCommunicationsRelationshipOp":{"properties":{"op":{"type":"string","enum":["add","remove"],"title":"Op"},"target_type":{"type":"string","enum":["document","event","contact"],"title":"Target Type"},"target_uuid":{"type":"string","format":"uuid","title":"Target Uuid"}},"additionalProperties":false,"type":"object","required":["op","target_type","target_uuid"],"title":"PublicCommunicationsRelationshipOp"},"PublicCommunicationsRelationshipsPatch":{"properties":{"expected_updated_at":{"type":"string","format":"date-time","title":"Expected Updated At"},"operations":{"items":{"$ref":"#/components/schemas/PublicCommunicationsRelationshipOp"},"type":"array","maxItems":50,"title":"Operations"},"capture":{"anyOf":[{"$ref":"#/components/schemas/PublicCommunicationsCaptureWrite"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["expected_updated_at"],"title":"PublicCommunicationsRelationshipsPatch"},"PublicCommunicationsRelationshipsPatchResponse":{"properties":{"content_uuid":{"type":"string","title":"Content Uuid"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"relationship_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Status"},"overall_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Status"},"relationships":{"items":{"$ref":"#/components/schemas/PublicCommunicationsRelationshipItemOut"},"type":"array","title":"Relationships"},"related_contents":{"items":{"$ref":"#/components/schemas/PublicCommunicationsRelatedDocumentLink"},"type":"array","title":"Related Contents"},"events":{"items":{"$ref":"#/components/schemas/PublicCommunicationsEventLink"},"type":"array","title":"Events"},"contacts":{"items":{"$ref":"#/components/schemas/PublicCommunicationsContactLink"},"type":"array","title":"Contacts"}},"type":"object","required":["content_uuid","updated_at"],"title":"PublicCommunicationsRelationshipsPatchResponse"},"PublicCommunicationsSearchAttempt":{"properties":{"strategy":{"type":"string","title":"Strategy"},"needle":{"type":"string","title":"Needle","default":""},"hit_count":{"type":"integer","title":"Hit Count","default":0}},"type":"object","required":["strategy"],"title":"PublicCommunicationsSearchAttempt"},"PublicCommunicationsTypeReclassifyPatch":{"properties":{"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"type_uuid":{"type":"string","format":"uuid","title":"Type Uuid"}},"type":"object","required":["content_uuid","type_uuid"],"title":"PublicCommunicationsTypeReclassifyPatch"},"PublicConsultationFeedExtra":{"properties":{"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"event":{"$ref":"#/components/schemas/EventFeedEmbed"},"public_consultation_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Public Consultation Info"}},"type":"object","required":["event_uuid","event"],"title":"PublicConsultationFeedExtra"},"PublicConsultationFeedPost":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"public_consultation","title":"Post Type"},"post_infos":{"$ref":"#/components/schemas/PublicConsultationFeedExtra"}},"type":"object","required":["uuid","company_uuid","relevance","title_generic","description_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","published_at","filters","post_type","post_infos"],"title":"PublicConsultationFeedPost"},"PublicConsultationPostCreate":{"properties":{"title_generic":{"type":"string","minLength":1,"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["title_generic","event_uuid"],"title":"PublicConsultationPostCreate","description":"Create ``posts`` + ``public_consultation_posts`` (company comes from URL)."},"PublicConsultationPostResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"public_consultation","title":"Post Type","default":"public_consultation"},"event_uuid":{"type":"string","format":"uuid4","title":"Event Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["uuid","company_uuid","title_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","event_uuid"],"title":"PublicConsultationPostResponse","description":"Public consultation post: base + ``public_consultation_posts`` (FK only)."},"PublicConsultationPostUpdate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"event_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Event Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"PublicConsultationPostUpdate","description":"Partial update: parent row + ``public_consultation_posts``."},"RecentProject":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"last_visited_at":{"type":"string","format":"date-time","title":"Last Visited At"}},"type":"object","required":["uuid","title","last_visited_at"],"title":"RecentProject"},"RegulatoryFeedExtra":{"properties":{"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"content":{"$ref":"#/components/schemas/ContentFeedEmbed"},"regulatory_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Regulatory Info"}},"type":"object","required":["why_it_matters_text","content"],"title":"RegulatoryFeedExtra"},"RegulatoryFeedPost":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"regulatory","title":"Post Type"},"post_infos":{"$ref":"#/components/schemas/RegulatoryFeedExtra"}},"type":"object","required":["uuid","company_uuid","relevance","title_generic","description_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","published_at","filters","post_type","post_infos"],"title":"RegulatoryFeedPost"},"RegulatoryPostCreate":{"properties":{"title_generic":{"type":"string","minLength":1,"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["title_generic","content_uuid"],"title":"RegulatoryPostCreate","description":"Create ``posts`` + ``regulatory_posts`` (company comes from URL)."},"RegulatoryPostResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"regulatory","title":"Post Type","default":"regulatory"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["uuid","company_uuid","title_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","content_uuid"],"title":"RegulatoryPostResponse","description":"Regulatory post: base + ``regulatory_posts`` (FK only; no embedded ``contents`` row)."},"RegulatoryPostUpdate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"content_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Content Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"RegulatoryPostUpdate","description":"Partial update: parent row + ``regulatory_posts``."},"RegulatoryPowerEnum":{"type":"string","enum":["rulemaking","licensing","registration","supervision","inspection","investigation","enforcement","sanctions","adjudication","financial_intelligence","monetary_policy"],"title":"RegulatoryPowerEnum"},"RegulatoryProfileAttachmentDownloadOut":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"}},"type":"object","required":["url","filename","content_type","expires_in_seconds"],"title":"RegulatoryProfileAttachmentDownloadOut"},"RegulatoryProfileAttachmentInput":{"properties":{"storage_filename":{"type":"string","title":"Storage Filename"},"original_filename":{"type":"string","title":"Original Filename"},"content_type":{"type":"string","title":"Content Type"},"sizeBytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sizebytes"}},"additionalProperties":false,"type":"object","required":["storage_filename","original_filename","content_type"],"title":"RegulatoryProfileAttachmentInput","description":"Uploaded file reference stored under `company.documents` or regulatory attachments."},"RegulatoryProfileGetResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"}},"type":"object","required":["uuid","profile"],"title":"RegulatoryProfileGetResponse","description":"Full regulatory profile JSON (attachments may include download_url)."},"RegulatoryProfilePatchRequest":{"properties":{"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyDescriptionPatch"},{"type":"null"}]},"sectorInterests":{"anyOf":[{"items":{"$ref":"#/components/schemas/SectorInterestItem"},"type":"array"},{"type":"null"}],"title":"Sectorinterests"},"legalEntities":{"anyOf":[{"items":{"$ref":"#/components/schemas/LegalEntityInput"},"type":"array"},{"type":"null"}],"title":"Legalentities"},"jurisdictions":{"anyOf":[{"items":{"$ref":"#/components/schemas/JurisdictionGroupInput"},"type":"array"},{"type":"null"}],"title":"Jurisdictions"},"regulatoryStatusData":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Regulatorystatusdata"}},"additionalProperties":false,"type":"object","title":"RegulatoryProfilePatchRequest","description":"Partial update for `CompanyModel.profile` JSON (whitelist only)."},"RegulatoryProfilePatchResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"}},"type":"object","required":["uuid","profile"],"title":"RegulatoryProfilePatchResponse"},"RegulatoryScopeEnum":{"type":"string","enum":["capital_markets","securities","derivatives","commodities","investment_funds","asset_management","banking","insurance","pensions","consumer_credit","payments","clearing","settlement","financial_market_infrastructure","foreign_exchange","digital_assets","anti_money_laundering","counter_terrorist_financing","competition","data_protection","telecommunications","energy","taxation","customs"],"title":"RegulatoryScopeEnum"},"RelevancePromptUpdate":{"properties":{"content":{"type":"string","minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"RelevancePromptUpdate"},"RelevanceSystemPrompt":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"content":{"type":"string","title":"Content"}},"type":"object","required":["s3_key","content"],"title":"RelevanceSystemPrompt"},"RenameCollectionResult":{"properties":{"updated":{"type":"integer","title":"Updated"}},"type":"object","required":["updated"],"title":"RenameCollectionResult"},"ResourceAccessor":{"properties":{"grantee_type":{"$ref":"#/components/schemas/GranteeType"},"grantee_uuid":{"type":"string","format":"uuid4","title":"Grantee Uuid"},"access_level":{"$ref":"#/components/schemas/AccessLevel"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"source":{"type":"string","title":"Source","description":"grant | owner | project_inherited"},"grant_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Grant Uuid","description":"Present when source is grant (or project_inherited grant row)."}},"type":"object","required":["grantee_type","grantee_uuid","access_level","name","source"],"title":"ResourceAccessor"},"ResourceGrantCreate":{"properties":{"grantee_type":{"$ref":"#/components/schemas/GranteeType"},"grantee_uuid":{"type":"string","format":"uuid4","title":"Grantee Uuid"},"access_level":{"$ref":"#/components/schemas/AccessLevel","default":"can_view"}},"additionalProperties":false,"type":"object","required":["grantee_type","grantee_uuid"],"title":"ResourceGrantCreate"},"ResourceGrantRead":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"resource_type":{"$ref":"#/components/schemas/ResourceType"},"resource_uuid":{"type":"string","format":"uuid4","title":"Resource Uuid"},"grantee_type":{"$ref":"#/components/schemas/GranteeType"},"grantee_uuid":{"type":"string","format":"uuid4","title":"Grantee Uuid"},"access_level":{"$ref":"#/components/schemas/AccessLevel"},"grantee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grantee Name"},"grantee_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grantee Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["uuid","company_uuid","resource_type","resource_uuid","grantee_type","grantee_uuid","access_level","created_at","updated_at"],"title":"ResourceGrantRead"},"ResourceGrantUpdate":{"properties":{"access_level":{"$ref":"#/components/schemas/AccessLevel"}},"additionalProperties":false,"type":"object","required":["access_level"],"title":"ResourceGrantUpdate"},"ResourceType":{"type":"string","enum":["contact","organization","content","interaction","project","conversation","assistant_thread","task"],"title":"ResourceType"},"RoleAreaAccess":{"type":"string","enum":["view","edit","full"],"title":"RoleAreaAccess","description":"Effective access a permission role has on a product area (for Share UI)."},"RunStatusEnum":{"type":"string","enum":["Running","Finished","Error"],"title":"RunStatusEnum"},"Sector":{"properties":{"name":{"type":"string","title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"father_sector_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Father Sector Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"subsectors":{"items":{"$ref":"#/components/schemas/SectorRef"},"type":"array","title":"Subsectors"},"contents":{"items":{"$ref":"#/components/schemas/app__views__schemas__sectors_schema__ContentRef"},"type":"array","title":"Contents","readOnly":true},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationRef"},"type":"array","title":"Organizations","readOnly":true}},"type":"object","required":["name","uuid","created_at","updated_at","contents","organizations"],"title":"Sector","description":"Full sector schema with relationships"},"SectorContentAssociation":{"properties":{"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"impact_level":{"$ref":"#/components/schemas/ImpactLevelEnum"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["content_uuid","impact_level"],"title":"SectorContentAssociation","description":"Schema for associating a sector with a content"},"SectorCreate":{"properties":{"name":{"type":"string","title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"father_sector_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Father Sector Uuid"},"contents":{"anyOf":[{"items":{"$ref":"#/components/schemas/SectorContentAssociation"},"type":"array"},{"type":"null"}],"title":"Contents"},"organizations":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationSectorAssociation"},"type":"array"},{"type":"null"}],"title":"Organizations"}},"type":"object","required":["name"],"title":"SectorCreate","description":"Schema for creating a sector (without father)"},"SectorInContent":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"SectorInContent"},"SectorInterestItem":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"databaseUuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Databaseuuid"},"interest":{"anyOf":[{"$ref":"#/components/schemas/InterestLevel"},{"type":"null"}]},"subSectors":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubSectorInterestItem"},"type":"array"},{"type":"null"}],"title":"Subsectors"}},"additionalProperties":false,"type":"object","title":"SectorInterestItem"},"SectorLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"father_sector_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Father Sector Uuid"}},"type":"object","required":["uuid","name"],"title":"SectorLite","description":"Sector information"},"SectorRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"father_sector_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Father Sector Uuid"}},"type":"object","required":["uuid","name"],"title":"SectorRef","description":"Reference to a sector (for nested relationships and lightweight lists)."},"SectorUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"father_sector_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Father Sector Uuid"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"contents":{"anyOf":[{"items":{"$ref":"#/components/schemas/SectorContentAssociation"},"type":"array"},{"type":"null"}],"title":"Contents"},"organizations":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationSectorAssociation"},"type":"array"},{"type":"null"}],"title":"Organizations"}},"type":"object","title":"SectorUpdate","description":"Schema for updating a sector or subsector"},"SentimentVariationEnum":{"type":"string","enum":["positive","negative","neutral"],"title":"SentimentVariationEnum"},"ServiceProviderTypeEnum":{"type":"string","enum":["self_regulatory_organization"],"title":"ServiceProviderTypeEnum","description":"Subtypes valid only on service_provider organizations."},"SlackCompanyInfo":{"properties":{"user_name":{"type":"string","title":"User Name"},"user_uuid":{"type":"string","format":"uuid4","title":"User Uuid"},"user_email":{"type":"string","title":"User Email"},"company_name":{"type":"string","title":"Company Name"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"}},"type":"object","required":["user_name","user_uuid","user_email","company_name","company_uuid"],"title":"SlackCompanyInfo"},"SubSectorInterestItem":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"interest":{"$ref":"#/components/schemas/InterestLevel"}},"additionalProperties":false,"type":"object","required":["interest"],"title":"SubSectorInterestItem"},"Subject":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"title":{"type":"string","title":"Title"},"function":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"},"definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition"},"tags_examples":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags Examples"},"tags":{"items":{"$ref":"#/components/schemas/TagRef"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["uuid","title"],"title":"Subject"},"SubjectAddTags":{"properties":{"tag_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Tag Uuids"}},"type":"object","title":"SubjectAddTags"},"SubjectCreate":{"properties":{"title":{"type":"string","title":"Title"},"function":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"},"definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition"},"tags_examples":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags Examples"},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Embedding"},"tag_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Tag Uuids"}},"type":"object","required":["title"],"title":"SubjectCreate"},"SubjectLite":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"SubjectLite","description":"Subject information"},"SubjectRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"title":{"type":"string","title":"Title"}},"type":"object","required":["uuid","title"],"title":"SubjectRef"},"SubjectUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"function":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"},"definition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition"},"tags_examples":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags Examples"},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Embedding"},"tag_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Tag Uuids"}},"type":"object","title":"SubjectUpdate"},"SuggestedQuestionsRequest":{"properties":{"questions":{"items":{"type":"string"},"type":"array","title":"Questions"}},"type":"object","required":["questions"],"title":"SuggestedQuestionsRequest"},"SuggestedQuestionsResponse":{"properties":{"questions":{"items":{"type":"string"},"type":"array","title":"Questions"}},"type":"object","required":["questions"],"title":"SuggestedQuestionsResponse"},"Tag":{"properties":{"name":{"type":"string","title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"subjects":{"items":{"$ref":"#/components/schemas/SubjectRef"},"type":"array","title":"Subjects","default":[]},"contents":{"items":{"$ref":"#/components/schemas/app__views__schemas__tag_schema__ContentRef"},"type":"array","title":"Contents","default":[]},"chunks":{"items":{"$ref":"#/components/schemas/ChunkRef"},"type":"array","title":"Chunks","default":[]}},"type":"object","required":["name","uuid"],"title":"Tag"},"TagAddChunks":{"properties":{"chunk_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/TagChunkAssociation"},"type":"array"},{"type":"null"}],"title":"Chunk List"}},"type":"object","title":"TagAddChunks"},"TagAddSubjects":{"properties":{"subject_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Subject Uuids"}},"type":"object","title":"TagAddSubjects"},"TagChunkAssociation":{"properties":{"chunk_uuid":{"type":"string","format":"uuid4","title":"Chunk Uuid"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"weight_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Rationale"}},"type":"object","required":["chunk_uuid"],"title":"TagChunkAssociation"},"TagCreate":{"properties":{"name":{"type":"string","title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Embedding"},"subject_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Subject Uuids"},"content_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Content Uuids"},"chunk_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/TagChunkAssociation"},"type":"array"},{"type":"null"}],"title":"Chunk List"}},"type":"object","required":["name"],"title":"TagCreate"},"TagInfo":{"properties":{"tag_name":{"type":"string","title":"Tag Name"},"tag_uuid":{"type":"string","format":"uuid4","title":"Tag Uuid"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"}},"type":"object","required":["tag_name","tag_uuid"],"title":"TagInfo","description":"Tag information with weight for chunk tags"},"TagRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"TagRef"},"TagUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Embedding"},"subject_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Subject Uuids"},"content_uuids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Content Uuids"},"chunk_list":{"anyOf":[{"items":{"$ref":"#/components/schemas/TagChunkAssociation"},"type":"array"},{"type":"null"}],"title":"Chunk List"}},"type":"object","title":"TagUpdate"},"TaskActionPlanAttachmentInput":{"properties":{"storage_filename":{"type":"string","title":"Storage Filename"},"original_filename":{"type":"string","title":"Original Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["storage_filename","original_filename","content_type"],"title":"TaskActionPlanAttachmentInput","description":"Files already staged via POST /api/files/upload, same shape as\nInternalNoteAttachmentInput — kept as its own type so Task's request schemas\ndon't reach into the internal-notes schema module for an unrelated resource."},"TaskActionPlanSubmitRequest":{"properties":{"plano_de_acao":{"type":"string","title":"Plano De Acao"},"attachments":{"items":{"$ref":"#/components/schemas/TaskActionPlanAttachmentInput"},"type":"array","title":"Attachments"}},"additionalProperties":false,"type":"object","required":["plano_de_acao"],"title":"TaskActionPlanSubmitRequest"},"TaskAtrasoFlags":{"properties":{"juridico_triagem":{"type":"string","enum":["no_prazo","atencao","atrasado"],"title":"Juridico Triagem"},"juridico_aprovacao":{"type":"string","enum":["no_prazo","atencao","atrasado"],"title":"Juridico Aprovacao"},"area":{"type":"string","enum":["no_prazo","atencao","atrasado"],"title":"Area"},"vigencia_norma":{"type":"string","enum":["no_prazo","atencao","atrasado"],"title":"Vigencia Norma"}},"type":"object","required":["juridico_triagem","juridico_aprovacao","area","vigencia_norma"],"title":"TaskAtrasoFlags","description":"Derived, read-time-only SLA indicators (`task_state_machine.\ncompute_atraso`) — never persisted on TaskModel. Each axis is\n`\"no_prazo\" | \"atencao\" | \"atrasado\"`, independent of `task.status`."},"TaskAttachmentKindEnum":{"type":"string","enum":["plano","conclusao"],"title":"TaskAttachmentKindEnum","description":"Which step an anexo belongs to: the plano de ação's files or the\ncompletion evidence. Stored as a plain string column (no PG enum type)."},"TaskAttachmentResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"task_uuid":{"type":"string","format":"uuid4","title":"Task Uuid"},"original_filename":{"type":"string","title":"Original Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"kind":{"$ref":"#/components/schemas/TaskAttachmentKindEnum","default":"plano"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","task_uuid","original_filename","content_type","created_at"],"title":"TaskAttachmentResponse"},"TaskCollectionsNamesResponse":{"properties":{"items":{"items":{"type":"string"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"TaskCollectionsNamesResponse"},"TaskCollectionsSummaryGroup":{"properties":{"name":{"type":"string","title":"Name"},"total_count":{"type":"integer","title":"Total Count"},"latest_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Updated At"},"preview_items":{"items":{"$ref":"#/components/schemas/TaskCollectionsSummaryItem"},"type":"array","title":"Preview Items"}},"type":"object","required":["name","total_count","preview_items"],"title":"TaskCollectionsSummaryGroup"},"TaskCollectionsSummaryItem":{"properties":{"uuid":{"type":"string","title":"Uuid"},"title":{"type":"string","title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["uuid","title"],"title":"TaskCollectionsSummaryItem"},"TaskCollectionsSummaryResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/TaskCollectionsSummaryGroup"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"TaskCollectionsSummaryResponse"},"TaskCollectionsUpdateBody":{"properties":{"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"additionalProperties":false,"type":"object","title":"TaskCollectionsUpdateBody"},"TaskCollectionsUpdateResponse":{"properties":{"collections":{"items":{"type":"string"},"type":"array","title":"Collections"}},"type":"object","required":["collections"],"title":"TaskCollectionsUpdateResponse"},"TaskConclusionSubmitRequest":{"properties":{"conclusao_texto":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusao Texto"},"attachments":{"items":{"$ref":"#/components/schemas/TaskActionPlanAttachmentInput"},"type":"array","title":"Attachments"}},"additionalProperties":false,"type":"object","title":"TaskConclusionSubmitRequest","description":"Completion evidence: optional text plus >=1 attachment staged via\nPOST /api/files/upload (the plano's own anexos do not count)."},"TaskCreationContextEvaluatorGroup":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"TaskCreationContextEvaluatorGroup"},"TaskCreationContextExistingTask":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"group_uuid":{"type":"string","format":"uuid","title":"Group Uuid"},"status":{"$ref":"#/components/schemas/TaskStatusEnum"}},"type":"object","required":["uuid","group_uuid","status"],"title":"TaskCreationContextExistingTask"},"TaskCreationContextGroup":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"caller_is_member":{"type":"boolean","title":"Caller Is Member"},"caller_is_owner":{"type":"boolean","title":"Caller Is Owner"},"caller_can_join":{"type":"boolean","title":"Caller Can Join"},"legal_entities":{"items":{"$ref":"#/components/schemas/TaskCreationContextLegalEntity"},"type":"array","title":"Legal Entities"}},"type":"object","required":["uuid","name","caller_is_member","caller_is_owner","caller_can_join"],"title":"TaskCreationContextGroup"},"TaskCreationContextLegalEntity":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"TaskCreationContextLegalEntity"},"TaskCreationContextResponse":{"properties":{"content_uuid":{"type":"string","format":"uuid","title":"Content Uuid"},"caller_user_uuid":{"type":"string","format":"uuid","title":"Caller User Uuid"},"evaluator_group_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evaluator Group Uuid","description":"Deprecated. Teamspace the caller evaluates for.","deprecated":true},"evaluator_group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator Group Name","description":"Deprecated. Name of the teamspace the caller evaluates for.","deprecated":true},"evaluator_groups":{"items":{"$ref":"#/components/schemas/TaskCreationContextEvaluatorGroup"},"type":"array","title":"Evaluator Groups","description":"Deprecated. At most the caller's evaluator teamspace.","deprecated":true},"can_evaluate":{"type":"boolean","title":"Can Evaluate"},"can_create_group":{"type":"boolean","title":"Can Create Group"},"edit_group_scope":{"type":"string","enum":["all","own","none"],"title":"Edit Group Scope"},"groups":{"items":{"$ref":"#/components/schemas/TaskCreationContextGroup"},"type":"array","title":"Groups"},"existing_tasks":{"items":{"$ref":"#/components/schemas/TaskCreationContextExistingTask"},"type":"array","title":"Existing Tasks"}},"type":"object","required":["content_uuid","caller_user_uuid","can_evaluate","can_create_group","edit_group_scope"],"title":"TaskCreationContextResponse","description":"Read-only payload for the AgentSDK create-task flow.\n\nAlways HTTP 200 when the caller is a company member — denied create/join\nscopes are returned as flags so the agent can explain the blocker instead\nof hitting a 403 on a write preview."},"TaskFieldsSuggestionContext":{"properties":{"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"group_name":{"type":"string","title":"Group Name"},"prazo_vigencia_norma":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Vigencia Norma"}},"type":"object","required":["company_uuid","content_uuid","group_name"],"title":"TaskFieldsSuggestionContext","description":"Everything the `task-fields-suggester` agent needs to fetch the norm text\nand company profile itself from S3 (`company_uuid`/`content_uuid`, same\nbucket/key convention as `set_relevance`) plus the two DB-only facts it\ncannot get from S3: which área this Task is for, and the norm's own\neffective date."},"TaskFieldsSuggestionResultRequest":{"properties":{"ok":{"type":"boolean","title":"Ok"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"assunto_principal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assunto Principal"},"criticidade":{"anyOf":[{"$ref":"#/components/schemas/CriticidadeEnum"},{"type":"null"}]},"analise_juridico_regulatorio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analise Juridico Regulatorio"},"prazo_atual":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Atual"}},"additionalProperties":false,"type":"object","required":["ok"],"title":"TaskFieldsSuggestionResultRequest","description":"Callback body for one agent run. `ok=False` records `error_message` and\nflips `ai_fill_status` to `failed` — the Jurídico form then falls back to\nmanual entry with a \"Fill with AI\" retry button. `ok=True` requires all four\nsuggested fields."},"TaskFieldsSuggestionResultResponse":{"properties":{"saved":{"type":"boolean","title":"Saved","default":true},"ai_fill_status":{"$ref":"#/components/schemas/AiFillStatusEnum"}},"type":"object","required":["ai_fill_status"],"title":"TaskFieldsSuggestionResultResponse"},"TaskJuridicoDevolverRequest":{"properties":{"justificativa_devolucao":{"type":"string","title":"Justificativa Devolucao"}},"additionalProperties":false,"type":"object","required":["justificativa_devolucao"],"title":"TaskJuridicoDevolverRequest"},"TaskJuridicoFieldsUpdateRequest":{"properties":{"prazo_atual":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Atual"},"prazo_conclusao":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Conclusao"},"etapa_plano_acao":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Etapa Plano Acao"},"etapa_conclusao":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Etapa Conclusao"},"assunto_principal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assunto Principal"},"criticidade":{"anyOf":[{"$ref":"#/components/schemas/CriticidadeEnum"},{"type":"null"}]},"analise_juridico_regulatorio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analise Juridico Regulatorio"}},"additionalProperties":false,"type":"object","title":"TaskJuridicoFieldsUpdateRequest","description":"Partial update: an omitted field keeps its current value. Assunto,\ncriticidade and análise may be edited in any status; `prazo_atual` only while\nthe Task is still `aprovado_para_envio` (afterwards use a prazo revisão —\nsee `update_task_juridico_fields`). `prazo_conclusao` and the two `etapa_*`\nflags (which steps the Task has) are editable only before the execution\nphase starts."},"TaskLegalEntitySummary":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"legal_name":{"type":"string","title":"Legal Name"}},"type":"object","required":["uuid","legal_name"],"title":"TaskLegalEntitySummary"},"TaskListItemResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"content_name":{"type":"string","title":"Content Name"},"group_uuid":{"type":"string","format":"uuid4","title":"Group Uuid"},"group_name":{"type":"string","title":"Group Name"},"owner_group_uuid":{"type":"string","format":"uuid4","title":"Owner Group Uuid"},"owner_group_name":{"type":"string","title":"Owner Group Name"},"status":{"$ref":"#/components/schemas/TaskStatusEnum"},"criticidade":{"anyOf":[{"$ref":"#/components/schemas/CriticidadeEnum"},{"type":"null"}]},"assunto_principal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assunto Principal"},"prazo_atual":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Atual"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"atraso":{"$ref":"#/components/schemas/TaskAtrasoFlags"}},"type":"object","required":["uuid","content_uuid","content_name","group_uuid","group_name","owner_group_uuid","owner_group_name","status","created_at","atraso"],"title":"TaskListItemResponse","description":"Row shape for the Tasks list page — denormalized `content_name` /\n`group_name` / `owner_group_name` are set as plain attributes on the loaded\nORM instance at read time (never persisted), same technique as `atraso` on\n`TaskResponse`, so the list avoids one extra round-trip per row."},"TaskNaoConformeRequest":{"properties":{"justificativa_nao_conforme":{"type":"string","title":"Justificativa Nao Conforme"}},"additionalProperties":false,"type":"object","required":["justificativa_nao_conforme"],"title":"TaskNaoConformeRequest"},"TaskOwnerUpdateRequest":{"properties":{"owner_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Owner Uuid"}},"additionalProperties":false,"type":"object","title":"TaskOwnerUpdateRequest","description":"`owner_uuid=None` clears the assignment. Unlike `owner_group_uuid`\n(the Group with Legal/Compliance authority), `owner` is the single user\nresponsible for the Task and can be reassigned at any status."},"TaskPlanoAcaoVersionResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"plano_de_acao":{"type":"string","title":"Plano De Acao"},"replaced_at":{"type":"string","format":"date-time","title":"Replaced At"}},"type":"object","required":["uuid","plano_de_acao","replaced_at"],"title":"TaskPlanoAcaoVersionResponse"},"TaskPrazoRevisaoProposeRequest":{"properties":{"data_proposta":{"type":"string","format":"date","title":"Data Proposta"},"campo":{"$ref":"#/components/schemas/PrazoCampoEnum","default":"plano"}},"additionalProperties":false,"type":"object","required":["data_proposta"],"title":"TaskPrazoRevisaoProposeRequest"},"TaskPrazoRevisaoResolveRequest":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"additionalProperties":false,"type":"object","required":["approve"],"title":"TaskPrazoRevisaoResolveRequest"},"TaskResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"content_uuid":{"type":"string","format":"uuid4","title":"Content Uuid"},"group_uuid":{"type":"string","format":"uuid4","title":"Group Uuid"},"owner_group_uuid":{"type":"string","format":"uuid4","title":"Owner Group Uuid"},"status":{"$ref":"#/components/schemas/TaskStatusEnum"},"area_substatus":{"anyOf":[{"$ref":"#/components/schemas/AreaSubstatusEnum"},{"type":"null"}]},"aplicavel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Aplicavel"},"justificativa_nao_aplicavel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justificativa Nao Aplicavel"},"justificativa_devolucao":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justificativa Devolucao"},"justificativa_nao_conforme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justificativa Nao Conforme"},"informativo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Informativo"},"criticidade":{"anyOf":[{"$ref":"#/components/schemas/CriticidadeEnum"},{"type":"null"}]},"assunto_principal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assunto Principal"},"analise_juridico_regulatorio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analise Juridico Regulatorio"},"vincula_obrigacao":{"type":"boolean","title":"Vincula Obrigacao"},"vincula_obrigacao_periodica":{"type":"boolean","title":"Vincula Obrigacao Periodica"},"vincula_politicas_obrigatorias":{"type":"boolean","title":"Vincula Politicas Obrigatorias"},"comite_obrigatorio":{"type":"boolean","title":"Comite Obrigatorio"},"envolve_criacao_atualizacao_politica":{"type":"boolean","title":"Envolve Criacao Atualizacao Politica"},"indicacao_diretores":{"type":"boolean","title":"Indicacao Diretores"},"envolve_mudancas_sistemicas":{"type":"boolean","title":"Envolve Mudancas Sistemicas"},"envolve_interacao_clientes":{"type":"boolean","title":"Envolve Interacao Clientes"},"plano_de_acao":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plano De Acao"},"etapa_plano_acao":{"type":"boolean","title":"Etapa Plano Acao","default":true},"etapa_conclusao":{"type":"boolean","title":"Etapa Conclusao","default":false},"conclusao_texto":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusao Texto"},"prazo_atual":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Atual"},"prazo_conclusao":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Conclusao"},"prazo_vigencia_norma":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Prazo Vigencia Norma"},"ai_fill_status":{"anyOf":[{"$ref":"#/components/schemas/AiFillStatusEnum"},{"type":"null"}]},"status_updated_at":{"type":"string","format":"date-time","title":"Status Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"$ref":"#/components/schemas/UserBase"},{"type":"null"}]},"owner":{"anyOf":[{"$ref":"#/components/schemas/UserBase"},{"type":"null"}]},"anexos":{"items":{"$ref":"#/components/schemas/TaskAttachmentResponse"},"type":"array","title":"Anexos"},"prazo_historico":{"items":{"$ref":"#/components/schemas/PrazoRevisaoResponse"},"type":"array","title":"Prazo Historico"},"legal_entities":{"items":{"$ref":"#/components/schemas/TaskLegalEntitySummary"},"type":"array","title":"Legal Entities"},"plano_acao_historico":{"items":{"$ref":"#/components/schemas/TaskPlanoAcaoVersionResponse"},"type":"array","title":"Plano Acao Historico"},"atraso":{"$ref":"#/components/schemas/TaskAtrasoFlags"},"is_area_member":{"type":"boolean","title":"Is Area Member"},"is_owner_group_member":{"type":"boolean","title":"Is Owner Group Member"}},"type":"object","required":["uuid","company_uuid","content_uuid","group_uuid","owner_group_uuid","status","vincula_obrigacao","vincula_obrigacao_periodica","vincula_politicas_obrigatorias","comite_obrigatorio","envolve_criacao_atualizacao_politica","indicacao_diretores","envolve_mudancas_sistemicas","envolve_interacao_clientes","status_updated_at","created_at","atraso","is_area_member","is_owner_group_member"],"title":"TaskResponse"},"TaskStatsBucket":{"properties":{"total":{"type":"integer","title":"Total"},"no_prazo":{"type":"integer","title":"No Prazo"},"atencao":{"type":"integer","title":"Atencao"},"atrasado":{"type":"integer","title":"Atrasado"}},"type":"object","required":["total","no_prazo","atencao","atrasado"],"title":"TaskStatsBucket","description":"Counts for one `TaskStage`, broken down by the *worst* of each Task's 4\n`compute_atraso` axes (see `task_state_machine.worst_atraso`) — one bucket\nper Task, not per axis."},"TaskStatsResponse":{"properties":{"aguardando_juridico":{"$ref":"#/components/schemas/TaskStatsBucket"},"com_area":{"$ref":"#/components/schemas/TaskStatsBucket"},"resolvidas":{"$ref":"#/components/schemas/TaskStatsBucket"}},"type":"object","required":["aguardando_juridico","com_area","resolvidas"],"title":"TaskStatsResponse"},"TaskStatusEnum":{"type":"string","enum":["sugerido","aprovado_para_envio","enviado_a_area","em_analise_pela_area","aguardando_aprovacao_juridico","devolvido","conforme","nao_conforme","nao_aplicavel","ciencia_registrada","em_execucao","aguardando_aprovacao_conclusao"],"title":"TaskStatusEnum","description":"Compliance Workflow v1 Task macro-status. `sugerido` still belongs to the\n(future, out of scope) relevance/routing engine. `aprovado_para_envio` is the\nreal \"waiting on Jurídico\" pre-send state for a `informativo=False` Task\ncreated by the Regulatory evaluation drawer: Jurídico fills `prazo_atual` (and\noptionally `assunto_principal`/`criticidade`/`analise_juridico_regulatorio`)\nthen sends it on to the área (see `task_state_machine.send_task_to_area`)."},"TourActionResponse":{"properties":{"tour_id":{"type":"string","title":"Tour Id"},"status":{"type":"string","enum":["pending","completed","skipped"],"title":"Status"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["tour_id","status"],"title":"TourActionResponse"},"TypeEnum":{"type":"string","enum":["association","government_body","service_provider","political_party"],"title":"TypeEnum"},"UnreadCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"UnreadCountResponse"},"UpdateCollectionBody":{"properties":{"from_name":{"type":"string","maxLength":200,"minLength":1,"title":"From Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"},"to_name":{"type":"string","maxLength":200,"minLength":1,"title":"To Name"},"to_group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"To Group Uuid"}},"additionalProperties":false,"type":"object","required":["from_name","to_name"],"title":"UpdateCollectionBody","description":"Update collection name and/or area (group). ``to_group_uuid`` null = company-wide."},"UpdateCollectionResult":{"properties":{"updated":{"type":"integer","title":"Updated"},"name":{"type":"string","title":"Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"}},"type":"object","required":["updated","name"],"title":"UpdateCollectionResult"},"User":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"type":"string","format":"email","title":"Email"},"avatar_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar File Name"},"ui_language":{"anyOf":[{"type":"string","enum":["en","pt","es"]},{"type":"null"}],"title":"Ui Language"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"companies":{"items":{"$ref":"#/components/schemas/CompanyMTM"},"type":"array","title":"Companies"},"owned_contacts":{"items":{"$ref":"#/components/schemas/app__views__schemas__contact_schema__ContactMTM"},"type":"array","title":"Owned Contacts","default":[]},"owned_countries":{"items":{"$ref":"#/components/schemas/app__views__schemas__country_schema__CountryMTM"},"type":"array","title":"Owned Countries","default":[]},"owned_organizations":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Owned Organizations","default":[]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","description":"Get the avatar URL based on the filename if one exists","readOnly":true}},"type":"object","required":["uuid","name","email","created_at","updated_at","companies","avatar_url"],"title":"User"},"UserBase":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"type":"string","format":"email","title":"Email"},"avatar_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar File Name"},"ui_language":{"anyOf":[{"type":"string","enum":["en","pt","es"]},{"type":"null"}],"title":"Ui Language"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","description":"Get the avatar URL based on the filename if one exists","readOnly":true}},"type":"object","required":["uuid","name","email","avatar_url"],"title":"UserBase"},"UserCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid","default":"8e08a4d1-fa48-4b84-8469-df4af3859eaf"},"temporary_avatar_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Avatar Filename"},"status":{"type":"string","title":"Status","default":"active"},"invitation_email_type":{"type":"string","enum":["welcome","setup"],"title":"Invitation Email Type","default":"welcome"},"permission_profile_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Permission Profile Id"},"is_super_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Super Admin"}},"type":"object","required":["name","email"],"title":"UserCreate","description":"Temporary Cognito password is always generated server-side."},"UserMTM":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"type":"string","format":"email","title":"Email"},"avatar_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar File Name"},"ui_language":{"anyOf":[{"type":"string","enum":["en","pt","es"]},{"type":"null"}],"title":"Ui Language"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","description":"Get the avatar URL based on the filename if one exists","readOnly":true}},"type":"object","required":["uuid","name","email","created_at","updated_at","avatar_url"],"title":"UserMTM"},"UserMe":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"type":"string","format":"email","title":"Email"},"avatar_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar File Name"},"ui_language":{"anyOf":[{"type":"string","enum":["en","pt","es"]},{"type":"null"}],"title":"Ui Language"},"companies":{"items":{"$ref":"#/components/schemas/CompanyUserMe"},"type":"array","title":"Companies"},"owned_contacts":{"items":{"$ref":"#/components/schemas/app__views__schemas__contact_schema__ContactMTM"},"type":"array","title":"Owned Contacts","default":[]},"owned_countries":{"items":{"$ref":"#/components/schemas/app__views__schemas__country_schema__CountryMTM"},"type":"array","title":"Owned Countries","default":[]},"owned_organizations":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Owned Organizations","default":[]},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false},"system_configs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"System Configs"},"mfa_method":{"anyOf":[{"type":"string","enum":["passkey","totp"]},{"type":"null"}],"title":"Mfa Method"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","description":"Get the avatar URL based on the filename if one exists","readOnly":true}},"type":"object","required":["uuid","name","email","companies","avatar_url"],"title":"UserMe"},"UserMfaMethodUpdate":{"properties":{"method":{"type":"string","enum":["passkey","totp"],"title":"Method"}},"additionalProperties":false,"type":"object","required":["method"],"title":"UserMfaMethodUpdate"},"UserNotificationItem":{"properties":{"uuid":{"type":"string","format":"uuid","title":"Uuid"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["uuid","title","body","href","read_at","created_at"],"title":"UserNotificationItem"},"UserNotificationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserNotificationItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["items","total","page","size"],"title":"UserNotificationListResponse"},"UserResourceGrantRead":{"properties":{"grant_uuid":{"type":"string","format":"uuid4","title":"Grant Uuid"},"resource_type":{"$ref":"#/components/schemas/ResourceType"},"resource_uuid":{"type":"string","format":"uuid4","title":"Resource Uuid"},"access_level":{"$ref":"#/components/schemas/AccessLevel"},"source":{"type":"string","title":"Source","description":"direct | group"},"title":{"type":"string","title":"Title"}},"type":"object","required":["grant_uuid","resource_type","resource_uuid","access_level","source","title"],"title":"UserResourceGrantRead","description":"Grant on a resource for Manage users → Shared access drawer."},"UserSettings":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"cognito_status":{"type":"string","title":"Cognito Status"},"status":{"type":"string","title":"Status"},"permission_profile_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Permission Profile Id"},"permission_profile_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permission Profile Name"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false}},"type":"object","required":["uuid","name","email","cognito_status","status"],"title":"UserSettings"},"UserUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"temporary_avatar_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Avatar Filename"},"remove_avatar":{"type":"boolean","title":"Remove Avatar","default":false},"ui_language":{"anyOf":[{"type":"string","enum":["en","pt","es"]},{"type":"null"}],"title":"Ui Language"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebScrapePromptContent":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"group":{"type":"string","const":"pipeline","title":"Group","default":"pipeline"},"source":{"type":"string","enum":["s3","missing"],"title":"Source"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","title","description","s3_key","source","content"],"title":"WebScrapePromptContent"},"WebScrapePromptList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebScrapePromptRef"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"WebScrapePromptList"},"WebScrapePromptRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"s3_key":{"type":"string","title":"S3 Key"},"group":{"type":"string","const":"pipeline","title":"Group","default":"pipeline"}},"type":"object","required":["id","title","description","s3_key"],"title":"WebScrapePromptRef"},"WebScrapePromptSaveRequest":{"properties":{"content":{"type":"string","title":"Content"}},"additionalProperties":false,"type":"object","required":["content"],"title":"WebScrapePromptSaveRequest"},"WorkflowInstance":{"properties":{"template_uuid":{"type":"string","format":"uuid4","title":"Template Uuid"},"name":{"type":"string","title":"Name"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"},"schedule_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Schedule Active"},"cron_expression":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Expression"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["template_uuid","name","parameters","uuid","created_at","updated_at"],"title":"WorkflowInstance"},"WorkflowInstanceCreate":{"properties":{"template_uuid":{"type":"string","format":"uuid4","title":"Template Uuid"},"name":{"type":"string","title":"Name"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"},"schedule_active":{"type":"boolean","title":"Schedule Active"},"cron_expression":{"type":"string","title":"Cron Expression"}},"type":"object","required":["template_uuid","name","parameters","schedule_active","cron_expression"],"title":"WorkflowInstanceCreate"},"WorkflowInstanceList":{"properties":{"template_uuid":{"type":"string","format":"uuid4","title":"Template Uuid"},"name":{"type":"string","title":"Name"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"},"schedule_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Schedule Active"},"cron_expression":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Expression"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"last_run":{"anyOf":[{"$ref":"#/components/schemas/WorkflowRun"},{"type":"null"}],"description":"Get the latest run based on created_at","readOnly":true}},"type":"object","required":["template_uuid","name","parameters","uuid","created_at","updated_at","last_run"],"title":"WorkflowInstanceList","description":"Schema for listing workflow instances, includes last_run information."},"WorkflowInstanceUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters"},"schedule_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Schedule Active"},"cron_expression":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Expression"}},"type":"object","title":"WorkflowInstanceUpdate"},"WorkflowRun":{"properties":{"instance_uuid":{"type":"string","format":"uuid4","title":"Instance Uuid"},"run_start":{"type":"string","format":"date-time","title":"Run Start"},"run_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Run End"},"artifacts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifacts"},"run_status":{"$ref":"#/components/schemas/RunStatusEnum","default":"Running"},"result_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Link"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["instance_uuid","run_start","uuid","created_at","updated_at"],"title":"WorkflowRun"},"WorkflowRunCreate":{"properties":{"instance_uuid":{"type":"string","format":"uuid4","title":"Instance Uuid"},"run_status":{"anyOf":[{"$ref":"#/components/schemas/RunStatusEnum"},{"type":"null"}],"default":"Running"},"artifact_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact File"},"artifact_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Content Type"},"artifact_file_extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact File Extension"},"result_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Link"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["instance_uuid"],"title":"WorkflowRunCreate"},"WorkflowRunFeedExtra":{"properties":{"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"workflow_run_uuid":{"type":"string","format":"uuid4","title":"Workflow Run Uuid"},"workflow_instance_uuid":{"type":"string","format":"uuid4","title":"Workflow Instance Uuid"},"workflow_instance_name":{"type":"string","title":"Workflow Instance Name"},"workflow_template_uuid":{"type":"string","format":"uuid4","title":"Workflow Template Uuid"},"workflow_template_name":{"type":"string","title":"Workflow Template Name"},"workflow_run_artifacts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Artifacts"},"workflow_run_result_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Result Link"},"workflow_run_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Workflow Run Info"}},"type":"object","required":["why_it_matters_text","workflow_run_uuid","workflow_instance_uuid","workflow_instance_name","workflow_template_uuid","workflow_template_name","workflow_run_artifacts","workflow_run_result_link"],"title":"WorkflowRunFeedExtra"},"WorkflowRunFeedPost":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"workflow_run","title":"Post Type"},"post_infos":{"$ref":"#/components/schemas/WorkflowRunFeedExtra"}},"type":"object","required":["uuid","company_uuid","relevance","title_generic","description_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","published_at","filters","post_type","post_infos"],"title":"WorkflowRunFeedPost"},"WorkflowRunPostCreate":{"properties":{"title_generic":{"type":"string","minLength":1,"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"workflow_run_uuid":{"type":"string","format":"uuid4","title":"Workflow Run Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["title_generic","workflow_run_uuid"],"title":"WorkflowRunPostCreate","description":"Create ``posts`` + ``workflow_run_posts`` (company comes from URL)."},"WorkflowRunPostResponse":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"relevance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevance"},"title_generic":{"type":"string","title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"thumbs_up_count":{"type":"integer","title":"Thumbs Up Count"},"thumbs_down_count":{"type":"integer","title":"Thumbs Down Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"post_type":{"type":"string","const":"workflow_run","title":"Post Type","default":"workflow_run"},"workflow_run_uuid":{"type":"string","format":"uuid4","title":"Workflow Run Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["uuid","company_uuid","title_generic","thumbs_up_count","thumbs_down_count","created_at","updated_at","workflow_run_uuid"],"title":"WorkflowRunPostResponse","description":"Workflow-run post: base + ``workflow_run_posts``."},"WorkflowRunPostUpdate":{"properties":{"title_generic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Title Generic"},"description_generic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Generic"},"relevance":{"anyOf":[{"type":"string","enum":["None","Low","Moderate","High","Critical"]},{"type":"null"}],"title":"Relevance"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"workflow_run_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Run Uuid"},"why_it_matters_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters Text"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"WorkflowRunPostUpdate","description":"Partial update: parent row + ``workflow_run_posts``."},"WorkflowRunUpdate":{"properties":{"run_status":{"anyOf":[{"$ref":"#/components/schemas/RunStatusEnum"},{"type":"null"}]},"run_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Run End"},"artifact_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact File"},"artifact_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Content Type"},"artifact_file_extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact File Extension"},"result_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Link"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","title":"WorkflowRunUpdate"},"WorkflowTemplate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"parameters_schema":{"additionalProperties":true,"type":"object","title":"Parameters Schema"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"company_uuid":{"type":"string","format":"uuid4","title":"Company Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"n8n_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"N8N Webhook Url"}},"type":"object","required":["name","description","parameters_schema","uuid","company_uuid","created_at","updated_at"],"title":"WorkflowTemplate"},"WorkflowTemplateCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"parameters_schema":{"additionalProperties":true,"type":"object","title":"Parameters Schema"},"n8n_webhook_url":{"type":"string","title":"N8N Webhook Url"}},"type":"object","required":["name","description","parameters_schema","n8n_webhook_url"],"title":"WorkflowTemplateCreate"},"WorkflowTemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parameters_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters Schema"},"n8n_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"N8N Webhook Url"}},"type":"object","title":"WorkflowTemplateUpdate"},"app__views__company__countries__schema__Country":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"integer","title":"Id"},"company_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Company Uuid"},"company_data":{"items":{"$ref":"#/components/schemas/CountryCompanyData"},"type":"array","title":"Company Data","default":[]},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages","default":[]},"first_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Interaction"},"last_interaction":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Interaction"},"total_interactions_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Interactions Count"},"sentiment_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sentiment Score"},"sentiment_variation":{"anyOf":[{"$ref":"#/components/schemas/SentimentVariationEnum"},{"type":"null"}]},"contacts_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Total"},"service_providers_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Providers Total"},"associations_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Associations Total"},"government_bodies_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Government Bodies Total"},"owners":{"items":{"$ref":"#/components/schemas/CountryUser"},"type":"array","title":"Owners"},"groups":{"items":{"$ref":"#/components/schemas/CountryGroup"},"type":"array","title":"Groups","default":[]},"associations":{"items":{"$ref":"#/components/schemas/CountryOrganization"},"type":"array","title":"Associations","default":[]},"government_bodies":{"items":{"$ref":"#/components/schemas/CountryOrganization"},"type":"array","title":"Government Bodies","default":[]},"service_providers":{"items":{"$ref":"#/components/schemas/CountryOrganization"},"type":"array","title":"Service Providers","default":[]},"deleted":{"type":"boolean","title":"Deleted","default":false},"is_entitled":{"type":"boolean","title":"Is Entitled","default":false},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"}},"type":"object","required":["code","name","id","owners"],"title":"Country"},"app__views__company__countries__schema__CountryMTM":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"integer","title":"Id"}},"type":"object","required":["code","name","id"],"title":"CountryMTM"},"app__views__media__schemas__RenameCollectionBody":{"properties":{"from_name":{"type":"string","maxLength":200,"minLength":1,"title":"From Name"},"to_name":{"type":"string","maxLength":200,"minLength":1,"title":"To Name"}},"additionalProperties":false,"type":"object","required":["from_name","to_name"],"title":"RenameCollectionBody","description":"Rename a collection label across all company private documents that use it."},"app__views__schemas__collection_schema__RenameCollectionBody":{"properties":{"from_name":{"type":"string","maxLength":200,"minLength":1,"title":"From Name"},"to_name":{"type":"string","maxLength":200,"minLength":1,"title":"To Name"},"group_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Group Uuid"}},"additionalProperties":false,"type":"object","required":["from_name","to_name"],"title":"RenameCollectionBody"},"app__views__schemas__company_contact_schema__ContactVisibilityUpdate":{"properties":{"visibility":{"type":"string","title":"Visibility","description":"'company' or 'personal'"}},"additionalProperties":false,"type":"object","required":["visibility"],"title":"ContactVisibilityUpdate"},"app__views__schemas__company_interaction_schema__ContactMTM":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"experience_uuid":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Experience Uuid"},"role":{"type":"string","title":"Role","default":""},"experience_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Type"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["uuid","name"],"title":"ContactMTM","description":"Schema for contact in MTM relationships"},"app__views__schemas__company_interaction_schema__CountryMTM":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","code","name"],"title":"CountryMTM","description":"Schema for country in MTM relationships"},"app__views__schemas__company_interaction_schema__OrganizationMTM":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country":{"$ref":"#/components/schemas/app__views__schemas__company_interaction_schema__CountryMTM"},"contacts":{"items":{"$ref":"#/components/schemas/app__views__schemas__company_interaction_schema__ContactMTM"},"type":"array","title":"Contacts"}},"type":"object","required":["uuid","name","type","country","contacts"],"title":"OrganizationMTM","description":"Schema for organization in MTM relationships"},"app__views__schemas__contact_schema__ContactMTM":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"info":{"additionalProperties":true,"type":"object","title":"Info"},"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"organizations":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Organizations"}},"type":"object","required":["name","email","info","uuid","organizations"],"title":"ContactMTM"},"app__views__schemas__contact_schema__ContactVisibilityUpdate":{"properties":{"is_visible":{"type":"boolean","title":"Is Visible"}},"type":"object","required":["is_visible"],"title":"ContactVisibilityUpdate"},"app__views__schemas__content_chunk_schema__ContentRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ContentRef"},"app__views__schemas__country_schema__Country":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","maxLength":20,"title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"report_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report File Name"},"companies":{"items":{"$ref":"#/components/schemas/CompanyMTM"},"type":"array","title":"Companies"},"owners":{"items":{"$ref":"#/components/schemas/UserMTM"},"type":"array","title":"Owners"},"associations":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Associations","default":[]},"government_bodies":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Government Bodies","default":[]},"service_providers":{"items":{"$ref":"#/components/schemas/app__views__schemas__organization_schema__OrganizationMTM"},"type":"array","title":"Service Providers","default":[]},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url","description":"Get the report URL based on the filename if one exists","readOnly":true}},"type":"object","required":["id","code","name","companies","owners","report_url"],"title":"Country"},"app__views__schemas__country_schema__CountryMTM":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","maxLength":20,"title":"Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"report_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report File Name"},"report_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Url","description":"Get the report URL based on the filename if one exists","readOnly":true}},"type":"object","required":["id","code","name","report_url"],"title":"CountryMTM"},"app__views__schemas__organization_schema__OrganizationMTM":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TypeEnum"},"short_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Name"},"country_id":{"type":"integer","title":"Country Id"},"government_body_types":{"items":{"$ref":"#/components/schemas/GovernmentBodyTypeEnum"},"type":"array","title":"Government Body Types","default":[]},"service_provider_types":{"items":{"$ref":"#/components/schemas/ServiceProviderTypeEnum"},"type":"array","title":"Service Provider Types","default":[]},"uuid":{"type":"string","format":"uuid4","title":"Uuid"}},"type":"object","required":["name","type","country_id","uuid"],"title":"OrganizationMTM","description":"The Suffix MTM refers to Many-to-Many\nThis class should be used as the type for fields with M2M relationships with company\nto prevent cyclic errors because of those relationships"},"app__views__schemas__sectors_schema__ContentRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ContentRef","description":"Reference to a content (uuid and name only)"},"app__views__schemas__tag_schema__ContentRef":{"properties":{"uuid":{"type":"string","format":"uuid4","title":"Uuid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uuid","name"],"title":"ContentRef"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"BearerAuth":[]}]}