<?xml version="1.0" encoding="UTF-8"?>
<!-- thinkhard.si for Outlook: the add-in manifest. scripts/gen-office.mjs writes it to /office/manifest-outlook.xml
     with https://thinkhard.si and 1.0.0.0 filled in. The Id never changes: AppSource and every install know the add-in by
     it. One button when reading a message (reply with AI, check it) and one when writing (check the draft). -->
<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>688e1def-f649-4327-8432-157315b8c529</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>thinkhard.si</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="thinkhard.si for Outlook"/>
  <Description DefaultValue="Reply with ChatGPT or Claude without sending them names, emails, phone or account numbers, and check a draft before you send it. Runs in Outlook; none of your text is sent to thinkhard.si."/>
  <IconUrl DefaultValue="https://thinkhard.si/office/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://thinkhard.si/office/icon-128.png"/>
  <SupportUrl DefaultValue="https://thinkhard.si/outlook/"/>
  <AppDomains>
    <AppDomain>https://thinkhard.si</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://thinkhard.si/office/taskpane-outlook.html"/>
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://thinkhard.si/office/taskpane-outlook.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <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="thinkhard.ReadGroup">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="thinkhard.ReadPane">
                  <Label resid="Read.Label"/>
                  <Supertip>
                    <Title resid="Read.Label"/>
                    <Description resid="Read.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="thinkhard.ComposeGroup">
                <Label resid="Group.Label"/>
                <Control xsi:type="Button" id="thinkhard.ComposePane">
                  <Label resid="Compose.Label"/>
                  <Supertip>
                    <Title resid="Compose.Label"/>
                    <Description resid="Compose.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://thinkhard.si/office/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://thinkhard.si/office/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://thinkhard.si/office/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://thinkhard.si/office/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://thinkhard.si/office/taskpane-outlook.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="thinkhard.si"/>
        <bt:String id="Read.Label" DefaultValue="Reply with AI"/>
        <bt:String id="Compose.Label" DefaultValue="Check draft"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Read.Tooltip" DefaultValue="Draft a reply with ChatGPT or Claude without sending them names, email addresses, phone or account numbers."/>
        <bt:String id="Compose.Tooltip" DefaultValue="Check this draft before you send it: machine-made phrases, claims to verify, blanks and private details."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
