{
    "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.24/MicrosoftTeams.schema.json",
    "manifestVersion": "1.24",
    "version": "1.0.0",
    "id": "d5c98b38-160d-451d-aab4-e0b30707bae6",
    "localizationInfo": {
        "defaultLanguageTag": "en-us",
        "additionalLanguages": [
            {
                "languageTag": "nl",
                "file": "nl.json"
            }
        ]
    },
    "developer": {
        "name": "Contoso",
        "websiteUrl": "https://www.contoso.com",
        "privacyUrl": "https://www.contoso.com/privacy",
        "termsOfUseUrl": "https://www.contoso.com/servicesagreement"
    },
    "name": {
        "short": "Zip Attachments",
        "full": "Zip Attachments for Outlook"
    },
    "description": {
        "short": "Compress attachments into a single zip file.",
        "full": "Adds two compose buttons: zip every file already attached to the message, or pick files from your computer and attach them as one maximally compressed zip."
    },
    "icons": {
        "outline": "assets/outline.png",
        "color": "assets/color.png"
    },
    "accentColor": "#2B7CD3",
    "validDomains": [
        "apps.stsonstage.com"
    ],
    "authorization": {
        "permissions": {
            "resourceSpecific": [
                {
                    "name": "MailboxItem.ReadWrite.User",
                    "type": "Delegated"
                }
            ]
        }
    },
    "extensions": [
        {
            "requirements": {
                "capabilities": [
                    {
                        "name": "Mailbox",
                        "minVersion": "1.8"
                    }
                ],
                "scopes": [
                    "mail"
                ]
            },
            "runtimes": [
                {
                    "id": "CommandsRuntime",
                    "type": "general",
                    "code": {
                        "page": "https://apps.stsonstage.com/office/zip/commands.html"
                    },
                    "lifetime": "short",
                    "actions": [
                        {
                            "id": "zipAttachments",
                            "type": "executeFunction"
                        },
                        {
                            "id": "attachAsZip",
                            "type": "executeFunction"
                        }
                    ]
                }
            ],
            "ribbons": [
                {
                    "contexts": [
                        "mailCompose"
                    ],
                    "tabs": [
                        {
                            "builtInTabId": "TabDefault",
                            "groups": [
                                {
                                    "id": "zipGroup",
                                    "label": "Zip",
                                    "icons": [
                                        {
                                            "size": 16,
                                            "url": "https://apps.stsonstage.com/office/zip/assets/zip-16.png"
                                        },
                                        {
                                            "size": 32,
                                            "url": "https://apps.stsonstage.com/office/zip/assets/zip-32.png"
                                        },
                                        {
                                            "size": 80,
                                            "url": "https://apps.stsonstage.com/office/zip/assets/zip-80.png"
                                        }
                                    ],
                                    "controls": [
                                        {
                                            "id": "zipAttachmentsButton",
                                            "type": "button",
                                            "label": "Zip Attachments",
                                            "icons": [
                                                {
                                                    "size": 16,
                                                    "url": "https://apps.stsonstage.com/office/zip/assets/zip-16.png"
                                                },
                                                {
                                                    "size": 32,
                                                    "url": "https://apps.stsonstage.com/office/zip/assets/zip-32.png"
                                                },
                                                {
                                                    "size": 80,
                                                    "url": "https://apps.stsonstage.com/office/zip/assets/zip-80.png"
                                                }
                                            ],
                                            "supertip": {
                                                "title": "Zip Attachments",
                                                "description": "Replace every file attached to this message with a single, maximally compressed zip."
                                            },
                                            "actionId": "zipAttachments"
                                        },
                                        {
                                            "id": "attachAsZipButton",
                                            "type": "button",
                                            "label": "Attach as ZIP",
                                            "icons": [
                                                {
                                                    "size": 16,
                                                    "url": "https://apps.stsonstage.com/office/zip/assets/zip-16.png"
                                                },
                                                {
                                                    "size": 32,
                                                    "url": "https://apps.stsonstage.com/office/zip/assets/zip-32.png"
                                                },
                                                {
                                                    "size": 80,
                                                    "url": "https://apps.stsonstage.com/office/zip/assets/zip-80.png"
                                                }
                                            ],
                                            "supertip": {
                                                "title": "Attach as ZIP",
                                                "description": "Pick one or more files and attach them as a single, maximally compressed zip."
                                            },
                                            "actionId": "attachAsZip"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}
