{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-connector-types-connector-schema.json",
  "title": "connector._types.Connector",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-connector-api-openapi.yml#/components/schemas/connector._types.Connector",
  "type": "object",
  "properties": {
    "api_key_id": {
      "type": "string"
    },
    "api_key_secret_id": {
      "type": "string"
    },
    "configuration": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.ConnectorConfiguration"
        }
      ]
    },
    "custom_scheduling": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.ConnectorCustomScheduling"
        }
      ]
    },
    "deleted": {
      "type": "boolean"
    },
    "description": {
      "type": "string"
    },
    "error": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "features": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.ConnectorFeatures"
        }
      ]
    },
    "filtering": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/connector._types.FilteringConfig"
      }
    },
    "id": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.Id"
        }
      ]
    },
    "index_name": {
      "oneOf": [
        {
          "$ref": "#/$defs/_types.IndexName"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "is_native": {
      "type": "boolean"
    },
    "language": {
      "type": "string"
    },
    "last_access_control_sync_error": {
      "type": "string"
    },
    "last_access_control_sync_scheduled_at": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DateTime"
        }
      ]
    },
    "last_access_control_sync_status": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.SyncStatus"
        }
      ]
    },
    "last_deleted_document_count": {
      "type": "number"
    },
    "last_incremental_sync_scheduled_at": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DateTime"
        }
      ]
    },
    "last_indexed_document_count": {
      "type": "number"
    },
    "last_seen": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DateTime"
        }
      ]
    },
    "last_sync_error": {
      "type": "string"
    },
    "last_sync_scheduled_at": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DateTime"
        }
      ]
    },
    "last_sync_status": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.SyncStatus"
        }
      ]
    },
    "last_synced": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DateTime"
        }
      ]
    },
    "name": {
      "type": "string"
    },
    "pipeline": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.IngestPipelineParams"
        }
      ]
    },
    "scheduling": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.SchedulingConfiguration"
        }
      ]
    },
    "service_type": {
      "type": "string"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/connector._types.ConnectorStatus"
        }
      ]
    },
    "sync_cursor": {
      "type": "object"
    },
    "sync_now": {
      "type": "boolean"
    }
  },
  "required": [
    "configuration",
    "custom_scheduling",
    "deleted",
    "filtering",
    "is_native",
    "scheduling",
    "status",
    "sync_now"
  ],
  "$defs": {
    "_types.DateTime": {
      "description": "A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a\nnumber of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string\nrepresentation.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/_types.EpochTimeUnitMillis"
        }
      ]
    },
    "_types.EpochTimeUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.Field": {
      "description": "Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.",
      "type": "string"
    },
    "_types.Id": {
      "type": "string"
    },
    "_types.IndexName": {
      "type": "string"
    },
    "_types.ScalarValue": {
      "description": "A scalar value.",
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "boolean"
        },
        {
          "type": [
            "string",
            "null"
          ]
        }
      ]
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    },
    "connector._types.ConnectorConfigProperties": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string"
        },
        "default_value": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ScalarValue"
            }
          ]
        },
        "depends_on": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/connector._types.Dependency"
          }
        },
        "display": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.DisplayType"
            }
          ]
        },
        "label": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/connector._types.SelectOption"
          }
        },
        "order": {
          "type": "number"
        },
        "placeholder": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "sensitive": {
          "type": "boolean"
        },
        "tooltip": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.ConnectorFieldType"
            }
          ]
        },
        "ui_restrictions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "validations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/connector._types.Validation"
          }
        },
        "value": {
          "type": "object"
        }
      },
      "required": [
        "default_value",
        "depends_on",
        "display",
        "label",
        "options",
        "required",
        "sensitive",
        "value"
      ]
    },
    "connector._types.ConnectorConfiguration": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/connector._types.ConnectorConfigProperties"
      }
    },
    "connector._types.ConnectorCustomScheduling": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/connector._types.CustomScheduling"
      }
    },
    "connector._types.ConnectorFeatures": {
      "type": "object",
      "properties": {
        "document_level_security": {
          "description": "Indicates whether document-level security is enabled.",
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FeatureEnabled"
            }
          ]
        },
        "incremental_sync": {
          "description": "Indicates whether incremental syncs are enabled.",
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FeatureEnabled"
            }
          ]
        },
        "native_connector_api_keys": {
          "description": "Indicates whether managed connector API keys are enabled.",
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FeatureEnabled"
            }
          ]
        },
        "sync_rules": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.SyncRulesFeature"
            }
          ]
        }
      }
    },
    "connector._types.ConnectorFieldType": {
      "type": "string",
      "enum": [
        "str",
        "int",
        "list",
        "bool"
      ]
    },
    "connector._types.ConnectorScheduling": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "interval": {
          "description": "The interval is expressed using the crontab syntax",
          "type": "string"
        }
      },
      "required": [
        "enabled",
        "interval"
      ]
    },
    "connector._types.ConnectorStatus": {
      "type": "string",
      "enum": [
        "created",
        "needs_configuration",
        "configured",
        "connected",
        "error"
      ]
    },
    "connector._types.CustomScheduling": {
      "type": "object",
      "properties": {
        "configuration_overrides": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.CustomSchedulingConfigurationOverrides"
            }
          ]
        },
        "enabled": {
          "type": "boolean"
        },
        "interval": {
          "type": "string"
        },
        "last_synced": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DateTime"
            }
          ]
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "configuration_overrides",
        "enabled",
        "interval",
        "name"
      ]
    },
    "connector._types.CustomSchedulingConfigurationOverrides": {
      "type": "object",
      "properties": {
        "max_crawl_depth": {
          "type": "number"
        },
        "sitemap_discovery_disabled": {
          "type": "boolean"
        },
        "domain_allowlist": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sitemap_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "seed_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "connector._types.Dependency": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ScalarValue"
            }
          ]
        }
      },
      "required": [
        "field",
        "value"
      ]
    },
    "connector._types.DisplayType": {
      "type": "string",
      "enum": [
        "textbox",
        "textarea",
        "numeric",
        "toggle",
        "dropdown"
      ]
    },
    "connector._types.FeatureEnabled": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "enabled"
      ]
    },
    "connector._types.FilteringAdvancedSnippet": {
      "type": "object",
      "properties": {
        "created_at": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DateTime"
            }
          ]
        },
        "updated_at": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DateTime"
            }
          ]
        },
        "value": {
          "type": "object"
        }
      },
      "required": [
        "value"
      ]
    },
    "connector._types.FilteringConfig": {
      "type": "object",
      "properties": {
        "active": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringRules"
            }
          ]
        },
        "domain": {
          "type": "string"
        },
        "draft": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringRules"
            }
          ]
        }
      },
      "required": [
        "active",
        "draft"
      ]
    },
    "connector._types.FilteringPolicy": {
      "type": "string",
      "enum": [
        "exclude",
        "include"
      ]
    },
    "connector._types.FilteringRule": {
      "type": "object",
      "properties": {
        "created_at": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DateTime"
            }
          ]
        },
        "field": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Field"
            }
          ]
        },
        "id": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Id"
            }
          ]
        },
        "order": {
          "type": "number"
        },
        "policy": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringPolicy"
            }
          ]
        },
        "rule": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringRuleRule"
            }
          ]
        },
        "updated_at": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DateTime"
            }
          ]
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "id",
        "order",
        "policy",
        "rule",
        "value"
      ]
    },
    "connector._types.FilteringRuleRule": {
      "type": "string",
      "enum": [
        "contains",
        "ends_with",
        "equals",
        "regex",
        "starts_with",
        ">",
        "<"
      ]
    },
    "connector._types.FilteringRules": {
      "type": "object",
      "properties": {
        "advanced_snippet": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringAdvancedSnippet"
            }
          ]
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/connector._types.FilteringRule"
          }
        },
        "validation": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringRulesValidation"
            }
          ]
        }
      },
      "required": [
        "advanced_snippet",
        "rules",
        "validation"
      ]
    },
    "connector._types.FilteringRulesValidation": {
      "type": "object",
      "properties": {
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/connector._types.FilteringValidation"
          }
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FilteringValidationState"
            }
          ]
        }
      },
      "required": [
        "errors",
        "state"
      ]
    },
    "connector._types.FilteringValidation": {
      "type": "object",
      "properties": {
        "ids": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.Id"
          }
        },
        "messages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "ids",
        "messages"
      ]
    },
    "connector._types.FilteringValidationState": {
      "type": "string",
      "enum": [
        "edited",
        "invalid",
        "valid"
      ]
    },
    "connector._types.GreaterThanValidation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "greater_than"
          ]
        },
        "constraint": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "constraint"
      ]
    },
    "connector._types.IncludedInValidation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "included_in"
          ]
        },
        "constraint": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.ScalarValue"
          }
        }
      },
      "required": [
        "type",
        "constraint"
      ]
    },
    "connector._types.IngestPipelineParams": {
      "type": "object",
      "properties": {
        "extract_binary_content": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "reduce_whitespace": {
          "type": "boolean"
        },
        "run_ml_inference": {
          "type": "boolean"
        }
      },
      "required": [
        "extract_binary_content",
        "name",
        "reduce_whitespace",
        "run_ml_inference"
      ]
    },
    "connector._types.LessThanValidation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "less_than"
          ]
        },
        "constraint": {
          "type": "number"
        }
      },
      "required": [
        "type",
        "constraint"
      ]
    },
    "connector._types.ListTypeValidation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "list_type"
          ]
        },
        "constraint": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "constraint"
      ]
    },
    "connector._types.RegexValidation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "regex"
          ]
        },
        "constraint": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "constraint"
      ]
    },
    "connector._types.SchedulingConfiguration": {
      "type": "object",
      "properties": {
        "access_control": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.ConnectorScheduling"
            }
          ]
        },
        "full": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.ConnectorScheduling"
            }
          ]
        },
        "incremental": {
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.ConnectorScheduling"
            }
          ]
        }
      }
    },
    "connector._types.SelectOption": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ScalarValue"
            }
          ]
        }
      },
      "required": [
        "label",
        "value"
      ]
    },
    "connector._types.SyncRulesFeature": {
      "type": "object",
      "properties": {
        "advanced": {
          "description": "Indicates whether advanced sync rules are enabled.",
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FeatureEnabled"
            }
          ]
        },
        "basic": {
          "description": "Indicates whether basic sync rules are enabled.",
          "allOf": [
            {
              "$ref": "#/$defs/connector._types.FeatureEnabled"
            }
          ]
        }
      }
    },
    "connector._types.SyncStatus": {
      "type": "string",
      "enum": [
        "canceling",
        "canceled",
        "completed",
        "error",
        "in_progress",
        "pending",
        "suspended"
      ]
    },
    "connector._types.Validation": {
      "oneOf": [
        {
          "$ref": "#/$defs/connector._types.LessThanValidation"
        },
        {
          "$ref": "#/$defs/connector._types.GreaterThanValidation"
        },
        {
          "$ref": "#/$defs/connector._types.ListTypeValidation"
        },
        {
          "$ref": "#/$defs/connector._types.IncludedInValidation"
        },
        {
          "$ref": "#/$defs/connector._types.RegexValidation"
        }
      ]
    }
  }
}