{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/novumos-app/json-schema/novumos-app-invitation-response-schema.json",
  "title": "InvitationResponse",
  "description": "One invitation, as the inviting workspace and the invitee both see it.\n\nDeliberately **never** carries the token — the raw token exists exactly once,\nin the email that was sent, and is not recoverable afterwards (only its\nargon2id hash is stored). ``last4`` is included so an admin can correlate a\nrow with a support request without the token being disclosed, mirroring\n``ShareLinkResponse``.\n\n``org_name`` is populated on the invitee-facing reads\n(``GET /v1/me/invitations``, accept/decline) because an invitee looking at a\nworkspace they have not joined has no other way to learn what they are being\nasked to join; the admin-facing list leaves it ``None`` (the caller already\nknows which workspace they are in).",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/novumos-app-openapi.json#/components/schemas/InvitationResponse",
  "properties": {
    "object": {
      "type": "string",
      "title": "Object",
      "default": "invitation"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "org_id": {
      "type": "string",
      "format": "uuid",
      "title": "Org Id"
    },
    "org_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Name"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "invited_by_user_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invited By User Id"
    },
    "board_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Board Id"
    },
    "board_role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Board Role"
    },
    "board_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Board Name"
    },
    "last4": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last4"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "created_time": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created Time"
    },
    "accepted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted At"
    },
    "declined_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Declined At"
    },
    "revoked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Revoked At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "org_id",
    "email",
    "role",
    "status"
  ]
}