Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

3.4 KB
Raw Blame
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://osmantic.com/pixel/schemas/release-update-activation-v1.schema.json",
  "title": "Pixel release activation claim receipt v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "operation", "status", "candidateId", "product", "version", "currentVersion", "relation", "channel", "publisherIdentity", "sourceCommit", "sourceTree", "host", "envelopeSha256", "stageReceiptSha256", "rehearsalReceiptSha256", "extractedTreeSha256", "activationHash", "claimedAt", "claim", "candidateCodeWillExecute", "privateConfigurationWillBeRead", "activeDeploymentWillChange", "networkMayBeUsed", "rollback", "candidateCodeCopied", "candidateCodeExecuted", "activeDeploymentChanged", "networkUsed", "boundary"],
  "properties": {
    "schemaVersion": {"const": 1},
    "operation": {"const": "pixel-release-activation"},
    "status": {"const": "claimed"},
    "candidateId": {"type": "string", "pattern": "^pixel-[0-9]{1,6}\\.[0-9]{1,6}\\.[0-9]{1,6}-[0-9a-f]{64}$"},
    "product": {"const": "Pixel"},
    "version": {"type": "string", "pattern": "^[0-9]{1,6}\\.[0-9]{1,6}\\.[0-9]{1,6}$"},
    "currentVersion": {"type": "string", "pattern": "^[0-9]{1,6}\\.[0-9]{1,6}\\.[0-9]{1,6}$"},
    "relation": {"const": "upgrade"},
    "channel": {"const": "stable"},
    "publisherIdentity": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.@+-]{0,127}$"},
    "sourceCommit": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
    "sourceTree": {"type": "string", "pattern": "^[0-9a-f]{40}$"},
    "host": {"$ref": "#/$defs/host"},
    "envelopeSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "stageReceiptSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "rehearsalReceiptSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "extractedTreeSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "activationHash": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "claimedAt": {"type": "string", "format": "date-time"},
    "claim": {"const": "single-use-atomic-no-replace"},
    "candidateCodeWillExecute": {"const": true},
    "privateConfigurationWillBeRead": {"const": true},
    "activeDeploymentWillChange": {"const": true},
    "networkMayBeUsed": {"const": true},
    "rollback": {"const": "single-use-update-bound"},
    "candidateCodeCopied": {"const": true},
    "candidateCodeExecuted": {"const": false},
    "activeDeploymentChanged": {"const": false},
    "networkUsed": {"const": false},
    "boundary": {"const": "Single-use exact activation claimed on a private verified copy; candidate programs have not yet executed and the active deployment has not changed."}
  },
  "$defs": {
    "host": {
      "type": "object", "additionalProperties": false,
      "required": ["id", "versionId", "label", "supported"],
      "properties": {
        "id": {"enum": ["ubuntu", "debian"]},
        "versionId": {"enum": ["24.04", "12"]},
        "label": {"enum": ["Ubuntu 24.04 LTS", "Debian 12"]},
        "supported": {"const": true}
      },
      "allOf": [
        {"if": {"properties": {"id": {"const": "ubuntu"}}}, "then": {"properties": {"versionId": {"const": "24.04"}, "label": {"const": "Ubuntu 24.04 LTS"}}}},
        {"if": {"properties": {"id": {"const": "debian"}}}, "then": {"properties": {"versionId": {"const": "12"}, "label": {"const": "Debian 12"}}}}
      ]
    }
  }
}