{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/userclouds/json-schema/userclouds-search-user-search-index-schema.json",
  "title": "SearchUserSearchIndex",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/userstore.yaml#/components/schemas/SearchUserSearchIndex",
  "properties": {
    "accessors": {
      "items": {
        "$ref": "#/$defs/SearchUserSearchIndexAccessor"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "bootstrapped": {
      "format": "date-time",
      "type": "string"
    },
    "columns": {
      "items": {
        "$ref": "#/$defs/UserstoreResourceID"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "data_life_cycle_state": {
      "$ref": "#/$defs/UserstoreDataLifeCycleState"
    },
    "description": {
      "type": "string"
    },
    "enabled": {
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "$ref": "#/$defs/UuidUUID"
    },
    "index_name_suffix": {
      "type": "string"
    },
    "last_regional_bootstrapped_value_ids": {
      "additionalProperties": {
        "$ref": "#/$defs/UuidUUID"
      },
      "type": [
        "object",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "searchable": {
      "format": "date-time",
      "type": "string"
    },
    "settings": {
      "$ref": "#/$defs/SearchIndexSettings"
    },
    "type": {
      "$ref": "#/$defs/SearchIndexType"
    }
  },
  "type": "object",
  "$defs": {
    "SearchIndexSettings": {
      "properties": {
        "ngram": {
          "$ref": "#/$defs/SearchNgramIndexSettings"
        }
      },
      "type": "object"
    },
    "SearchIndexType": {
      "enum": [
        "deprecated",
        "ngram"
      ],
      "type": "string"
    },
    "SearchNgramIndexSettings": {
      "properties": {
        "max_ngram": {
          "type": "integer"
        },
        "min_ngram": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "SearchQueryType": {
      "enum": [
        "term",
        "wildcard"
      ],
      "type": "string"
    },
    "SearchUserSearchIndexAccessor": {
      "properties": {
        "accessor": {
          "$ref": "#/$defs/UserstoreResourceID"
        },
        "query_type": {
          "$ref": "#/$defs/SearchQueryType"
        }
      },
      "type": "object"
    },
    "UserstoreDataLifeCycleState": {
      "enum": [
        "",
        "live",
        "postdelete",
        "predelete",
        "softdeleted"
      ],
      "type": "string"
    },
    "UserstoreResourceID": {
      "properties": {
        "id": {
          "$ref": "#/$defs/UuidUUID"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "UuidUUID": {
      "format": "uuid",
      "type": "string"
    }
  }
}