{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "https://www.canva.dev/schemas/app/v1/manifest-schema.json",
  "title": "Canva App Config Schema",
  "description": "Manifest configuration for a [Canva app](https://www.canva.dev/docs/connect/canva-concepts/#canva-apps).",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "description": "JSON Schema URL for this manifest ($schema). Used by editors for validation and auto-completion."
    },
    "manifest_schema_version": {
      "type": "integer",
      "description": "The version of the manifest schema."
    },
    "runtime": {
      "type": "object",
      "description": "Application runtime configuration.",
      "properties": {
        "permissions": {
          "type": "array",
          "description": "The list of permissions that this app requires to load or may ask for at runtime.",
          "items": {
            "type": "object",
            "description": "Permission scopes in the Apps SDK, which let developers access user data while ensuring\nthat users remain informed and in control of what data is accessed. See\n[Configuring permissions](https://www.canva.dev/docs/apps/configuring-permissions/)\nfor more information.",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "canva:design:content:read",
                  "canva:design:content:write",
                  "canva:asset:private:read",
                  "canva:asset:private:write",
                  "canva:brandkit:read",
                  "canva:brandtemplate:read"
                ]
              },
              "type": {
                "type": "string",
                "const": "mandatory"
              }
            },
            "required": [
              "name",
              "type"
            ]
          }
        }
      }
    },
    "intent": {
      "type": "object",
      "description": "Intent-specific configuration.",
      "properties": {
        "data_connector": {
          "type": "object",
          "properties": {
            "enrolled": {
              "type": "boolean"
            }
          },
          "required": [
            "enrolled"
          ]
        },
        "design_editor": {
          "type": "object",
          "properties": {
            "enrolled": {
              "type": "boolean"
            }
          },
          "required": [
            "enrolled"
          ]
        },
        "content_publisher": {
          "type": "object",
          "properties": {
            "enrolled": {
              "type": "boolean"
            }
          },
          "required": [
            "enrolled"
          ]
        }
      }
    }
  },
  "required": [
    "manifest_schema_version",
    "runtime"
  ]
}