{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datagalaxy/json-schema/datagalaxy-data-processing-entity-schema.json",
  "title": "DataProcessingEntity",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/datagalaxy-openapi.yml#/components/schemas/DataProcessingEntity",
  "properties": {
    "name": {
      "type": "string",
      "description": "Entity functional name"
    },
    "technicalName": {
      "type": "string",
      "description": "Entity technical name"
    },
    "type": {
      "type": "string",
      "description": "Entity type"
    },
    "id": {
      "$ref": "#/$defs/DoubleUuid",
      "description": "Entity id"
    },
    "versionId": {
      "$ref": "#/$defs/VersionId",
      "description": "Version id in which the entity currently is"
    },
    "path": {
      "type": "string",
      "description": "Path to entity. Composed of entity's parents technical names"
    },
    "functionalPath": {
      "type": "string"
    },
    "typePath": {
      "type": "string",
      "description": "Path to entity. Composed of entity's parents types"
    },
    "objectUrl": {
      "$ref": "#/$defs/ObjectUrl",
      "deprecated": true
    },
    "childrenCount": {
      "type": "number",
      "format": "double",
      "description": "Total number of descendants the current entity has"
    },
    "accessData": {
      "$ref": "#/$defs/AccessData",
      "description": "Access your integrationToken has on this entity"
    },
    "attributes": {
      "$ref": "#/$defs/EntityAttributes"
    },
    "isWatched": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Entity watch status"
    },
    "richTextAttributes": {
      "$ref": "#/$defs/RichTextAttribute",
      "description": "Text attributes containing Rich Text (i.e.: HTML formatted text)"
    },
    "dpItems": {
      "items": {
        "$ref": "#/$defs/DpiData"
      },
      "type": "array"
    }
  },
  "required": [
    "name",
    "technicalName",
    "type",
    "id",
    "versionId",
    "path",
    "functionalPath",
    "typePath",
    "objectUrl",
    "attributes"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "AccessData": {
      "properties": {
        "hasOfficialRoleAttributesWriteAccess": {
          "type": "boolean"
        },
        "hasEntityStatusWriteAccess": {
          "type": "boolean"
        },
        "hasTaskWriteAccess": {
          "type": "boolean"
        },
        "hasReadAccess": {
          "type": "boolean"
        },
        "hasWriteAccess": {
          "type": "boolean"
        },
        "hasAdministratorAccess": {
          "type": "boolean"
        },
        "hasImportAccess": {
          "type": "boolean"
        },
        "hasExportAccess": {
          "type": "boolean"
        },
        "hasDeleteAccess": {
          "type": "boolean"
        },
        "hasCreateAccess": {
          "type": "boolean"
        },
        "hasManagementAccess": {
          "type": "boolean"
        }
      },
      "required": [
        "hasOfficialRoleAttributesWriteAccess",
        "hasEntityStatusWriteAccess",
        "hasTaskWriteAccess",
        "hasReadAccess",
        "hasWriteAccess",
        "hasAdministratorAccess",
        "hasImportAccess",
        "hasExportAccess",
        "hasDeleteAccess",
        "hasCreateAccess",
        "hasManagementAccess"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "AdditionalCustomAttribute": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number",
          "format": "double"
        },
        {
          "type": "boolean"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "items": {
            "$ref": "#/$defs/Email"
          },
          "type": "array"
        },
        {
          "$ref": "#/$defs/HyperLink"
        },
        {
          "type": "string",
          "format": "date-time"
        },
        {},
        {
          "items": {
            "$ref": "#/$defs/TimeSeriesEntry"
          },
          "type": "array"
        }
      ],
      "description": "Additional attribute. This property's type depends on the attribute's format."
    },
    "DataProcessingItemTypeEnum": {
      "enum": [
        "Undefined",
        "Copy",
        "Concatenate",
        "Substring",
        "Formula",
        "Agregate",
        "Aggregate",
        "Convert",
        "Search",
        "InnerJoin",
        "ConstantVariable",
        "Custom",
        "OuterJoin",
        "Filter",
        "Calculation"
      ],
      "type": "string"
    },
    "DoubleUuid": {
      "type": "string",
      "description": "Composed of 2 colon-separated stringified UUIDv4.\nRepresents a Workspace or an Entity in DataGalaxy's context."
    },
    "DpiData": {
      "properties": {
        "name": {
          "type": "string"
        },
        "technicalName": {
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/Uuid"
        },
        "description": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/DataProcessingItemTypeEnum"
        },
        "inputs": {
          "items": {
            "$ref": "#/$defs/DpiInput"
          },
          "type": "array"
        },
        "outputs": {
          "items": {
            "$ref": "#/$defs/DpiInput"
          },
          "type": "array"
        },
        "creationTime": {
          "type": "string"
        },
        "lastModificationTime": {
          "type": "string"
        },
        "accessData": {
          "$ref": "#/$defs/AccessData"
        }
      },
      "required": [
        "name",
        "technicalName",
        "id",
        "description",
        "summary",
        "type",
        "inputs",
        "outputs",
        "creationTime",
        "lastModificationTime",
        "accessData"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "DpiInput": {
      "properties": {
        "id": {
          "$ref": "#/$defs/DoubleUuid"
        },
        "name": {
          "type": "string"
        },
        "technicalName": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "typePath": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "technicalName",
        "type",
        "path",
        "typePath"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Email": {
      "type": "string",
      "description": "DataGalaxy user email."
    },
    "EntityAttributes": {
      "properties": {
        "status": {
          "$ref": "#/$defs/EntityLifecycleStatusEnum"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "summary": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "owners": {
          "items": {
            "$ref": "#/$defs/Email"
          },
          "type": "array"
        },
        "stewards": {
          "items": {
            "$ref": "#/$defs/Email"
          },
          "type": "array"
        },
        "creationTime": {
          "type": "string"
        },
        "lastModificationTime": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "tags",
        "summary",
        "description",
        "owners",
        "stewards",
        "creationTime",
        "lastModificationTime"
      ],
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AdditionalCustomAttribute"
      }
    },
    "EntityLifecycleStatusEnum": {
      "enum": [
        "Proposed",
        "InRevision",
        "Validated",
        "InValidation",
        "Obsolete"
      ],
      "type": "string"
    },
    "HyperLink": {
      "description": "Hyperlink",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "url"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "IDate": {
      "type": "string",
      "description": "Format: YYYY-MM-DD"
    },
    "ObjectUrl": {
      "type": "string",
      "description": "DataGalaxy object web URL.\n\n<div class=\"admonition admonition-deprecated\">\n    <strong>🗑 Deprecated</strong>\n    Will be removed in a future version.<br/>\n    Please build the web URL from the <code>versionId</code>, <code>dataType</code> and <code>id</code>.\n</div>"
    },
    "RichTextAttribute": {
      "properties": {},
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "TimeSeriesEntry": {
      "description": "All TimeSeries entries can be removed by setting your TimeSeries attribute value to null.<br>",
      "properties": {
        "date": {
          "$ref": "#/$defs/IDate"
        },
        "value": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "date",
        "value"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "Uuid": {
      "type": "string",
      "description": "Stringified UUIDv4.\nSee [RFC 4112](https://tools.ietf.org/html/rfc4122)"
    },
    "VersionId": {
      "type": "string",
      "description": "This id determines the scope of the request.\\\n<code>versionId</code> relates to a <b>workspace's version</b>.\\\nIt can be found in the <code>GET /v2/workspaces</code> and <code>GET /v2/workspaces/{workspaceId}/versions</code> endpoint's response."
    }
  }
}