{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/france-identite/json-schema/france-identite-registration-certificates-schema.json",
  "title": "RegistrationCertificates",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/france-identite-wallet-trust-openapi.yml#/components/schemas/RegistrationCertificates",
  "type": "object",
  "required": [
    "accessCertificateSha256",
    "registrationCertificates"
  ],
  "properties": {
    "accessCertificateSha256": {
      "type": "string"
    },
    "registrationCertificates": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "purpose",
          "organisationId",
          "serviceIdentifier",
          "jws"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "intended-use",
              "provision"
            ],
            "description": "`intended-use` for a verifier, `provision` for an issuer."
          },
          "organisationId": {
            "type": "string"
          },
          "serviceIdentifier": {
            "type": "string"
          },
          "intendedUseIdentifier": {
            "type": "string"
          },
          "onBehalfOf": {
            "type": "string",
            "description": "The party an intermediary acts for, when the certificate names the intermediary."
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "jws": {
            "$ref": "#/$defs/CompactJws"
          }
        }
      }
    }
  },
  "$defs": {
    "CompactJws": {
      "type": "string",
      "description": "A compact JWS or JWT. Verify its signature before reading its payload.",
      "pattern": "^[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+$"
    }
  }
}