<?xml version="1.0" encoding="UTF-8"?>
<!-- DraftPilot for Outlook add-in, for every step of a contract. Add-in-only
     XML manifest: Message Read "DraftPilot" button that opens the DraftPilot
     task pane on the open email. Read item permission only: no Graph, no other
     mailbox items. -->
<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" xsi:type="MailApp">

  <Id>f14e17a0-2a33-4d19-b3d1-f29eb0038005</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>DraftPilot</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="DraftPilot for Outlook" />
  <Description DefaultValue="Work on your contracts from Outlook, from the first email to the signed agreement: send work to Legal, follow drafting and negotiation, and see where each contract stands."/>
  <IconUrl DefaultValue="https://app.draftpilot.ai/draftpilot-64.png" />
  <HighResolutionIconUrl DefaultValue="https://app.draftpilot.ai/draftpilot-128.png"/>
  <SupportUrl DefaultValue="https://draftpilot.ai/support" />

  <AppDomains>
    <AppDomain>https://app.draftpilot.ai</AppDomain>
    <AppDomain>https://draftpilot.ai</AppDomain>
    <AppDomain>https://www.draftpilot.ai</AppDomain>
    <AppDomain>https://accounts.google.com</AppDomain>
    <AppDomain>https://accounts.google.com.sg</AppDomain>
    <AppDomain>https://www.googleapis.com</AppDomain>
    <AppDomain>https://login.microsoftonline.com</AppDomain>
    <AppDomain>https://login.windows.net</AppDomain>
    <AppDomain>https://login.microsoft.com</AppDomain>
    <AppDomain>https://sts.windows.net</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.8" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://app.draftpilot.ai/outlook-intake" />
        <RequestedHeight>450</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="DraftPilotIntakeGroup">
                <Label resid="Group.Label" />
                <Control xsi:type="Button" id="StartIntakeButton">
                  <Label resid="StartIntake.Label" />
                  <Supertip>
                    <Title resid="StartIntake.Label" />
                    <Description resid="StartIntake.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://app.draftpilot.ai/draftpilot-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://app.draftpilot.ai/draftpilot-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://app.draftpilot.ai/draftpilot-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://app.draftpilot.ai/outlook-commands.html" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://app.draftpilot.ai/outlook-intake" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Group.Label" DefaultValue="DraftPilot" />
        <bt:String id="StartIntake.Label" DefaultValue="DraftPilot" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="StartIntake.Tooltip" DefaultValue="Use DraftPilot on this email at any step of a contract, or see where your contracts stand." />
      </bt:LongStrings>
    </Resources>

    <!-- Clients with VersionOverrides 1.1 use this copy: it lets the user pin the
         pane so it follows the selected email (ItemChanged). -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <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="DraftPilotIntakeGroup">
                  <Label resid="Group.Label" />
                  <Control xsi:type="Button" id="StartIntakeButton">
                    <Label resid="StartIntake.Label" />
                    <Supertip>
                      <Title resid="StartIntake.Label" />
                      <Description resid="StartIntake.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" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://app.draftpilot.ai/draftpilot-16.png" />
          <bt:Image id="Icon.32x32" DefaultValue="https://app.draftpilot.ai/draftpilot-32.png" />
          <bt:Image id="Icon.80x80" DefaultValue="https://app.draftpilot.ai/draftpilot-80.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://app.draftpilot.ai/outlook-commands.html" />
          <bt:Url id="Taskpane.Url" DefaultValue="https://app.draftpilot.ai/outlook-intake" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Group.Label" DefaultValue="DraftPilot" />
          <bt:String id="StartIntake.Label" DefaultValue="DraftPilot" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="StartIntake.Tooltip" DefaultValue="Use DraftPilot on this email at any step of a contract, or see where your contracts stand." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
