{
  "key": "com.addonexpertscenter.confluence_chatgpt",
  "baseUrl": "https://confluence-chatgpt.addonexpertscenter.net",
  "name": "ChatGPT Connector for Confluence",
  "vendor": {
    "name": "Addon Experts Center",
    "url": "https://addonexpertscenter.com/"
  },
  "enableLicensing": false,
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "modules": {
    "staticContentMacros": [
      {
        "key": "chat-gpt-macro",
        "renderingMethod": "post",
        "hidden": true,
        "url": "/render-static-gpt?macroId={macro.id}&body={macro.body}&type={output.type}&pageId={page.id}&pageVersion={page.version}&pageTitle={page.title}",
        "name": {
          "value": "ChatGPT Connector for Confluence"
        },
        "description": {
          "value": "Generates Chat GPT response for the current page using prompt."
        },
        "outputType": "block",
        "bodyType": "plain-text",
        "parameters": [
          {
            "identifier": "prompt",
            "name": {
              "value": "prompt"
            },
            "type": "string",
            "required": true
          },
          {
            "identifier": "version",
            "name": {
              "value": "version"
            },
            "type": "string",
            "hidden": true
          }
        ],
        "editor": {
          "url": "/gpt-macro-editor",
          "height": "500px",
          "editTitle": {
            "value": "Edit \"ChatGPT Connector Macro\""
          },
          "insertTitle": {
            "value": "Insert \"ChatGPT Connector Macro\""
          }
        }
      }
    ],
    "adminPages": [
      {
        "url": "/gpt-macro-config",
        "name": {
          "value": "ChatGPT Connector Configuration"
        },
        "key": "gpt-macro-admin-page"
      }
    ],
    "configurePage": {
      "url": "/gpt-macro-config",
      "name": {
        "value": "ChatGPT Connector Configuration"
      },
      "key": "gpt-macro-config-page"
    },
    "webItems": [
      {
        "location": "system.content.button",
        "weight": 200,
        "url": "/gpt-connector-item?pageId={page.id}&pageVersion={page.version}",
        "name": {
          "value": "ChatGPT"
        },
        "tooltip": {
          "value": "ChatGPT"
        },
        "key": "chat-gpt-connector-item",
        "context": "addon",
        "target": {
          "type": "inlinedialog",
          "options": {
            "width": "500px",
            "height": "500px"
          }
        },
        "icon": {
          "width": 20,
          "height": 20,
          "url": "/images/icon.png"
        }
      },
      {
        "location": "system.editor.precursor.buttons",
        "weight": 200,
        "styleClasses": [
          "aui-button",
          "aui-button-subtle"
        ],
        "url": "/gpt-connector-item?pageId={page.id}&pageVersion={page.version}&isEditing=true",
        "name": {
          "value": "ChatGPT"
        },
        "tooltip": {
          "value": "ChatGPT"
        },
        "key": "chat-gpt-connector-item-edit",
        "context": "addon",
        "target": {
          "type": "inlinedialog",
          "options": {
            "width": "500px",
            "height": "500px"
          }
        },
        "icon": {
          "width": 20,
          "height": 20,
          "url": "/images/icon.png"
        }
      }
    ]
  },
  "scopes": [
    "READ",
    "WRITE",
    "ACT_AS_USER"
  ]
}
