{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-page-dto-public-get-domain-dto-schema.json",
  "title": "PublicPageDtoPublicGetDomainDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-domains-api-openapi.yml#/components/schemas/PublicPageDtoPublicGetDomainDto",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicGetDomainDto"
      }
    },
    "totalCount": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "PublicDomainContentDefinitionDto": {
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the domain content definition",
          "enum": [
            "STATIC",
            "DYNAMIC"
          ]
        }
      },
      "description": "Definition of the assets contained in the domain"
    },
    "PublicDomainTeamPermissionDto": {
      "required": [
        "domainRole",
        "teamId"
      ],
      "type": "object",
      "properties": {
        "domainRole": {
          "type": "string",
          "description": "Domain role assigned to the referenced team for accessing domain",
          "enum": [
            "EDITOR",
            "MONITOR_RESPONDER",
            "CATALOG_EDITOR",
            "VIEWER"
          ]
        },
        "teamId": {
          "type": "string",
          "description": "Id of the team",
          "format": "uuid"
        }
      },
      "description": "Teams permissions granted in the domain"
    },
    "PublicDynamicDomainContentDefinitionDto": {
      "required": [
        "conditions",
        "filterLogicalOperator",
        "type"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/PublicDomainContentDefinitionDto"
        },
        {
          "type": "object",
          "properties": {
            "conditions": {
              "type": "array",
              "description": "List of the conditions defining content of the domain",
              "items": {
                "oneOf": [
                  {
                    "$ref": "#/$defs/PublicSourceFilterDomainConditionDto"
                  },
                  {
                    "$ref": "#/$defs/PublicTagFilterDomainConditionDto"
                  }
                ]
              }
            },
            "filterLogicalOperator": {
              "type": "string",
              "description": "Logical operator to use between conditions",
              "enum": [
                "AND",
                "OR"
              ]
            }
          }
        }
      ]
    },
    "PublicExternalTagReferenceDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of the referenced object",
          "format": "uuid"
        },
        "kind": {
          "type": "string",
          "description": "Type of the referenced tag",
          "enum": [
            "BIGQUERY_EXTERNAL",
            "SNOWFLAKE_EXTERNAL",
            "DBT_EXTERNAL",
            "DATABRICKS_EXTERNAL",
            "ADF_EXTERNAL",
            "ATLAN_EXTERNAL",
            "ALATION_EXTERNAL",
            "AMUNDSEN_EXTERNAL",
            "APACHE_ATLAS_EXTERNAL",
            "CASTOR_DOC_EXTERNAL",
            "COLLIBRA_EXTERNAL",
            "DATAGALAXY_EXTERNAL",
            "INFORMATICA_EXTERNAL",
            "SECODA_EXTERNAL",
            "SELECT_STAR_EXTERNAL",
            "GENERIC_CATALOG_EXTERNAL"
          ]
        },
        "name": {
          "type": "string",
          "description": "Name of the referenced object"
        }
      },
      "description": "Asset tag from external providers."
    },
    "PublicFilterDomainConditionDto": {
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the condition",
          "enum": [
            "SOURCE",
            "TAG"
          ]
        }
      },
      "description": "List of the conditions defining content of the domain"
    },
    "PublicGetDomainDto": {
      "required": [
        "assetContentDefinition",
        "assetCount",
        "id",
        "name"
      ],
      "type": "object",
      "properties": {
        "assetContentDefinition": {
          "oneOf": [
            {
              "$ref": "#/$defs/PublicDynamicDomainContentDefinitionDto"
            },
            {
              "$ref": "#/$defs/PublicStaticDomainContentDefinitionDto"
            }
          ]
        },
        "assetCount": {
          "type": "integer",
          "description": "Current count of assets contained in the domain",
          "format": "int32"
        },
        "description": {
          "type": "string",
          "description": "Description of the domain"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "description": "Name of the domain"
        },
        "parentDomainId": {
          "type": "string",
          "description": "Id of the parent domain, if the domain has a parent",
          "format": "uuid"
        },
        "teamPermissions": {
          "type": "array",
          "description": "Teams permissions granted in the domain",
          "items": {
            "$ref": "#/$defs/PublicDomainTeamPermissionDto"
          }
        }
      }
    },
    "PublicSourceFilterDomainConditionDto": {
      "required": [
        "operator",
        "sources",
        "type"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/PublicFilterDomainConditionDto"
        },
        {
          "type": "object",
          "properties": {
            "operator": {
              "type": "string",
              "description": "Operator of the condition",
              "enum": [
                "IS",
                "IS_NOT"
              ]
            },
            "sources": {
              "type": "array",
              "description": "List of the sources in the condition in URI format. <a href=\"https://docs.siffletdata.com/docs/uri\">[Read more about URIs]</a>",
              "items": {
                "type": "string",
                "description": "List of the sources in the condition in URI format. <a href=\"https://docs.siffletdata.com/docs/uri\">[Read more about URIs]</a>"
              }
            }
          }
        }
      ]
    },
    "PublicStaticDomainContentDefinitionDto": {
      "required": [
        "assets",
        "type"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/PublicDomainContentDefinitionDto"
        },
        {
          "type": "object",
          "properties": {
            "assets": {
              "type": "array",
              "description": "List of the assets of the domain",
              "items": {
                "type": "string",
                "description": "List of the assets of the domain"
              }
            }
          }
        }
      ]
    },
    "PublicTagFilterDomainConditionDto": {
      "required": [
        "operator",
        "tags",
        "type"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/PublicFilterDomainConditionDto"
        },
        {
          "type": "object",
          "properties": {
            "operator": {
              "type": "string",
              "description": "Operator of the condition",
              "enum": [
                "IS",
                "IS_NOT"
              ]
            },
            "tags": {
              "type": "array",
              "description": "List of the tags references in the condition",
              "items": {
                "$ref": "#/$defs/PublicExternalTagReferenceDto"
              }
            }
          }
        }
      ]
    }
  }
}