<?xml version="1.0" encoding="UTF-8"?>
<!--
  Excel task pane add-in for the Developer API.

  Every URL below must use the same domain that serves /api/v1: the task pane
  calls the API on its own origin. If the site moves to another domain, update
  SourceLocation, AppDomain, IconUrl, SupportUrl and the bt:Url/bt:Image values,
  and bump <Version> so Office reloads the manifest.
-->
<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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
           xsi:type="TaskPaneApp">
  <Id>7e348c9e-5f2c-41d0-b579-de7ba04f0eb2</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Developer API</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="AI Assistant for Excel"/>
  <Description DefaultValue="Ask about selected cells, generate formulas and fill columns with your Developer API key."/>
  <IconUrl DefaultValue="https://auvryn.online/images/icon-192.png"/>
  <HighResolutionIconUrl DefaultValue="https://auvryn.online/images/icon-192.png"/>
  <SupportUrl DefaultValue="https://auvryn.online/developers.html#excel"/>
  <AppDomains>
    <AppDomain>https://auvryn.online</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Workbook"/>
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="ExcelApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://auvryn.online/excel/taskpane.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="DevApi.Group">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>
                <Control xsi:type="Button" id="DevApi.OpenPane">
                  <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">
                    <TaskpaneId>DevApiTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://auvryn.online/images/icon-192.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://auvryn.online/images/icon-192.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://auvryn.online/images/icon-192.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://auvryn.online/developers.html#excel"/>
        <bt:Url id="Commands.Url" DefaultValue="https://auvryn.online/excel/taskpane.html?commands=1"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://auvryn.online/excel/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="AI Assistant is ready"/>
        <bt:String id="Group.Label" DefaultValue="AI Assistant"/>
        <bt:String id="Button.Label" DefaultValue="Open assistant"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Select Open assistant on the Home tab, paste your API key and select some cells to start."/>
        <bt:String id="Button.Tooltip" DefaultValue="Ask about selected cells, generate formulas and fill columns from an instruction."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
