# -*- coding: utf-8 -*-
# Copyright 2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)

{
    'name': 'Fusion API',
    'version': '19.0.1.0.0',
    'category': 'Productivity',
    'summary': 'Central API Key Management, Usage Tracking & Rate Limiting for Fusion Products',
    'description': """
Fusion API - Central API Hub for Fusion Products
==================================================

Centralized management of API keys, usage tracking, rate limiting,
and access control for all Fusion modules.

Features
--------

* **Provider Management** - Configure API keys for OpenAI, Anthropic, Google Maps, Twilio, and more
* **Auto-Detection** - Automatically discovers which Fusion modules use the API
* **Usage Tracking** - Per-module, per-feature, per-user, per-model granular usage logs
* **Rate Limiting** - Requests per minute/day limits per module and per user
* **Budget Control** - Monthly and daily cost caps per module and per user
* **Access Control** - Enable/disable API access per module, block individual users
* **Dashboard** - Real-time overview of API usage, costs, and health
* **Daily Reports** - Aggregated usage summaries for trend analysis

Supported Providers
-------------------

* OpenAI (GPT-4o, GPT-4o-mini, GPT-3.5-turbo)
* Anthropic (Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus)
* Google Maps (Geocoding, Places, Distance Matrix)
* Google OAuth (Calendar, Drive)
* Microsoft OAuth (Calendar, Graph)
* Twilio (SMS, Voice)
* Custom providers
    """,
    'author': 'Nexa Systems Inc.',
    'website': 'https://nexasystems.io',
    'license': 'OPL-1',
    'depends': [
        'base',
        'mail',
    ],
    'data': [
        'security/security.xml',
        'security/ir.model.access.csv',
        'data/api_provider_data.xml',
        'data/ir_cron_data.xml',
        'views/api_key_views.xml',
        'views/api_provider_views.xml',
        'views/api_consumer_views.xml',
        'views/api_access_views.xml',
        'views/api_user_limit_views.xml',
        'views/api_usage_views.xml',
        'views/api_dashboard_views.xml',
        'views/res_config_settings_views.xml',
        'views/menus.xml',
    ],
    'assets': {
        'web.assets_backend': [
            'fusion_api/static/src/scss/fusion_api.scss',
            'fusion_api/static/src/js/dashboard.js',
            'fusion_api/static/src/xml/dashboard.xml',
        ],
    },
    'images': ['static/description/icon.png'],
    'installable': True,
    'auto_install': False,
    'application': True,
}
