// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2014 The Hex Team

syntax = "proto2";

package versions;

message Versions {
  // All packages in the repository
  repeated VersionsPackage packages = 1;
  // Name of repository
  required string repository = 2;
}

message VersionsPackage {
  // Package name
  required string name = 1;
  // All released versions of the package
  repeated string versions = 2;
  // Zero-based indexes of retired versions in the versions field, see package.proto
  repeated int32 retired = 3 [packed=true];
  // If set, the name of the package repository (NEVER USED, DEPRECATED)
  // string repository = 4;
}
