{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-database/json-schema/oracle-database-live-table-feeds-schema.json",
  "title": "live-table-feeds",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-database-data-tools-api-openapi.yml#/components/schemas/live-table-feeds",
  "type": "object",
  "properties": {
    "live_table_feeds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/live-table-feed"
      }
    }
  },
  "$defs": {
    "column": {
      "type": "object",
      "properties": {
        "column_name": {
          "$ref": "#/$defs/column_name"
        },
        "field_name": {
          "type": "string",
          "description": "Name of column in input file"
        },
        "column_id": {
          "type": "integer",
          "description": "Column position in input file"
        },
        "data_type": {
          "type": "string",
          "description": "Data type of column",
          "enum": [
            "VARCHAR2",
            "CLOB",
            "NUMBER",
            "INTEGER",
            "FLOAT",
            "BINARY_FLOAT",
            "BINARY_DOUBLE",
            "DATE",
            "TIMESTAMP",
            "TIMESTAMP WITH TIME ZONE",
            "TIMESTAMP WITH LOCAL TIME ZONE",
            "NVARCHAR2",
            "NCLOB",
            "BOOLEAN",
            "VECTOR"
          ]
        },
        "data_length": {
          "type": "integer",
          "description": "Length or precision of column"
        },
        "data_precision": {
          "type": "integer",
          "description": "Precision of data for certain column types"
        },
        "data_scale": {
          "type": "integer",
          "description": "Scale of data for certain column types"
        },
        "data_format": {
          "type": "string",
          "description": "Data format for certain column types"
        },
        "skip_column": {
          "type": "boolean",
          "description": "Set to true to not load this column"
        },
        "column_expression": {
          "type": "string",
          "description": "Populate this column with data about the load",
          "enum": [
            "FILE$NAME",
            "PATH$NAME",
            "SYSTIMESTAMP"
          ]
        },
        "column_expression_type": {
          "type": "string",
          "description": "Populate this column intelligently from another column",
          "enum": [
            "SDO_AREA",
            "SDO_LENGTH",
            "SENTIMENT",
            "TRANSLATION",
            "KEY_PHRASE_EXTRACTION",
            "LANGUAGE_DETECTION"
          ]
        },
        "source_path": {
          "type": "string",
          "description": "The JSON path expression for this column"
        },
        "merge_key": {
          "type": "boolean",
          "description": "If true, use this column as a merge key for merge operations"
        },
        "primary_key": {
          "type": "boolean",
          "description": "Set this column to be the primary key for the table"
        },
        "geojson_tolerance": {
          "type": "number",
          "description": "Level of precision for GEOJSon data"
        },
        "geojson_unit": {
          "type": "string",
          "description": "Unit of GEOJson data for column from SDO_UNITS_OF_MEASURE table"
        }
      }
    },
    "column_name": {
      "type": "string",
      "description": "Column name in table"
    },
    "columns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/column"
      }
    },
    "job_class": {
      "type": "string",
      "description": "Scheduler job class"
    },
    "live-table-feed": {
      "type": "object",
      "properties": {
        "live_table_feed_name": {
          "$ref": "#/$defs/live_table_feed_name"
        },
        "table_name": {
          "$ref": "#/$defs/table_name"
        },
        "table_schema": {
          "$ref": "#/$defs/schema_name"
        },
        "column_list": {
          "$ref": "#/$defs/columns"
        },
        "object_type": {
          "$ref": "#/$defs/live_feed_object_type"
        },
        "object_format": {
          "$ref": "#/$defs/loader_format"
        },
        "storage_link_name": {
          "$ref": "#/$defs/storage_link_name"
        },
        "object_filter": {
          "$ref": "#/$defs/object_filter"
        },
        "object_filter_type": {
          "$ref": "#/$defs/object_filter_type"
        },
        "scheduled": {
          "type": "boolean",
          "description": "Is the Live Table Feed scheduler job enabled?"
        },
        "scheduler_interval": {
          "type": "string",
          "description": "DBMS_SCHEDULER interval for Live Table Feed job"
        },
        "notifications": {
          "type": "boolean",
          "description": "Is the Live Table Feed enabled for notifications?"
        },
        "job_class": {
          "$ref": "#/$defs/job_class"
        },
        "start_date": {
          "$ref": "#/$defs/live_feed_timestamp"
        },
        "end_date": {
          "$ref": "#/$defs/live_feed_timestamp"
        },
        "sql_statements": {
          "$ref": "#/$defs/sql_statements"
        }
      }
    },
    "live_feed_object_type": {
      "type": "string",
      "enum": [
        "CSV",
        "JSON",
        "XLSX",
        "IMAGE",
        "ICEBERG"
      ]
    },
    "live_feed_timestamp": {
      "type": "string",
      "description": "A data and time of the format YYYY-MM-DDTHH24:MI:SS.FFTZH:TZM"
    },
    "live_table_feed_name": {
      "type": "string"
    },
    "loader_format": {
      "type": "object",
      "description": "SQL Loader options"
    },
    "object_filter": {
      "type": "string",
      "description": "Filter to select subset of files"
    },
    "object_filter_type": {
      "type": "string",
      "description": "Type of matching for object_filter",
      "enum": [
        "GLOB",
        "REGEX"
      ]
    },
    "schema_name": {
      "type": "string",
      "description": "Database object schema"
    },
    "sql_statements": {
      "type": "array",
      "items": {
        "description": "SQL statement",
        "type": "string"
      },
      "description": "SQL statements to perform database operation"
    },
    "storage_link_name": {
      "type": "string",
      "description": "Name of Cloud Storage Link"
    },
    "table_name": {
      "type": "string",
      "description": "Table name to load"
    }
  }
}