{
  "openapi": "3.1.0",
  "info": {
    "title": "Arsius Soluciones Contables & Tax Intelligence API",
    "description": "Comprehensive REST, Agent-to-Agent (A2A), and Model Context Protocol (MCP) API surface for Arsius Soluciones Contables y Nómina in Puerto Rico. Provides programmatic endpoints for AI agents, tax calculators, SURI filing deadlines, real-time economic feeds, educational video catalogs, document management, and consultation scheduling.",
    "version": "1.0.0",
    "termsOfService": "https://arsius.com/terms",
    "contact": {
      "name": "Arsius Support & Developer Relations",
      "email": "info@arsius.com",
      "url": "https://arsius.com/developers",
      "phone": "+1-787-214-4502"
    },
    "license": {
      "name": "Creative Commons Attribution 4.0 International",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "externalDocs": {
    "description": "AI-Readable Knowledge Base (llms.txt) & Developer Portal",
    "url": "https://arsius.com/developers"
  },
  "servers": [
    {
      "url": "https://arsius.com",
      "description": "Production Server (HTTPS with HSTS Preload & Global CDN)"
    },
    {
      "url": "http://localhost:3000",
      "description": "Local Development Server"
    }
  ],
  "tags": [
    {
      "name": "Tax & Payroll Calculators",
      "description": "Puerto Rico IVU, payroll withholdings (FICA, Medicare, SINOT, Choferil, CFSE), and SURI calendar deadlines"
    },
    {
      "name": "Model Context Protocol & AI Agents",
      "description": "Autonomous A2A agent queries, MCP JSON-RPC 2.0 tool execution, and sandbox keys"
    },
    {
      "name": "Health & System",
      "description": "Uptime monitoring and system health checks"
    },
    {
      "name": "Inquiries & Contact",
      "description": "Consultation booking and customer service requests"
    },
    {
      "name": "Economic News & Feeds",
      "description": "Real-time RSS feeds from Puerto Rico Hacienda, IRS, and business publishers"
    },
    {
      "name": "Document Management",
      "description": "Secure client portal folder hierarchy, document upload, and audit logging"
    },
    {
      "name": "Discovery & Specifications",
      "description": "OpenAPI specifications, A2A Agent Card, MCP manifest, and LLM knowledge base"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "tags": ["Health & System"],
        "summary": "System Health Check",
        "description": "Returns operational status, timestamp, environment details, and API discovery links.",
        "operationId": "getHealthStatus",
        "responses": {
          "200": {
            "description": "System is healthy and fully operational",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/ping": {
      "get": {
        "tags": ["Health & System"],
        "summary": "Ping Endpoint",
        "description": "Ultra-lightweight ping response for latency testing and load balancer heartbeats.",
        "operationId": "getPing",
        "responses": {
          "200": {
            "description": "Ping OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" },
                    "pong": { "type": "boolean", "example": true },
                    "timestamp": { "type": "string", "format": "date-time" }
                  },
                  "required": ["status", "pong", "timestamp"]
                }
              }
            }
          }
        }
      }
    },
    "/api/tax/calculate-ivu": {
      "post": {
        "tags": ["Tax & Payroll Calculators"],
        "summary": "Calculate Puerto Rico IVU",
        "description": "Computes exact Puerto Rico Sales and Use Tax (IVU) breakdown: 10.5% state rate + 1.0% municipal rate = 11.5% total rate.",
        "operationId": "calculateIvu",
        "security": [
          { "ApiKeyAuth": [] },
          { "SandboxAuth": [] },
          { "OAuth2": ["read:tax_data"] },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IvuCalculationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "IVU calculation calculated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IvuCalculationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/tax/calculate-payroll": {
      "post": {
        "tags": ["Tax & Payroll Calculators"],
        "summary": "Calculate Puerto Rico Payroll Withholdings",
        "description": "Computes employee and employer payroll tax deductions in Puerto Rico: FICA Social Security (6.2%), Medicare (1.45%), estimated PR income tax withholding, SINOT disability, Seguro Choferil, and CFSE worker's comp.",
        "operationId": "calculatePayrollWithholdings",
        "security": [
          { "ApiKeyAuth": [] },
          { "SandboxAuth": [] },
          { "OAuth2": ["read:tax_data"] },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayrollCalculationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payroll deductions computed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayrollCalculationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/tax/suri-deadlines": {
      "get": {
        "tags": ["Tax & Payroll Calculators"],
        "summary": "Lookup Puerto Rico Tax & SURI Deadlines",
        "description": "Returns statutory tax return filing deadlines for Puerto Rico Department of Hacienda (SURI), CRIM property taxes, and IRS quarterly filings.",
        "operationId": "lookupSuriDeadlines",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "description": "Tax year (e.g. 2026)",
            "schema": { "type": "integer", "default": 2026 }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Filter by tax category",
            "schema": {
              "type": "string",
              "enum": ["all", "ivu", "payroll", "corporate", "individual", "crim"],
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tax calendar deadlines retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDeadlinesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "tags": ["Model Context Protocol & AI Agents"],
        "summary": "Model Context Protocol (MCP) Streamable Endpoint",
        "description": "Executes MCP JSON-RPC 2.0 tool requests for Claude, ChatGPT, Gemini, and autonomous AI agents.",
        "operationId": "executeMcpTool",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpJsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpJsonRpcResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/sandbox/key": {
      "post": {
        "tags": ["Model Context Protocol & AI Agents"],
        "summary": "Instant Self-Serve Sandbox API Key",
        "description": "Generates an instant free sandbox API key for AI agents and developers with 100,000 monthly request quota. No signup or credit card required.",
        "operationId": "createSandboxApiKey",
        "responses": {
          "200": {
            "description": "Sandbox API key generated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxKeyResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["Model Context Protocol & AI Agents"],
        "summary": "Get Default Sandbox API Key",
        "description": "Retrieves the active self-serve sandbox API key and usage instructions.",
        "operationId": "getSandboxApiKey",
        "responses": {
          "200": {
            "description": "Active sandbox key details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxKeyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "tags": ["Inquiries & Contact"],
        "summary": "Submit Contact or Consultation Inquiry",
        "description": "Submits a client consultation or quote request to Arsius CPAs and accounting specialists in Arecibo, Puerto Rico.",
        "operationId": "submitContactInquiry",
        "security": [
          { "OAuth2": ["write:inquiries"] },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean", "example": true },
                    "message": { "type": "string", "example": "Inquiry submitted successfully" },
                    "inquiryId": { "type": "string", "example": "inq_98765" }
                  },
                  "required": ["success", "message"]
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/query": {
      "post": {
        "tags": ["Model Context Protocol & AI Agents"],
        "summary": "Agent-to-Agent (A2A) Query Protocol",
        "description": "Direct communication endpoint for autonomous AI agents to query Arsius tax guidelines, booking availability, and client services.",
        "operationId": "queryAgent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Agent response generated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentQueryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/agent/metadata": {
      "get": {
        "tags": ["Model Context Protocol & AI Agents"],
        "summary": "Agent Capabilities & Skill Metadata",
        "description": "Returns capabilities, protocols, supported skills, and rate limits for AI agent evaluators.",
        "operationId": "getAgentMetadata",
        "responses": {
          "200": {
            "description": "Agent metadata retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "agent": { "type": "string", "example": "Arsius Accounting & Tax Intelligence Agent" },
                    "protocol": { "type": "string", "example": "A2A-1.0 / MCP-1.0" },
                    "status": { "type": "string", "example": "operational" },
                    "skills": {
                      "type": "array",
                      "items": { "type": "string" }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/news/rss": {
      "get": {
        "tags": ["Economic News & Feeds"],
        "summary": "Puerto Rico & Federal Economic News",
        "description": "Retrieves real-time RSS news articles from Puerto Rico Hacienda, IRS, and business media.",
        "operationId": "getRssFeeds",
        "parameters": [
          {
            "name": "feed",
            "in": "query",
            "description": "Feed identifier or 'all'",
            "schema": { "type": "string", "default": "all" }
          }
        ],
        "responses": {
          "200": {
            "description": "News articles retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean", "example": true },
                    "articles": {
                      "type": "array",
                      "items": { "$ref": "#/components/schemas/RssArticle" }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/videos": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "Educational Accounting Videos",
        "description": "Retrieves educational video guides on SURI, Hacienda, payroll, and business incorporation.",
        "operationId": "listVideos",
        "responses": {
          "200": {
            "description": "List of videos retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { "$ref": "#/components/schemas/VideoItem" }
                }
              }
            }
          }
        }
      }
    },
    "/api/documents/tree": {
      "get": {
        "tags": ["Document Management"],
        "summary": "Get Client Document Folder Tree",
        "description": "Retrieves the folder hierarchy and files for the authenticated client or admin portal.",
        "operationId": "getDocumentTree",
        "security": [
          { "OAuth2": ["read:documents"] },
          { "BearerAuth": [] }
        ],
        "responses": {
          "200": {
            "description": "Folder hierarchy retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { "$ref": "#/components/schemas/DocumentFolder" }
                }
              }
            }
          }
        }
      }
    },
    "/api/documents/upload": {
      "post": {
        "tags": ["Document Management"],
        "summary": "Upload Client Tax Document",
        "description": "Uploads a tax return, invoice, or payroll report to the secure document repository.",
        "operationId": "uploadDocument",
        "security": [
          { "OAuth2": ["write:documents"] },
          { "BearerAuth": [] }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "folder": { "type": "string", "example": "Empresas_XYZ_2026" },
                  "file": { "type": "string", "format": "binary" }
                },
                "required": ["folder", "file"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Document uploaded successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean", "example": true },
                    "filename": { "type": "string", "example": "W2PR_2025.pdf" },
                    "message": { "type": "string", "example": "Archivo subido exitosamente" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/images": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "List Media Images",
        "description": "Lists public images and logos used throughout the accounting portal.",
        "operationId": "listSiteImages",
        "responses": {
          "200": {
            "description": "List of site images",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { "$ref": "#/components/schemas/ImageItem" }
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "OpenAPI Specification (JSON)",
        "description": "Direct download of the complete OpenAPI 3.1.0 specification in JSON format.",
        "operationId": "getOpenApiSpecJson",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1.0 JSON document",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/api/openapi.yaml": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "OpenAPI Specification (YAML)",
        "description": "Direct download of the complete OpenAPI 3.1.0 specification in YAML format.",
        "operationId": "getOpenApiSpecYaml",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1.0 YAML document",
            "content": {
              "text/yaml": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "AI Knowledge Base (llms.txt)",
        "description": "Structured Markdown catalog for Google NotebookLM, Vertex AI, ChatGPT, Claude, and LLM web crawlers.",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Markdown LLM knowledge base",
            "content": {
              "text/markdown": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/.well-known/agent-card.json": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "Agent Card Discovery Endpoint",
        "description": "Agent-to-Agent (A2A) protocol card declaring capabilities, OpenAPI schemas, and contact endpoints.",
        "operationId": "getAgentCard",
        "responses": {
          "200": {
            "description": "Agent Card metadata",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp/manifest.json": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "Model Context Protocol (MCP) Manifest",
        "description": "MCP v1.0 manifest declaring tool signatures for Claude, ChatGPT, and AI agents.",
        "operationId": "getMcpManifest",
        "responses": {
          "200": {
            "description": "MCP Manifest JSON",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/.well-known/security.txt": {
      "get": {
        "tags": ["Discovery & Specifications"],
        "summary": "Security Policy (RFC 9116)",
        "description": "RFC 9116 security contact information and vulnerability reporting policy.",
        "operationId": "getSecurityTxt",
        "responses": {
          "200": {
            "description": "Security policy plaintext",
            "content": {
              "text/plain": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "description": "OAuth 2.0 Authorization Code and Client Credentials flows with fine-grained tax and document scopes.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://arsius.com/api/oauth/token",
            "scopes": {
              "read:tax_data": "Read Puerto Rico tax rates, calculators, and SURI deadlines",
              "write:inquiries": "Submit client inquiries and consultation bookings",
              "read:documents": "Read client tax returns and financial statements",
              "write:documents": "Upload W-2PR and tax documentation",
              "admin:ledger": "Full administrative access to client ledgers"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://arsius.com/api/oauth/authorize",
            "tokenUrl": "https://arsius.com/api/oauth/token",
            "scopes": {
              "read:tax_data": "Read Puerto Rico tax rates, calculators, and SURI deadlines",
              "write:inquiries": "Submit client inquiries and consultation bookings",
              "read:documents": "Read client tax returns and financial statements",
              "write:documents": "Upload W-2PR and tax documentation",
              "admin:ledger": "Full administrative access to client ledgers"
            }
          }
        }
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Standard API key header for registered developers and integrations."
      },
      "SandboxAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Sandbox-Key",
        "description": "Instant self-serve sandbox demo key (sandbox-demo-key or arsius_sandbox_live_agent_free_key) with 100,000 monthly requests for AI agents."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "JSON Web Token for authenticated client portal and administrator accounts."
      }
    },
    "schemas": {
      "HealthResponse": {
        "type": "object",
        "properties": {
          "status": { "type": "string", "example": "healthy" },
          "service": { "type": "string", "example": "Arsius Soluciones Contables y Nómina API" },
          "version": { "type": "string", "example": "1.0.0" },
          "environment": { "type": "string", "example": "production" },
          "timestamp": { "type": "string", "format": "date-time" },
          "rateLimit": {
            "type": "object",
            "properties": {
              "standard": { "type": "string", "example": "1000 req/min (RFC RateLimit headers supported)" },
              "policy": { "type": "string", "example": "1000;w=60" }
            }
          },
          "discovery": {
            "type": "object",
            "properties": {
              "openapi_json": { "type": "string", "example": "https://arsius.com/openapi.json" },
              "openapi_yaml": { "type": "string", "example": "https://arsius.com/api/openapi.yaml" },
              "llms_txt": { "type": "string", "example": "https://arsius.com/llms.txt" },
              "mcp_manifest": { "type": "string", "example": "https://arsius.com/.well-known/mcp/manifest.json" },
              "agent_card": { "type": "string", "example": "https://arsius.com/.well-known/agent-card.json" },
              "developer_portal": { "type": "string", "example": "https://arsius.com/developers" }
            }
          }
        },
        "required": ["status", "service", "version", "timestamp"]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean", "example": false },
          "error": { "type": "string", "example": "Invalid parameter" },
          "code": { "type": "string", "example": "INVALID_PARAMETERS" },
          "message": { "type": "string", "example": "Field 'amount' must be a positive number." },
          "resolution_hint": { "type": "string", "example": "Ensure 'amount' is passed in the request body as a numeric value in USD." },
          "status": { "type": "integer", "example": 400 },
          "timestamp": { "type": "string", "format": "date-time" }
        },
        "required": ["success", "error", "code", "message", "status", "timestamp"]
      },
      "IvuCalculationRequest": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Taxable subtotal amount in USD.",
            "example": 1000.00
          },
          "municipality": {
            "type": "string",
            "description": "Puerto Rico municipality name.",
            "example": "Arecibo"
          }
        },
        "required": ["amount"]
      },
      "IvuCalculationResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean", "example": true },
          "subtotal": { "type": "number", "example": 1000.00 },
          "municipality": { "type": "string", "example": "Arecibo" },
          "ivu_state_rate": { "type": "number", "example": 0.105 },
          "ivu_municipal_rate": { "type": "number", "example": 0.010 },
          "ivu_total_rate": { "type": "number", "example": 0.115 },
          "ivu_state": { "type": "number", "example": 105.00 },
          "ivu_municipal": { "type": "number", "example": 10.00 },
          "ivu_total": { "type": "number", "example": 115.00 },
          "total": { "type": "number", "example": 1115.00 },
          "currency": { "type": "string", "example": "USD" },
          "legal_basis": { "type": "string", "example": "Código de Rentas Internas de Puerto Rico de 2011, según enmendado" }
        },
        "required": ["success", "subtotal", "ivu_total", "total"]
      },
      "PayrollCalculationRequest": {
        "type": "object",
        "properties": {
          "gross_salary": {
            "type": "number",
            "description": "Gross employee salary per pay period in USD.",
            "example": 1500.00
          },
          "pay_frequency": {
            "type": "string",
            "enum": ["weekly", "biweekly", "semimonthly", "monthly"],
            "default": "biweekly",
            "example": "biweekly"
          },
          "allowances": {
            "type": "integer",
            "default": 1,
            "example": 1
          }
        },
        "required": ["gross_salary"]
      },
      "PayrollCalculationResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean", "example": true },
          "gross_salary": { "type": "number", "example": 1500.00 },
          "employee_deductions": {
            "type": "object",
            "properties": {
              "social_security": { "type": "number", "example": 93.00 },
              "medicare": { "type": "number", "example": 21.75 },
              "pr_income_tax": { "type": "number", "example": 78.50 },
              "sinot_disability": { "type": "number", "example": 4.50 },
              "choferil": { "type": "number", "example": 0.50 },
              "total_employee_deductions": { "type": "number", "example": 198.25 }
            }
          },
          "net_pay": { "type": "number", "example": 1301.75 },
          "employer_contributions": {
            "type": "object",
            "properties": {
              "social_security_match": { "type": "number", "example": 93.00 },
              "medicare_match": { "type": "number", "example": 21.75 },
              "futa_unemployment": { "type": "number", "example": 9.00 },
              "pr_unemployment_suta": { "type": "number", "example": 49.50 },
              "cfse_workers_comp": { "type": "number", "example": 37.50 },
              "total_employer_contributions": { "type": "number", "example": 210.75 }
            }
          },
          "total_employer_payroll_cost": { "type": "number", "example": 1710.75 }
        },
        "required": ["success", "gross_salary", "net_pay"]
      },
      "TaxDeadlinesResponse": {
        "type": "object",
        "properties": {
          "year": { "type": "integer", "example": 2026 },
          "deadlines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "obligation": { "type": "string", "example": "Planilla Mensual de IVU (SURI)" },
                "frequency": { "type": "string", "example": "Mensual" },
                "due_day": { "type": "string", "example": "Día 20 de cada mes" },
                "agency": { "type": "string", "example": "Departamento de Hacienda (SURI)" },
                "category": { "type": "string", "example": "ivu" },
                "description": { "type": "string", "example": "Radicación y pago del IVU estatal (10.5%) y municipal (1.0%) del mes anterior." }
              }
            }
          }
        }
      },
      "McpJsonRpcRequest": {
        "type": "object",
        "properties": {
          "jsonrpc": { "type": "string", "example": "2.0" },
          "id": { "type": ["string", "integer"], "example": 1 },
          "method": { "type": "string", "example": "tools/call" },
          "params": { "type": "object" }
        },
        "required": ["jsonrpc", "method"]
      },
      "McpJsonRpcResponse": {
        "type": "object",
        "properties": {
          "jsonrpc": { "type": "string", "example": "2.0" },
          "id": { "type": ["string", "integer"], "example": 1 },
          "result": { "type": "object" },
          "error": { "type": "object" }
        },
        "required": ["jsonrpc"]
      },
      "SandboxKeyResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean", "example": true },
          "apiKey": { "type": "string", "example": "arsius_sandbox_live_agent_free_key" },
          "tier": { "type": "string", "example": "free_agent_sandbox" },
          "quota": { "type": "integer", "example": 100000 },
          "status": { "type": "string", "example": "active" },
          "expiresIn": { "type": "string", "example": "never" },
          "message": { "type": "string", "example": "Instant self-serve sandbox API key for AI agents. No signup required." }
        },
        "required": ["success", "apiKey", "tier", "quota", "status"]
      },
      "ContactRequest": {
        "type": "object",
        "properties": {
          "name": { "type": "string", "example": "María González" },
          "email": { "type": "string", "format": "email", "example": "maria@ejemplo.com" },
          "phone": { "type": "string", "example": "787-555-0199" },
          "service": { "type": "string", "example": "Planificación Contable Anual" },
          "message": { "type": "string", "example": "Deseo cotizar el manejo de nómina y planillas para mi nueva empresa en Arecibo." }
        },
        "required": ["name", "email", "message"]
      },
      "AgentQueryRequest": {
        "type": "object",
        "properties": {
          "query": { "type": "string", "example": "Cuándo vence la planilla mensual de IVU en SURI?" },
          "skill": { "type": "string", "example": "tax-accounting-advisory" },
          "context": {
            "type": "object",
            "properties": {
              "entityType": { "type": "string", "example": "LLC" },
              "taxYear": { "type": "integer", "example": 2026 }
            }
          }
        },
        "required": ["query"]
      },
      "AgentQueryResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean", "example": true },
          "agent": { "type": "string", "example": "Arsius Accounting & Tax Intelligence Agent" },
          "timestamp": { "type": "string", "format": "date-time" },
          "query": { "type": "string" },
          "response": {
            "type": "object",
            "properties": {
              "message": { "type": "string" },
              "provider": { "type": "string", "example": "Arsius & Co. (Arecibo, Puerto Rico)" },
              "bookingUrl": { "type": "string", "example": "https://arsius.setmore.com/" },
              "supportContact": { "type": "string", "example": "info@arsius.com / +1-787-214-4502" }
            }
          }
        }
      },
      "RssArticle": {
        "type": "object",
        "properties": {
          "title": { "type": "string", "example": "Hacienda extiende plazo para radicación de planillas patronales" },
          "link": { "type": "string", "format": "uri", "example": "https://hacienda.pr.gov/noticias/..." },
          "pubDate": { "type": "string", "example": "2026-08-30T12:00:00.000Z" },
          "source": { "type": "string", "example": "Departamento de Hacienda de Puerto Rico" },
          "category": { "type": "string", "example": "Tributario" },
          "snippet": { "type": "string", "example": "El Departamento de Hacienda emitió la Carta Circular..." }
        }
      },
      "VideoItem": {
        "type": "object",
        "properties": {
          "id": { "type": "string", "example": "vid-1" },
          "title": { "type": "string", "example": "Cómo Registrar tu Negocio en SURI Paso a Paso" },
          "description": { "type": "string", "example": "Guía completa para comerciantes en Puerto Rico." },
          "url": { "type": "string", "example": "https://www.youtube.com/watch?v=..." },
          "category": { "type": "string", "example": "SURI & Hacienda" },
          "duration": { "type": "string", "example": "12:45" },
          "thumbnail": { "type": "string", "example": "/imagenes/asesoria.jpg" }
        }
      },
      "DocumentFolder": {
        "type": "object",
        "properties": {
          "name": { "type": "string", "example": "Empresas_XYZ_2026" },
          "filesCount": { "type": "integer", "example": 5 },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": { "type": "string", "example": "W2PR_2025.pdf" },
                "size": { "type": "integer", "example": 1048576 },
                "modified": { "type": "string", "format": "date-time" }
              }
            }
          }
        }
      },
      "ImageItem": {
        "type": "object",
        "properties": {
          "filename": { "type": "string", "example": "ArisusLogo.jpg" },
          "url": { "type": "string", "example": "/imagenes/ArisusLogo.jpg" },
          "size": { "type": "integer", "example": 315985 }
        }
      }
    }
  }
}
