<?xml version="1.0" encoding="UTF-8"?>
<!--
  Republic — Report Phishing (Outlook add-in, XML "add-in only" manifest).

  ONE manifest for ALL Outlook: classic Windows (2016/2019/2021/2024 + Microsoft
  365), new Outlook for Windows, Outlook on the web, and Outlook on Mac.

  UX: a "Report Phishing" button on the message-read ribbon opens a small task
  pane that auto-reports the email and shows a ✓. A task pane (not a UI-less
  function command) is used because it is served from our own domain — so its
  request to the API is same-origin (no CORS/preflight) and Office.onReady
  reliably provides the message context, which the UI-less runtime did not do
  reliably in Outlook on the web.

  For a preprod API, copy this file, swap every republic-v2-api.vercel.app URL for
  the preprod host, and use a different <Id>.

  This file is also served (with host-injected URLs) at
  https://republic-v2-api.vercel.app/api/interceptions/extension/manifest.xml
-->
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
  xsi:type="MailApp">
  <Id>ee7dee35-d48b-4221-904c-115af0017096</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Recyber</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Report Phishing"/>
  <Description DefaultValue="Report a suspicious email to your security team with one click."/>
  <IconUrl DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/icon-128.png"/>
  <SupportUrl DefaultValue="https://www.recyber.com"/>
  <AppDomains>
    <AppDomain>https://republic-v2-api.vercel.app</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/taskpane.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="republicReportGroup">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="republicReportButton">
                    <Label resid="reportButtonLabel"/>
                    <Supertip>
                      <Title resid="reportButtonLabel"/>
                      <Description resid="reportButtonDesc"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="icon16"/>
                      <bt:Image size="32" resid="icon32"/>
                      <bt:Image size="80" resid="icon80"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="taskpaneUrl"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="icon16" DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/icon-16.png"/>
          <bt:Image id="icon32" DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/icon-32.png"/>
          <bt:Image id="icon80" DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="taskpaneUrl" DefaultValue="https://republic-v2-api.vercel.app/api/interceptions/extension/taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="Security"/>
          <bt:String id="reportButtonLabel" DefaultValue="Report Phishing"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="reportButtonDesc" DefaultValue="Report this email to your security team. If it's a Republic phishing test, this counts as a catch."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
