{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "version",
    "request_id",
    "audience",
    "profile",
    "issued_at",
    "expires_at",
    "imprint_kind",
    "algorithm",
    "imprint"
  ],
  "properties": {
    "version": {
      "const": 1
    },
    "request_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{19,95}$"
    },
    "audience": {
      "type": "string",
      "format": "uri",
      "maxLength": 128,
      "pattern": "^[!-~]{1,128}$",
      "description": "Exact registered absolute URI; no userinfo or fragment."
    },
    "profile": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
    },
    "issued_at": {
      "type": "string",
      "format": "date-time",
      "maxLength": 40,
      "pattern": "Z$"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "maxLength": 40,
      "pattern": "Z$",
      "description": "Exclusive expiry <=60 seconds after issued_at. No future issuance or clock skew allowance."
    },
    "imprint_kind": {
      "enum": [
        "original",
        "signature_value"
      ],
      "description": "Descriptive requester label only; it does not attest format validity. The consumer sends only a SHA-256 digest and retains the covered bytes. For XAdES B-T, signature_value hashes the canonical complete ds:SignatureValue ELEMENT including markup and namespace context, not raw RSA bytes or bare Base64. XAdES archival original-kind hashes the profile-defined concatenation of retained original/reference octets and canonical XML components. PAdES signature_value retains its raw RSA signature-value coverage. For JAdES B-T, signature_value hashes ASCII of the exact canonical unpadded base64url signature member, not raw RSA or quoted JSON. JAdES archival original-kind hashes original exact octets, ASCII period+protected+period+signature+period, then exact preceding encoded etsiU strings without separators, quotes or the new archive component. Other uses retain their integration-defined exact input. The consumer owns complete signature-profile validation."
    },
    "algorithm": {
      "const": "SHA256"
    },
    "imprint": {
      "type": "string",
      "contentEncoding": "base64",
      "minLength": 44,
      "maxLength": 44,
      "pattern": "^[A-Za-z0-9+/]{43}=$",
      "description": "Canonical standard base64 of exactly 32 SHA-256 digest bytes. Original files, raw signatures and profile-defined canonical/archival covered bytes remain with the consumer; only the digest is sent. The descriptive imprint_kind does not establish format coverage or validity."
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Decoded timestamp v1 JWS payload",
  "description": "Sign the exact UTF-8 payload with the separate protected header and pinned machine RS256 key; decoded payload <=8192 bytes. Server selects TSA, policy, trust and a fresh 160-bit nonce. No human identity or consent."
}
