<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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>a63c90cd-0c59-44bd-97d3-58effaf77ce7</Id>
  <Version>1.3.1.0</Version>
  <ProviderName>Blueberry</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Blueberry ChatGPT Tools"/>
  <Description DefaultValue="Blueberry ChatGPT Tools"/>
  <IconUrl DefaultValue="https://outlookgpt.bbconsult.co.uk/assets/Blueberry-Favicon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://outlookgpt.bbconsult.co.uk/assets/Blueberry-Favicon-128.png"/>
  <SupportUrl DefaultValue="https://www.chatgptoutlookaddin.com/support/"/>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlookgpt.bbconsult.co.uk/startPage.html"/>
        <RequestedHeight>420</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <!-- Note that this Rule element matches the Rule element inside the -->
  <!-- DetectedEntity element below. This is so that older clients will be able -->
  <!-- to activate the add-in on the same context. -->
  <Rule xsi:type="RuleCollection" Mode="And">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <!-- <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="RxMessage0" RegExValue="message" PropertyName="BodyAsPlaintext" IgnoreCase="true" /> -->
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <!-- VersionOverrides for the v1.1 schema -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">    
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>
              <!-- DetectedEntity -->
              <!-- 
              <ExtensionPoint xsi:type="DetectedEntity">
                <Label resid="ContextLabel" />
                <SourceLocation resid="Message.Url" />
                <Rule xsi:type="RuleCollection" Mode="And">
                  <Rule xsi:type="ItemIs" ItemType="Message" />
                  <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="RxMessage" RegExValue="message" PropertyName="BodyAsPlaintext" IgnoreCase="true" />
                </Rule>
              </ExtensionPoint>
              -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="TaskpaneButton.Label"/>
                    <Supertip>
                      <Title resid="TaskpaneButton.Label"/>
                      <Description resid="TaskpaneButton.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="StartPage.Url"/>
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeGroup">
                  <Label resid="GroupLabel"/>
                  <Control xsi:type="Button" id="msgComposeOpenPaneButton">
                    <Label resid="TaskpaneButton.Label"/>
                    <Supertip>
                      <Title resid="TaskpaneButton.Label"/>
                      <Description resid="TaskpaneButton.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="StartPage.Url"/>
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>        
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://outlookgpt.bbconsult.co.uk/assets/Blueberry-Favicon-16.png"/>
          <bt:Image id="Icon.32x32" DefaultValue="https://outlookgpt.bbconsult.co.uk/assets/Blueberry-Favicon-32.png"/>
          <bt:Image id="Icon.80x80" DefaultValue="https://outlookgpt.bbconsult.co.uk/assets/Blueberry-Favicon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/commands.html"/>
          <bt:Url id="Message.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/message.html"/>
          <bt:Url id="Settings.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/settings.html"/>
          <bt:Url id="ChatGPTSettings.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/chatGPTSettings.html"/>
          <bt:Url id="Configurations.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/configurationsPage.html"/>
          <bt:Url id="EditConfig.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/editConfigPage.html"/>
          <bt:Url id="StartPage.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/startPage.html"/>
          <bt:Url id="ApiKeyPage.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/apiKeyPage.html"/>
          <bt:Url id="IntroductionPage.Url" DefaultValue="https://outlookgpt.bbconsult.co.uk/introductionPage.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="Blueberry"/>
          <bt:String id="TaskpaneButton.Label" DefaultValue="ChatGPT Tools"/>
          <bt:String id="ContextLabel" DefaultValue="Word Detected"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Opens a pane displaying functionality."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
  </OfficeApp>
