PackageType is an enumerated list of types of packages.

This enumerated datatype is used primarily by two datatypes: Package2; and PackageRegistrySearchResultItem. The latter is used by a few main datatypes (e.g., Repository), which are used by several main mutation and query fields. Package2, though, — in addition to being used by the same main datatypes — is primarily used by three directly related datatypes: PackageInstallation which is used by the installedPackage() query and other datatypes; PackageUpdateResult which is used by the updatePackageFromRegistryV2() mutation; and InstallPackageFromRegistryResult, which is used by the installPackageFromRegistryV2() mutation.

Table: PackageType

ParameterTypeRequiredDefaultStabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results.
Table last updated: May 9, 2025
application   Long-TermThe package is an application.
library   Long-TermThe package is a library.