# generated by fastapi-codegen:
# filename: openapi.yaml
# timestamp: 2025-07-11T08:24:21+00:00
import argparse
import json
import os
from typing import *
from typing import Any, Optional, Union
from autogen.mcp.mcp_proxy import MCPProxy
from autogen.mcp.mcp_proxy.security import BaseSecurity
from fastapi import UploadFile
from pydantic import conint
from starlette.requests import Request
from models import (
ActionCreate,
AgentId,
AgentRequest,
ApiAgentsAgentIdGetResponse,
ApiAgentsAgentIdLogsGetResponse,
ApiAgentsAgentIdPutRequest,
ApiAgentsAgentIdPutResponse,
ApiAgentsDefaultGetResponse,
ApiAgentsDefaultPutRequest,
ApiAgentsDefaultPutResponse,
ApiAgentsGetResponse,
ApiAgentsMessagePostResponse,
ApiAgentsPostRequest,
ApiAgentsPostResponse,
ApiAgentsStatusGetResponse,
ApiAuthQueryPostResponse,
ApiContactsGetResponse,
ApiDashboardDbCampaignsMetricsGetResponse,
ApiDashboardDbCampaignsMetricsHistoricalDaysGetResponse,
ApiDashboardLeadFunnelGetResponse,
ApiDashboardSessionTrendsGetResponse,
ApiDashboardStatsGetResponse,
ApiDashboardSuggestionStatsGetResponse,
ApiDashboardSummaryGetResponse,
ApiDashboardTagsGetResponse,
ApiDatabaseQueryPostResponse,
ApiEmailCountsGetResponse,
ApiEmailDraftsGetResponse,
ApiEmailFoldersGetResponse,
ApiHealthGetResponse,
ApiKnowledgeMetadataDocumentIdPutRequest,
ApiKnowledgeV2IndexPostResponse,
ApiKnowledgeV2QueryGetResponse,
ApiLeadsAllLeadIdNotesGetResponse,
ApiLeadsDiscoverGetResponse,
ApiLeadsGetResponse,
ApiLeadsLeadIdAnalyzeGetResponse,
ApiLeadsLeadIdCompetitorsGetResponse,
ApiLeadsLeadIdCompetitorsResultsGetResponse,
ApiLeadsLeadIdContactsContactIdDeleteResponse,
ApiLeadsLeadIdContactsContactIdGetResponse,
ApiLeadsLeadIdContactsContactIdPutResponse,
ApiLeadsLeadIdContactsGetResponse,
ApiLeadsLeadIdContactsPostResponse,
ApiLeadsLeadIdDeleteResponse,
ApiLeadsLeadIdFindContactsGetResponse,
ApiLeadsLeadIdGetResponse,
ApiLeadsLeadIdNotesGetResponse,
ApiLeadsLeadIdPutResponse,
ApiLeadsLeadIdQualificationGetResponse,
ApiLeadsLeadIdResearchGetResponse,
ApiLeadsLeadIdScoreGetResponse,
ApiLeadsPriorityGetResponse,
ApiLeadsSchemaGetResponse,
ApiLogGetResponse,
ApiLogPhonePhoneNumberGetResponse,
ApiLogReportCallsPostRequest,
ApiLogReportSummaryPostRequest,
ApiLogSidCallSidGetResponse,
ApiLogUserUserIdGetResponse,
ApiNotesCallCallSidGetResponse,
ApiNotesUserUserIdGetResponse,
ApiRbacRolePermissionsMatrixUpdatePostRequest,
ApiRoutesAuthUserCreate,
ApiRoutesRbacUserCreate,
ApiTrainingClearDeleteResponse,
ApiTrainingExportJsonlPostRequest,
ApiTrainingLogPostRequest,
ApiTrainingLogPostResponse,
ApiTrainingPromptsGetResponse,
ApiTrainingRefinementGetResponse,
ApiTrainingRefinePromptPostRequest,
ApiTrainingSuggestionsGetResponse,
ApiTwivrMenusPhoneNumberGetResponse,
ApiTwivrRoutesMenuIdGetResponse,
BodyIndexDocumentsApiKnowledgeV2IndexPost,
BodyMoveEmailApiEmailFolderEmailIdMovePost,
BodySendEmailWithCustomConfigApiEmailSendCustomPost,
BodySendTestEmailApiEmailTestSendPost,
BodyTestEmailConfigApiEmailTestPost,
BodyVerifyTokenEndpointApiAuthVerifyTokenPost,
BoostSections,
BulkUserRoleAssignment,
BuyNumberRequest,
CallLog,
CallLogCreate,
CallLogUpdate,
CallNote,
CallNoteCreate,
CallNoteUpdate,
CallRecordIn,
Category,
CompanySize,
ContactCreate,
ContactUpdate,
ContactWithCompany,
CreateApiKeyRequest,
CreateSubaccountRequest,
DbExecuteRequest,
DbExecuteResponseData,
DbQueryRequest,
DocumentIds,
Domain,
EmailConfig,
EmailDetail,
EmailMessage,
EmailResponse,
EndDate,
ErrorResponse,
FolderEmailsResponse,
HTTPValidationError,
ImapTestRequest,
Industry,
IVRMenuCreate,
IVRMenuOut,
IVRMenuUpdate,
IVRRouteCreate,
IVRRouteOut,
IVRRouteUpdate,
KnowledgeFiles,
LeadCreate,
LeadUpdate,
Limit,
Limit2,
Location,
Name,
Note,
NoteCreate,
NoteUpdate,
OutreachRequest,
Page,
PermissionCheck,
PermissionCreate,
PermissionUpdate,
ResourceCreate,
ResourceUpdate,
Role,
RoleCreate,
RoleUpdate,
SecurityEventCreate,
SmtpTestRequest,
SortBy,
Stage,
StartDate,
Status,
Tag,
Tags,
Token,
Token1,
TokenRequest,
UpdateSubaccountRequest,
UserPublic,
UserUpdate,
WebhookUpdateRequest,
)
app = MCPProxy(
description='atWork API',
title='atWork API',
version='2.0.0',
)
@app.get(
'/#-datamodel-code-generator-#-root-#-special-#', tags=['service_health_check']
)
def root__get():
"""
Root
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/agents/',
description=""" Get all agent configurations from JSON files, normalized for list view. """,
tags=['agent_management', 'database_query_operations'],
)
def read_agents_api_agents__get():
"""
Read Agents
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/agents/',
description=""" Create a new agent configuration JSON file. """,
tags=['agent_management'],
)
def create_new_agent_api_agents__post(body: ApiAgentsPostRequest):
"""
Create New Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/agents/default',
description=""" Get the default agent configuration (robust version). """,
tags=['agent_management'],
)
def get_default_agent_api_agents_default_get():
"""
Get Default Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/agents/default',
description=""" Update the default agent configuration. """,
tags=['agent_management'],
)
def update_default_agent_api_agents_default_put(body: ApiAgentsDefaultPutRequest):
"""
Update Default Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/agents/message',
description=""" Send a message to an agent asynchronously via HTTP.
This endpoint allows sending messages to agents using a standard HTTP POST request.
It's suitable for server-to-server communication or when WebSockets are not available. """,
tags=['agent_outreach_operations'],
)
def send_message_api_agents_message_post(body: AgentRequest):
"""
Send Message
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/agents/run',
description=""" Run an agent with the provided input.
This endpoint handles both sync and async agent execution properly. """,
tags=['agent_management', 'agent_outreach_operations'],
)
def run_agent_api_agents_run_post(body: AgentRequest):
"""
Run Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/agents/status',
description=""" Return the status of registered agents. """,
tags=['agent_management', 'dashboard_metrics_retrieval'],
)
def get_agent_status_api_agents_status_get():
"""
Get Agent Status
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/agents/test-path',
description=""" Test endpoint to check agent configuration file access. """,
tags=[
'agent_management',
'agent_outreach_operations',
'dashboard_metrics_retrieval',
],
)
def test_agent_path_api_agents_test_path_get():
"""
Test Agent Path
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/agents/{agent_id}',
description=""" Delete an agent configuration JSON file. """,
tags=['agent_management'],
)
def delete_existing_agent_api_agents__agent_id__delete(agent_id: str):
"""
Delete Existing Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/agents/{agent_id}',
description=""" Get a specific agent configuration by ID from its JSON file. """,
tags=['agent_management', 'database_query_operations'],
)
def read_agent_api_agents__agent_id__get(agent_id: str):
"""
Read Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/agents/{agent_id}',
description=""" Update an existing agent configuration JSON file. """,
tags=['agent_management'],
)
def update_existing_agent_api_agents__agent_id__put(
agent_id: str, body: ApiAgentsAgentIdPutRequest = ...
):
"""
Update Existing Agent
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/agents/{agent_id}/logs',
description=""" Get tool execution logs for a specific agent from the database. """,
tags=['agent_management', 'database_query_operations'],
)
def read_agent_logs_api_agents__agent_id__logs_get(agent_id: str):
"""
Read Agent Logs
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/agents/{agent_id}/outreach',
description=""" Start outreach workflow for specified leads using the agent """,
tags=['agent_outreach_operations'],
)
def start_outreach_api_agents__agent_id__outreach_post(
agent_id: str, body: OutreachRequest = ...
):
"""
Start Outreach
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/agents/{agent_id}/outreach/{contact_id}/call',
tags=['agent_outreach_operations', 'call_log_services'],
)
def outreach_call_agent_contact(agent_id: str, contact_id: int = ...):
"""
Outreach Call
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/auth/execute',
description=""" Executes a SQL statement that modifies data and returns affected row count. """,
tags=['database_query_operations'],
)
def handle_db_execute_api_auth_execute_post(body: DbExecuteRequest):
"""
Execute a database mutation (INSERT, UPDATE, DELETE)
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/auth/health',
description=""" Health check endpoint to verify the API is working. """,
tags=['service_health_check', 'database_query_operations'],
)
def health_check_api_auth_health_get():
"""
Health Check
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/auth/login', tags=['user_authentication', 'token_services'])
def login_for_access_token_api_auth_login_post(request: Request):
"""
Login For Access Token
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/auth/query',
description=""" Executes a read-only SQL query and returns the results as a list of dictionaries. """,
tags=['database_query_operations'],
)
def handle_db_query_api_auth_query_post(body: DbQueryRequest):
"""
Execute a database query (SELECT)
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/auth/register', tags=['user_authentication', 'user_account_management'])
def register_user_api_auth_register_post(body: ApiRoutesAuthUserCreate):
"""
Register User
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/auth/verify-token', tags=['user_authentication', 'token_services'])
def verify_token_endpoint_api_auth_verify_token_post(
body: BodyVerifyTokenEndpointApiAuthVerifyTokenPost,
):
"""
Verify Token Endpoint
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/contacts/',
description=""" Get all contacts. """,
tags=[
'contact_management',
'lead_management_operations',
'contact_linked_operations',
],
)
def read_contacts_api_contacts__get():
"""
Read Contacts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/contacts/',
description=""" Create a new contact. """,
tags=['contact_management', 'contact_linked_operations'],
)
def create_new_contact_api_contacts__post(body: ContactCreate):
"""
Create New Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/contacts/{contact_id}',
description=""" Delete a contact. """,
tags=['contact_management', 'contact_linked_operations'],
)
def delete_existing_contact_api_contacts__contact_id__delete(contact_id: int):
"""
Delete Existing Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/contacts/{contact_id}',
description=""" Get a specific contact by ID. """,
tags=['contact_management'],
)
def read_contact_api_contacts__contact_id__get(contact_id: int):
"""
Read Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/contacts/{contact_id}',
description=""" Update an existing contact. """,
tags=['contact_management', 'contact_linked_operations'],
)
def update_existing_contact_api_contacts__contact_id__put(
contact_id: int, body: ContactUpdate = ...
):
"""
Update Existing Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/agent-statistics',
description=""" Get agent performance statistics """,
tags=['agent_management', 'dashboard_metrics_retrieval'],
)
def get_agent_statistics_api_dashboard_agent_statistics_get():
"""
Get Agent Statistics
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/db-campaigns-metrics',
description=""" Get metrics specific to campaigns from filesystem. """,
tags=['dashboard_metrics_retrieval'],
)
def get_campaigns_metrics_api_dashboard_db_campaigns_metrics_get():
"""
Get Campaigns Metrics
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/db-campaigns-metrics/historical/{days}',
description=""" Get historical campaign metrics for the specified number of days. """,
tags=['dashboard_metrics_retrieval'],
)
def get_historical_campaign_metrics(days: int):
"""
Get Historical Campaign Metrics
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/lead-funnel',
description=""" Get lead progression through different stages using lead pipeline data.
Returns a dictionary with stage counts and conversion rates. """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_lead_funnel_api_dashboard_lead_funnel_get():
"""
Get Lead Funnel
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/session-trends',
description=""" Get session trends over time. """,
tags=['dashboard_metrics_retrieval', 'dashboard_performance_statistics'],
)
def get_session_trends_api_dashboard_session_trends_get():
"""
Get Session Trends
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/stats',
description=""" Get dashboard statistics in the format required by the frontend DashboardStats component. """,
tags=['dashboard_metrics_retrieval', 'dashboard_performance_statistics'],
)
def get_dashboard_stats_api_dashboard_stats_get():
"""
Get Dashboard Stats
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/suggestion-stats',
description=""" Get statistics about how suggestions and refinements are used. """,
tags=['dashboard_metrics_retrieval', 'dashboard_performance_statistics'],
)
def get_suggestion_stats_api_dashboard_suggestion_stats_get():
"""
Get Suggestion Stats
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/summary',
description=""" Get a summary of all dashboard statistics. """,
tags=['dashboard_metrics_retrieval', 'dashboard_performance_statistics'],
)
def get_dashboard_summary_api_dashboard_summary_get():
"""
Get Dashboard Summary
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/dashboard/tags',
description=""" Get tag statistics from training and memory data. """,
tags=['knowledge_file_management'],
)
def get_tags_api_dashboard_tags_get():
"""
Get Tags
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/database/execute',
description=""" Executes a SQL statement that modifies data and returns affected row count. """,
tags=['database_query_operations'],
)
def handle_db_execute_api_database_execute_post(body: DbExecuteRequest):
"""
Execute a database mutation (INSERT, UPDATE, DELETE)
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/database/health',
description=""" Health check endpoint to verify the API and database connectivity. """,
tags=['service_health_check', 'database_query_operations'],
)
def health_check_api_database_health_get():
"""
Health Check
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/database/query',
description=""" Executes a read-only SQL query and returns the results as a list of dictionaries. """,
tags=['database_query_operations'],
)
def handle_db_query_api_database_query_post(body: DbQueryRequest):
"""
Execute a database query (SELECT)
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/',
description=""" Root endpoint to check if email services are running. """,
tags=[
'agent_management',
'dashboard_metrics_retrieval',
'dashboard_performance_statistics',
'service_health_check',
],
)
def root_status_api_email__get():
"""
Root Status
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/config',
description=""" Get the current email configuration """,
tags=['account_info_management', 'database_query_operations'],
)
def get_config_api_email_config_get():
"""
Get Config
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/config',
description=""" Update email configuration """,
tags=['email_configuration_management'],
)
def update_config_api_email_config_post(body: EmailConfig):
"""
Update Config
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/counts',
description=""" Get email counts by folder including total and unread counts.
Returns a list of dictionaries with folder name, total count, and unread count.
Only includes folders with at least one email. """,
tags=[
'dashboard_metrics_retrieval',
'email_configuration_management',
'database_query_operations',
],
)
def get_email_counts_api_email_counts_get():
"""
Get Email Counts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/draft',
description=""" Save a new draft email to the drafts folder. """,
tags=['email_drafts_management'],
)
def save_draft_api_email_draft_post(body: EmailMessage):
"""
Save Draft
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/email/draft/{draft_id}',
description=""" Delete a draft by ID from the drafts folder. """,
tags=['email_drafts_management'],
)
def delete_draft_api_email_draft__draft_id__delete(draft_id: str):
"""
Delete Draft
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/draft/{draft_id}',
description=""" Retrieve a single draft by ID. """,
tags=['email_drafts_management'],
)
def get_draft_api_email_draft__draft_id__get(draft_id: str):
"""
Get Draft
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/email/draft/{draft_id}',
description=""" Update an existing draft email by ID. """,
tags=['email_drafts_management'],
)
def update_draft_api_email_draft__draft_id__put(
draft_id: str, body: EmailMessage = None
):
"""
Update Draft
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/drafts',
description=""" List all draft emails. """,
tags=['email_drafts_management'],
)
def list_drafts_api_email_drafts_get():
"""
List Drafts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/folders',
description=""" Retrieves a list of all available email folders with their unread and total message counts """,
tags=['email_folders_management'],
)
def get_folders_api_email_folders_get(
include_empty: Optional[bool] = False,
sort_by: Optional[SortBy] = 'name',
client_key: Optional[str] = None,
):
"""
Get a list of email folders
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/inbound',
description=""" Handle incoming email replies, match to contacts, and trigger agent responses. """,
tags=[
'email_message_operations',
'email_sending_services',
'email_drafts_management',
],
)
def handle_email_reply_api_email_inbound_post():
"""
Handle Email Reply
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/send',
description=""" Send an email using SMTP. """,
tags=['email_sending_services', 'email_message_operations'],
)
def send_email_api_email_send_post(
client_key: Optional[str] = None, body: EmailMessage = ...
):
"""
Send Email
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/send/custom',
description=""" Send an email using custom SMTP configuration. """,
tags=['email_sending_services', 'email_configuration_management'],
)
def send_email_with_custom_config_api_email_send_custom_post(
client_key: Optional[str] = None,
body: BodySendEmailWithCustomConfigApiEmailSendCustomPost = ...,
):
"""
Send Email With Custom Config
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/sync',
description=""" Sync emails from the mail server """,
tags=['email_sync_testing', 'email_configuration_management'],
)
def sync_emails_api_email_sync_post(client_key: Optional[str] = None):
"""
Sync Emails
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/test',
description=""" Test the email configuration by sending a test email. """,
tags=['email_configuration_management', 'email_sync_testing'],
)
def test_email_config_api_email_test_post(
client_key: Optional[str] = None, body: BodyTestEmailConfigApiEmailTestPost = ...
):
"""
Test Email Config
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/test-connection',
description=""" Test the SMTP and IMAP connections """,
tags=['email_configuration_management', 'email_sync_testing'],
)
def test_email_connection_api_email_test_connection_post(body: EmailConfig):
"""
Test Email Connection
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/test-imap',
description=""" Attempts to connect and login to an IMAP server using provided credentials.
Tries SSL first, then falls back to non-SSL if needed.
Does NOT fetch any emails. """,
tags=['email_sync_testing', 'email_configuration_management'],
)
def test_imap_connection_api_email_test_imap_post(body: ImapTestRequest):
"""
Test IMAP Connection
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/test-send',
description=""" Send a test email to the provided address """,
tags=['email_sending_services', 'email_configuration_management'],
)
def send_test_email_api_email_test_send_post(
body: BodySendTestEmailApiEmailTestSendPost,
):
"""
Send Test Email
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/test-smtp',
description=""" Attempts to connect and login to an SMTP server using provided credentials.
Does NOT send any emails. """,
tags=['email_configuration_management', 'email_sync_testing'],
)
def test_smtp_connection_api_email_test_smtp_post(body: SmtpTestRequest):
"""
Test SMTP Connection
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/{folder}',
description=""" Get emails from the specified folder along with counts. """,
tags=['email_folders_management', 'email_detail_access'],
)
def get_emails_api_email__folder__get(folder: str):
"""
Get Emails
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/email/{folder}/{email_id}',
description=""" Delete an email (or move to trash) """,
tags=['email_detail_access', 'email_message_operations'],
)
def delete_email_api_email__folder___email_id__delete(folder: str, email_id: str = ...):
"""
Delete Email
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/email/{folder}/{email_id}',
description=""" Get details of a specific email and mark it as read.
Args:
folder: The email folder (inbox, sent, drafts, trash)
email_id: The unique identifier of the email
db: Database session
Returns:
EmailDetail: The email details """,
tags=['email_detail_access', 'email_message_operations'],
)
def get_email_detail_api_email__folder___email_id__get(
folder: str, email_id: str = ...
):
"""
Get Email Detail
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/{folder}/{email_id}/move',
description=""" Move an email to another folder """,
tags=['email_folders_management', 'email_message_operations'],
)
def move_email_api_email__folder___email_id__move_post(
folder: str,
email_id: str = ...,
body: BodyMoveEmailApiEmailFolderEmailIdMovePost = ...,
):
"""
Move Email
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/{folder}/{email_id}/read',
description=""" Mark an email as read (POST) """,
tags=['email_message_operations', 'email_detail_access'],
)
def mark_email_read_post(folder: str, email_id: str = ...):
"""
Mark Email Read Post
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/email/{folder}/{email_id}/read',
description=""" Mark an email as read (PUT) """,
tags=['email_message_operations', 'email_folders_management'],
)
def mark_email_read_put(folder: str, email_id: str = ...):
"""
Mark Email Read Put
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/email/{folder}/{email_id}/unread',
description=""" Mark an email as unread """,
tags=['email_message_operations'],
)
def mark_email_unread_api_email__folder___email_id__unread_post(
folder: str, email_id: str = ...
):
"""
Mark Email Unread
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/health/',
description=""" Health check endpoint that returns system status information. """,
tags=['database_query_operations', 'service_health_check'],
)
def health_check_api_health__get():
"""
Health Check
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/knowledge/document/{document_id}',
description=""" Delete a knowledge document from the index and its source file from disk. """,
tags=['document_handling_services'],
)
def delete_document_api_knowledge_document__document_id__delete(document_id: str):
"""
Delete Document
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/document/{document_id}',
description=""" Retrieve a specific knowledge document with its metadata, content, size, and last updated timestamp. """,
tags=['document_handling_services'],
)
def get_document_api_knowledge_document__document_id__get(document_id: str):
"""
Get Document
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/entries',
description=""" List all unique knowledge files by scanning the KNOWLEDGE_BASE_PATH
for .md files and processing .json files for 'source' references.
It includes file size and last updated timestamp. """,
tags=['knowledge_file_management', 'document_handling_services'],
)
def list_all_indexed_knowledge_files_api_knowledge_entries_get():
"""
List All Indexed Knowledge Files
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/list/{agent_id}',
description=""" List all indexed knowledge files for a specific agent,
including size and last updated timestamp. """,
tags=['knowledge_file_management', 'document_handling_services'],
)
def list_knowledge_files_api_knowledge_list__agent_id__get(agent_id: str):
"""
List Knowledge Files
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/knowledge/metadata/{document_id}',
description=""" Update metadata for a document """,
tags=['document_handling_services', 'knowledge_file_management'],
)
def update_document_metadata(
document_id: str, body: ApiKnowledgeMetadataDocumentIdPutRequest = ...
):
"""
Update Document Metadata
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/knowledge/reindex',
description=""" Force reindexing of knowledge documents.
- If document_ids are provided, re-indexes only those specific documents (using their existing metadata and file paths).
- If document_ids are NOT provided, discovers and indexes/re-indexes all relevant files
from KNOWLEDGE_BASE_PATH. Uses 'default_agent_id' for standalone files. """,
tags=['document_handling_services', 'knowledge_file_management'],
)
def reindex_knowledge_api_knowledge_reindex_post(
document_ids: Optional[DocumentIds] = None,
default_agent_id: Optional[str] = 'unassigned_agent',
):
"""
Reindex Knowledge
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/search',
description=""" Search knowledge with query parameters and optional stage-based filtering.
Args:
query: The search query
agent_id: Optional agent ID to filter by
knowledge_files: Optional list of specific knowledge files to search in
tags: Optional list of tags to filter by
max_results: Maximum number of results to return
stage: Optional sales stage to filter knowledge by
boost_sections: Optional list of section names to boost in relevance scoring
Returns:
Dictionary containing search results with scores and metadata """,
tags=['knowledge_file_management', 'document_handling_services'],
)
def search_knowledge_api_knowledge_search_get(
query: str,
agent_id: Optional[AgentId] = None,
knowledge_files: Optional[KnowledgeFiles] = None,
tags: Optional[Tags] = None,
max_results: Optional[int] = 5,
stage: Optional[Stage] = None,
boost_sections: Optional[BoostSections] = None,
):
"""
Search Knowledge
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/stats',
description=""" Get statistics about the knowledge base """,
tags=['knowledge_file_management', 'dashboard_metrics_retrieval'],
)
def get_knowledge_stats_api_knowledge_stats_get():
"""
Get Knowledge Stats
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/tags',
description=""" List all available tags in the knowledge base """,
tags=['knowledge_file_management'],
)
def list_tags_api_knowledge_tags_get():
"""
List Tags
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/knowledge/upload',
tags=['document_handling_services', 'knowledge_file_management'],
)
def upload_knowledge_file_api_knowledge_upload_post(request: Request):
"""
Upload Knowledge File
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/knowledge/v2/index',
description=""" Index new documents into the knowledge base. """,
tags=['document_handling_services', 'knowledge_file_management'],
)
def index_documents_api_knowledge_v2_index_post(
body: BodyIndexDocumentsApiKnowledgeV2IndexPost,
):
"""
Index Documents
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/knowledge/v2/query',
description=""" Query the knowledge base using semantic search.
Returns relevant document chunks with scores and source information. """,
tags=['knowledge_file_management', 'database_query_operations'],
)
def query_knowledge_api_knowledge_v2_query_get(
query: str, top_k: Optional[int] = 5, min_score: Optional[float] = 0.5
):
"""
Query Knowledge
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads',
description=""" Get list of leads with optional filters for status, name, and industry """,
tags=['lead_management_operations', 'contact_linked_operations'],
)
def get_leads_api_leads_get(
page: Optional[Page] = 1,
limit: Optional[Limit] = 1000,
status: Optional[Status] = None,
name: Optional[Name] = None,
industry: Optional[Industry] = None,
):
"""
Get Leads
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/leads', tags=['lead_management_operations', 'contact_linked_operations']
)
def create_lead_api_leads_post(body: LeadCreate):
"""
Create Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/all',
description=""" Get list of leads with optional filters for name, industry, and status """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_all_leads(
page: Optional[Page] = 1,
limit: Optional[Limit] = 1000,
status: Optional[Status] = None,
name: Optional[Name] = None,
industry: Optional[Industry] = None,
):
"""
Get All Status Leads
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/all/{lead_id}/activities',
description=""" Get activities for a specific lead """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_lead_activities_api_leads_all__lead_id__activities_get(lead_id: int):
"""
Get Lead Activities
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/all/{lead_id}/notes',
description=""" Get notes for a specific lead """,
tags=['lead_management_operations', 'notes_management_services'],
)
def get_lead_notes_api_leads_all__lead_id__notes_get(lead_id: int):
"""
Get Lead Notes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/discover',
description=""" Discover potential leads based on industry, location, and company size """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def discover_leads_api_leads_discover_get(
industry: str,
location: Optional[Location] = None,
company_size: Optional[CompanySize] = None,
):
"""
Discover Leads
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/priority',
description=""" Get prioritized list of leads for sales reps to focus on """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_lead_priorities_api_leads_priority_get(
limit: Optional[conint(ge=1, le=50)] = 10,
):
"""
Get Lead Priorities
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/schema',
description=""" Get the schema for lead data """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_lead_schema_api_leads_schema_get():
"""
Get Lead Schema
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/leads/{lead_id}',
description=""" Delete an existing lead """,
tags=['lead_management_operations', 'contact_management'],
)
def delete_lead_api_leads__lead_id__delete(lead_id: int):
"""
Delete Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}',
description=""" Get a specific lead by ID """,
tags=['lead_management_operations', 'contact_linked_operations'],
)
def get_lead_api_leads__lead_id__get(lead_id: int):
"""
Get Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/leads/{lead_id}',
description=""" Update an existing lead """,
tags=['lead_management_operations', 'contact_linked_operations'],
)
def update_lead_api_leads__lead_id__put(lead_id: int, body: LeadUpdate = ...):
"""
Update Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/activities',
description=""" Get activities for a specific lead """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_lead_activities_api_leads__lead_id__activities_get(lead_id: int):
"""
Get Lead Activities
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/analyze',
description=""" Analyze a lead and return qualification data.
If force is False, will use cached results if available.
If force_scrape is True, will force website scraping. """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def analyze_lead_api_leads__lead_id__analyze_get(
lead_id: int, force: Optional[bool] = False, force_scrape: Optional[bool] = False
):
"""
Analyze Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/competitors',
description=""" Analyze competitors for a lead """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def analyze_competitors_api_leads__lead_id__competitors_get(
lead_id: int, force: Optional[bool] = False
):
"""
Analyze Competitors
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/competitors/results',
description=""" Get competitor analysis results for a lead """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_competitor_analysis_results_by_lead_id(lead_id: int):
"""
Get Competitor Analysis
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/contacts',
description=""" Get contacts for a lead """,
tags=['lead_management_operations', 'contact_linked_operations'],
)
def get_lead_contacts_api_leads__lead_id__contacts_get(lead_id: int):
"""
Get Lead Contacts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/leads/{lead_id}/contacts',
description=""" Create a new contact for a lead """,
tags=[
'contact_management',
'contact_linked_operations',
'lead_management_operations',
],
)
def create_contact_api_leads__lead_id__contacts_post(
lead_id: int, body: ContactCreate = ...
):
"""
Create Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/leads/{lead_id}/contacts/{contact_id}',
description=""" Delete a contact for a lead """,
tags=['contact_management', 'contact_linked_operations'],
)
def delete_contact_api_leads__lead_id__contacts__contact_id__delete(
lead_id: int, contact_id: int = ...
):
"""
Delete Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/contacts/{contact_id}',
description=""" Get a specific contact for a lead """,
tags=[
'contact_management',
'lead_management_operations',
'contact_linked_operations',
],
)
def get_contact_api_leads__lead_id__contacts__contact_id__get(
lead_id: int, contact_id: int = ...
):
"""
Get Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/leads/{lead_id}/contacts/{contact_id}',
description=""" Update a contact for a lead """,
tags=[
'contact_management',
'contact_linked_operations',
'lead_management_operations',
],
)
def update_contact_api_leads__lead_id__contacts__contact_id__put(
lead_id: int, contact_id: int = ..., body: ContactUpdate = ...
):
"""
Update Contact
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/find-contacts',
description=""" Find contacts for a lead """,
tags=['lead_management_operations', 'contact_linked_operations'],
)
def find_lead_contacts_api_leads__lead_id__find_contacts_get(
lead_id: int, role: Optional[Role] = None
):
"""
Find Lead Contacts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/notes',
description=""" Get notes for a specific lead """,
tags=['lead_management_operations', 'notes_management_services'],
)
def get_lead_notes_api_leads__lead_id__notes_get(lead_id: int):
"""
Get Lead Notes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/leads/{lead_id}/notes',
description=""" Create a new note for a lead """,
tags=['lead_management_operations', 'notes_management_services'],
)
def create_note_api_leads__lead_id__notes_post(lead_id: int, body: NoteCreate = ...):
"""
Create Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/leads/{lead_id}/notes/{note_id}',
description=""" Delete an existing note for a lead """,
tags=['notes_management_services', 'lead_management_operations'],
)
def delete_note_api_leads__lead_id__notes__note_id__delete(
lead_id: int, note_id: int = ...
):
"""
Delete Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/leads/{lead_id}/notes/{note_id}',
description=""" Update an existing note for a lead """,
tags=['notes_management_services', 'lead_management_operations'],
)
def update_note_api_leads__lead_id__notes__note_id__put(
lead_id: int, note_id: int = ..., body: NoteUpdate = ...
):
"""
Update Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/qualification',
description=""" Get qualification data for a lead """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def get_lead_qualification_api_leads__lead_id__qualification_get(lead_id: int):
"""
Get Lead Qualification
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/research',
description=""" Research a lead using Google Search """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def research_lead_api_leads__lead_id__research_get(
lead_id: int, force: Optional[bool] = False, domain: Optional[Domain] = None
):
"""
Research Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/leads/{lead_id}/score',
description=""" Score a lead """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def score_lead_api_leads__lead_id__score_get(lead_id: int):
"""
Score Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/',
description=""" Get all call logs. """,
tags=['call_log_services', 'account_info_management'],
)
def read_call_logs_api_log__get():
"""
Read Call Logs
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/log/',
description=""" Create a new call log. """,
tags=['call_log_services', 'account_info_management'],
)
def create_call_log_api_log__post(body: CallLogCreate):
"""
Create Call Log
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/analytics/recent/{user_id}',
description=""" Get recent call analytics for display. """,
tags=[
'call_analysis_services',
'dashboard_metrics_retrieval',
'account_info_management',
],
)
def get_recent_calls_analytics(user_id: int):
"""
Get Recent Calls Analytics
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/analytics/status-breakdown/{user_id}',
description=""" Get call status breakdown for analytics. """,
tags=['call_analysis_services', 'dashboard_metrics_retrieval'],
)
def get_call_status_breakdown(user_id: int):
"""
Get Call Status Breakdown
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/analytics/today/{user_id}',
description=""" Get today's call analytics for a specific user. """,
tags=['dashboard_metrics_retrieval', 'dashboard_performance_statistics'],
)
def get_today_analytics_api_log_analytics_today__user_id__get(user_id: int):
"""
Get Today Analytics
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/phone/{phone_number}',
description=""" Get all call logs for a given phone number. """,
tags=['call_log_services', 'account_info_management'],
)
def read_call_logs_by_phone_number_api_log_phone__phone_number__get(phone_number: str):
"""
Read Call Logs By Phone Number
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/log/report/calls',
description=""" Get call report data with filters. """,
tags=['call_log_services', 'call_analysis_services', 'lead_management_operations'],
)
def get_call_report_api_log_report_calls_post(body: ApiLogReportCallsPostRequest):
"""
Get Call Report
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/log/report/summary',
description=""" Get call report summary with filters. """,
tags=['dashboard_metrics_retrieval', 'dashboard_performance_statistics'],
)
def get_call_report_summary_api_log_report_summary_post(
body: ApiLogReportSummaryPostRequest,
):
"""
Get Call Report Summary
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/sid/{call_sid}',
description=""" Get all call logs for a given call SID. """,
tags=['call_log_services', 'account_info_management'],
)
def read_call_logs_by_call_sid_api_log_sid__call_sid__get(call_sid: str):
"""
Read Call Logs By Call Sid
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/user/{user_id}',
description=""" Get all call logs for a given user_id. """,
tags=['call_log_services', 'account_info_management'],
)
def read_call_logs_by_user_api_log_user__user_id__get(user_id: int):
"""
Read Call Logs By User
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/log/{log_id}',
description=""" Delete a call log. """,
tags=['call_log_services', 'account_info_management'],
)
def delete_call_log_api_log__log_id__delete(log_id: int):
"""
Delete Call Log
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/log/{log_id}',
description=""" Get a call log by ID. """,
tags=['call_log_services', 'account_info_management'],
)
def read_call_log_api_log__log_id__get(log_id: int):
"""
Read Call Log
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/log/{log_id}',
description=""" Update a call log. """,
tags=['call_log_services', 'account_info_management'],
)
def update_call_log_api_log__log_id__put(log_id: int, body: CallLogUpdate = ...):
"""
Update Call Log
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/notes/',
description=""" Create a new call note. """,
tags=['call_notes_services', 'call_log_services', 'lead_management_operations'],
)
def create_call_note_api_notes__post(body: CallNoteCreate):
"""
Create Call Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/notes/call/{call_sid}',
description=""" Get all notes for a specific call SID. """,
tags=['call_notes_services'],
)
def get_call_notes_api_notes_call__call_sid__get(call_sid: str):
"""
Get Call Notes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/notes/search/{user_id}',
description=""" Search notes by content and tags. """,
tags=[
'notes_management_services',
'database_query_operations',
'lead_management_operations',
],
)
def search_notes_api_notes_search__user_id__get(
user_id: int, q: Optional[str] = '', tags: Optional[str] = ''
):
"""
Search Notes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/notes/tags/{user_id}',
description=""" Get all unique tags used by a user. """,
tags=[
'user_account_management',
'user_authentication',
'database_query_operations',
],
)
def get_user_tags_api_notes_tags__user_id__get(user_id: int):
"""
Get User Tags
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/notes/user/{user_id}',
description=""" Get all notes for a specific user. """,
tags=['notes_management_services', 'lead_management_operations'],
)
def get_user_notes_api_notes_user__user_id__get(user_id: int):
"""
Get User Notes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/notes/{note_id}',
description=""" Delete a call note. """,
tags=['notes_management_services', 'contact_management'],
)
def delete_note_api_notes__note_id__delete(note_id: int):
"""
Delete Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/notes/{note_id}',
description=""" Get a specific note by ID. """,
tags=['notes_management_services'],
)
def get_note_api_notes__note_id__get(note_id: int):
"""
Get Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/notes/{note_id}',
description=""" Update a call note. """,
tags=['notes_management_services', 'lead_management_operations'],
)
def update_note_api_notes__note_id__put(note_id: int, body: CallNoteUpdate = ...):
"""
Update Note
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/outreach/email/contact/{contact_id}/',
tags=['agent_outreach_operations', 'contact_management', 'email_sending_services'],
)
def outreach_email_api_outreach_email_contact__contact_id___post(contact_id: int):
"""
Outreach Email
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/actions',
description=""" Get all actions """,
tags=['agent_management', 'database_query_operations'],
)
def read_actions_api_rbac_actions_get():
"""
Read Actions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/actions',
description=""" Create a new action """,
tags=['agent_management', 'lead_management_operations'],
)
def create_action_api_rbac_actions_post(body: ActionCreate):
"""
Create Action
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/check_permission',
description=""" Check if user has permission """,
tags=['user_authentication', 'rbac_permission_services', 'user_account_management'],
)
def check_permission_api_rbac_check_permission_post(body: PermissionCheck):
"""
Check Permission
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/permissions',
description=""" Get all permissions """,
tags=['user_account_management', 'rbac_permission_services'],
)
def read_permissions_api_rbac_permissions_get():
"""
Read Permissions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/permissions',
description=""" Create a new permission """,
tags=['user_account_management', 'rbac_permission_services'],
)
def create_permission_api_rbac_permissions_post(body: PermissionCreate):
"""
Create Permission
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/permissions/by-resource/{resource_id}',
description=""" Get permissions by resource """,
tags=['rbac_permission_services', 'rbac_resource_services'],
)
def read_permissions_by_resource(resource_id: str):
"""
Read Permissions By Resource
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/rbac/permissions/{permission_id}',
description=""" Delete a permission """,
tags=['rbac_permission_services', 'user_account_management'],
)
def delete_permission_api_rbac_permissions__permission_id__delete(permission_id: str):
"""
Delete Permission
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/rbac/permissions/{permission_id}',
description=""" Update a permission """,
tags=['user_account_management', 'rbac_permission_services'],
)
def update_permission_api_rbac_permissions__permission_id__put(
permission_id: str, body: PermissionUpdate = ...
):
"""
Update Permission
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/profile/{user_id}',
description=""" Get user profile with all details """,
tags=['user_account_management', 'user_authentication'],
)
def get_user_profile_api_rbac_profile__user_id__get(user_id: int):
"""
Get User Profile
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/rbac/profile/{user_id}',
description=""" Update user profile """,
tags=['user_account_management'],
)
def update_user_profile_api_rbac_profile__user_id__put(
user_id: int, body: UserUpdate = ...
):
"""
Update User Profile
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/profile/{user_id}/photo',
description=""" Upload profile photo for user """,
tags=['user_account_management'],
)
def upload_profile_photo_api_rbac_profile__user_id__photo_post(
user_id: int, file: UploadFile = ...
):
"""
Upload Profile Photo
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/resources',
description=""" Get all resources """,
tags=['database_query_operations'],
)
def read_resources_api_rbac_resources_get():
"""
Read Resources
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/resources',
description=""" Create a new resource """,
tags=['rbac_resource_services'],
)
def create_resource_api_rbac_resources_post(body: ResourceCreate):
"""
Create Resource
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/resources/tree',
description=""" Get resources in tree structure """,
tags=['database_query_operations'],
)
def read_resources_tree_api_rbac_resources_tree_get():
"""
Read Resources Tree
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/rbac/resources/{resource_id}',
description=""" Delete a resource """,
tags=[
'agent_management',
'database_query_operations',
'document_handling_services',
'rbac_resource_services',
],
)
def delete_resource_api_rbac_resources__resource_id__delete(resource_id: str):
"""
Delete Resource
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/rbac/resources/{resource_id}',
description=""" Update a resource """,
tags=['rbac_resource_services'],
)
def update_resource_api_rbac_resources__resource_id__put(
resource_id: str, body: ResourceUpdate = ...
):
"""
Update Resource
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/role_permissions/matrix',
description=""" Get permission matrix showing which roles have which permissions """,
tags=['user_account_management', 'rbac_permission_services'],
)
def get_permission_matrix_api_rbac_role_permissions_matrix_get():
"""
Get Permission Matrix
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/role_permissions/matrix/update',
description=""" Update permission matrix """,
tags=['rbac_permission_services', 'user_account_management'],
)
def update_permission_matrix(body: ApiRbacRolePermissionsMatrixUpdatePostRequest):
"""
Update Permission Matrix
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/roles',
description=""" Get all roles """,
tags=['user_account_management', 'rbac_role_services'],
)
def read_roles_api_rbac_roles_get():
"""
Read Roles
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/roles',
description=""" Create a new role """,
tags=['user_account_management', 'rbac_role_services'],
)
def create_role_api_rbac_roles_post(body: RoleCreate):
"""
Create Role
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/roles/hierarchy',
description=""" Get roles in hierarchy structure """,
tags=['rbac_role_services', 'rbac_permission_services'],
)
def read_roles_hierarchy_api_rbac_roles_hierarchy_get():
"""
Read Roles Hierarchy
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/rbac/roles/{role_id}',
description=""" Delete a role """,
tags=['rbac_role_services', 'user_account_management'],
)
def delete_role_api_rbac_roles__role_id__delete(role_id: str):
"""
Delete Role
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/rbac/roles/{role_id}',
description=""" Update a role """,
tags=['user_account_management', 'rbac_role_services'],
)
def update_role_api_rbac_roles__role_id__put(role_id: str, body: RoleUpdate = ...):
"""
Update Role
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/security_events',
description=""" Get security events """,
tags=['security_event_logging', 'database_query_operations'],
)
def get_security_events_api_rbac_security_events_get(limit: Optional[int] = 100):
"""
Get Security Events
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/security_events',
description=""" Log a security event """,
tags=['security_event_logging'],
)
def log_security_event_api_rbac_security_events_post(body: SecurityEventCreate):
"""
Log Security Event
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/user_roles/bulk',
description=""" Bulk assign roles to user """,
tags=['user_account_management', 'rbac_role_services'],
)
def bulk_assign_user_roles_api_rbac_user_roles_bulk_post(body: BulkUserRoleAssignment):
"""
Bulk Assign User Roles
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/users',
description=""" Get all users """,
tags=['user_account_management', 'database_query_operations'],
)
def read_users_api_rbac_users_get():
"""
Read Users
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/rbac/users',
description=""" Create a new user """,
tags=['user_account_management', 'rbac_permission_services', 'rbac_role_services'],
)
def create_user_api_rbac_users_post(body: ApiRoutesRbacUserCreate):
"""
Create User
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/rbac/users/{user_id}',
description=""" Delete a user """,
tags=['user_account_management'],
)
def delete_user_api_rbac_users__user_id__delete(user_id: int):
"""
Delete User
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/users/{user_id}',
description=""" Get a specific user """,
tags=['user_account_management', 'user_authentication'],
)
def read_user_api_rbac_users__user_id__get(user_id: int):
"""
Read User
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.put(
'/api/rbac/users/{user_id}',
description=""" Update a user """,
tags=['user_account_management'],
)
def update_user_api_rbac_users__user_id__put(user_id: int, body: UserUpdate = ...):
"""
Update User
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/users/{user_id}/access-summary',
description=""" Get user access summary """,
tags=[
'user_account_management',
'rbac_permission_services',
'rbac_role_services',
'rbac_action_services',
],
)
def get_user_access_summary(user_id: int):
"""
Get User Access Summary
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/rbac/users/{user_id}/permissions/effective',
description=""" Get effective permissions for user """,
tags=['user_account_management', 'rbac_permission_services'],
)
def get_effective_permissions_by_user_id(user_id: int):
"""
Get Effective Permissions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/templates',
description=""" Get all outreach templates. """,
tags=['document_handling_services', 'database_query_operations'],
)
def get_templates_api_templates_get():
"""
Get Templates
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/templates/{channel}',
description=""" Get templates for a specific channel (email, sms, call). """,
tags=['agent_management', 'dashboard_metrics_retrieval'],
)
def get_channel_templates_api_templates__channel__get(channel: str):
"""
Get Channel Templates
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/training/clear',
description=""" Clear all training data. """,
tags=['training_data_services'],
)
def clear_training_data_api_training_clear_delete():
"""
Clear Training Data
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/training/download',
description=""" Download training data in JSON or CSV format. """,
tags=['training_data_services'],
)
def download_training_data_api_training_download_get(
format: Optional[str] = 'json', tag: Optional[Tag] = None
):
"""
Download Training Data
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/training/export',
description=""" Export training logs in JSONL format for fine-tuning """,
tags=['training_data_services', 'agent_management'],
)
def export_training_logs_jsonl_api_training_export_get():
"""
Export Training Logs Jsonl
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/training/export-jsonl',
description=""" Export training data in JSONL format for fine-tuning LLMs. """,
tags=['training_data_services'],
)
def export_training_jsonl_api_training_export_jsonl_post(
body: ApiTrainingExportJsonlPostRequest = None,
):
"""
Export Training Jsonl
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/training/log',
description=""" Log a new training entry.
Request body should include:
- prompt: The prompt sent to the LLM
- response: The response from the LLM
- tags: List of tags associated with this interaction
- tone: The tone used in the response
- metadata: Additional metadata to store (optional) """,
tags=['training_data_services'],
)
def log_training_data_api_training_log_post(body: ApiTrainingLogPostRequest):
"""
Log Training Data
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/training/prompts',
description=""" Get training prompt entries, optionally filtered by tag. """,
tags=['training_prompt_services', 'training_data_services'],
)
def get_training_prompts_api_training_prompts_get(
limit: Optional[int] = 100, tag: Optional[Tag] = None
):
"""
Get Training Prompts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/training/refine-prompt',
description=""" Refine a prompt based on training data insights """,
tags=['training_prompt_services'],
)
def refine_prompt_api_training_refine_prompt_post(
body: ApiTrainingRefinePromptPostRequest,
):
"""
Refine Prompt
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/training/refinement',
description=""" Get refinement suggestions for a prompt. """,
tags=['training_prompt_services'],
)
def get_refinement_api_training_refinement_get(prompt: str):
"""
Get Refinement
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/training/suggestions',
description=""" Get training suggestions based on a prompt. """,
tags=['training_prompt_services'],
)
def get_suggestions_api_training_suggestions_get(prompt: str):
"""
Get Suggestions
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/training/summary',
description=""" Get summary statistics about training data """,
tags=[
'dashboard_performance_statistics',
'dashboard_metrics_retrieval',
'training_data_services',
],
)
def get_training_summary_api_training_summary_get():
"""
Get Training Summary
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/training/upload',
description=""" Upload training logs to append to existing data """,
tags=['training_data_services', 'agent_management'],
)
def upload_training_logs_api_training_upload_post(file: UploadFile):
"""
Upload Training Logs
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/tw/account-balance',
description=""" Get your Twilio account balance and currency. """,
tags=['account_info_management'],
)
def get_account_balance_api_tw_account_balance_get():
"""
Get Account Balance
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/api/tw/api-keys', tags=['api_key_services'])
def list_api_keys_api_tw_api_keys_get():
"""
List Api Keys
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/tw/api-keys', tags=['api_key_services', 'user_account_management'])
def create_api_key_api_tw_api_keys_post(body: CreateApiKeyRequest):
"""
Create Api Key
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete('/api/tw/api-keys/{sid}', tags=['api_key_services'])
def delete_api_key_api_tw_api_keys__sid__delete(sid: str):
"""
Delete Api Key
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/tw/call-log',
description=""" Retrieve recent call records from Twilio account.
Optional 'limit' parameter controls the number of records returned (default: 20). """,
tags=['call_log_services', 'account_info_management'],
)
def get_call_log_api_tw_call_log_get(limit: Optional[Limit2] = 20):
"""
Get Call Log
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/tw/call-log/{sid}',
description=""" Retrieve a specific call record by Call SID. """,
tags=['call_log_services', 'call_record_management'],
)
def get_call_by_sid_api_tw_call_log__sid__get(sid: str):
"""
Get Call By Sid
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/api/tw/call-record/{sid}', tags=['call_record_management'])
def get_call_recording_url_api_tw_call_record__sid__get(sid: str):
"""
Get Call Recording Url
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/api/tw/logs', tags=['error_logging_services', 'agent_management'])
def get_error_logs_api_tw_logs_get(limit: Optional[int] = 20):
"""
Get Error Logs
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/tw/phone-numbers',
description=""" List all Twilio phone numbers in your account.
Optional 'limit' param controls max returned. """,
tags=['phone_number_services', 'contact_management'],
)
def list_phone_numbers_api_tw_phone_numbers_get(limit: Optional[int] = 20):
"""
List Phone Numbers
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/tw/phone-numbers',
description=""" Search and purchase a new Twilio phone number. """,
tags=['phone_number_services', 'account_info_management'],
)
def buy_new_number_api_tw_phone_numbers_post(body: BuyNumberRequest):
"""
Buy New Number
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/tw/phone-numbers/{sid}',
description=""" Release an existing Twilio phone number from your account. """,
tags=['phone_number_services'],
)
def release_phone_number_api_tw_phone_numbers__sid__delete(sid: str):
"""
Release Phone Number
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/tw/set-inbound-voice-webhook',
description=""" Configure the incoming voice webhook for a Twilio phone number. """,
tags=['messaging_voice_webhook_services'],
)
def set_inbound_voice_webhook_api_tw_set_inbound_voice_webhook_post(
body: WebhookUpdateRequest,
):
"""
Set Inbound Voice Webhook
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/api/tw/subaccounts', tags=['subaccount_management_services'])
def list_subaccounts_api_tw_subaccounts_get():
"""
List Subaccounts
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/tw/subaccounts',
tags=['subaccount_management_services', 'user_account_management'],
)
def create_subaccount_api_tw_subaccounts_post(body: CreateSubaccountRequest):
"""
Create Subaccount
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete(
'/api/tw/subaccounts/{sid}',
tags=['subaccount_management_services', 'user_account_management'],
)
def close_subaccount_api_tw_subaccounts__sid__delete(sid: str):
"""
Close Subaccount
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.patch('/api/tw/subaccounts/{sid}', tags=['subaccount_management_services'])
def update_subaccount_api_tw_subaccounts__sid__patch(
sid: str, body: UpdateSubaccountRequest = ...
):
"""
Update Subaccount
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/tw/sync/{call_sid}',
description=""" Fetches the latest call info from Twilio and updates local call_logs. """,
tags=['call_log_services', 'call_record_management', 'account_info_management'],
)
def sync_call_log_api_tw_sync__call_sid__post(call_sid: str):
"""
Sync Call Log
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/tw/usage-records',
description=""" Retrieve Twilio usage records.
Optional filters: category, start_date, end_date, and limit. """,
tags=['account_info_management', 'database_query_operations'],
)
def get_usage_records_api_tw_usage_records_get(
category: Optional[Category] = None,
start_date: Optional[StartDate] = None,
end_date: Optional[EndDate] = None,
limit: Optional[int] = 20,
):
"""
Get Usage Records
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/twilio/call-record', tags=['call_record_management', 'call_log_services']
)
def add_call_record_api_twilio_call_record_post(body: CallRecordIn):
"""
Add Call Record
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/api/twilio/call-status/{call_sid}',
description=""" Returns the latest status for a specific call (by CallSid), including cost and duration. """,
tags=['call_analysis_services', 'call_log_services', 'call_record_management'],
)
def get_call_status_api_twilio_call_status__call_sid__get(call_sid: str):
"""
Get Call Status
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twilio/message', tags=['messaging_voice_webhook_services'])
def messaging_webhook_api_twilio_message_post():
"""
Messaging Webhook
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/twilio/status',
description=""" Called by Twilio's Voice API on call status changes (completed, no-answer, busy, etc.)
Updates database call_logs and acknowledges Twilio (always returns 200 OK). """,
tags=['agent_management', 'call_record_management'],
)
def handle_status_api_twilio_status_post():
"""
Handle Status
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twilio/token', tags=['user_authentication', 'token_services'])
def generate_token_api_twilio_token_post(body: TokenRequest):
"""
Generate Token
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post(
'/api/twilio/voice',
description=""" Receives Outbound Call requests from Twilio (or your web client).
Always returns valid TwiML (even on errors).
Improved for debugging and diagnostics. """,
tags=[
'messaging_voice_webhook_services',
'voicemail_services',
'ivr_menu_services',
'ivr_route_services',
],
)
def handle_voice_api_twilio_voice_post():
"""
Handle Voice
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twivr/menu', tags=['ivr_menu_services'])
def ivr_menu_api_twivr_menu_post():
"""
Ivr Menu
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twivr/menus', tags=['ivr_menu_services'])
def create_menu_api_twivr_menus_post(body: IVRMenuCreate):
"""
Create Menu
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete('/api/twivr/menus/{menu_id}', tags=['ivr_menu_services'])
def delete_menu_api_twivr_menus__menu_id__delete(menu_id: int):
"""
Delete Menu
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.patch('/api/twivr/menus/{menu_id}', tags=['ivr_menu_services'])
def update_menu_api_twivr_menus__menu_id__patch(
menu_id: int, body: IVRMenuUpdate = ...
):
"""
Update Menu
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/api/twivr/menus/{phone_number}', tags=['ivr_menu_services'])
def get_menus_api_twivr_menus__phone_number__get(phone_number: str):
"""
Get Menus
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twivr/routes', tags=['ivr_route_services'])
def add_route_api_twivr_routes_post(body: IVRRouteCreate):
"""
Add Route
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/api/twivr/routes/{menu_id}', tags=['ivr_route_services'])
def get_routes_api_twivr_routes__menu_id__get(menu_id: int):
"""
Get Routes
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.delete('/api/twivr/routes/{route_id}', tags=['ivr_route_services'])
def delete_route_api_twivr_routes__route_id__delete(route_id: int):
"""
Delete Route
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.patch('/api/twivr/routes/{route_id}', tags=['ivr_route_services'])
def update_route_api_twivr_routes__route_id__patch(
route_id: int, body: IVRRouteUpdate = ...
):
"""
Update Route
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twivr/voicemail', tags=['voicemail_services'])
def voicemail_done_api_twivr_voicemail_post():
"""
Voicemail Done
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.post('/api/twivr/welcome', tags=['ivr_menu_services'])
def ivr_welcome_api_twivr_welcome_post():
"""
Ivr Welcome
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get('/health', tags=['service_health_check', 'database_query_operations'])
def get_health_check():
"""
Health
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
@app.get(
'/live/analyze/{lead_id}',
description=""" Analyze a lead and return qualification data.
If force is False, will use cached results if available.
If force_scrape is True, will force website scraping.
Requires a valid JWT token as a query parameter. """,
tags=['lead_management_operations', 'lead_analysis_services'],
)
def analyze_lead_live_analyze__lead_id__get(
lead_id: int,
force: Optional[bool] = False,
force_scrape: Optional[bool] = False,
token: Optional[Token1] = None,
):
"""
Analyze Lead
"""
raise RuntimeError("Should be patched by MCPProxy and never executed")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="MCP Server")
parser.add_argument(
"transport",
choices=["stdio", "sse", "streamable-http"],
help="Transport mode (stdio, sse or streamable-http)",
)
args = parser.parse_args()
if "CONFIG_PATH" in os.environ:
config_path = os.environ["CONFIG_PATH"]
app.load_configuration(config_path)
if "CONFIG" in os.environ:
config = os.environ["CONFIG"]
app.load_configuration_from_string(config)
if "SECURITY" in os.environ:
security_params = BaseSecurity.parse_security_parameters_from_env(
os.environ,
)
app.set_security_params(security_params)
mcp_settings = json.loads(os.environ.get("MCP_SETTINGS", "{}"))
app.get_mcp(**mcp_settings).run(transport=args.transport)