{
  "did": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-deletionrecord",
  "metadata": {
    "core": {
      "recordType": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:schema-root-schemarecord",
      "schemaVersion": "sha256:f6fa964c6b4ad09af2d1e2d3c8c30fbb2d812796eccd7e592f56dbd3b8299cd2",
      "transit": "internal"
    },
    "governance": {
      "owner": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:agent-recordweb-trust-association",
      "classification": "public"
    },
    "extensions": []
  },
  "payload": [
    {
      "versionHash": "sha256:ffb5e75db60bab56ce6c97befdaeaafe5e2c8c3f0acf6931e30b79ea6be09c73",
      "state": "finalized",
      "parents": [],
      "createdAt": "2026-11-05T00:00:00Z",
      "modifiedAt": "2026-11-05T00:00:00Z",
      "proof": [
        {
          "type": "DataIntegrityProof",
          "cryptosuite": "eddsa-jcs-2022",
          "created": "2026-11-05T00:00:00Z",
          "verificationMethod": "did:rwp:d2d14675-50c9-463d-b564-1ea50644c836:agent-recordweb-trust-association#key-1",
          "proofPurpose": "assertionMethod",
          "proofValue": "z3zAf98BdbBVRRFtcyrefXMJUvPDdu5BtAWoscincbFvVv2Nq3adBioiAewyjWFThg9U9YMvmpA1p8TnqeuAPK4Kt"
        }
      ],
      "representations": [
        {
          "format": "application/json",
          "content": {
            "rwpSchemaVersion": "1.0",
            "displayName": "RecordWeb Root Schema (DeletionRecord)",
            "allowedStates": [
              "finalized"
            ],
            "signaturePolicy": "owner",
            "payloadFormats": {
              "finalized": [
                "application/json"
              ]
            },
            "jsonSchema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "object",
              "required": [
                "targetDid",
                "deletionRegime",
                "legalBasis",
                "approvedBy",
                "deletedAt"
              ],
              "properties": {
                "targetDid": {
                  "type": "string",
                  "pattern": "^did:rwp:"
                },
                "targetVersions": {
                  "type": "array",
                  "minItems": 1,
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  }
                },
                "deletionRegime": {
                  "type": "string",
                  "enum": [
                    "payload-only",
                    "full-delete"
                  ]
                },
                "legalBasis": {
                  "type": "string",
                  "minLength": 1
                },
                "requestedBy": {
                  "type": "string",
                  "minLength": 1
                },
                "approvedBy": {
                  "type": "string",
                  "minLength": 1
                },
                "deletedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "retainedFields": {
                  "type": "array",
                  "uniqueItems": true,
                  "items": {
                    "type": "string"
                  }
                }
              },
              "if": {
                "properties": {
                  "deletionRegime": {
                    "const": "full-delete"
                  }
                },
                "required": [
                  "deletionRegime"
                ]
              },
              "then": {
                "not": {
                  "required": [
                    "targetVersions"
                  ]
                }
              }
            }
          },
          "primary": true,
          "role": "source",
          "contentHash": "sha256:4dab65ed1cd5c72e72a8e2237af75055c8cd4afb7cdbb5d9f37f26d83b5aeb82"
        }
      ]
    }
  ],
  "recordHash": "sha256:90102ef870c6c3d83cf1b8307a9b367f7b0eb9c2e9c69406a588955aa6aba43d"
}