{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eurobase-dev/json-schema/eurobase-dev-my-project-invitations-response-schema.json",
  "title": "MyProjectInvitationsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eurobase-dev-invitations-api-openapi.yml#/components/schemas/MyProjectInvitationsResponse",
  "type": "object",
  "required": [
    "invitations"
  ],
  "properties": {
    "invitations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectInvitation"
      }
    }
  },
  "$defs": {
    "ProjectInvitation": {
      "type": "object",
      "required": [
        "id",
        "projectId",
        "email",
        "role",
        "status",
        "expiresAt",
        "createdAt"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "projectId": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "admin",
            "contributor"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "expired"
          ]
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "projectName": {
          "type": "string"
        },
        "invitedByEmail": {
          "type": "string"
        }
      }
    }
  }
}