{
  "protocol": "https://didpkg.dev/protocols/repository/v1",
  "published": true,
  "types": {
    "package": {
      "schema": "https://didpkg.dev/schemas/package/v1",
      "dataFormats": [
        "application/json"
      ]
    },
    "index": {
      "schema": "https://didpkg.dev/schemas/index/v1",
      "dataFormats": [
        "application/json"
      ]
    },
    "release": {
      "schema": "https://didpkg.dev/schemas/release/v1",
      "dataFormats": [
        "application/json"
      ]
    },
    "tarball": {
      "dataFormats": [
        "application/gzip"
      ]
    }
  },
  "structure": {
    "package": {
      "$actions": [
        {
          "who": "anyone",
          "can": [
            "read"
          ]
        }
      ],
      "$tags": {
        "$requiredTags": [
          "name"
        ],
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        }
      },
      "$size": {
        "max": 4096
      },
      "index": {
        "$actions": [
          {
            "who": "anyone",
            "can": [
              "read"
            ]
          }
        ],
        "$size": {
          "max": 262144
        }
      },
      "release": {
        "$immutable": true,
        "$actions": [
          {
            "who": "anyone",
            "can": [
              "read"
            ]
          }
        ],
        "$tags": {
          "$requiredTags": [
            "version"
          ],
          "version": {
            "type": "string",
            "maxLength": 256
          }
        },
        "$size": {
          "max": 262144
        },
        "tarball": {
          "$immutable": true,
          "$actions": [
            {
              "who": "anyone",
              "can": [
                "read"
              ]
            }
          ],
          "$tags": {
            "$requiredTags": [
              "version"
            ],
            "version": {
              "type": "string",
              "maxLength": 256
            }
          },
          "$size": {
            "max": 67108864
          }
        }
      }
    }
  }
}
