<?xml version="1.0" encoding="UTF-8"?>
<!--
  Auscultare for Outlook: a mail add-in (read mode, task pane) that checks the audio and video attachments of the open
  message with TrueSound 2.1, through the user's own Auscultare API key.

  Every URL below points at the DEV deployment (https://auscultare.dev.avancerfactory.com). For production, replace
  that host everywhere in this file (including AppDomain) with https://auscultare.io and give the add-in a new
  <Version>. The task pane calls the API on the same host it is served from.

  Sideload (never published to AppSource): Outlook on the web → Settings → Mail → Customize actions / "Get add-ins" →
  My add-ins → Add a custom add-in → From URL (https://auscultare.dev.avancerfactory.com/integrations/outlook/manifest.xml)
  or From file. See integrations-auscultare/README.md.
-->
<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>7f3c2a1e-5b8d-4c6e-9a2f-0d4e6b8c1a35</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>avancer.ai</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Auscultare"/>
  <Description DefaultValue="Check voice notes and recordings attached to an email for signs of AI generation or re-synthesis (TrueSound 2.1). Evidence for a closer look, not proof."/>
  <IconUrl DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/icons/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/icons/icon-128.png"/>
  <SupportUrl DefaultValue="https://auscultare.dev.avancerfactory.com/contact"/>
  <AppDomains>
    <AppDomain>https://auscultare.dev.avancerfactory.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <!-- getAttachmentContentAsync needs Mailbox 1.8. -->
      <Set Name="Mailbox" MinVersion="1.8"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/outlook/taskpane.html"/>
        <RequestedHeight>360</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
  </Rule>
  <DisableEntityHighlighting>true</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.8">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="auscultareReadGroup">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="auscultareOpenPane">
                  <Label resid="Button.Label"/>
                  <Supertip>
                    <Title resid="Button.Label"/>
                    <Description resid="Button.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/icons/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/icons/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/icons/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/outlook/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://auscultare.dev.avancerfactory.com/integrations/outlook/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="Auscultare"/>
        <bt:String id="Button.Label" DefaultValue="Check voice"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Button.Tooltip" DefaultValue="Check this message's audio and video attachments for signs of AI generation (TrueSound 2.1)."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
