{
  "description": "Lock is the CRD type that tracks package dependencies.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "packages": {
      "items": {
        "description": "LockPackage is a package that is in the lock.",
        "properties": {
          "apiVersion": {
            "description": "APIVersion of the package.",
            "type": "string"
          },
          "dependencies": {
            "description": "Dependencies are the list of dependencies of this package. The order of\nthe dependencies will dictate the order in which they are resolved.",
            "items": {
              "description": "A Dependency is a dependency of a package in the lock.",
              "properties": {
                "apiVersion": {
                  "description": "APIVersion of the package.",
                  "type": "string"
                },
                "constraints": {
                  "description": "Constraints is a valid semver range or a digest, which will be used to select a valid\ndependency version.",
                  "type": "string"
                },
                "kind": {
                  "description": "Kind of the package (not the kind of the package revision).",
                  "type": "string"
                },
                "package": {
                  "description": "Package is the OCI image name without a tag or digest.",
                  "type": "string"
                },
                "type": {
                  "description": "Type is the type of package. Can be either Configuration or Provider.\nDeprecated: Specify an apiVersion and kind instead.",
                  "enum": [
                    "Configuration",
                    "Provider",
                    "Function"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "constraints",
                "package"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "type": "array"
          },
          "kind": {
            "description": "Kind of the package (not the kind of the package revision).",
            "type": "string"
          },
          "name": {
            "description": "Name corresponds to the name of the package revision for this package.",
            "type": "string"
          },
          "source": {
            "description": "Source is the OCI image name without a tag or digest.",
            "type": "string"
          },
          "type": {
            "description": "Type is the type of package.\nDeprecated: Specify an apiVersion and kind instead.",
            "enum": [
              "Configuration",
              "Provider",
              "Function"
            ],
            "type": "string"
          },
          "version": {
            "description": "Version is the tag or digest of the OCI image.",
            "type": "string"
          }
        },
        "required": [
          "dependencies",
          "name",
          "source",
          "version"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "type": "array"
    },
    "status": {
      "description": "Status of the Lock.",
      "properties": {
        "conditions": {
          "description": "Conditions of the resource.",
          "items": {
            "description": "A Condition that may apply to a resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "LastTransitionTime is the last time this condition transitioned from one\nstatus to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "A Message containing details about this condition's last transition from\none status to another, if any.",
                "type": "string"
              },
              "observedGeneration": {
                "description": "ObservedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "type": "integer"
              },
              "reason": {
                "description": "A Reason for this condition's last transition from one status to another.",
                "type": "string"
              },
              "status": {
                "description": "Status of this condition; is it currently True, False, or Unknown?",
                "type": "string"
              },
              "type": {
                "description": "Type of this condition. At most one of each condition type may apply to\na resource at any point in time.",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "reason",
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array",
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
