{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.bseshop.com.tr/schemas/release-trust-v1.json",
  "title": "BSE Shop Release Trust Manifest Payload v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["expires_at", "issued_at", "issuer", "keys", "manifest_version", "sequence"],
  "properties": {
    "expires_at": { "type": "integer", "minimum": 0 },
    "issued_at": { "type": "integer", "minimum": 0 },
    "issuer": { "const": "https://admin.bseshop.com.tr" },
    "keys": {
      "type": "array",
      "minItems": 1,
      "maxItems": 64,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["kid", "not_after", "not_before", "public_key", "status"],
        "properties": {
          "kid": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{0,127}$" },
          "not_after": { "type": "integer", "minimum": 0 },
          "not_before": { "type": "integer", "minimum": 0 },
          "public_key": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" },
          "status": { "enum": ["active", "revoked"] }
        }
      }
    },
    "manifest_version": { "const": 1 },
    "sequence": { "type": "integer", "minimum": 1 }
  }
}
