{
    "id": "com.prakharbhaarat.agencysync",
    "name": "AgencySync — Agency License CRM",
    "short_name": "AgencySync",
    "description": "Agency License CRM — manage leads, clients, policies, renewals and commissions. Powered by Prakhar Bhaarat Technology Services.",
    "start_url": "/dashboard",
    "scope": "/",
    "lang": "en",
    "dir": "ltr",
    "display": "standalone",
    "display_override": [
        "window-controls-overlay",
        "standalone",
        "minimal-ui"
    ],
    "background_color": "#0A1F44",
    "theme_color": "#0A1F44",
    "orientation": "portrait-primary",
    "categories": ["business", "productivity", "finance"],

    "icons": [
        {
            "src": "/public/img/maskable_icon_x48.png",
            "sizes": "48x48",
            "type": "image/png",
            "purpose": "any"
        },
        {
            "src": "/public/img/maskable_icon_x72.png",
            "sizes": "72x72",
            "type": "image/png",
            "purpose": "any"
        },
        {
            "src": "/public/img/maskable_icon_x96.png",
            "sizes": "96x96",
            "type": "image/png",
            "purpose": "any"
        },
        {
            "src": "/public/img/maskable_icon_x128.png",
            "sizes": "128x128",
            "type": "image/png",
            "purpose": "any"
        },
        {
            "src": "/public/img/icon-192.png",
            "sizes": "192x192",
            "type": "image/png",
            "purpose": "any"
        },
        {
            "src": "/public/img/icon-512.png",
            "sizes": "512x512",
            "type": "image/png",
            "purpose": "any"
        },
        {
            "src": "/public/img/maskable_icon_x48.png",
            "sizes": "48x48",
            "type": "image/png",
            "purpose": "maskable"
        },
        {
            "src": "/public/img/maskable_icon_x72.png",
            "sizes": "72x72",
            "type": "image/png",
            "purpose": "maskable"
        },
        {
            "src": "/public/img/maskable_icon_x96.png",
            "sizes": "96x96",
            "type": "image/png",
            "purpose": "maskable"
        },
        {
            "src": "/public/img/maskable_icon_x128.png",
            "sizes": "128x128",
            "type": "image/png",
            "purpose": "maskable"
        },
        {
            "src": "/public/img/maskable_icon_x192.png",
            "sizes": "192x192",
            "type": "image/png",
            "purpose": "maskable"
        },
        {
            "src": "/public/img/maskable_icon_x384.png",
            "sizes": "384x384",
            "type": "image/png",
            "purpose": "maskable"
        },
        {
            "src": "/public/img/maskable_icon_x512.png",
            "sizes": "512x512",
            "type": "image/png",
            "purpose": "maskable"
        }
    ],

    "screenshots": [
        {
            "src": "/public/img/screenshots/desktop-dashboard.png",
            "sizes": "1920x1080",
            "type": "image/png",
            "form_factor": "wide",
            "label": "AgencySync Dashboard — overview of leads, policies and renewals"
        },
        {
            "src": "/public/img/screenshots/desktop-kanban.png",
            "sizes": "1920x1080",
            "type": "image/png",
            "form_factor": "wide",
            "label": "Kanban board — drag-and-drop pipeline management"
        },
        {
            "src": "/public/img/screenshots/mobile-dashboard.png",
            "sizes": "1080x1920",
            "type": "image/png",
            "form_factor": "narrow",
            "label": "Mobile dashboard — key metrics at a glance"
        },
        {
            "src": "/public/img/screenshots/mobile-chat.png",
            "sizes": "1080x1920",
            "type": "image/png",
            "form_factor": "narrow",
            "label": "In-app chat — real-time team communication"
        }
    ],

    "shortcuts": [
        {
            "name": "Dashboard",
            "short_name": "Dashboard",
            "url": "/dashboard",
            "icons": [{ "src": "/public/img/icon-192.png", "sizes": "192x192", "type": "image/png" }]
        },
        {
            "name": "Chat",
            "short_name": "Chat",
            "url": "/chat",
            "icons": [{ "src": "/public/img/icon-192.png", "sizes": "192x192", "type": "image/png" }]
        },
        {
            "name": "Inbox",
            "short_name": "Inbox",
            "url": "/email",
            "icons": [{ "src": "/public/img/icon-192.png", "sizes": "192x192", "type": "image/png" }]
        }
    ],

    "prefer_related_applications": true,
    "related_applications": [
        {
            "platform": "play",
            "url": "https://play.google.com/store/apps/details?id=com.prakharbhaarat.agencysync.com",
            "id": "com.prakharbhaarat.agencysync.com"
        }
    ],

    "iarc_rating_id": "",

    "scope_extensions": [
        { "origin": "https://crm.agencysync.in" },
        { "origin": "https://agencysync.in" }
    ],

    "launch_handler": {
        "client_mode": ["focus-existing", "auto"]
    },

    "share_target": {
        "action": "/share-target",
        "method": "POST",
        "enctype": "multipart/form-data",
        "params": {
            "title": "title",
            "text": "text",
            "url": "url",
            "files": [
                {
                    "name": "media",
                    "accept": ["image/*", "application/pdf", ".csv", ".xlsx"]
                }
            ]
        }
    },

    "file_handlers": [
        {
            "action": "/open-file",
            "accept": {
                "text/csv": [".csv"],
                "application/pdf": [".pdf"],
                "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"]
            }
        }
    ],

    "handle_links": "preferred",

    "edge_side_panel": {
        "preferred_width": 480
    },

    "widgets": [
        {
            "name": "AgencySync Quick Stats",
            "description": "View your lead and policy stats at a glance",
            "tag": "agencysync-widget",
            "ms_ac_template": "/widgets/stats-widget.json",
            "data": "/api/widgets/stats",
            "type": "application/json",
            "screenshots": [
                {
                    "src": "/public/img/screenshots/widget-stats.png",
                    "sizes": "600x400",
                    "label": "Quick stats widget"
                }
            ],
            "icons": [
                {
                    "src": "/public/img/icon-192.png",
                    "sizes": "192x192"
                }
            ],
            "backgrounds": [
                {
                    "src": "/public/img/widget-bg.png",
                    "sizes": "600x400"
                }
            ]
        }
    ],

    "protocol_handlers": [
        {
            "protocol": "web+agencysync",
            "url": "/protocol?uri=%s"
        }
    ]
}
