{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-gouv-fr/json-schema/api-gouv-fr-notification-resolved-schema.json",
  "title": "NotificationResolved",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-gouv-fr-notifications-api-openapi.yml#/components/schemas/NotificationResolved",
  "properties": {
    "event": {
      "description": "The event asked about",
      "type": "string"
    },
    "followed_events": {
      "description": "The narrower events the user still follows on it",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "heard": {
      "description": "Whether the user hears about it, pause aside",
      "type": "boolean"
    },
    "heard_types": {
      "description": "The types asked about the user hears on it",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "muted": {
      "description": "Whether the user said no to this subject and event",
      "type": "boolean"
    },
    "partial": {
      "description": "Whether the user hears only some of the types that can be about it",
      "type": "boolean"
    },
    "reasons": {
      "description": "Why the user is concerned",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "scope": {
      "allOf": [
        {
          "$ref": "#/$defs/ModelReference"
        }
      ],
      "description": "The subject asked about"
    },
    "subject": {
      "allOf": [
        {
          "$ref": "#/$defs/NotificationSubjectSummary"
        }
      ],
      "description": "The subject as the user may see it, null when out of reach"
    }
  },
  "type": "object",
  "$defs": {
    "Badge__read": {
      "properties": {
        "kind": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ],
      "type": "object"
    },
    "BaseReference": {
      "properties": {
        "class": {
          "description": "The object class",
          "type": "string"
        },
        "id": {
          "description": "The object unique identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    },
    "ModelReference": {
      "properties": {
        "class": {
          "description": "The model class",
          "type": "string"
        },
        "id": {
          "description": "The object identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    },
    "NotificationSubjectSummary": {
      "properties": {
        "organization": {
          "allOf": [
            {
              "$ref": "#/$defs/OrganizationReference"
            }
          ],
          "description": "The organization the subject belongs to, null for an organization"
        },
        "page": {
          "description": "The subject web page",
          "type": "string"
        },
        "title": {
          "description": "The subject title",
          "type": "string"
        }
      },
      "type": "object"
    },
    "OrganizationPermissions": {
      "properties": {
        "delete": {
          "type": "boolean"
        },
        "edit": {
          "type": "boolean"
        },
        "harvest": {
          "type": "boolean"
        },
        "members": {
          "type": "boolean"
        },
        "private": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "OrganizationReference": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseReference"
        },
        {
          "properties": {
            "acronym": {
              "maxLength": 128,
              "type": "string"
            },
            "badges": {
              "items": {
                "allOf": [
                  {
                    "$ref": "#/$defs/Badge__read"
                  }
                ],
                "readOnly": true
              },
              "readOnly": true,
              "type": "array"
            },
            "logo": {
              "description": "URL of the image",
              "readOnly": true,
              "type": "string"
            },
            "logo_thumbnail": {
              "description": "URL of the cropped and squared image (100x100)",
              "readOnly": true,
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "page": {
              "description": "Link to the udata web page for this organization",
              "readOnly": true,
              "type": "string"
            },
            "permissions": {
              "allOf": [
                {
                  "$ref": "#/$defs/OrganizationPermissions"
                }
              ],
              "readOnly": true
            },
            "slug": {
              "maxLength": 255,
              "readOnly": true,
              "type": "string"
            },
            "uri": {
              "description": "Link to the API endpoint for this organization",
              "readOnly": true,
              "type": "string"
            }
          },
          "required": [
            "name",
            "slug"
          ],
          "type": "object"
        }
      ]
    }
  }
}