{
  "$defs": {
    "EntrySignature": {
      "description": "Cryptographic signature over a MARS entry's canonical content.\n\nThe signature uses `MARS-PUBLISHER-SIGNING-V1`: JCS (RFC 8785) over\npublisher-authored fields after removing only `signature`, `sequence`,\n`updatedAt`, `lifecycleStatus`, `verifiableAttestations`, `shardAssignment`,\n`anchorProjection`, `anchorState`, `anchorTxHash`, `anchorBlockHeight`, and\n`anchorProof`.",
      "properties": {
        "algorithm": {
          "description": "Signature algorithm. Always \"Ed25519\".",
          "pattern": "^Ed25519$",
          "type": "string"
        },
        "created": {
          "description": "ISO 8601 timestamp of when the signature was created.",
          "type": [
            "string",
            "null"
          ]
        },
        "keyId": {
          "description": "DID URL of the signing key (e.g. `\"did:oas:l1fe:ao:org#key-1\"`).",
          "pattern": "^did:oas:.+#.+$",
          "type": "string"
        },
        "value": {
          "description": "Strict URL-safe, unpadded base64url signature bytes.\n\nStandard-base64 characters (`+`, `/`) and `=` padding are rejected.",
          "type": "string"
        }
      },
      "required": [
        "algorithm",
        "keyId",
        "value"
      ],
      "type": "object"
    }
  },
  "$id": "urn:mars:schema:v1:transfer-offer-request",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Request body for creating a signed transfer offer.",
  "properties": {
    "entrySequence": {
      "description": "Current entry sequence covered by the owner's signature.",
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
    },
    "expiresAt": {
      "description": "Server-verifiable expiry for this offer.",
      "format": "date-time",
      "type": "string"
    },
    "recipientDid": {
      "description": "DID invited to become the entry's publisher.",
      "type": "string"
    },
    "signature": {
      "$ref": "#/$defs/EntrySignature",
      "description": "Owner signature over the canonical transfer-offer payload."
    }
  },
  "required": [
    "recipientDid",
    "entrySequence",
    "expiresAt",
    "signature"
  ],
  "title": "TransferOfferRequest",
  "type": "object"
}
