{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hatchet/json-schema/hatchet-tenant-invite-schema.json",
  "title": "TenantInvite",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hatchet-tenants-api-openapi.yml#/components/schemas/TenantInvite",
  "properties": {
    "metadata": {
      "$ref": "#/$defs/APIResourceMeta"
    },
    "email": {
      "type": "string",
      "description": "The email of the user to invite."
    },
    "role": {
      "$ref": "#/$defs/TenantMemberRole",
      "description": "The role of the user in the tenant."
    },
    "tenantId": {
      "type": "string",
      "description": "The tenant id associated with this tenant invite."
    },
    "tenantName": {
      "type": "string",
      "description": "The tenant name for the tenant."
    },
    "expires": {
      "type": "string",
      "description": "The time that this invite expires.",
      "format": "date-time"
    }
  },
  "required": [
    "metadata",
    "email",
    "role",
    "expires",
    "tenantId"
  ],
  "type": "object",
  "$defs": {
    "APIResourceMeta": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "the id of this resource, in UUID format",
          "minLength": 0,
          "maxLength": 36
        },
        "createdAt": {
          "type": "string",
          "description": "the time that this resource was created",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "the time that this resource was last updated",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "createdAt",
        "updatedAt"
      ]
    },
    "TenantMemberRole": {
      "enum": [
        "OWNER",
        "ADMIN",
        "MEMBER"
      ],
      "type": "string"
    }
  }
}