{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-pipeline-stage-artifacts-schema.json",
  "title": "PipelineStageArtifacts",
  "description": "Supported items from a workspace that's assigned to a deployment pipeline stage",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-pipelines-api-openapi.yml#/components/schemas/PipelineStageArtifacts",
  "properties": {
    "datasets": {
      "type": "array",
      "description": "The datasets collection",
      "items": {
        "$ref": "#/$defs/PipelineStageDataset"
      }
    },
    "reports": {
      "type": "array",
      "description": "The reports collection",
      "items": {
        "$ref": "#/$defs/PipelineStageReport"
      }
    },
    "dashboards": {
      "type": "array",
      "description": "The dashboards collection",
      "items": {
        "$ref": "#/$defs/PipelineStageDashboard"
      }
    },
    "dataflows": {
      "type": "array",
      "description": "The dataflows collection",
      "items": {
        "$ref": "#/$defs/PipelineStageDataflow"
      }
    },
    "datamarts": {
      "type": "array",
      "description": "The datamarts collection",
      "items": {
        "$ref": "#/$defs/PipelineStageDatamart"
      }
    }
  },
  "$defs": {
    "PipelineStageArtifactBase": {
      "required": [
        "artifactId"
      ],
      "description": "Power BI item metadata for a deployment pipeline stage",
      "properties": {
        "artifactId": {
          "type": "string",
          "format": "uuid",
          "description": "The Power BI item ID"
        },
        "artifactDisplayName": {
          "type": "string",
          "description": "The Power BI item display name"
        },
        "sourceArtifactId": {
          "type": "string",
          "format": "uuid",
          "description": "The ID of the Power BI item (such as a report or a dashboard) from the workspace assigned to the source stage, which will update the current Power BI item upon deployment. Applicable only when the user has at least contributor access to the source stage workspace."
        },
        "targetArtifactId": {
          "type": "string",
          "format": "uuid",
          "description": "The ID of the Power BI item (such as a report or a dashboard) from the workspace of the target stage, which will be updated by the current Power BI item upon deployment. Applicable only when the user has at least contributor access to the target stage workspace."
        },
        "lastDeploymentTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last deployment date and time of the Power BI item"
        }
      }
    },
    "PipelineStageDashboard": {
      "description": "The metadata for a deployment pipeline dashboard",
      "allOf": [
        {
          "$ref": "#/$defs/PipelineStageArtifactBase"
        }
      ]
    },
    "PipelineStageDataflow": {
      "description": "The metadata for a deployment pipeline dataflow",
      "allOf": [
        {
          "$ref": "#/$defs/PipelineStageArtifactBase"
        }
      ]
    },
    "PipelineStageDatamart": {
      "description": "The metadata for a deployment pipeline datamart",
      "allOf": [
        {
          "$ref": "#/$defs/PipelineStageArtifactBase"
        }
      ]
    },
    "PipelineStageDataset": {
      "description": "The metadata for a deployment pipeline dataset",
      "allOf": [
        {
          "$ref": "#/$defs/PipelineStageArtifactBase"
        }
      ]
    },
    "PipelineStageReport": {
      "description": "The metadata for a deployment pipeline report",
      "allOf": [
        {
          "$ref": "#/$defs/PipelineStageArtifactBase"
        }
      ]
    }
  }
}