{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/leapmemory-com/json-schema/leapmemory-com-update-tenant-request-schema.json",
  "title": "UpdateTenantRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/leapmemory-com-api-openapi.json#/components/schemas/UpdateTenantRequest",
  "properties": {
    "label": {
      "type": "string",
      "maxLength": 200,
      "title": "Label",
      "default": ""
    },
    "members": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/MemberEntry"
          },
          "type": "array",
          "maxItems": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Members"
    },
    "extraction": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "per_turn",
            "conversation"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Extraction"
    },
    "window_quiet_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 86400.0,
          "minimum": 60.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Quiet Seconds"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "$defs": {
    "MemberEntry": {
      "properties": {
        "speaker_id": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1,
          "title": "Speaker Id"
        },
        "kind": {
          "type": "string",
          "enum": [
            "person",
            "assistant"
          ],
          "title": "Kind"
        },
        "owner": {
          "type": "boolean",
          "title": "Owner",
          "default": false
        },
        "names": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 10,
          "minItems": 1,
          "title": "Names"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "speaker_id",
        "kind",
        "names"
      ],
      "title": "MemberEntry",
      "description": "One participant: the speaker_id their turns carry, and the names that\nmean them (first = current, the rest = old names and aliases)."
    }
  }
}