{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kognitos/json-schema/kognitos-v1-invitation-schema.json",
  "title": "v1Invitation",
  "description": "An Invitation represents a pending invitation to join an organization or workspace.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kognitos-organizations-api-openapi.yml#/components/schemas/v1Invitation",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "Resource name of the invitation.\nFormat: organizations/{organization}/invitations/{invitation}"
    },
    "organization_display_name": {
      "type": "string",
      "description": "The organization display name."
    },
    "workspace_id": {
      "type": "string",
      "description": "The workspace ID (not set if org-level invite)."
    },
    "workspace_display_name": {
      "type": "string",
      "description": "The workspace display name (not set if org-level invite)."
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of role resource names included in this invitation."
    },
    "is_accepted": {
      "type": "boolean",
      "description": "Whether the invitation has been accepted."
    },
    "redirect_organization_id": {
      "type": "string",
      "description": "The organization ID to redirect to (set if invitation points to a different org)."
    },
    "redirect_workspace_id": {
      "type": "string",
      "description": "The workspace ID to redirect to (set if invitation points to a different workspace)."
    }
  }
}