{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "additionalProperties": false,
 "description": "Signature input: ASCII(domain) || 0x00 || RFC8785-integer-profile(object without 'signature'). Floats are not allowed anywhere.",
 "properties": {
  "action_digest": {
   "pattern": "^[0-9a-f]{64}$",
   "type": "string"
  },
  "agent_id": {
   "type": "string"
  },
  "alg": {
   "const": "Ed25519"
  },
  "audience": {
   "type": "string"
  },
  "epoch": {
   "maximum": 9007199254740991,
   "minimum": 0,
   "type": "integer"
  },
  "expires_at": {
   "maximum": 9007199254740991,
   "minimum": 0,
   "type": "integer"
  },
  "issued_at": {
   "maximum": 9007199254740991,
   "minimum": 0,
   "type": "integer"
  },
  "kid": {
   "minLength": 1,
   "type": "string"
  },
  "mode": {
   "enum": [
    "STANDARD",
    "BREAK_GLASS"
   ]
  },
  "permit_id": {
   "type": "string"
  },
  "policy_version": {
   "maximum": 9007199254740991,
   "minimum": 0,
   "type": "integer"
  },
  "protocol": {
   "const": "ihvrk/1"
  },
  "request_id": {
   "type": "string"
  },
  "resource": {
   "type": "string"
  },
  "scope": {
   "type": "string"
  },
  "signature": {
   "pattern": "^[A-Za-z0-9+/]{86}==$",
   "type": "string"
  },
  "tenant": {
   "type": "string"
  },
  "type": {
   "const": "permit"
  }
 },
 "required": [
  "action_digest",
  "agent_id",
  "alg",
  "audience",
  "epoch",
  "expires_at",
  "issued_at",
  "kid",
  "mode",
  "permit_id",
  "policy_version",
  "protocol",
  "request_id",
  "resource",
  "scope",
  "signature",
  "tenant",
  "type"
 ],
 "title": "IHVRK execution permit (domain IHVRK/v1/permit)",
 "type": "object"
}