{
  "key": "ch.mibex.confluence.include",
  "baseUrl": "https://include-bitbucket-for-confluence.mibexsoftware.com",
  "name": "Include Bitbucket for Confluence",
  "description": "Confluence macros to include files and other content like pull requests, issues, commits, tags and branches from Bitbucket into Confluence pages",
  "enableLicensing": true,
  "apiMigrations": {
    "gdpr": true,
    "context-qsh": true,
    "signed-install": true
  },
  "vendor": {
    "name": "Mibex Software GmbH",
    "url": "https://www.mibexsoftware.com"
  },
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "scopes": ["READ"],
  "modules": {
    "postInstallPage":
    {
      "url": "/v1/postInstall",
      "icon": {
        "width": 80,
        "height": 80,
        "url": "/img/macro-icon-bitbucket.png"
      },
      "key": "post-install",
      "name": {
        "value": "Include Bitbucket"
      }
    },
    "configurePage":
    {
      "url": "/v1/addonConfig",
      "key": "addOnConfig",
      "icon": {
        "width": 80,
        "height": 80,
        "url": "/img/macro-icon-bitbucket.png"
      },
      "location": "system.admin/configuration",
      "name": {
        "value": "Include Bitbucket"
      }
    },
    "adminPages": [
      {
        "url": "/v1/addonConfig",
        "key": "addon-admin-config",
        "icon": {
          "width": 80,
          "height": 80,
          "url": "/img/macro-icon-bitbucket.png"
        },
        "name": {
          "value": "Include Bitbucket"
        }
      }
    ],
    "generalPages": [
      {
        "url": "/v1/confluence-connect-page?ac.state={ac.state}&ac.code={ac.code}",
        "key": "oauth-connect-page",
        "location": "none",
        "name": {
          "value": "Include Bitbucket OAuth Connect Page"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      }
    ],
    "dynamicContentMacros": [
      {
        "url": "/v1/getfile?url={url}&spaceKey={space.key}&contentId={content.id}&syntaxHighlighting={syntaxHighlighting}&title={title}&showLineNumbers={showLineNumbers}&hideHeader={hideHeader}&collapsible={collapsible}&mode={output.type}",
        "description": {
          "value": "Include a Bitbucket file in Confluence. Hint: You can paste a Bitbucket file URL into a Confluence page editor to also trigger this macro."
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-file"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getfile?url={url}&spaceKey={space.key}&contentId={content.id}&syntaxHighlighting={syntaxHighlighting}&title={title}&showLineNumbers={showLineNumbers}&hideHeader=true&collapsible=false&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-file-macro"
        ],
        "name": {
          "value": "Bitbucket File"
        },
        "key": "bitbucket-file-macro",
        "parameters": [
          {
            "identifier": "url",
            "name": {
              "value": "URL to a file in a Bitbucket repository"
            },
            "type": "string",
            "required": true,
            "multiple": false,
            "description": {
              "value": "e.g. https://bitbucket.org/atlassian/simple-xdm/src/master/README.md"
            }
          },
          {
            "identifier": "syntaxHighlighting",
            "name": {
              "value": "Syntax highlighting"
            },
            "type": "enum",
            "required": false,
            "multiple": false,
            "defaultValue": "Auto Detect",
            "values": ["Auto Detect",
              "Plain Text",
              ".properties",
              "6502 Assembly",
              "ABAP",
              "ABNF",
              "Apache Configuration",
              "AsciiDoc",
              "AsciiDoc highlighted",
              "BASIC",
              "BNF",
              "C",
              "C-like",
              "CIL",
              "Clojure",
              "CMake",
              "CoffeeScript",
              "Cpp",
              "CSharp",
              "Css",
              "CSV",
              "D",
              "DAX",
              "Docker",
              "EBNF",
              "EJS",
              "Embedded Lua templating",
              "ERB",
              "F#",
              "FreeMarker Template Language",
              "Gherkin",
              "Go",
              "GraphQL",
              "Groovy",
              "Haskell",
              "HCL",
              "HTML",
              "Java",
              "Java stack trace",
              "JavaDoc",
              "JavaScript",
              "JSON",
              "Kotlin",
              "LaTeX",
              "LLVM IR",
              "Markdown",
              "Markdown highlighted",
              "MathML",
              "MATLAB",
              "Mermaid",
              "nginx",
              "Object Pascal",
              "Objective-C",
              "OCaml",
              "OpenCL",
              "PHP",
              "PL/SQL",
              "PlantUML",
              "PowerShell",
              "ProtoBuf",
              "Python",
              "Q",
              "Racket",
              "React JSX",
              "React TSX",
              "reST (reStructuredText)",
              "RSS",
              "Ruby",
              "Rust",
              "Sass",
              "Scala",
              "Shell session",
              "Soy (Closure Template)",
              "Sql",
              "SSML",
              "SVG",
              "Swift",
              "T4 templating",
              "T4 Text Templates (C#)",
              "T4 Text Templates (VB)",
              "TeX",
              "TypeScript",
              "Vb",
              "VHDL",
              "vim",
              "Web App Manifest",
              "WebAssembly",
              "Wiki markup",
              "Xml",
              "XQuery",
              "Yaml"
            ],
            "hidden": false
          },
          {
            "identifier": "title",
            "name": {
              "value": "Title"
            },
            "type": "string",
            "required": false,
            "multiple": false
          },
          {
            "identifier": "showLineNumbers",
            "name": {
              "value": "Show line numbers"
            },
            "description": {
              "value": "Line numbers for rendered files like Markdown and AsciiDoc not shown."
            },
            "type": "boolean"
          },
          {
            "identifier": "hideHeader",
            "name": {
              "value": "Hide file header"
            },
            "type": "boolean"
          },
          {
            "identifier": "collapsible",
            "name": {
              "value": "Collapsible"
            },
            "type": "boolean"
          }
        ],
        "autoconvert": {
          "urlParameter": "url",
          "matchers": [
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/raw/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            },
            {
              "pattern": "https://{}/projects/{}/repos/{}/browse/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}.{}"
            }
          ]
        }
      },
      {
        "url": "/v1/getdirectory?url={url}&spaceKey={space.key}&contentId={content.id}&syntaxHighlighting={syntaxHighlighting}&title={title}&showLineNumbers={showLineNumbers}&hideHeader={hideHeader}&collapsible={collapsible}&mode={output.type}",
        "description": {
          "value": "Include files from a Bitbucket directory in Confluence. Hint: You can paste a Bitbucket directory URL into a Confluence page editor to also trigger this macro."
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-directory"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getdirectory?url={url}&spaceKey={space.key}&contentId={content.id}&syntaxHighlighting={syntaxHighlighting}&title={title}&showLineNumbers={showLineNumbers}&hideHeader=true&collapsible=false&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-directory-macro"
        ],
        "name": {
          "value": "Bitbucket Directory"
        },
        "key": "bitbucket-directory-macro",
        "parameters": [
          {
            "identifier": "url",
            "name": {
              "value": "URL to a directory in a Bitbucket repository"
            },
            "type": "string",
            "required": true,
            "multiple": false,
            "description": {
              "value": "e.g. https://bitbucket.org/atlassian/simple-xdm/src/master/example/product/"
            }
          },
          {
            "identifier": "syntaxHighlighting",
            "name": {
              "value": "Syntax highlighting"
            },
            "type": "enum",
            "required": false,
            "multiple": false,
            "defaultValue": "Auto Detect",
            "values": ["Auto Detect",
              "Plain Text",
              ".properties",
              "6502 Assembly",
              "ABAP",
              "ABNF",
              "Apache Configuration",
              "AsciiDoc",
              "AsciiDoc highlighted",
              "BASIC",
              "BNF",
              "C",
              "C-like",
              "CIL",
              "Clojure",
              "CMake",
              "CoffeeScript",
              "Cpp",
              "CSharp",
              "Css",
              "CSV",
              "D",
              "DAX",
              "Docker",
              "EBNF",
              "EJS",
              "Embedded Lua templating",
              "ERB",
              "F#",
              "FreeMarker Template Language",
              "Gherkin",
              "Go",
              "GraphQL",
              "Groovy",
              "Haskell",
              "HCL",
              "HTML",
              "Java",
              "Java stack trace",
              "JavaDoc",
              "JavaScript",
              "JSON",
              "Kotlin",
              "LaTeX",
              "LLVM IR",
              "Markdown",
              "Markdown highlighted",
              "MathML",
              "MATLAB",
              "Mermaid",
              "nginx",
              "Object Pascal",
              "Objective-C",
              "OCaml",
              "OpenCL",
              "PHP",
              "PL/SQL",
              "PlantUML",
              "PowerShell",
              "ProtoBuf",
              "Python",
              "Q",
              "Racket",
              "React JSX",
              "React TSX",
              "reST (reStructuredText)",
              "RSS",
              "Ruby",
              "Rust",
              "Sass",
              "Scala",
              "Shell session",
              "Soy (Closure Template)",
              "Sql",
              "SSML",
              "SVG",
              "Swift",
              "T4 templating",
              "T4 Text Templates (C#)",
              "T4 Text Templates (VB)",
              "TeX",
              "TypeScript",
              "Vb",
              "VHDL",
              "vim",
              "Web App Manifest",
              "WebAssembly",
              "Wiki markup",
              "Xml",
              "XQuery",
              "Yaml"
            ],
            "hidden": false
          },
          {
            "identifier": "showLineNumbers",
            "name": {
              "value": "Show line numbers"
            },
            "description": {
              "value": "Line numbers for rendered files like Markdown and AsciiDoc not shown."
            },
            "type": "boolean"
          },
          {
            "identifier": "hideHeader",
            "name": {
              "value": "Hide file header"
            },
            "type": "boolean"
          },
          {
            "identifier": "collapsible",
            "name": {
              "value": "Collapsible"
            },
            "type": "boolean"
          }
        ],
        "autoconvert": {
          "urlParameter": "url",
          "matchers": [
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            },
            {
              "pattern": "https://bitbucket.org/{}/{}/src/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/{}/"
            }
          ]
        }
      },
      {
        "url": "/v1/getPullRequests?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}",
        "description": {
          "value": "Include a list of pull requests from Bitbucket Cloud"
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-pull-requests"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getPullRequests?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-pull-request"
        ],
        "name": {
          "value": "Bitbucket Pull Requests"
        },
        "key": "bitbucket-pull-request",
        "parameters": [
          {
            "identifier": "ownerName",
            "name": {
              "value": "Workspace name"
            },
            "type": "string",
            "required": false,
            "hidden": true,
            "multiple": false
          },
          {
            "identifier": "repository",
            "name": {
              "value": "Repo Path"
            },
            "description": {
              "value": "The path to the Bitbucket repo, like owner/repo or https://bitbucket.org/owner/repo."
            },
            "type": "string",
            "required": true,
            "multiple": false
          },
          {
            "identifier": "query",
            "name": {
              "value": "Search query"
            },
            "description": {
              "value": "This field allows you to search and filter the pull requests (e.g. state = \"OPEN\"). It provides no syntax checking. By default only open pull requests are shown. See our Documentation link above for more information"
            },
            "type": "string",
            "required": false,
            "multiple": true
          }
        ]
      },
      {
        "url": "/v1/getCommits?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}",
        "description": {
          "value": "Include a list of commits from Bitbucket Cloud"
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-commits"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getCommits?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-commits"
        ],
        "name": {
          "value": "Bitbucket Commits"
        },
        "key": "bitbucket-commits",
        "parameters": [
          {
            "identifier": "ownerName",
            "name": {
              "value": "Workspace name"
            },
            "type": "string",
            "required": false,
            "hidden": true,
            "multiple": false
          },
          {
            "identifier": "repository",
            "name": {
              "value": "Repo Path"
            },
            "description": {
              "value": "The path to the Bitbucket repo, like owner/repo or https://bitbucket.org/owner/repo."
            },
            "type": "string",
            "required": true,
            "multiple": false
          },
          {
            "identifier": "query",
            "name": {
              "value": "Search query"
            },
            "description": {
              "value": "This field allows you to search and filter the commits by file or branch (e.g. exclude=master). It provides no syntax checking. See our Documentation link above for more information."
            },
            "type": "string",
            "required": false,
            "multiple": true
          }
        ]
      },
      {
        "url": "/v1/getBranches?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}",
        "description": {
          "value": "Include a list of branches from Bitbucket Cloud"
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-branches"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getBranches?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-branches"
        ],
        "name": {
          "value": "Bitbucket Branches"
        },
        "key": "bitbucket-branches",
        "parameters": [
          {
            "identifier": "ownerName",
            "name": {
              "value": "Workspace name"
            },
            "type": "string",
            "required": false,
            "hidden": true,
            "multiple": false
          },
          {
            "identifier": "repository",
            "name": {
              "value": "Repo Path"
            },
            "description": {
              "value": "The path to the Bitbucket repo, like owner/repo or https://bitbucket.org/owner/repo."
            },
            "type": "string",
            "required": true,
            "multiple": false
          },
          {
            "identifier": "query",
            "name": {
              "value": "Search query"
            },
            "description": {
              "value": "This field allows you to search and filter the branches by name (e.g. name=\"master\"). It provides no syntax checking. See our Documentation link above for more information."
            },
            "type": "string",
            "required": false,
            "multiple": true
          }
        ]
      },
      {
        "url": "/v1/getTags?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}",
        "description": {
          "value": "Include a list of tags from Bitbucket Cloud"
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-tags"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getTags?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-tags"
        ],
        "name": {
          "value": "Bitbucket Tags"
        },
        "key": "bitbucket-tags",
        "parameters": [
          {
            "identifier": "ownerName",
            "name": {
              "value": "Workspace name"
            },
            "type": "string",
            "required": false,
            "hidden": true,
            "multiple": false
          },
          {
            "identifier": "repository",
            "name": {
              "value": "Repo Path"
            },
            "description": {
              "value": "The path to the Bitbucket repo, like owner/repo or https://bitbucket.org/owner/repo."
            },
            "type": "string",
            "required": true,
            "multiple": false
          },
          {
            "identifier": "query",
            "name": {
              "value": "Search query"
            },
            "description": {
              "value": "This field allows you to search and filter the tags by name (e.g. name ~ \"2021\"). It provides no syntax checking. See our Documentation link above for more information."
            },
            "type": "string",
            "required": false,
            "multiple": true
          }
        ]
      },
      {
        "url": "/v1/getIssues?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}",
        "description": {
          "value": "Include a list of issues from Bitbucket Cloud"
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-issues"
        },
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "outputType": "block",
        "bodyType": "none",
        "renderModes": {
          "default": {
            "url": "/v1/getIssues?ownerName={ownerName}&repository={repository}&spaceKey={space.key}&contentId={content.id}&query={query}&mode={output.type}"
          }
        },
        "aliases": [
          "include-bitbucket-issues"
        ],
        "name": {
          "value": "Bitbucket Issues"
        },
        "key": "bitbucket-issues",
        "parameters": [
          {
            "identifier": "ownerName",
            "name": {
              "value": "Workspace name"
            },
            "type": "string",
            "required": false,
            "hidden": true,
            "multiple": false
          },
          {
            "identifier": "repository",
            "name": {
              "value": "Repo Path"
            },
            "description": {
              "value": "The path to the Bitbucket repo, like owner/repo or https://bitbucket.org/owner/repo."
            },
            "type": "string",
            "required": true,
            "multiple": false
          },
          {
            "identifier": "query",
            "name": {
              "value": "Search query"
            },
            "description": {
              "value": "This field allows you to search and filter the issues (e.g. state=\"new\"). It provides no syntax checking. See our Documentation link above for more information"
            },
            "type": "string",
            "required": false,
            "multiple": true
          }
        ]
      },
      {
        "name": {
          "value": "Bitbucket File"
        },
        "hidden": true,
        "key": "stashincludebyfilepath",
        "description": {
          "value": "Include a file from Bitbucket (Migrated)"
        },
        "url": "/v1/getMigratedFile?repoSlug={repoSlug}&branchId={branchId}&projectKey={projectKey}&filepath={filepath}&progLang={progLang}&applicationLink={applicationLink}&showLineNumbers={showLineNumbers}&hideHeader={hideHeader}&collapsible={collapsible}&theme={theme}&spaceKey={space.key}&contentId={content.id}&syntaxHighlighting={syntaxHighlighting}&title={title}&mode={output.type}",
        "icon": {
          "url": "/img/macro-icon-bitbucket.png"
        },
        "documentation": {
          "url": "https://go.communardo.app/docs/include-from-bitbucket-to-confluence-cloud/include-file"
        },
        "categories": [
          "development", "external-content", "reporting"
        ],
        "renderModes": {
          "default": {
            "url": "/v1/getMigratedFile?url={url}&spaceKey={space.key}&contentId={content.id}&syntaxHighlighting={syntaxHighlighting}&title={title}&showLineNumbers={showLineNumbers}&hideHeader=true&collapsible=false&theme={theme}&mode={output.type}"
          }
        },
        "parameters": [
          {
            "identifier": "repoSlug",
            "name": {
              "value": "Repository Name"
            },
            "description": {
              "value": "The name of the repository, as it appears in the URL"
            },
            "type": "string",
            "required": true
          },
          {
            "identifier": "branchId",
            "name": {
              "value": "Branch Name"
            },
            "description": {
              "value": "Branch Name"
            },
            "type": "string",
            "required": false
          },
          {
            "identifier": "projectKey",
            "name": {
              "value": "Project Key"
            },
            "description": {
              "value": "The project key of a Bitbucket Data Center project"
            },
            "type": "string",
            "required": false
          },
          {
            "identifier": "filepath",
            "name": {
              "value": "File Path"
            },
            "description": {
              "value": "The File Path to Include"
            },
            "type": "string",
            "required": false
          },
          {
            "identifier": "progLang",
            "name": {
              "value": "Programming Language"
            },
            "description": {
              "value": "Programming Language for Syntax Highlighting"
            },
            "type": "string",
            "required": false
          },
          {
            "identifier": "applicationLink",
            "name": {
              "value": "Application Link"
            },
            "description": {
              "value": "Application Link from Confluence Data Center to Bitbucket Data Center. Or a Bitbucket Cloud Workspace Name"
            },
            "type": "string",
            "required": false
          },
          {
            "identifier": "showLineNumbers",
            "name": {
              "value": "Show line numbers"
            },
            "description": {
              "value": "Line numbers for rendered files like Markdown and AsciiDoc not shown."
            },
            "type": "boolean"
          },
          {
            "identifier": "hideHeader",
            "name": {
              "value": "Hide file header"
            },
            "type": "boolean"
          },
          {
            "identifier": "collapsible",
            "name": {
              "value": "Collapsible"
            },
            "type": "boolean"
          }
        ],
        "outputType": "block",
        "bodyType": "none"
      }
    ]
  }
}